⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 class.searchhandler.inc.php

📁 asterisk 計費模塊
💻 PHP
📖 第 1 页 / 共 2 页
字号:
				<table width="100%" border="0" cellspacing="0" cellpadding="0">				<tr>				<?php				foreach ($this->FG_FILTER_SEARCH_FORM_SELECT as $selects){				?>				<td>					<select NAME="<?php echo $selects[2]?>" size="1" class="form_input_select">						<option value=''><?php echo $selects[0]?></option>				<?php					 foreach ($selects[1] as $recordset){				?>						<option class=input value='<?php echo $recordset[0]?>'  <?php if ($processed[$selects[2]]==$recordset[0]) echo 'selected="selected"'?>><?php echo $recordset[1]; if (strlen($recordset[2])>0) echo ' - '.$recordset[2]; ?></option>				<?php 	 }				?>					</select>				</td>				<?php				}				?>				</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_Main;?>/button-search.gif" />					<?php if(isset($_SESSION[$this->FG_FILTER_SEARCH_SESSION_NAME]) && strlen($_SESSION[$this->FG_FILTER_SEARCH_SESSION_NAME])>10 ){ ?>                    	- <a href="<?php echo $_SERVER['PHP_SELF']?>?cancelsearch=true"><font color="red"><b><img src="<?php echo KICON_PATH; ?>/button_cancel.gif" height="16"> Cancel Search</b></font></a>&nbsp;						<?php if ($this -> FG_FILTER_SEARCH_DELETE_ALL){ ?>							- <a href="<?php echo $_SERVER['PHP_SELF']?>?deleteselected=true" onclick="return confirm('<?php echo "Are you sure to delete ".$this -> FG_NB_RECORD." selected records?";?>');"><font color="red"><b>Delete All</b></font></a>						<?php } ?>                    <?php } ?>	  			</td>    		</tr>		</tbody></table>	</FORM></center><!-- ** ** ** ** ** End - Part for the research ** ** ** ** ** --><?php}	if ($this->FG_UPDATE_FORM){?><!-- ** ** ** ** ** Part for the Update ** ** ** ** ** --><a href="#" target="_self"  onclick="imgidclick('img61000','div61000','kfind.gif','viewmag.gif');"><img id="img61000" src="<?php echo KICON_PATH; ?>/viewmag.gif" onmouseover="this.style.cursor='hand';" WIDTH="16" HEIGHT="16"></a><div id="div61000" style="display:visible;"><br><center><b><?php echo gettext("There is");?>&nbsp;<?php echo $nb_record ?>&nbsp;<?php echo gettext("selected, use the option below if you are willing to make a batch updated of the selected cards.");?></b>	   <table cellspacing="1"  class="searchhandler_table4">        <tbody>		<form name="updateForm" action="<?php echo $_SERVER['PHP_SELF']?>" method="post">		<INPUT type="hidden" name="batchupdate" value="1">		<tr>          <td align="left" class="bgcolor_001">		  		<input name="check[upd_id_trunk]" type="checkbox" <?php if ($check["upd_id_trunk"]=="on") echo "checked"?>>		  </td>		  <td align="left"  class="searchhandler_table4_td1">				<strong>1) TRUNK : </strong>				<select NAME="upd_id_trunk" size="1" class="form_input_select">					<?php					 foreach ($list_trunk as $recordset){					?>						<option class=input value='<?php echo $recordset[0]?>'  <?php if ($upd_id_trunk==$recordset[0]) echo 'selected="selected"'?>><?php echo $recordset[1].' ('.$recordset[2].')'?></option>					<?php 	 }					?>				</select>			</td>		</tr>		<tr>          <td align="left" class="searchhandler_table4_td1">		  	<input name="check[upd_idtariffplan]" type="checkbox" <?php if ($check["upd_idtariffplan"]=="on") echo "checked"?> >		  </td>		  <td align="left" class="searchhandler_table4_td1">			  	<strong>2) <?php echo gettext("RATECARD");?> :</strong>				<select NAME="upd_idtariffplan" size="1" class="form_input_select">														<?php					 				  	 foreach ($list_tariffname as $recordset){ 						 					?>						<option class=input value='<?php echo $recordset[0]?>'  <?php if ($upd_idtariffplan==$recordset[0]) echo 'selected="selected"'?>><?php echo $recordset[1]?></option>                        					<?php 	 }					?>				</select>				<br/>			</td>		</tr>		<tr>		          <td align="left" class="searchhandler_table4_td1">		  		<input name="check[upd_buyrate]" type="checkbox" <?php if ($check["upd_buyrate"]=="on") echo "checked"?>>				<input name="mode[upd_buyrate]" type="hidden" value="2">		  </td>		  <td align="left"  class="searchhandler_table4_td1">				  	<strong>3)&nbsp;<?php echo gettext("BUYRATE");?>&nbsp;:</strong>					<input class="form_input_text" name="upd_buyrate" size="10" maxlength="10" value="<?php if (isset($upd_buyrate)) echo $upd_buyrate; else echo '0';?>">				<font class="version">				<input type="radio" NAME="type[upd_buyrate]" value="1" <?php if((!isset($type["upd_buyrate"]))|| ($type["upd_buyrate"]==1) ){?>checked<?php }?>><?php echo gettext("Equal");?>				<input type="radio" NAME="type[upd_buyrate]" value="2" <?php if($type["upd_buyrate"]==2){?>checked<?php }?>> <?php echo gettext("Add");?>				<input type="radio" NAME="type[upd_buyrate]" value="3" <?php if($type["upd_buyrate"]==3){?>checked<?php }?>> <?php echo gettext("Substract");?>				</font>			</td>		</tr>		<tr>		          <td align="left" class="searchhandler_table4_td1">		  		<input name="check[upd_buyrateinitblock]" type="checkbox" <?php if ($check["upd_buyrateinitblock"]=="on") echo "checked"?>>				<input name="mode[upd_buyrateinitblock]" type="hidden" value="2">		  </td>		  <td align="left" class="searchhandler_table4_td1">				  	<strong>4)&nbsp; <?php echo gettext("BUYRATEINITBLOCK");?>&nbsp;:</strong>					<input class="form_input_text" name="upd_buyrateinitblock" size="10" maxlength="10" value="<?php if (isset($upd_buyrateinitblock)) echo $upd_buyrateinitblock; else echo '0';?>">				<font class="version">				<input type="radio" NAME="type[upd_buyrateinitblock]" value="1" <?php if((!isset($type["upd_buyrateinitblock"]))|| ($type["upd_buyrateinitblock"]==1) ){?>checked<?php }?>> <?php echo gettext("Equal");?>				<input type="radio" NAME="type[upd_buyrateinitblock]" value="2" <?php if($type["upd_buyrateinitblock"]==2){?>checked<?php }?>> <?php echo gettext("Add");?>				<input type="radio" NAME="type[upd_buyrateinitblock]" value="3" <?php if($type["upd_buyrateinitblock"]==3){?>checked<?php }?>> <?php echo gettext("Substract");?>				</font>			</td>		</tr>				<tr>		          <td align="left" class="searchhandler_table4_td1">		  		<input name="check[upd_buyrateincrement]" type="checkbox" <?php if ($check["upd_buyrateincrement"]=="on") echo "checked"?>>				<input name="mode[upd_buyrateincrement]" type="hidden" value="2">		  </td>		  <td align="left"  class="searchhandler_table4_td1">				  	<strong>5) <?php echo gettext("BUYRATEINCREMENT");?>&nbsp;:</strong>					<input class="form_input_text" name="upd_buyrateincrement" size="10" maxlength="10"  value="<?php if (isset($upd_buyrateincrement)) echo $upd_buyrateincrement; else echo '0';?>">				<font class="version">				<input type="radio" NAME="type[upd_buyrateincrement]" value="1" <?php if((!isset($type["upd_buyrateincrement"]))|| ($type["upd_buyrateincrement"]==1) ){?>checked<?php }?>> <?php echo gettext("Equal");?>				<input type="radio" NAME="type[upd_buyrateincrement]" value="2" <?php if($type["upd_buyrateincrement"]==2){?>checked<?php }?>> <?php echo gettext("Add");?>				<input type="radio" NAME="type[upd_buyrateincrement]" value="3" <?php if($type["upd_buyrateincrement"]==3){?>checked<?php }?>>  <?php echo gettext("Substract");?>				</font>			</td>		</tr>		<tr>		          <td align="left" class="searchhandler_table4_td1" >		  		<input name="check[upd_rateinitial]" type="checkbox" <?php if ($check["upd_rateinitial"]=="on") echo "checked"?>>				<input name="mode[upd_rateinitial]" type="hidden" value="2">		  </td>		  <td align="left" class="searchhandler_table4_td1">									<strong>6)&nbsp;<?php echo gettext("RATE INITIAL");?>&nbsp;:</strong>				 	<input class="form_input_text" name="upd_rateinitial" size="10" maxlength="10"  value="<?php if (isset($upd_rateinitial)) echo $upd_rateinitial; else echo '0';?>" >				<font class="version">				<input type="radio" NAME="type[upd_rateinitial]" value="1" <?php if((!isset($type[upd_rateinitial]))|| ($type[upd_rateinitial]==1) ){?>checked<?php }?>> <?php echo gettext("Equal");?>				<input type="radio" NAME="type[upd_rateinitial]" value="2" <?php if($type[upd_rateinitial]==2){?>checked<?php }?>> <?php echo gettext("Add");?>				<input type="radio" NAME="type[upd_rateinitial]" value="3" <?php if($type[upd_rateinitial]==3){?>checked<?php }?>> <?php echo gettext("Substract");?>				</font>			</td>		</tr>		<tr>          <td align="left" class="searchhandler_table4_td1">		  		<input name="check[upd_initblock]" type="checkbox" <?php if ($check["upd_initblock"]=="on") echo "checked"?>>				<input name="mode[upd_initblock]" type="hidden" value="2">		  </td>		  <td align="left" class="searchhandler_table4_td1">									<strong>7)&nbsp;<?php echo gettext("MIN DURATION");?>&nbsp;:</strong>				 	<input class="form_enter" name="upd_initblock" size="10" maxlength="10" style="border: 2px inset rgb(204, 51, 0);" value="<?php if (isset($upd_initblock)) echo $upd_initblock; else echo '0';?>" >				<font class="version">				<input type="radio" NAME="type[upd_initblock]" value="1" <?php if((!isset($type[upd_initblock]))|| ($type[upd_initblock]==1) ){?>checked<?php }?>> <?php echo gettext("Equal");?>				<input type="radio" NAME="type[upd_initblock]" value="2" <?php if($type[upd_initblock]==2){?>checked<?php }?>> <?php echo gettext("Add");?>				<input type="radio" NAME="type[upd_initblock]" value="3" <?php if($type[upd_initblock]==3){?>checked<?php }?>> <?php echo gettext("Substract");?>				</font>			</td>		</tr>		<tr>		          <td align="left" class="searchhandler_table4_td1">		  		<input name="check[upd_billingblock]" type="checkbox" <?php if ($check["upd_billingblock"]=="on") echo "checked"?>>				<input name="mode[upd_billingblock]" type="hidden" value="2">		  </td>		  <td align="left" class="searchhandler_table4_td1">									<strong>8)&nbsp;<?php echo gettext("BILLINGBLOCK");?>&nbsp;:</strong>				 	<input class="form_input_text" name="upd_billingblock" size="10" maxlength="10" style="border: 2px inset rgb(204, 51, 0);" value="<?php if (isset($upd_billingblock)) echo $upd_billingblock; else echo '0';?>" >				<font class="version">				<input type="radio" NAME="type[upd_billingblock]" value="1" <?php if((!isset($type[upd_billingblock]))|| ($type[upd_billingblock]==1) ){?>checked<?php }?>> <?php echo gettext("Equal");?>				<input type="radio" NAME="type[upd_billingblock]" value="2" <?php if($type[upd_billingblock]==2){?>checked<?php }?>> <?php echo gettext("Add");?>				<input type="radio" NAME="type[upd_billingblock]" value="3" <?php if($type[upd_billingblock]==3){?>checked<?php }?>> <?php echo gettext("Substract");?>				</font>			</td>		</tr>		<tr>		          <td align="left" class="searchhandler_table4_td1">		  		<input name="check[upd_connectcharge]" type="checkbox" <?php if ($check["upd_connectcharge"]=="on") echo "checked"?>>				<input name="mode[upd_connectcharge]" type="hidden" value="2">		  </td>		  <td align="left"  class="searchhandler_table4_td1">									<strong>9)&nbsp;<?php echo gettext("CONNECTCHARGE");?>&nbsp;:</strong>				 	<input class="form_input_text" name="upd_connectcharge" size="10" maxlength="10" style="border: 2px inset rgb(204, 51, 0);" value="<?php if (isset($upd_connectcharge)) echo $upd_connectcharge; else echo '0';?>" >				<font class="version">				<input type="radio" NAME="type[upd_connectcharge]" value="1" <?php if((!isset($type[upd_connectcharge]))|| ($type[upd_connectcharge]==1) ){?>checked<?php }?>> <?php echo gettext("Equal");?>				<input type="radio" NAME="type[upd_connectcharge]" value="2" <?php if($type[upd_connectcharge]==2){?>checked<?php }?>> <?php echo gettext("Add");?>				<input type="radio" NAME="type[upd_connectcharge]" value="3" <?php if($type[upd_connectcharge]==3){?>checked<?php }?>> <?php echo gettext("Substract");?>				</font>			</td>		</tr>		<tr>		          <td align="left" class="searchhandler_table4_td1">		  		<input name="check[upd_disconnectcharge]" type="checkbox" <?php if ($check["upd_disconnectcharge"]=="on") echo "checked"?>>				<input name="mode[upd_disconnectcharge]" type="hidden" value="2">		  </td>		  <td align="left" class="searchhandler_table4_td1">									<strong>10)&nbsp;<?php echo gettext("DISCONNECTCHARGE");?>&nbsp;:</strong>				 	<input class="form_input_text" name="upd_disconnectcharge" size="10" maxlength="10" style="border: 2px inset rgb(204, 51, 0);" value="<?php if (isset($upd_disconnectcharge)) echo $upd_disconnectcharge; else echo '0';?>" >				<font class="version">				<input type="radio" NAME="type[upd_disconnectcharge]" value="1" <?php if((!isset($type[upd_disconnectcharge]))|| ($type[upd_disconnectcharge]==1) ){?>checked<?php }?>> <?php echo gettext("Equal");?>				<input type="radio" NAME="type[upd_disconnectcharge]" value="2" <?php if($type[upd_disconnectcharge]==2){?>checked<?php }?>> <?php echo gettext("Add");?>				<input type="radio" NAME="type[upd_disconnectcharge]" value="3" <?php if($type[upd_disconnectcharge]==3){?>checked<?php }?>> <?php echo gettext("Substract");?>				</font>			</td>		</tr>		<tr>					<td align="right" class="searchhandler_table4_td1">			</td>		 	<td align="right" class="searchhandler_table4_td1">						<input class="form_input_button" value="<?php gettext(" BATCH UPDATE RATECARD ");?>" type="submit">        	</td>		</tr>				</form>              </table></center><!-- ** ** ** ** ** Part for the Update ** ** ** ** ** --><?php}?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -