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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21573/root/home/queenjbs/junsu/admin/news_write.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 = 'news.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 = "news";
 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>NEWS</h2>
<div id="content">
<form name="form" method="post" action="./Proc/news_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="m_chk" name="m_chk" class="input_box" <?if($row[general_setting] == "on") 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>is_notice</th>
					<td><input  type="checkbox" id="is_notice" name="is_notice" class="input_box" value="Y" <?if($row[is_notice] == "Y") echo"checked";?>/><b>notice check</b></td>
				</tr>
				<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>
					<td colspan="2">
					<textarea cols="60" id="editor1" name="contents" rows="10"><?=stripslashes($row[contents])?></textarea>
					</td>
				</tr>
				<tr>
					<th>첨부파일</th>
					<td>
					<input name="addfile" type="file">
					<?
					$imgName = get_db("select original_name from files where module_no = '$idx' and module_name='$tableName' order by no");
					if($imgName){
					echo $imgName."<input type='checkbox' name='delfile' value='1'>添付削除 ";
					}
					?>
					<br><font color=blue>※動画ファイルは(wmv,asf,mov)のみ、20mb以下で保存することが可能です。 </font>
					</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