fg_var_card.inc
来自「asterisk用 的voip记费软件」· INC 代码 · 共 672 行 · 第 1/2 页
INC
672 行
"", "list" , "", "", "", $simultaccess_list, "%1", "", "" );$HD_Form -> AddEditElement (gettext("CURRENCY"), "currency", "", "SELECT", "", "", "", "list" , "", "", "", $currency_list, "%1", "", gettext("Currency used at the customer end.") );$HD_Form -> AddEditElement (gettext("RUN SERVICE"), "runservice", '0', "RADIOBUTTON", "", "", gettext("Choose if you want to enable the service recurring on this card"), "" , "", "", "Yes :1, - No:0", "", "" , "", gettext("Apply recurring service to this card."));$HD_Form -> AddEditElement (gettext("RUN AUTOREFILL"), "autorefill", '0', "RADIOBUTTON", "", "", gettext("Choose if you want to enable the autorefill on this card"), "" , "", "", "Yes :1, - No:0", "", "" , "", gettext("Define if you want to authorize the autorefill to apply on this card"));$HD_Form -> AddEditElement (gettext("INITIAL BALANCE"), "initialbalance", "", "INPUT", "size=30 $default_initbalance maxlength=30", "12", gettext("Insert the amount of the initial balance"), "" , "", "", "", "", "", "", gettext("The initial balance is used by autorefill to reset the current balance to this amount"));$HD_Form -> AddEditElement (gettext("CARD TYPE"), "typepaid", "", "SELECT", "", "", "", "list" , "", "", "", $typepaid_list, "%1", "", "" );$HD_Form -> AddEditElement (gettext("CREDIT LIMIT"), "creditlimit", "", "INPUT", "size=20 maxlength=20", "4", gettext("Insert the credit limit"), "" , "", "", "", "", "", "NO-NULL", gettext("Credit limit is only used for POSTPAY card."));$HD_Form -> AddEditElement (gettext("FIRST USE DATE"), "firstusedate", "", "INPUT", "size=40 maxlength=40 readonly", "", "the first use date", "" , "" , "", "", "", "", "NO-NULL", "", "", "res_display_dateformat");$HD_Form -> AddEditElement (gettext("ENABLE EXPIRY"), "enableexpire", "", "SELECT", "", "", "", "list" , "", "", "", $expire_list, "%1", "", gettext("Select method of expiry for the card.") );$comp_zero = $comp_date_plus='';if (isset($form_action) && $form_action=="ask-add"){ $begin_date = date("Y"); $begin_date_plus = date("Y")+10; $end_date = date("-m-d H:i:s"); $comp_date = "value='".$begin_date.$end_date."'"; $comp_date_plus = "value='".$begin_date_plus.$end_date."'"; $comp_zero = "value='0'";}$HD_Form -> AddEditElement (gettext("EXPIRY DATE"), "expirationdate", '$value', "INPUT", "size=40 maxlength=40 $comp_date_plus", "10", gettext("Insert the expiration date"), "" , "", "", "", "", "", "NO-NULL", gettext("please respect the format YYYY-MM-DD HH:MM:SS. For instance, '2004-12-31 00:00:00'"), "", "res_display_dateformat");$HD_Form -> AddEditElement (gettext("EXPIRY DAYS"), "expiredays", "", "INPUT", "size=10 maxlength=6 $comp_zero", "4", gettext("Insert the number of days after which the card will expire"), "" , "", "", "", "", "", "", gettext("The number of days after which the card will expire."));$HD_Form -> AddEditElement (gettext("INVOICE DAY"), "invoiceday", '$value', "SELECT", "", "", "", "list" , "", "", "", $invoiceday_list, "%1", "", gettext("Define the day of the month when the system will generate the customer invoice.") );$HD_Form -> AddEditElement (gettext("VAT"), "vat", "", "INPUT", "size=10 maxlength=6", "12", gettext("Insert the number for the VAT"), "" , "", "", "", "", "", "NO-NULL" , gettext("VAT to add on the invoice of this customer. it should be a decimal value '21' this will be for 21% of VAT!"));$HD_Form -> AddEditElement (gettext("LASTNAME"), "lastname", '$value', "INPUT", "size=30 maxlength=30", "11", gettext("Insert the lastname of the customers"), "" , "", "", "", "", "" , "NO", "");$HD_Form -> AddEditElement (gettext("FIRSTNAME"), "firstname", '$value', "INPUT", "size=30 maxlength=30", "11", gettext("Insert the firstname of the customers"), "" , "", "", "", "", "" , "NO", "");$HD_Form -> AddEditElement (gettext("EMAIL"), "email", '$value', "INPUT", "size=30 maxlength=30", "1", gettext("Insert the email"), "" , "", "", "", "", "" , "NO", "");$HD_Form -> AddEditElement (gettext("ADDRESS"), "address", '$value', "INPUT", "size=30 maxlength=30", "0", gettext("Insert the address of the customers"), "" , "", "", "", "", "" , "NO", "");$HD_Form -> AddEditElement (gettext("CITY"), "city", '$value', "INPUT", "size=30 maxlength=30", "0", gettext("Insert the city"), "" , "", "", "", "", "" , "NO", "");$HD_Form -> AddEditElement (gettext("STATE/PROVINCE"), "state", '$value', "INPUT", "size=30 maxlength=30", "11", gettext("Insert the state"), "" , "", "", "", "", "" , "NO", "");$HD_Form -> AddEditElement (gettext("COUNTRY"), "country", "", "SELECT", "", "", "", "sql", "cc_country", "countryname, countrycode", "", "", "%1", "", "", "", '' );$HD_Form -> AddEditElement (gettext("ZIP/POSTAL CODE"), "zipcode", '$value', "INPUT", "size=30 maxlength=30", "0", gettext("Insert the zipcode"), "" , "", "", "", "", "" , "NO", "");$HD_Form -> AddEditElement (gettext("PHONE NUMBER"), "phone", '$value', "INPUT", "size=30 maxlength=30", "7", gettext("Insert the phone number of the customers"), "" , "", "", "", "", "" , "NO", "");$HD_Form -> AddEditElement (gettext("FAX NUMBER"), "fax", '$value', "INPUT", "size=30 maxlength=30", "", gettext("Insert the fax number of the customers"), "" , "", "", "", "", "" , "NO", "");$HD_Form -> AddEditElement (gettext("SIP ACCOUNT"), "sip_buddy", '0', "RADIOBUTTON", "", "", gettext("Choose if you want to enable the sip account"), "" , "", "" , "Yes :1, - No:0", "", "" , "", gettext("Enable SIP account"));$HD_Form -> AddEditElement (gettext("IAX ACCOUNT"), "iax_buddy", '0', "RADIOBUTTON", "", "", gettext("Choose if you want to enable the iax account"), "" , "", "" , "Yes :1, - No:0", "", "" , "", gettext("Enable IAX account")); $HD_Form -> AddEditElement (gettext("MAC ADDRESS"), "mac_addr", '$value', "INPUT", "size=20 maxlength=17", "", gettext("Insert the MAC address customers' device"), "" , "", "", "", "", "" , "NO", gettext("FORMAT: 00-08-74-4C-7F-1D"));$HD_Form -> AddEditElement (gettext("IN USE"), "inuse", '$value', "SELECT", "", "", "", "list" , "", "", "", $inuse_list, "%1", "", gettext("Define the number of use of this cardnumber. If a non-standard stop of the application occurs it maybe that the card is in 'in-use' > 0 status. Get it back to '0' if you know there is a issue on this card.") );$HD_Form -> AddEditElement (gettext("CALLERID"), "callerid", '$value', "INSERT", "", "", "", "sql", "call_tariff", "label, id", "", "", "%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':18");$HD_Form -> FieldEditElement ('username, useralias, uipass, credit, language, tariff, id_subscription_fee, id_didgroup, id_campaign,'.'callback, activated, activatedbyuser, simultaccess, currency, runservice, autorefill, initialbalance, typepaid, creditlimit, firstusedate, enableexpire,'.'expirationdate, expiredays, invoiceday, vat, lastname, firstname, email, address, city, state, country, zipcode, phone,'.'fax, sip_buddy, iax_buddy, mac_addr, inuse');if(!isset($myusername)) $myusername='';if (DB_TYPE == "postgres"){ $HD_Form ->FG_QUERY_ADITION_HIDDEN_FIELDS = "userpass"; $HD_Form ->FG_QUERY_ADITION_HIDDEN_VALUE = "'$myusername'";}else{ $HD_Form ->FG_QUERY_ADITION_HIDDEN_FIELDS = "userpass ,creationdate "; $HD_Form ->FG_QUERY_ADITION_HIDDEN_VALUE = "'$myusername',now() ";}$HD_Form -> FG_FILTER_APPLY = true;$HD_Form -> FG_FILTERFIELD = 'cardnumber';$HD_Form -> FG_FILTERFIELDNAME = 'cardnumber';$HD_Form -> FG_FILTER_FORM_ACTION = 'list';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.="username 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_ADDITIONAL_FUNCTION_AFTER_ADD = 'create_sipiax_friends';$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 + =
减小字号Ctrl + -
显示快捷键?