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

📄 class.searchhandler.inc.php

📁 asterisk 計費模塊
💻 PHP
📖 第 1 页 / 共 2 页
字号:
<?phpif ($this->FG_FILTER_SEARCH_FORM){?><!-- ** ** ** ** ** Part for the research - ** ** ** ** ** -->	<center>		<b><?php echo $this -> FG_FILTER_SEARCH_TOP_TEXT?></b>		<table class="searchhandler_table1">		<FORM METHOD=POST ACTION="<?php echo $_SERVER['PHP_SELF']?>?s=<?php echo $processed['s']?>&t=<?php echo $processed['t']?>&order=<?php echo $processed['order']?>&sens=<?php echo $processed['sens']?>&current_page=<?php echo $processed['current_page']?>">	<INPUT TYPE="hidden" NAME="posted_search" value="1">	<INPUT TYPE="hidden" NAME="current_page" value="0">		<?php if ($this -> FG_FILTER_SEARCH_1_TIME){ ?>			<tr>        		<td class="bgcolor_004" align="left" width="120px">					<input type="radio" name="Period" value="Month" <?php  if (!isset($processed['Period']) || ($processed['Period']=="Month")){ ?>checked="checked" <?php  } ?>> 					<font face="verdana" size="1" color="#ffffff"><b><?php echo $this-> FG_FILTER_SEARCH_1_TIME_TEXT?></b></font>				</td>      			<td class="bgcolor_005" align="left">					<table border="0" cellspacing="0" cellpadding="0"  width="100%">					<tr><td class="fontstyle_searchoptions">	  				<input type="checkbox" name="frommonth" value="true" <?php  if ($processed['frommonth']){ ?>checked<?php }?>>										From : <select name="fromstatsmonth" class="form_input_select">					<?php 						$year_actual = date("Y");  							$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"));						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 ($processed['fromstatsmonth']=="$i-$month_formated") $selected="selected";										else $selected="";										echo "<OPTION value=\"$i-$month_formated\" $selected> $monthname[$j]-$i </option>";							   }						}					?>					</select>					</td><td class="fontstyle_searchoptions">&nbsp;&nbsp;					<input type="checkbox" name="tomonth" value="true" <?php  if ($processed['tomonth']){ ?>checked<?php }?>>					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 ($processed['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>		<?php } ?>		<?php if ($this -> FG_FILTER_SEARCH_2_TIME){ ?>			<tr>        		<td align="left" class="bgcolor_002">					<input type="radio" name="Period" value="Day" <?php  if ($processed['Period']=="Day"){ ?>checked="checked" <?php  } ?>>					<font class="fontstyle_003"><?php echo $this-> FG_FILTER_SEARCH_2_TIME_TEXT?></font>				</td>      			<td align="left" class="bgcolor_003">					<table  border="0" cellspacing="0" cellpadding="0" width="100%">					<tr><td class="fontstyle_searchoptions">	  				<input type="checkbox" name="fromday" value="true" <?php  if ($processed['fromday']){ ?>checked<?php }?>> <? echo gettext("From :");?>					<select name="fromstatsday_sday" class="form_input_select">						<?php							for ($i=1;$i<=31;$i++){								if ($processed['fromstatsday_sday']==sprintf("%02d",$i)){$selected="selected";}else{$selected="";}								echo '<option value="'.sprintf("%02d",$i)."\"$selected>".sprintf("%02d",$i).'</option>';							}						?>					</select>				 	<select name="fromstatsmonth_sday" 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 ($processed['fromstatsmonth_sday']=="$i-$month_formated") $selected="selected";								else $selected="";								echo "<OPTION value=\"$i-$month_formated\" $selected> $monthname[$j]-$i </option>";							}						}					?>					</select>					</td><td class="fontstyle_searchoptions">&nbsp;&nbsp;					<input type="checkbox" name="today" value="true" <?php  if ($processed['today']){ ?>checked<?php }?>><?php echo gettext("To :");?>					<select name="tostatsday_sday" class="form_input_select">					<?php						for ($i=1;$i<=31;$i++){							if ($processed['tostatsday_sday']==sprintf("%02d",$i)){$selected="selected";}else{$selected="";}							echo '<option value="'.sprintf("%02d",$i)."\"$selected>".sprintf("%02d",$i).'</option>';						}					?>					</select>				 	<select name="tostatsmonth_sday" 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 ($processed['tostatsmonth_sday']=="$i-$month_formated") $selected="selected";								else $selected="";								echo "<OPTION value=\"$i-$month_formated\" $selected> $monthname[$j]-$i </option>";							}						}					?>					</select>					</td></tr></table>	  			</td>    		</tr>		<?php } ?>		<?php if ($this -> FG_FILTER_SEARCH_3_TIME){ ?>			<tr>        		<td align="left" class="bgcolor_002">					<input type="radio" name="Period" value="month_older_rad" <?php  if ($processed['Period']=="month_older_rad"){ ?>checked="checked" <?php  } ?>>					<font class="fontstyle_003"><?php echo $this-> FG_FILTER_SEARCH_3_TIME_TEXT?></font>				</td>      			<td align="left" class="bgcolor_003">					<table  border="0" cellspacing="0" cellpadding="0" width="100%">					<tr><td class="fontstyle_searchoptions">&nbsp;					<select name="month_earlier" class="form_input_select">						<?php							for ($i=3;$i<=12;$i++){								if ($processed['month_earlier']==$i){$selected="selected";}else{$selected="";}								echo '<option value="'.$i."\"$selected>".$i.' Months</option>';							}						?>					</select>					</td></tr></table>	  			</td>    		</tr>		<?php } ?>		<!-- compare with a value //-->		<?php		$nu = 0;		foreach ($this->FG_FILTER_SEARCH_FORM_1C as $one_compare){		if ($nu%2 == 0)		{			$classleft="bgcolor_004";			$classright="bgcolor_005";				}		else		{			$classleft="bgcolor_002";			$classright="bgcolor_003";		}		$nu = $nu + 1;		?>			<tr>				<td class="<?php echo $classleft?>" align="left">					<font class="fontstyle_003">&nbsp;&nbsp;<?php echo $one_compare[0]?></font>				</td>				<td class="<?php echo $classright?>" align="left" >				<table width="100%" border="0" cellspacing="0" cellpadding="0">				<tr><td class="fontstyle_searchoptions">&nbsp;&nbsp;<INPUT TYPE="text" NAME="<?php echo $one_compare[1]?>" value="<?php echo $processed[$one_compare[1]]?>" class="form_input_text"></td>				<td class="fontstyle_searchoptions" align="center" ><input type="radio" NAME="<?php echo $one_compare[2]?>" value="1" <?php if((!isset($processed[$one_compare[2]]))||($processed[$one_compare[2]]==1)){?>checked<?php }?>><?php echo gettext("Exact");?> </td>				<td class="fontstyle_searchoptions" align="center" ><input type="radio" NAME="<?php echo $one_compare[2]?>" value="2" <?php if($processed[$one_compare[2]]==2){?>checked<?php }?>> <?php echo gettext("Begins with");?></td>				<td class="fontstyle_searchoptions" align="center" ><input type="radio" NAME="<?php echo $one_compare[2]?>" value="3" <?php if($processed[$one_compare[2]]==3){?>checked<?php }?>> <?php echo gettext("Contains");?></td>				<td class="fontstyle_searchoptions" align="center" ><input type="radio" NAME="<?php echo $one_compare[2]?>" value="4" <?php if($processed[$one_compare[2]]==4){?>checked<?php }?>> <?php echo gettext("Ends with");?></td>				</tr></table></td>			</tr>			<?php			}			?>			<!-- compare between 2 values //-->			<?php			$nu = 0;			foreach ($this->FG_FILTER_SEARCH_FORM_2C as $two_compare){			if ($nu%2 == 0)			{				$classleft="bgcolor_004";				$classright="bgcolor_005";					}			else			{				$classleft="bgcolor_002";				$classright="bgcolor_003";			}			$nu = $nu + 1;			?>			<tr>				<td class="<?php echo $classleft?>" align="left">					<font class="fontstyle_003">&nbsp;&nbsp;<?php echo $two_compare[0]?></font>				</td>				<td class="<?php echo $classright?>" align="left">				<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>				<td class="fontstyle_searchoptions">&nbsp;&nbsp;<INPUT TYPE="text" NAME="<?php echo $two_compare[1]?>" size="4" value="<?php echo $processed[$two_compare[1]]?>" class="form_input_text"></td>				<td class="fontstyle_searchoptions" align="center" ><input type="radio" NAME="<?php echo $two_compare[2]?>" value="4" <?php if($processed[$two_compare[2]]==4){?>checked<?php }?>>&gt;</td>				<td class="fontstyle_searchoptions" align="center" ><input type="radio" NAME="<?php echo $two_compare[2]?>" value="5" <?php if($processed[$two_compare[2]]==5){?>checked<?php }?>>&gt; =</td>				<td class="fontstyle_searchoptions" align="center"><input type="radio" NAME="<?php echo $two_compare[2]?>" value="1" <?php if((!isset($processed[$two_compare[2]]))||($processed[$two_compare[2]]==1)){?>checked<?php }?>> = </td>				<td class="fontstyle_searchoptions" align="center" ><input type="radio" NAME="<?php echo $two_compare[2]?>" value="2" <?php if($processed[$two_compare[2]]==2){?>checked<?php }?>>&lt; =</td>				<td class="fontstyle_searchoptions" align="center" ><input type="radio" NAME="<?php echo $two_compare[2]?>" value="3" <?php if($processed[$two_compare[2]]==3){?>checked<?php }?>>&lt;</td>				<td width="5%" class="fontstyle_searchoptions" align="center" ></td>				<td>&nbsp;&nbsp;<INPUT TYPE="text" NAME="<?php echo $two_compare[3]?>" size="4" value="<?php echo $processed[$two_compare[3]]?>" class="form_input_text"></td>				<td class="fontstyle_searchoptions" align="center"><input type="radio" NAME="<?php echo $two_compare[4]?>" value="4" <?php if($processed[$two_compare[4]]==4){?>checked<?php }?>>&gt;</td>				<td class="fontstyle_searchoptions" align="center" ><input type="radio" NAME="<?php echo $two_compare[4]?>" value="5" <?php if($processed[$two_compare[4]]==5){?>checked<?php }?>>&gt; =</td>				<td class="fontstyle_searchoptions" align="center" ><input type="radio" NAME="<?php echo $two_compare[4]?>" value="2" <?php if($processed[$two_compare[4]]==1){?>checked<?php }?>>&lt; =</td>				<td class="fontstyle_searchoptions" align="center" ><input type="radio" NAME="<?php echo $two_compare[4]?>" value="3" <?php if($processed[$two_compare[4]]==3){?>checked<?php }?>>&lt;</td>				</tr></table>				</td>			</tr>			<?php			}			?>			<!-- select box //-->			<tr>				<td class="bgcolor_002" align="left" >					<font class="fontstyle_003">&nbsp;&nbsp;<?php echo $this->FG_FILTER_SEARCH_FORM_SELECT_TEXT?></font>				</td>				<td class="bgcolor_003" align="left" >

⌨️ 快捷键说明

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