?? class.viewhandler.inc.php
字號:
if (isset ($this -> FG_TABLE_COL[$i][10]) && strlen($this -> FG_TABLE_COL[$i][10])>1){ call_user_func($this -> FG_TABLE_COL[$i][10], $record_display); }else{ echo stripslashes($record_display); } */ ?> <TD vAlign="top" align="<?php echo $this->FG_TABLE_COL[$i][3]?>" class="tableBody"><?php $origlist[$ligne_number][$i-$k] = $list[$ligne_number][$i-$k]; $list[$ligne_number][$i-$k] = $record_display; if (isset ($this->FG_TABLE_COL[$i][11]) && strlen($this->FG_TABLE_COL[$i][11])>1){ call_user_func($this->FG_TABLE_COL[$i][11], $record_display); }else{ echo stripslashes($record_display); } ?> </TD> <?php } ?> <?php if($this->FG_EDITION || $this->FG_DELETION || $this -> FG_OTHER_BUTTON1 || $this -> FG_OTHER_BUTTON2){?> <TD align="center" vAlign=top class=tableBodyRight> <?php if($this->FG_EDITION){?> <a href="<?php echo $this->FG_EDITION_LINK?><?php echo $list[$ligne_number][$this->FG_NB_TABLE_COL]?>"><img src="<?php echo Images_Path_Main;?>/icon-edit.gif" border="0" title="<?php echo $this->FG_EDIT_ALT?>" alt="<?php echo $this->FG_EDIT_ALT?>"></a><?php } ?> <?php if($this->FG_DELETION){?> <a href="<?php echo $this->FG_DELETION_LINK?><?php echo $list[$ligne_number][$this->FG_NB_TABLE_COL]?>"><img src="<?php echo Images_Path_Main;?>/icon-del.gif" border="0" title="<?php echo $this->FG_DELETE_ALT?>" alt="<?php echo $this->FG_DELETE_ALT?>"></a><?php } ?> <?php if($this->FG_OTHER_BUTTON1){ ?> <a href="<?php $new_FG_OTHER_BUTTON1_LINK = $this -> FG_OTHER_BUTTON1_LINK; // we should depreciate |param| and only use |col| if (strpos($this -> FG_OTHER_BUTTON1_LINK,"|param|")){ $new_FG_OTHER_BUTTON1_LINK = str_replace("|param|",$list[$ligne_number][$this->FG_NB_TABLE_COL],$this -> FG_OTHER_BUTTON1_LINK); // SHOULD DO SMTH BETTER WITH paramx and get the x number to find the value to use } if (strpos($this -> FG_OTHER_BUTTON1_LINK,"|param1|")){ $new_FG_OTHER_BUTTON1_LINK = str_replace("|param1|",$list[$ligne_number][$this->FG_NB_TABLE_COL-1],$this -> FG_OTHER_BUTTON1_LINK); } // REPLACE |colX| where is a numero of the column by the column value if (eregi ('col[0-9]', $new_FG_OTHER_BUTTON1_LINK)) { for ($h=0;$h<=$this->FG_NB_TABLE_COL;$h++){ $findme = "|col$h|"; $pos = stripos($new_FG_OTHER_BUTTON1_LINK, $findme); if ($pos !== false) { $new_FG_OTHER_BUTTON1_LINK = str_replace($findme,$list[$ligne_number][$h],$new_FG_OTHER_BUTTON1_LINK); } } } // REPLACE |col_origX| where is a numero of the column by the column value if (eregi ('col_orig[0-9]', $new_FG_OTHER_BUTTON1_LINK)) { for ($h=0;$h<=$this->FG_NB_TABLE_COL;$h++){ $findme = "|col_orig$h|"; $pos = stripos($new_FG_OTHER_BUTTON1_LINK, $findme); if ($pos !== false) { $new_FG_OTHER_BUTTON1_LINK = str_replace($findme,$origlist[$ligne_number][$h],$new_FG_OTHER_BUTTON1_LINK); } } } echo $new_FG_OTHER_BUTTON1_LINK; if (substr($new_FG_OTHER_BUTTON1_LINK,-1)=='=') echo $list[$ligne_number][$this->FG_NB_TABLE_COL]; if (strlen($this -> FG_OTHER_BUTTON1_IMG)==0){ echo '"> '.'<span class="cssbutton">'.$this->FG_OTHER_BUTTON1_ALT.'</span>'; // onclick="location.href='http://www.google.com'" }else{ ?>"><img src="<?php echo $this -> FG_OTHER_BUTTON1_IMG?>" border="0" title="<?php echo $this->FG_OTHER_BUTTON1_ALT?>" alt="<?php echo $this->FG_OTHER_BUTTON1_ALT?>"><? } ?></a> <?php } ?> <?php if($this->FG_OTHER_BUTTON2){ ?> <a href="<?php $new_FG_OTHER_BUTTON2_LINK = $this -> FG_OTHER_BUTTON2_LINK; if (strpos($this -> FG_OTHER_BUTTON2_LINK,"|param|")){ $new_FG_OTHER_BUTTON2_LINK = str_replace("|param|",$list[$ligne_number][$this->FG_NB_TABLE_COL],$this -> FG_OTHER_BUTTON2_LINK); // SHOULD DO SMTH BETTER WITH paramx and get the x number to find the value to use } if (strpos($this -> FG_OTHER_BUTTON2_LINK,"|param1|")){ $new_FG_OTHER_BUTTON2_LINK = str_replace("|param1|",$list[$ligne_number][$this->FG_NB_TABLE_COL-1],$this -> FG_OTHER_BUTTON2_LINK); } // REPLACE |colX| where is a numero of the column by the column value if (eregi ('col[0-9]', $new_FG_OTHER_BUTTON2_LINK)) { for ($h=0;$h<=$this->FG_NB_TABLE_COL;$h++){ $findme = "|col$h|"; $pos = stripos($new_FG_OTHER_BUTTON2_LINK, $findme); if ($pos !== false) { $new_FG_OTHER_BUTTON2_LINK = str_replace($findme,$list[$ligne_number][$h],$new_FG_OTHER_BUTTON2_LINK); } } } // REPLACE |col_origX| where is a numero of the column by the column value if (eregi ('col_orig[0-9]', $new_FG_OTHER_BUTTON2_LINK)) { for ($h=0;$h<=$this->FG_NB_TABLE_COL;$h++){ $findme = "|col_orig$h|"; $pos = stripos($new_FG_OTHER_BUTTON2_LINK, $findme); if ($pos !== false) { $new_FG_OTHER_BUTTON2_LINK = str_replace($findme,$origlist[$ligne_number][$h],$new_FG_OTHER_BUTTON2_LINK); } } } echo $new_FG_OTHER_BUTTON2_LINK; if (substr($new_FG_OTHER_BUTTON2_LINK,-1)=='=') echo $list[$ligne_number][$this->FG_NB_TABLE_COL]; if (strlen($this -> FG_OTHER_BUTTON2_IMG)==0){ echo '"> '.'<span class="cssbutton">'.$this->FG_OTHER_BUTTON2_ALT.'</span>'; }else{ ?>"><img src="<?php echo $this -> FG_OTHER_BUTTON2_IMG?>" border="0" title="<?php echo $this->FG_OTHER_BUTTON2_ALT?>" alt="<?php echo $this->FG_OTHER_BUTTON2_ALT?>"><? } ?></a> <?php } ?> </TD> <?php } ?> </TR> <?php } // for (ligne_number=0;ligne_number<count($list);$ligne_number++) while ($ligne_number < 7){ ?> <TR bgcolor="<?php echo $this->FG_TABLE_ALTERNATE_ROW_COLOR[$ligne_number%2]?>"> <?php $REMOVE_COL = ($this->FG_OTHER_BUTTON1 || $this->FG_OTHER_BUTTON2 || $this->FG_EDITION || $this->FG_DELETION )? 0 : 1; for($i=0;$i<$this->FG_NB_TABLE_COL-$REMOVE_COL;$i++){ ?> <TD vAlign=top class="tableBody"> </TD> <?php } ?> <TD align="center" vAlign=top class="tableBodyRight"> </TD> </TR> <?php $ligne_number++; } //END_WHILE ?> <TR> <TD class="tableDivider" colSpan=<?php echo $this->FG_TOTAL_TABLE_COL?>><IMG height=1 src="<?php echo Images_Path_Main;?>/clear.gif" width=1></TD> </TR> </TABLE> </TD> </TR> <TR > <TD height=16 style="PADDING-LEFT: 5px; PADDING-RIGHT: 3px"> <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%"> <TR> <TD align="right" valign="bottom"><span class="viewhandler_span2"> <?php $c_url = $_SERVER['PHP_SELF'].'?stitle='.$stitle.'&atmenu='.$atmenu.'¤t_page=%s'."&filterprefix=".$_GET['filterprefix']."&order=".$_GET['order']."&sens=".$_GET['sens']."&mydisplaylimit=".$_GET['mydisplaylimit']."&ratesort=".$ratesort.$this-> CV_FOLLOWPARAMETERS; if (!is_null($letter) && ($letter!="")) $c_url .= "&letter=".$_GET['letter']; $this -> printPages($this -> CV_CURRENT_PAGE+1, $this -> FG_NB_RECORD_MAX, $c_url) ; ?> </span> </TD> </TABLE></TD> </TR> <FORM name="otherForm2" action="<?php echo $_SERVER['PHP_SELF']?>"> <tr><td> <?php echo gettext("DISPLAY");?> <input type="hidden" name="stitle" value="<?php echo $stitle?>"> <input type="hidden" name="atmenu" value="<?php echo $atmenu?>"> <input type="hidden" name="order" value="<?php echo $_GET['order']?>"> <input type="hidden" name="sens" value="<?php echo $_GET['sens']?>"> <input type="hidden" name="current_page" value="0"> <input type="hidden" name="filterprefix" value="<?php echo $_GET['filterprefix']?>"> <input type="hidden" name="popup_select" value="<?php echo $_GET['popup_select']?>"> <input type="hidden" name="popup_formname" value="<?php echo $_GET['popup_formname']?>"> <input type="hidden" name="popup_fieldname" value="<?php echo $_GET['popup_fieldname']?>"> <input type="hidden" name="type" value="<?php echo $_GET['type']?>"> <input type="hidden" name="id" value="<?php echo $_GET['id']?>"> <select name="mydisplaylimit" size="1" class="form_input_select"> <option value="10" selected>10</option> <option value="50">50</option> <option value="100">100</option> <option value="ALL">All</option> </select> <input class="form_input_button" value=" <?php echo gettext("GO");?> " type="SUBMIT"> <?php if ($this->FG_EXPORT_CSV){ ?> - <a href="export_csv.php?var_export=<?php echo $this->FG_EXPORT_SESSION_VAR ?>&var_export_type=type_csv" target="_blank" ><img src="<?php echo Images_Path;?>/excel.gif" border="0" height="30"/><?php echo gettext("Export CSV");?></a> <?php } ?> <?php if ($this->FG_EXPORT_XML){ ?> - <a href="export_csv.php?var_export=<?php echo $this->FG_EXPORT_SESSION_VAR ?>&var_export_type=type_xml" target="_blank" ><img src="<?php echo Images_Path;?>/icons_xml.gif" border="0" height="32"/><?php echo gettext("Export XML");?></a> <?php }?> </td></tr> </FORM> </table><?php }else{?> <br><br> <table width="50%" border="0" align="center"> <tr> <td align="center"> <?php echo $this -> CV_NO_FIELDS;?><br> </td> </tr> </table> <br><br><?php }//end_if?>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -