KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
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 :  /proc/22697/root/home/queenjbs/yuchun/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/22697/root/home/queenjbs/yuchun/admin/from_detail.php
<?include $_SERVER['DOCUMENT_ROOT']."/admin/adminTopMenu.html";?>
<script type="text/javascript">
function validate()
{
	if(!chkBlank(frm.usedate,"날짜를 입력하여 주십시요.")) {return false;}
	if(!chkDate(frm.usedate,"날짜 형식에 맞게 입력해 주세요\n\n예)2012-01-01")) {return false;}
	if(!chkBlank(frm.title,"제목을 기입하여 주십시요.")) {return false;}
	return true;
}

function go_List() {
	var f = document.form;
	f.action = 'from.php';
	f.submit();
}

function goLang(lang_code) {
	var f = document.form;
	f.lang_code.value = lang_code;
	f.action = 'news_write.php';
	f.submit();
}
</script>
 <?
 $tableName = "from";
 if($idx){
	$qry = "SELECT * FROM board_$tableName where no='$idx'";
	$result= mysql_query($qry,$db_con);
	$row = mysql_fetch_array($result);

	$loginDate = substr($row[logindate],0,10);
	$regDate = substr($row[reg_date],0,10);

	$naviChkName = "수정";
	$mode ="proc";
}else{
	$naviChkName = "등록";
 $regDate = $today;
	$mode ="";
}
 ?>
<div id="contents">
<h2>FROM COUNT</h2>
<div id="content">
<form name="form" method="post" action="./Proc/from_proc.php" onsubmit="return validate();" enctype="multipart/form-data">
	<input type="hidden" name="mode" value="<?=$mode?>">
	<input type="hidden" name="idx" value="<?=$idx?>">
	<table class="write" summary="관리자모드 게시판입니다" cellspacing="0" >
		<colgroup>
			<col width="80"/>
			<col />
		</colgroup>
			<tbody>
				<tr>
					<th>날짜</th>
					<td><input type="text" class="title" name="reg_date" value="<?=$regDate?>"/></td>
				</tr>
				<tr>
					<th>제목</th>
					<td><input type="text" class="title" name="subject" value="<?=$row[subject]?>"/></td>
				</tr>
				<tr>
					<th>좋아요</th>
					<td><input type="text"  name="voted_count" value="<?=$row[voted_count]?>"/></td>
				</tr>
				<tr>
					<th>HIT</th>
					<td><input type="text"  name="hit" value="<?=$row[hit]?>"/></td>
				</tr>
				<tr>
					<th>비밀글</th>
					<td>
					<select name="is_secret">
                        <option value="Y" <?if($row[is_secret] == "Y") echo"selected";?>>안보이게</option>
						<option value="N" <?if($row[is_secret] == "N") echo"selected";?>>보이게</option>
					</select>
					</td>
				</tr>

				<tr>
					<th>첨부파일</th>
					<td>
					<?
					$imgName = get_db("select file_name from files where module_no = '$idx' and module_name='board_from'  order by no");
					if($imgName){
					//echo $imgName;
					echo "<br/><img src='/files/from/$imgName'width='30%'>";
					}
					?>

					</td>
				</tr>
			</tbody>
		</table>
		<div class="btn">
			<input type="submit" value="<?=$naviChkName?>하기" name="" class="btn_red" />
			<input type="button" value="목록보기" class="btn_blue" onClick="go_List();" />
	</div>
	</form>
</div>
<p></p>
</body>
</html>
<?include('./editorScript.php');?>

Anon7 - 2021