|
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";?>
<script type="text/javascript">
function go_List() {
var f = document.form;
f.action = 'Image.php';
f.submit();
}
function goLang(lang_code) {
var f = document.form;
f.lang_code.value = lang_code;
f.action = 'Image_view.php';
f.submit();
}
function go_View(mediano, seq) {
var f = document.form;
f.idx.value = mediano;
f.seq.value = seq;
f.action = 'Image_view.php';
f.submit();
}
function go_Modify(mediano) {
var f = document.form;
f.idx.value = mediano;
f.action = 'Image_edit.php';
f.submit();
}
function go_Delete(mediano) {
if(confirm("등록된 글이 삭제 됩니다.\n삭제하시겠습니까?")) {
var f = document.form;
f.fd.value = 'del';
f.idx.value = mediano;
f.action = './Proc/multimedia_proc.php';
f.submit();
}
}
</script>
<?
$tableName ="gallery";
if($idx){
$qry = "SELECT * FROM photo_$tableName where no='$idx'";
$result= mysql_query($qry,$db_con);
$row = mysql_fetch_array($result);
}
?>
<div id="contents">
<h2>Multimedia Image</h2>
<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="22" >
<input type="hidden" name="searchType" value="">
<input type="hidden" name="searchStr" value="">
<input type="hidden" name="searchGroup" value="">
<input type="hidden" name="lang_code" value="KO">
<input type="hidden" name="category" value="Image">
<input type="hidden" name="idx" value="">
<input type="hidden" name="seq" value="">
</form>
<table 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 class="depth"><span><?=stripslashes($row[subject])?></span></td>
<td><?=$row[start_date]?></td>
<td><?=$row[hit]?></td>
</tr>
<tr>
<td colspan="3" class="depth">
<?=stripslashes($row[contents])?>
<?
if($row[files_count]){
$QUERY_PAGE = "SELECT * FROM files where module_no = '$idx' and module_name='$tableName' and module_type='C' order by no";
$results= mysql_query($QUERY_PAGE,$db_con);
$totals = mysql_affected_rows();
for($i=0; $i<$totals; $i++) {
echo $total;
$rows = mysql_fetch_array($results);
echo "<img src='/files/muti/gallery/$rows[file_name]'><br>";
}
}
?>
</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(39, 101);">박유환, 엘르걸 7월호 화보 및 영상 공개</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(40);" class="btn_red">삭제하기</a>
<a href="javascript:go_List();" class="btn_blue">목록보기</a>
</div>
</div>
</div>
<p></p>
</body>
</html>