Changeset 1037

Show
Ignore:
Timestamp:
09/17/08 08:42:36 (4 months ago)
Author:
areski
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/customer/form_data/FG_var_callerid.inc

    r793 r1037  
    77 
    88$HD_Form -> FG_DEBUG = 0; 
    9 // FAQ 
     9 
    1010 
    1111$actived_list = Constants::getActivationTrueFalseList(); 
    12  
    1312$yesno = Constants::getYesNoList(); 
    1413 
    1514 
    1615$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"); 
    1816$HD_Form -> AddViewElement(gettext("ACTIVATED"), "activated", "25%", "center", "sort", "26"); 
    1917 
     
    3331if (strlen($HD_Form -> FG_TABLE_CLAUSE)>0) 
    3432    $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"]; 
    3635         
    3736if (strlen($HD_Form -> FG_EDITION_CLAUSE)>0) 
    3837    $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"]; 
    4040         
    4141 
    4242 
    43 //end My Code for Where Clause 
    4443$HD_Form -> FG_EDITION = true; 
    4544$HD_Form -> FG_DELETION = true; 
     
    5857 
    5958$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", "", "", "", "" ); 
    6766 
    6867 
     
    7069$HD_Form -> FieldEditElement ('cid, activated'); 
    7170 
    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   */ 
    8671 
    8772 
    88  
    89  
    90 if (isset($filterprefix)  &&  (strlen($filterprefix)>0)) 
    91 
     73if (isset($filterprefix)  &&  (strlen($filterprefix)>0)) { 
    9274        if (strlen($HD_Form -> FG_TABLE_CLAUSE)>0) 
    9375            $HD_Form -> FG_TABLE_CLAUSE.=" AND "; 
     76         
    9477        $HD_Form -> FG_TABLE_CLAUSE.="cid like '$filterprefix%'"; 
    9578} 
     79 
    9680 
    9781 
     
    117101$HD_Form -> FG_GO_LINK_AFTER_ACTION_EDIT = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 
    118102$HD_Form -> FG_GO_LINK_AFTER_ACTION_DELETE = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 
    119 ?> 
     103 
     104 
     105 


Google