?? class.searchhandler.inc.php
字號:
<?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']?>¤t_page=<?php echo $processed['current_page']?>"> <INPUT TYPE="hidden" NAME="posted_search" value="1"> <INPUT TYPE="hidden" NAME="current_page" value="0"> <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"> <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> <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"> <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> <!-- 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"> <?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"> <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"> <?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"> <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 }?>>></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 }?>>> =</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 }?>>< =</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 }?>><</td> <td width="5%" class="fontstyle_searchoptions" align="center" ></td> <td> <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 }?>>></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 }?>>> =</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 }?>>< =</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 }?>><</td> </tr></table> </td> </tr> <?php } ?> <!-- select box //--> <tr> <td class="bgcolor_002" align="left" > <font class="fontstyle_003"> <?php echo $this->FG_FILTER_SEARCH_FORM_SELECT_TEXT?></font> </td> <td class="bgcolor_003" align="left" > <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){
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -