Changeset 1037
- Timestamp:
- 09/17/08 08:42:36 (4 months ago)
- Files:
-
- trunk/customer/form_data/FG_var_callerid.inc (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/customer/form_data/FG_var_callerid.inc
r793 r1037 7 7 8 8 $HD_Form -> FG_DEBUG = 0; 9 // FAQ 9 10 10 11 11 $actived_list = Constants::getActivationTrueFalseList(); 12 13 12 $yesno = Constants::getYesNoList(); 14 13 15 14 16 15 $HD_Form -> AddViewElement(gettext("CALLERID"), "cid", "25%", "center", "sort"); 17 // $HD_Form -> AddViewElement("CARDNUMBER", "id_cc_card", "25%", "center", "sort", "15", "lie", "cc_card", "username", "id='%id'", "%1");18 16 $HD_Form -> AddViewElement(gettext("ACTIVATED"), "activated", "25%", "center", "sort", "26"); 19 17 … … 33 31 if (strlen($HD_Form -> FG_TABLE_CLAUSE)>0) 34 32 $HD_Form -> FG_TABLE_CLAUSE.=" AND "; 35 $HD_Form -> FG_TABLE_CLAUSE.="id_cc_card =".$_SESSION["card_id"]; 33 34 $HD_Form -> FG_TABLE_CLAUSE.="id_cc_card =".$_SESSION["card_id"]; 36 35 37 36 if (strlen($HD_Form -> FG_EDITION_CLAUSE)>0) 38 37 $HD_Form -> FG_EDITION_CLAUSE.=" AND "; 39 $HD_Form -> FG_EDITION_CLAUSE.="id_cc_card =".$_SESSION["card_id"]; 38 39 $HD_Form -> FG_EDITION_CLAUSE.="id_cc_card =".$_SESSION["card_id"]; 40 40 41 41 42 42 43 //end My Code for Where Clause44 43 $HD_Form -> FG_EDITION = true; 45 44 $HD_Form -> FG_DELETION = true; … … 58 57 59 58 $HD_Form -> AddEditElement (gettext("ACTIVATED"), 60 "activated",61 't',62 "RADIOBUTTON",63 "",64 "",65 gettext("Choose if you want to activate this card"),66 "" , "", "", "Yes :t, - No:f", "", "", "", "" );59 "activated", 60 't', 61 "RADIOBUTTON", 62 "", 63 "", 64 gettext("Choose if you want to activate this card"), 65 "" , "", "", "Yes :t, - No:f", "", "", "", "" ); 67 66 68 67 … … 70 69 $HD_Form -> FieldEditElement ('cid, activated'); 71 70 72 /*73 $HD_Form -> AddEditElement ("CALLERID",74 "callerid",75 '$value',76 "INSERT",77 "",78 "",79 "",80 "sql",81 "call_tariff",82 "label, id",83 "", "", "%1 : (%2)", "", "", "cc_callerid:cid:cc_callerid:cid, cid, id_cc_card:id_cc_card = %id:id_cc_card:%3 - (%1)::othertablelinked:cli, id_cc_card:%1:id_cc_card='%1'");84 85 */86 71 87 72 88 89 90 if (isset($filterprefix) && (strlen($filterprefix)>0)) 91 { 73 if (isset($filterprefix) && (strlen($filterprefix)>0)) { 92 74 if (strlen($HD_Form -> FG_TABLE_CLAUSE)>0) 93 75 $HD_Form -> FG_TABLE_CLAUSE.=" AND "; 76 94 77 $HD_Form -> FG_TABLE_CLAUSE.="cid like '$filterprefix%'"; 95 78 } 79 96 80 97 81 … … 117 101 $HD_Form -> FG_GO_LINK_AFTER_ACTION_EDIT = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 118 102 $HD_Form -> FG_GO_LINK_AFTER_ACTION_DELETE = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 119 ?> 103 104 105
