|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /home/queenjbs/www/admin/ |
Upload File : |
<?include $_SERVER['DOCUMENT_ROOT']."/admin/adminTopMenu.html";?>
<?
$tableName = "news";
if($idx){
$qry = "SELECT * FROM board_$tableName where no='$idx'";
$result= mysql_query($qry,$db_con);
$row = mysql_fetch_array($result);
$regDate = substr($row[reg_date],0,10);
$imgName = get_db("select file_name from files where module_no = '$idx' and module_name='$tableName' order by no");
}
?>
<script type="text/javascript">
function go_List() {
var f = document.form;
f.action = 'news.php';
f.submit();
}
function goLang(lang_code) {
var f = document.form;
f.lang_code.value = lang_code;
f.action = 'news_detail.php';
f.submit();
}
function go_View(idx, seq) {
var f = document.form;
f.idx.value = idx;
f.seq.value = seq;
f.action = 'news_detail.php';
f.submit();
}
function go_Modify(idx) {
var f = document.form;
f.idx.value = idx;
f.action = 'news_write.php';
f.submit();
}
function go_Delete(idx) {
if(confirm("등록된 글이 삭제 됩니다.\n삭제하시겠습니까?")) {
var f = document.form;
f.mode.value = 'del';
f.idx.value = idx;
f.action = './Proc/news_proc.php';
f.submit();
}
}
</script>
<div id="contents">
<h3>NEWS</h3>
<div id="content">
<form name="form" method="post" target="_self" onsubmit="return false;" >
<input type="hidden" name="page" value="1">
<input type="hidden" name="totalRow" value="70" >
<input type="hidden" name="searchType" value="">
<input type="hidden" name="searchStr" value="">
<input type="hidden" name="searchGroup" value="">
<input type="hidden" name="mode" value="">
<input type="hidden" name="lang_code" value="KO">
<input type="hidden" name="idx" value="">
<input type="hidden" name="seq" value="">
</form>
<table class="write" summary="관리자모드 게시판입니다" cellspacing="0" >
<colgroup>
<col />
<col width="120" />
<col width="80" />
</colgroup>
<thead>
<tr>
<th><span>title</span></th>
<th>Date</th>
<th>Hit</th>
</tr>
</thead>
<tbody>
<tr>
<td><span><?=$row[subject]?></span></td>
<td><?=$regDate?></td>
<td><?=$row[hit]?></td>
</tr>
<tr>
<td colspan="3">
<p><?=nl2br(stripslashes($row[contents]))?></p>
</td>
</tr>
</tbody>
</table>
<table class="write" cellspacing="0" >
<colgroup>
<col width="80" />
<col />
</colgroup>
<tbody>
<tr>
<th><strong>▲PREV</strong></th>
<td><a href="javascript:go_View(72,195);">JYJ, "더 데이(The Day)" 무대인사 관련 공지</a></td>
</tr>
<tr>
<th><strong>▼NEXT</strong></th>
<td>이전글이 없습니다.</td>
</tr>
</tbody>
</table>
<div class="btn">
<a href="javascript:go_Modify(<?=$idx?>);" class="btn_red">수정하기</a>
<a href="javascript:go_Delete(<?=$idx?>);" class="btn_red">삭제하기</a>
<a href="javascript:go_List();" class="btn_blue">목 록</a>
</div>
</div>
</div>
<p></p>
</body>
</html>