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/21572/root/home/queenjbs/junsu/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21572/root/home/queenjbs/junsu/admin/schedule_write.php
<?include $_SERVER['DOCUMENT_ROOT']."/admin/adminTopMenu.html";?>
<script language="javascript" src="/admin/js/Calendar.js"></script>
<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 = 'schedule.php';
	f.submit();
}

function goLang(lang_code) {
	var f = document.form;
	f.lang_code.value = lang_code;
	f.action = 'schedule_write.php';
	f.submit();
}
</script>

<?

 $tableName = "board_schedule";
 if($idx){
	$qry = "SELECT * FROM $tableName where no='$idx'";
	$result= mysql_query($qry,$db_con);
	$row = mysql_fetch_array($result);
    $today = substr($row[schedule_date],0,10);
	$naviChkName = "수정";
	$mode ="proc";

}else{

	$naviChkName = "등록";
	if(!$mode){ $mode ="write"; }

}
?>
<div id="contents">
	<h2>SCHEDULE</h2>
<div id="content">
<form name="form" method="post" action="./Proc/schedule_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>member check</th>
					<td><input  type="checkbox" id="is_notice" name="is_notice" class="input_box" value="Y" <?if($row[is_notice] == "Y") echo"checked";?>/><b>member only</b></td>
				</tr>
				<tr>
					<th>is_secret</th>
					<td><input  type="checkbox" id="is_secret" name="is_secret" class="input_box" value="Y" <?if($row[is_secret] == "Y") echo"checked";?>/><b>secret check</b></td>
				</tr>
				<tr>
					<th>날짜</th>
					<td><INPUT TYPE="text" id="cal_Date" name="cal_Date" onclick="Calendar_D(document.all.cal_Date)" value="<?=$today?>"/> <a href="javascript:Calendar_D(document.all.cal_Date)">날짜선택</a> (<?=$today?>)</td>
				</tr>
                <tr>
					<th>메인글</th>
					<td><input type="text" class="title" name="subject" value="<?=$row[subject]?>"/></td>
				</tr>
				<tr>
					<th>서브글</th>
					<td><textarea  name="sub_content" cols=60><?=$row[sub_content]?></textarea></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>

Anon7 - 2021