@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/faq.php
<? if($column && $keyword) $addwhere = " && $column like '%$keyword%' "; $row = $mysql->row("$_board[table]", "count(id)", "where db='$db' && mstp=0 && notice!='Y' $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); echo" <Script Language='javaScript' Src='$skinurl/script/list.js'></Script> <table align='center' border='0' cellpadding='0' cellspacing='0' width='100%'> <form name=formsort method=post action='$PHP_SELF'> <tr valign='top' height='15'> <td width='50%'><p>"; if($v_title != 0) echo "<b><font size='2'>$board_name</font></b>"; if($sort) echo "<font color=red><b> -> $sort</b></font> <br>"; echo " </td> <td width=\"50%\" align=right> "; if($car_option == "Y" && $db != 'st_board'){ 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>"; if($$B_ADMIN_KEY && $welcome_email=="Y") echo"<td><a href=\"javascript:reply_Text('$db')\"><img src='$skinurl/img/reply_text.gif' border='0'></a> </td>"; echo" <td>$ladmin </td> </tr> </form> </table>"; #### TITLE START #### echo" <table align='center' border='0' bgcolor='$DEFAULT_BG' cellpadding='0' cellspacing='0' width='100%'> <form name=formbsk method=post action='$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'>"; // °øÁö»çÇ× $res = $mysql->res("$_board[table]", "*", "where db='$db' && mstp='0' && notice='Y' order by grp desc, stp asc"); 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'>"; } } $subject = "<b>".$lib->string_cut(strip_tags($row[subject]), $_board[subject_limit])."</b>"; if($column && $keyword) $subject = str_replace("$keyword", "<font style='color:#FF0000'>$keyword</font>", $subject); echo " <tr height='25'> <td width='47' nowrap><img src='$skinurl/img/faq_01.gif'></td> <td width='100%' style='word-break:break-all'> <TABLE width=100% cellpadding=0 cellspacing=0 border=0> <tr> <TD background='$skinurl/img/faq_bg.gif' width=100% class=td3><FONT style='COLOR:#135385'><b>[°øÁö]</b> <a href=\"javascript:content_view('$row[id]', '$tcnt')\">$subject</a></FONT> $new_icon</TD> <TD width=34 nowrap><a href=\"javascript:content_view('$row[id]', '$tcnt')\"><IMG SRC='$skinurl/img/faq_02.gif' border='0'></a></TD></TR> </TABLE> </td>"; if($_adm_key["admin"] || $_adm_key["board"] || $_adm_key["master"]){ echo" <td width='26' nowrap align='center'><input type='checkbox' name='del_box[]' value='$row[id]' style='border:0px'></td>"; } echo" </tr> <tr> <td height='5'></td> </tr> <tr id='faqview$row[id]' style='display:none'> <td colspan='13' align='center'> <table width='100%' cellpadding='0' cellspacing='0'> <tr> <td style='padding:5px; padding-bottom:15px'>"; if($row[html] == "HT") echo nl2br($row[content]); else if($row[html] == "H") echo $row[content]; else echo nl2br($row[content]); echo" </td> </tr> </table> </td> </tr>"; } $res = $mysql->res("$_board[table]", "*", "where db='$db' && mstp=0 && notice!='Y' $addwhere order by grp desc, stp asc limit $start, $item"); 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'>"; } } $subject = "<b>".$lib->string_cut(strip_tags($row[subject]), $_board[subject_limit])."</b>"; if($column && $keyword) $subject = str_replace("$keyword", "<font style='color:#FF0000'>$keyword</font>", $subject); echo " <tr height='25'> <td width='47' nowrap><img src='$skinurl/img/faq_01.gif'></td> <td width='100%' style='word-break:break-all'> <TABLE width=100% cellpadding=0 cellspacing=0 border=0> <tr> <TD background='$skinurl/img/faq_bg.gif' width=100% class=td3><FONT style='COLOR:#135385'><a href=\"javascript:content_view('$row[id]', '$tcnt')\">$subject</a></FONT> $new_icon</TD> <TD width=34 nowrap><a href=\"javascript:content_view('$row[id]', '$tcnt')\"><IMG SRC='$skinurl/img/faq_02.gif' border='0'></a></TD></TR> </TABLE> </td>"; if($_adm_key["admin"] || $_adm_key["board"] || $_adm_key["master"]){ echo" <td width='26' nowrap align='center'><input type='checkbox' name='del_box[]' value='$row[id]' style='border:0px'></td>"; } echo" </tr> <tr> <td height='5'></td> </tr> <tr id='faqview$row[id]' style='display:none'> <td colspan='13' align='center'> <table width='98%' cellpadding='0' cellspacing='0'> <tr> <td style='padding:5px; padding-bottom:15px'>"; if($row[html] == "HT") echo nl2br($row[content]); else if($row[html] == "H") echo $row[content]; else echo nl2br($row[content]); echo" </td> </tr> </table> </td> </tr>"; } #### CONTENT PRINT E #### #### µî·Ï °Ô½Ã¹°ÀÌ ¾øÀ»¶§ S #### if(!$total){ echo " <tr height='1'> <td colspan='13' $bgcolor_l1></td> </tr> <tr height='30'> <td colspan=13 align=center align='center'>µî·Ï(°Ë»ö)µÈ °Ô½Ã¹°ÀÌ ¾ø½À´Ï´Ù.</td> </tr> <tr height='1'> <td colspan='13' $bgcolor_l1></td> </tr>"; } #### µî·Ï °Ô½Ã¹°ÀÌ ¾øÀ»¶§ E #### echo " <!-- ¸®½ºÆ® Ãâ·Â --> </form> </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 #### ?>