fg_var_payment.inc

来自「asterisk用 的voip记费软件」· INC 代码 · 共 114 行

INC
114
字号
<?phpgetpost_ifset(array('id', 'card_id', 'date', 'payment'));if (!isset($form_action) || $form_action=="list"){	$HD_Form = new FormHandler("cc_logpayment LEFT JOIN cc_card ON cc_card.id=card_id","payment");}else{	$HD_Form = new FormHandler("cc_logpayment","payment");}$HD_Form -> FG_TABLE_ID = 'cc_logpayment.id';$HD_Form -> FG_DEBUG = 0;// FAQ$HD_Form -> FG_TABLE_DEFAULT_SENS = "ASC";$HD_Form -> AddViewElement(gettext("CARD"), "username", "25%", "center", "sort");$HD_Form -> AddViewElement(gettext("PAYMENT DATE"), "date", "30%", "center", "sort", "30", "", "", "", "", "", "display_dateformat");$HD_Form -> AddViewElement(gettext("PAYMENT AMOUNT"), "payment", "30%", "center", "sort");$HD_Form -> FieldViewElement ('username, date, payment');$HD_Form -> CV_NO_FIELDS  = gettext("THERE IS 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_EDITION = false;$HD_Form -> FG_DELETION = false;$HD_Form -> AddEditElement (gettext("ID CARD"),			   "card_id",					   "$value",				   "POPUPVALUE",				   "size=30 maxlength=50",				   "4",				   gettext("Insert the Id CardNumber"),			    "" , "", "", "", "", 								"A2B_entity_card.php?popup_select=1&"				, ", 'CardNumberSelection','width=550,height=330,top=20,left=100,scrollbars=1'" ,				gettext("Select the Card Number ID"));			   if ($form_action=="ask-add"){		$begin_date = date("Y");	$end_date = date("-m-d H:i:s");	$comp_date=$begin_date.$end_date;	$comp_date="value='$comp_date'";}$HD_Form -> AddEditElement (gettext("PAYMENT DATE"),			   "date",					   '$value',				   "INPUT",				   "size=40 READONLY maxlength=40  $comp_date",				   "10",				   gettext("Insert the current date"),			   "" , "", "",	"", "", "", "", "" );$HD_Form -> AddEditElement (gettext("PAYMENT AMOUNT"),			   "payment",					   '$value',				   "INPUT",				   "size=60 maxlength=10",				   "12",				   gettext("Insert the payment amount"),			   "" , "", "",	"", "" , "", "", gettext("Enter the amount in the currency base : ").BASE_CURRENCY );$HD_Form -> FieldEditElement ('card_id, date, payment');$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.", click on the delete button.");$HD_Form -> FG_INTRO_TEXT_ADD = gettext("you can add easily a new ".$HD_Form->FG_INSTANCE_NAME.".<br>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." 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_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 + -
显示快捷键?