?? fg_var_speeddial.inc
字號:
<?phpgetpost_ifset(array('id', 'speeddial', 'id_cc_card', 'name', 'phone','popup_select','popup_formname','popup_fieldname'));//require (LANGUAGE_DIR.FILENAME_SPEEDDIAL);$plang='en';$HD_Form = new FormHandler("cc_speeddial","speeddial");$HD_Form -> FG_DEBUG = 0;// FAQ$HD_Form -> FG_TABLE_DEFAULT_ORDER = " creationdate";$HD_Form -> FG_TABLE_DEFAULT_SENS = "DESC";$speeddial_list = array();for ($k=0;$k<=9;$k++) $speeddial_list["$k"] = array( "$k", "$k");//$HD_Form -> AddViewElement("CREATIONDATE", "creationdate", "10%", "center", "sort", "16", "", "", "", "", "", "display_dateformat");//$HD_Form -> AddViewElement("CARDNUMBER", "id_cc_card", "12%", "center", "sort", "15", "lie", "cc_card", "username", "id='%id'", "%1");$HD_Form -> AddViewElement(gettext("SPEEDDIAL"), "speeddial", "20%", "center", "sort", "26");$HD_Form -> AddViewElement(gettext("PHONE"), "phone", "20%", "center", "sort", "26");$HD_Form -> AddViewElement(gettext("NAME"), "name", "20%", "center", "sort", "26");//$HD_Form -> FieldViewElement ('creationdate, id_cc_card, name, phone, speeddial');$HD_Form -> FieldViewElement ('speeddial, phone, name');$HD_Form -> CV_NO_FIELDS = gettext("THERE ARE NO ".strtoupper($HD_Form->FG_INSTANCE_NAME)." CREATED!");$HD_Form -> CV_DISPLAY_LINE_TITLE_ABOVE_TABLE = false;$HD_Form -> CV_TEXT_TITLE_ABOVE_TABLE = '';$HD_Form -> CV_DISPLAY_FILTER_ABOVE_TABLE = false;$HD_Form -> FG_VIEW_TABLE_WITDH = '70%';// My Code for Where Cluaseif (strlen($HD_Form -> FG_TABLE_CLAUSE)>0) $HD_Form -> FG_TABLE_CLAUSE.=" AND "; $HD_Form -> FG_TABLE_CLAUSE.="id_cc_card =".$_SESSION["card_id"]; if (strlen($HD_Form -> FG_EDITION_CLAUSE)>0) $HD_Form -> FG_EDITION_CLAUSE.=" AND "; $HD_Form -> FG_EDITION_CLAUSE.="id_cc_card =".$_SESSION["card_id"]; //end My Code for Where Clause$HD_Form -> FG_EDITION = true;$HD_Form -> FG_DELETION = true;$HD_Form -> AddEditElement (gettext("SPEEDDIAL"), "speeddial", "", "SELECT", "", "", "", "list" , "", "", "", $speeddial_list, "%1", "", "" );$HD_Form -> AddEditElement (gettext("NAME"), "name", '$value', "INPUT", "size=40 maxlength=50", "0", gettext("Insert the name"), "" , "", "", "", "", "", "", gettext("Enter here the name/label that will identify this speed dial") );$HD_Form -> AddEditElement (gettext("PHONE"), "phone", '$value', "INPUT", "size=30 maxlength=50", "4", gettext("Insert the phone"), "" , "", "", "", "", "", "", gettext("Enter here the phonenumber you want to call for this speed dial") );/*$HD_Form -> AddEditElement ("ID CARD", "id_cc_card", '', "POPUPVALUE", "size=30 maxlength=50", "4", "Insert the Id CardNumber", "" , "", "", "", "", "CC_entity_card.php?popup_select=1&" , ", 'CardNumberSelection','width=550,height=350,top=20,left=100,scrollbars=1'", "Define here the id cardnumber to use" ); *///$HD_Form -> FieldEditElement ('speeddial, name, phone, id_cc_card');$HD_Form -> FieldEditElement ('speeddial, name, phone');if (isset($filterprefix) && (strlen($filterprefix)>0)){ if (strlen($HD_Form -> FG_TABLE_CLAUSE)>0) $HD_Form -> FG_TABLE_CLAUSE.=" AND "; $HD_Form -> FG_TABLE_CLAUSE.="id_cc_card like '$filterprefix'";}$HD_Form -> FG_INTRO_TEXT_EDITION= gettext("You can modify, through the following form, the different properties of your")." ".$HD_Form->FG_INSTANCE_NAME;$HD_Form -> FG_INTRO_TEXT_ASK_DELETION = gettext("If you really want remove this")." ".$HD_Form->FG_INSTANCE_NAME.", ".gettext("click on the delete button.");$HD_Form -> FG_INTRO_TEXT_ADD = gettext("you can add easily a new")." ".$HD_Form->FG_INSTANCE_NAME.".<br>".gettext("Fill the following fields and confirm by clicking on the button add.");$HD_Form -> FG_INTRO_TEXT_ADITION = '';$HD_Form -> FG_TEXT_ADITION_CONFIRMATION = gettext("Your new")." ".$HD_Form->FG_INSTANCE_NAME." ".gettext("has been inserted.")."<br>";$HD_Form -> FG_BUTTON_EDITION_SRC = $HD_Form -> FG_BUTTON_ADITION_SRC = Images_Path."/cormfirmboton.gif";$HD_Form -> FG_BUTTON_EDITION_BOTTOM_TEXT = $HD_Form -> FG_BUTTON_ADITION_BOTTOM_TEXT = gettext("Once you have completed the form above, click on the CONTINUE button.");$HD_Form -> FG_GO_LINK_AFTER_ACTION_ADD = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id=";$HD_Form -> FG_GO_LINK_AFTER_ACTION_EDIT = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id=";$HD_Form -> FG_GO_LINK_AFTER_ACTION_DELETE = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id=";?>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -