@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_new.php
<? $_list_max_width = 160; //ÆäÀÌ¡ º¯¼öµé $search = "&db=$db&amode=$amode&column=$column&keyword=$keyword&sort=$sort"; //ºÐ·ù $car_array = @explode(",",$car_array); if($car_option == "Y"){ //ºÐ·ù Á¤·Ä if($sort){ $SORT = " and sort='$sort' "; }else{ $SORT = " and sort = '$car_array[0]' "; $sort = $car_array[0]; } } // °Ë»ö if($column && $keyword) $addsql = " && $column like '%$keyword%'"; $row = $mysql->row("$_board[table]", "count(id)", "where db='$db' $addsql $SORT and mstp=0"); $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' $addsql order by grp desc, stp asc limit $start, $item"); $cnt = mysql_num_rows($res); echo " <Script Language='javaScript' Src='$skinurl/script/list.js'></Script> <table align='center' border='0' cellpadding='2' cellspacing='0' width='100%'> <form name=formsort method=post action='$PHP_SELF'> <tr> <td>"; if($sort) echo "<font color=red><b> -> $sort</b></font> <br>"; echo " </td> <td width='50%' align=right>"; if($car_option == "Y"){ echo " <input type='hidden' name='db' value='$db'> <input type='hidden' name='sort' value='$sort'> <input type='hidden' name='part' value='$part'> <input type='hidden' name='word' value='$word'> "; echo "ºÐ·ù ¼±Åà : <Select name=sort onChange='this.form.submit();'>"; $car_array_size = count($car_array); for($i = 0 ; $i < $car_array_size ; $i++){ if($sort == $car_array[$i]){ echo "<option SELECTED>$car_array[$i]</option>\n"; }else{ echo "<option>$car_array[$i]</option>\n"; } } echo "</Select>"; } echo " </td> </tr> </form> </table> <table align='center' border='0' cellpadding='0' cellspacing='0' width='100%'> <!-- ŸÀÌÆ² --> <form name=formbsk method=post action='$_SERVER[PHP_SELF]'> <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'> <!-- ŸÀÌÆ² --> "; $tdnum = 3; $trnum = @ceil($cnt / $tdnum); for($i=0; $i<$trnum; $i++){ echo" <tr>"; for($j=0; $j<$tdnum; $j++){ $row = mysql_fetch_array($res); if($row){ // °ø°³ºñ°ø°³ »ç¿ë && ºñ°ø°³ üũÀ϶§ if($_board[content_open] == "Y"){ $close_icon = ($row[open] == "Y") ? "" : "<img src='$skinurl/img/tel.gif'>"; } else { $close_icon = ""; } $subject = $lib->string_cut($row[subject], $_board[subject_limit]); if($column && $keyword) $subject = str_replace("$keyword", "<font style='color:#FF0000'>$keyword</font>", $subject); $imgfile = explode(",", $row[filename]); $ImgInfo = @getimagesize("$_path[board]/data/$db/$imgfile[0]"); $iwidth = ($ImgInfo[0] > $_list_max_width) ? $_list_max_width : $ImgInfo[0]; echo" <td width='33%' align='center'> <TABLE border='0' cellpadding=0 cellspacing=0> <TR align='center'> <TD background='/img/sub_img/cert_bg.jpg' width='183' height='243'><a href='#/' onclick=\"window.open('/board/deal.php?mode=zoom&db=$db&id=$row[id]', 'imgzoom', 'width=$ImgInfo[0], height=$ImgInfo[1]')\"><img src='$_path[web]/data/$db/$imgfile[0]' border=0 width='$iwidth'></a></TD> </TR> <TR align='center'> <TD style='padding-top:5px; padding-bottom:5px'>$close_icon$subject"; if($_adm_key["admin"] || $_adm_key["board"] || $_adm_key["master"]){ echo"<br><input type='checkbox' name='del_box[]' value='$row[id]' style='border:0px'>"; } echo" </TD> </TR> </TABLE> </td>"; } else { echo" <td width='33%'> </td>"; } // end if } // end for echo" </tr> <tr> <td colspan='$tdnum'> </td> </tr>"; } // end for if(!$total){ echo" <tr height='50' align='center'> <td colspan='$tdnum'>There is not a writing which is registered</td> </tr> <tr height='1'> <td colspan='$tdnum' bgcolor='#DBDADA'></td> </tr>"; } echo" </form> </table> <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>"; #### 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; width:63px'> <option value='subject' "; if($column == "subject") echo"selected"; echo">Subject</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 #### ?>