@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux adweb87 2.6.32-754.el6.x86_64 #1 SMP Tue Jun 19 21:26:04 UTC 2018 x86_64
Current Path :
/
home
/
sanchung
/
public_html
/
board
/
skin
/
new02a_eng
/
files
/
Path :
Upload File :
New :
File
Dir
/home/sanchung/public_html/board/skin/new02a_eng/files/gallery_list.php
<? if($column && $keyword) $addwhere = " && $column like '%$keyword%' "; $row = $mysql->row("$_board[table]", "count(id)", "where db='$db' && mstp=0 $addwhere "); $total = $row[0]; $item = $_board[pagesize]; $pageitem = $_board[pagelimit]; if(!$page) $page = $_board[page]; $start = ($page - 1) * $item; $totalpage = ceil($total / $item); $pnum = $total - (($page-1) * $item); $res = $mysql->res("$_board[table]", "*", "where db='$db' && mstp=0 $addwhere order by grp desc, stp asc limit $start, $item"); echo" <Script Language='javaScript' Src='$skinurl/script/list.js'></Script> <table width='100%' border='0' cellspacing='0' cellpadding='0'> <form name='formbsk'> <input type='hidden' name='db' value='$db'> <input type='hidden' name='page' value='$page'> <input type='hidden' name='column' value='$column'> <input type='hidden' name='keyword' value='$keyword'> <input type='hidden' name='id' value='$id'> <input type='hidden' name='type' value='bsk'> <input type='hidden' name='sort' value='$sort'> <input type='hidden' name='del_ids'> <tr height='1'> <td colspan='3' $bgcolor_l1></td> </tr> <tr height='2'> <td colspan='3' bgcolor='$_board[board_color]'></td> </tr>"; while($row = mysql_fetch_array($res)){ $wdate = substr($row[wdate], 0, 10); $new_icon = ""; // »õ±Û Ç¥½Ã if($_board[new_icon_long]){ $chk_date = date("Y-m-d", mktime()-(60*60*24*$_board[new_icon_long])); if($wdate >= $chk_date){ $wdate = "<font color='#FF0000'>$wdate</font>"; $new_icon = "<img src='$skinurl/img/new{$_board[new_icon]}.gif' align='absmiddle'>"; } } if($row[notice] == "Y"){ $pagenum = "<font style='letter-spacing:-1px;'>[°øÁö]</font>"; $close_icon = ""; $subject = "<b>".$lib->string_cut(strip_tags($row[subject]), $_board[subject_limit])."</b>"; } else { $pagenum = $pnum--; // °ø°³ºñ°ø°³ »ç¿ë && ºñ°ø°³ üũÀ϶§ if($_board[content_open] == "Y"){ $close_icon = ($row[open] == "Y") ? "" : "<img src='$skinurl/img/tel.gif'>"; } else { $close_icon = ""; } $subject = $lib->string_cut(strip_tags($row[subject]), $_board[subject_limit]); } // °Ë»ö¹®ÀÚ »ö±ò $subject = str_replace("$keyword", "<font color='#FF0000'>$keyword</font>", $subject); $_file = explode(",", $row[filename]); echo" <tr height='10'> <td colspan='3'></td> </tr> <tr valign='top'> <td width='210' align='center' nowrap><a href='?page=$page&id=$row[id]&type=read$search'><img src='$_path[web]/data/$db/$_file[0]' width='190' border='0'></a></td> <td width='100%'> <table width='99%' border='0' cellpadding='0' cellspacing='0'> <tr height='25'> <td style='font-weight:bold; padding:3'>$close_icon<a href='?page=$page&id=$row[id]&type=read$search'>$subject</a></td> </tr> <tr height='1' bgcolor='#E7E4E4'> <td></td> </tr> <tr> <td style='padding:3'>".nl2br($row[content])."</td> </tr> </table> </td>"; if($_adm_key["admin"] || $_adm_key["board"] || $_adm_key["master"]){ echo" <td width='40' align='center' valign='middle'><input type='checkbox' name='del_box[]' value='$row[id]' style='border:0px'></td>"; } echo" </tr> <tr height='15'> <td colspan='3'></td> </tr> <tr height='1'> <td colspan='3' background='$skinurl/img/dot_line.gif'></td> </tr>"; } if(!$total){ echo" <tr height='50' align='center'> <td colspan='3'>µî·Ï(°Ë»ö)µÈ °Ô½Ã¹°ÀÌ ¾ø½À´Ï´Ù</td> </tr> <tr> <td height='1' $bgcolor_l2 colspan='3'></td> </tr>"; } echo" </form> <tr> <td height='1' $bgcolor_l2 colspan='3'></td> </tr> </table>"; #### PAGE & VIEW START #### echo" <table border='0' width='100%' cellpadding='0' cellspacing='0'> <tr height='40'> <td align='center'>"; $query = $search; $lib->psk_pagelink($totalpage, $_board[pagelimit], $page, "/admin/img/left_arr.gif", "/admin/img/right_arr.gif", $query); echo " </td> </tr> </table>"; #### PAGE & VIEW END #### #### SEARCH START #### echo" <table border='0' width='100%' cellpadding='0' cellspacing='0'> <tr height='5'> <td colspan='2'></td> </tr> <tr> <td width='40%'>"; $_BBS->btn_print("write", "i_write.gif"); $_BBS->btn_print("list_del", "i_del.gif"); $_BBS->btn_print("list_modify", "i_modify.gif"); /**** °Ë»ö ****/ if($_board[search_use] == "Y" ){ echo " <form name='SearchForm' method='post' onSubmit='return CheckSearch()' action='?'> <input type='hidden' name='db' value='$db'> <input type='hidden' name='sort' value='$sort'> <input type='hidden' name='amode' value='$amode'> <td width='60%' colspan='2' align='right'> <table cellpadding='0' border='0' cellspacing='0'> <tr height='20'> <td width='65' valign='bottom'> <select name='column' style='font-size:8pt;'> <option value='subject' "; if($column == "subject") echo"selected"; echo">Á¦¸ñ</option> <option value='name' "; if($column == "name") echo"selected"; echo">ÀÛ¼ºÀÚ</option> <option value='content' "; if($column == "content") echo"selected"; echo">³»¿ë</option> </select></td> <td width='161'><input type='text' size='25' name='keyword' value='$keyword' style='border:1px solid #AAAAAA; height:18'></td> <td width='70' align='center'><input type='image' src='$skinurl/img/$btn/i_search.gif' style='border:0px;'></td> </tr> </table> </td> </form>"; } /**** °Ë»ö ****/ echo" </tr> </table>"; #### SEARCH END #### ?>