a2b_entity_view_invoice.php
来自「asterisk用 的voip记费软件」· PHP 代码 · 共 173 行
PHP
173 行
<?phpinclude ("../lib/defines.php");include ("../lib/module.access.php");include ("../lib/Form/Class.FormHandler.inc.php");include ("./form_data/FG_var_view_invoice.inc");include ("../lib/smarty.php");if (! has_rights (ACX_INVOICING)){ Header ("HTTP/1.0 401 Unauthorized"); Header ("Location: PP_error.php?c=accessdenied"); die(); }/***********************************************************************************/$HD_Form -> setDBHandler (DbConnect());$HD_Form -> init();if (cardid!='' || !is_null($cardid)){ $HD_Form -> FG_EDITION_CLAUSE = str_replace("%id", "$cardid", $HD_Form -> FG_EDITION_CLAUSE); }if (!isset($form_action)) $form_action="list"; //ask-addif (!isset($action)) $action = $form_action;$list = $HD_Form -> perform_action($form_action);// #### HEADER SECTION$smarty->display('main.tpl');// #### HELP SECTIONecho $CC_help_money_situation;// #### TOP SECTION PAGE$HD_Form -> create_toppage ($form_action);// #### CREATE FORM OR LIST//$HD_Form -> CV_TOPVIEWER = "menu";if (strlen($_GET["menu"])>0) $_SESSION["menu"] = $_GET["menu"];?><br><script language="javascript">function go(URL){ if ( Check() ) { document.searchform.action = URL; alert(document.searchform.action); document.searchform.submit(); } } function Check(){ if(document.searchform.filterradio[1].value == "payment") { if (document.searchform.paymenttext.value < 0) { alert("Payment amount cannot be less than Zero."); document.searchform.paymenttext.focus(); return false; } } return true;}</script><form name="searchform" id="searchform" method="post" action="A2B_entity_view_invoice.php"><input type="hidden" name="searchenabled" value="yes"><table class="bar-status" width="85%" border="0" cellspacing="1" cellpadding="2" align="center"> <tbody> <?php if ($_SESSION["pr_groupID"]==2 && is_numeric($_SESSION["pr_IDCust"])){ ?> <?php }else{ ?> <tr> <td align="left" valign="top" class="bgcolor_004"> <font class="fontstyle_003"> <?php echo gettext("CUSTOMERS");?></font> </td> <td class="bgcolor_005" align="left"> <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr> <td class="fontstyle_searchoptions"> <?php echo gettext("Enter the cardnumber");?>: <INPUT TYPE="text" NAME="entercustomer" value="<?php echo $entercustomer?>" class="form_input_text"> <a href="#" onclick="window.open('A2B_entity_card.php?popup_select=2&popup_formname=searchform&popup_fieldname=entercustomer' , 'CardNumberSelection','scrollbars=1,width=550,height=330,top=20,left=100,scrollbars=1');"><img src="<?php echo Images_Path;?>/icon_arrow_orange.gif"></a> </td> </tr></table></td> </tr> <?php }?> <tr> <td class="bgcolor_002" align="left"> <font class="fontstyle_003"> <?php echo gettext("SELECT MONTH");?></font> </td> <td class="bgcolor_003" align="left"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr><td class="fontstyle_searchoptions"> <input type="checkbox" name="frommonth" value="true" <?php if ($frommonth){ ?>checked<?php }?>> <?php echo gettext("From");?> : <select name="fromstatsmonth" class="form_input_select"> <?php $monthname = array( gettext("January"), gettext("February"),gettext("March"), gettext("April"), gettext("May"), gettext("June"), gettext("July"), gettext("August"), gettext("September"), gettext("October"), gettext("November"), gettext("December")); $year_actual = date("Y"); for ($i=$year_actual;$i >= $year_actual-1;$i--) { if ($year_actual==$i){ $monthnumber = date("n")-1; // Month number without lead 0. }else{ $monthnumber=11; } for ($j=$monthnumber;$j>=0;$j--){ $month_formated = sprintf("%02d",$j+1); if ($fromstatsmonth=="$i-$month_formated") $selected="selected"; else $selected=""; echo "<OPTION value=\"$i-$month_formated\" $selected> $monthname[$j]-$i </option>"; } } ?> <option value="0001-01"><?php echo gettext("January")."-0001"?></option> </select> </td><td class="fontstyle_searchoptions"> <input type="checkbox" name="tomonth" value="true" <?php if ($tomonth){ ?>checked<?php }?>> <?php echo gettext("To");?> : <select name="tostatsmonth" class="form_input_select"> <?php $year_actual = date("Y"); for ($i=$year_actual;$i >= $year_actual-1;$i--) { if ($year_actual==$i){ $monthnumber = date("n")-1; // Month number without lead 0. }else{ $monthnumber=11; } for ($j=$monthnumber;$j>=0;$j--){ $month_formated = sprintf("%02d",$j+1); if ($tostatsmonth=="$i-$month_formated") $selected="selected"; else $selected=""; echo "<OPTION value=\"$i-$month_formated\" $selected> $monthname[$j]-$i </option>"; } } ?> </select> </td></tr></table> </td> </tr> <tr> <td class="bgcolor_004" align="left" > </td> <td class="bgcolor_005" align="center" > <input type="image" name="image16" align="top" border="0" src="<?php echo Images_Path;?>/button-search.gif" /> </td> </tr> </tbody></table> </FORM></center></form><?php$HD_Form -> create_form ($form_action, $list, $id=null) ;?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?