fg_var_def_ratecard.inc

来自「asterisk用 的voip记费软件」· INC 代码 · 共 445 行 · 第 1/2 页

INC
445
字号
		$HD_Form -> AddEditElement(gettext("BILLING BLOCK A"),	   "billingblocka",	   '$value',	   "INPUT",	   "size=30 maxlength=20",	   "4",	   gettext("Insert the billing block A"),	   "" , "", "",	"", "", "" , "NO", gettext("Define the duration of each billing block to apply the rate 'CHARGE A'."));		$HD_Form -> AddEditElement(gettext("STEPCHARGE B"),	   "stepchargeb",	   '$value',	   "INPUT",	   "size=30 maxlength=20",	   "12",	   gettext("Insert the stepcharge B"),	   "" , "", "",	"", "", "" , "NO", gettext("When entering in the cycle 'B', define the amount to charge for the entrance."));		$HD_Form -> AddEditElement(gettext("CHARGE B"),	   "chargeb",	   '$value',	   "INPUT",	   "size=30 maxlength=20",	   "12",	   gettext("Insert the charge B"),	   "" , "", "",	"", "", "", "NO", gettext("When entering in the cycle 'B', define the rate to apply." ));		$HD_Form -> AddEditElement(gettext("TIMECHARGE B"),	   "timechargeb",	   '$value',	   "INPUT",	   "size=30 maxlength=20",	   "4",	   gettext("Insert the time charge B"),	   "" , "", "",	"", "", "", "NO", gettext("Define the duration of the cycle 'B'." ));		$HD_Form -> AddEditElement(gettext("BILLING BLOCK B"),	   "billingblockb",	   '$value',	   "INPUT",	   "size=30 maxlength=20",	   "4",	   gettext("Insert the billing block B"),	   "" , "", "",	"", "", "", "NO", gettext("Define the duration of each billing block to apply the rate 'CHARGE B'." ));		$HD_Form -> AddEditElement(gettext("STEPCHARGE C"),	   "stepchargec",	   '$value',	   "INPUT",	   "size=30 maxlength=20",	   "12",	   "Insert the stepcharge C",	   "" , "", "",	"", "", "", "NO", gettext("When entering in the cycle 'C', define the amount to charge for the entrance." ));		$HD_Form -> AddEditElement(gettext("CHARGE C"),	   "chargec",	   '$value',	   "INPUT",	   "size=30 maxlength=20",	   "12",	   gettext("Insert the charge C"),	   "" , "", "",	"", "", "", "NO", gettext("When entering in the cycle 'C', define the rate to apply."));		$HD_Form -> AddEditElement(gettext("TIMECHARGE C"),	   "timechargec",	   '$value',	   "INPUT",	   "size=30 maxlength=20",	   "4",	   gettext("Insert the time charge C"),	   "" , "", "",	"", "", "", "NO", gettext("Define the duration of the cycle 'C'."));		$HD_Form -> AddEditElement(gettext("BILLING BLOCK C"),	   "billingblockc",	   '$value',	   "INPUT",	   "size=30 maxlength=20",	   "4",	   gettext("Insert the billing block C"),	   "" , "", "",	"", "", "", "NO", gettext("Define the duration of each billing block to apply the rate 'CHARGE C'."));	}//ENDif (ADVANCED_MODE)if ($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."'";}$HD_Form -> AddEditElement(gettext("START DATE"),   "startdate",   '$value',   "INPUT",   "size=40 maxlength=40  $comp_date",   "10",   gettext("Insert the starting date"),   "" , "", "",	"", "", "", "" , gettext("Format YYYY-MM-DD HH:MM:SS. For instance, '2004-12-31 00:00:00'"),   null, "res_display_dateformat", gettext("Define the perio when this rating might be active."));$HD_Form -> AddEditElement(gettext("STOP DATE"),   "stopdate",   '$value',   "INPUT",   "size=40 maxlength=40  $comp_date_plus",   "10",   gettext("Insert the stop date"),   "", "", "", "", "", "NO-NULL", "", gettext("Leave empty to apply this rate indefinitely. Format YYYY-MM-DD HH:MM:SS. For instance, '2004-12-31 00:00:00"), null, "res_display_dateformat" );if ($form_action=="ask-add"){	$comp_time = " value=0 ";	$comp_time_plus = " value=10079 ";}$HD_Form -> AddEditElement(gettext("START TIME"),   "starttime",   '$value',   "POPUPDATETIME",   "size=8 maxlength=8 $comp_time",   "4",   gettext("Insert the start time"),   "" , "", "", "", "",  "", "", gettext("Set the time and day of the week at the rate is first valid (ie Monday 00:00 is 0)") );$HD_Form -> AddEditElement(gettext("END TIME"),   "endtime",   '$value',   "POPUPDATETIME",   "size=8 maxlength=8 $comp_time_plus",   "4",   gettext("Insert the end time"),   "" , "", "", "", "",  "", "", gettext("Set the time and the day of the week that the rate is no longer valid. (ie Sunday 23:59 is 10079)") );$HD_Form -> AddEditElement(gettext("TRUNK"),   "id_trunk",   '$value',   "SELECT",   "", "", "",   "sql",   "cc_trunk",   "trunkcode, id_trunk",	"", "", "%1", "", gettext("Set the trunk to use for this destination, or NOT DEFINED to use the rate card trunk."), '', '<OPTION  value="-1" selected>NOT DEFINED</OPTION>');$HD_Form -> AddEditElement (gettext("USE FREE TIME TO CALL PACKAGE"),   "freetimetocall_package_offer",   '0',   "RADIOBUTTON",   "", "", gettext("Choose to use this destination with the freetimetocall package offer."),   "" ,    "",    "" ,    "No:0, - Yes :1",	"", "", "", gettext("Set to use this destination with the freetimetocall package offer."));	$HD_Form -> AddEditElement(gettext("CIDGroup"),   "id_outbound_cidgroup",   '$value',   "SELECT",   "", "", "",   "sql",   "cc_outbound_cid_group",   "group_name, id",	"", "", "%1", "", gettext("Set the Outgoing CID Group to use for this destination, or NOT DEFINED to use the rate card trunk."), '', '<OPTION  value="-1" selected>NOT DEFINED</OPTION>');if (ADVANCED_MODE){	$HD_Form -> AddEditElement(gettext("MUSICONHOLD"),	   "musiconhold",	   '$value',	   "SELECT",	   "",	   "",	   "",	   "list" , "", "", "", $musiconhold_list, "%1", "", "" );}if (ADVANCED_MODE){	// This Variable store the argument for the SQL query	$HD_Form -> FieldEditElement ('idtariffplan, dialprefix, destination, buyrate, buyrateinitblock, buyrateincrement, rateinitial, initblock, billingblock, connectcharge, disconnectcharge, stepchargea, chargea, timechargea, billingblocka, stepchargeb, chargeb, timechargeb, billingblockb, stepchargec, chargec, timechargec, billingblockc, startdate, stopdate, starttime, endtime, id_trunk, freetimetocall_package_offer,id_outbound_cidgroup, musiconhold');}else{	// This Variable store the argument for the SQL query	$HD_Form -> FieldEditElement ('idtariffplan, dialprefix, destination, buyrate, buyrateinitblock, buyrateincrement,rateinitial, initblock, billingblock, connectcharge, disconnectcharge, startdate, stopdate, starttime, endtime, id_trunk, freetimetocall_package_offer,id_outbound_cidgroup');}$HD_Form -> FG_SPLITABLE_FIELD = 'dialprefix';$HD_Form -> FG_INTRO_TEXT_ADITION = $HD_Form -> FG_INTRO_TEXT_EDITION = gettext("Rates must be entered in the currency base : ").strtoupper(BASE_CURRENCY);$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_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("Click 'Confirm Data' to continue.");$HD_Form -> FG_FILTER_APPLY = true;$HD_Form -> FG_FILTERFIELD = 'dialprefix';$HD_Form -> FG_FILTERFIELDNAME = 'dialprefix';$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.="dialprefix like '$filterprefix%'";}$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 + -
显示快捷键?