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/www/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/queenjbs/www/admin/video_write.php
<?include $_SERVER['DOCUMENT_ROOT']."/admin/adminTopMenu.html";?>
<script type="text/javascript" src="/share/js/formcheck.js"></script>
<script type="text/javascript">
function validate()
{
	if(!chkBlank(frm.subject,"타이틀을 입력하여 주십시요.")) {return false;}
	if(!chkBlank(frm.thumnail,"썸네일 이미지를 등록하여 주십시요.")) {return false;}
	return true;
}

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

function goLang(lang_code) {
	var f = document.form;
	f.lang_code.value = lang_code;
	f.action = 'video_write.php';
	f.submit();
}
</script>
<div id="contents">
	<h2>Multimedia Video</h2>
	<div id="content">
 <?
	$tableName="movie";
	if($idx){
		$qry = "SELECT * FROM photo_$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);
		$subject = stripslashes($row[subject]);
		$contents = stripslashes($row[contents]);
		$naviChkName = "수정";
		$mode = "proc";
	}else{
		$naviChkName = "등록";
		$mode = "";
	}
?>
<form name="form" method="post" target="_self" onsubmit="return false;" >
<input type="hidden" name="page" value="1">
<input type="hidden" name="totalRow" value="10" >
<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">
</form>
	<form name="frm" method="post" action="./Proc/multimedia_proc.php" onsubmit="return validate();" enctype="multipart/form-data">
	<input type="hidden" name="mode" value="<?=$mode?>">
	<input type="hidden" name="idx" value="<?=$idx?>">
	<input type="hidden" name="division" value="movie">
	<table class="write" summary="관리자모드 게시판입니다" cellspacing="0">
		<colgroup>
			<col width="100" />
			<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>Main Title</th>
					<td><input type="text" name="subject" class="title" value="<?=$subject?>"/></td>
				</tr>
				<tr>
					<th>thumnail Img</th>
					<td><input type="file" name="thumnail"/>
					<?
					$imgName = get_db("select original_name from files where module_no = '$idx' and module_name='$tableName' and order_by='1'");
					if($imgName){
					echo "<br>".$imgName."<input type='checkbox' name='delfile' value='1'>添付削除 ";
					}
					?>
     154*115
					</td>
				</tr>
				<tr>
					<th>Date</th>
					<td><input type="text" name="usedate" value="<?=$row[start_date]?>"/></td>
				</tr>
				<tr>
					<th>copywriter</th>
					<td><input type="text" name="user_name" value="<?=$row[user_name]?>"/></td>
				</tr>
				<tr>
					<th>movie URL</th>
					<td><input type="text" name="contentUrl" class="title" value="<?=$row[contentUrl]?>"/></td>
				</tr>
				<!--tr>
					<th>Contents</th>
					<td><textarea cols="100" style="height:100px;" name="contents"></textarea></td>
				</tr-->
				<tr>
					<th>입력 형태</th>
					<td>
						<input type="radio" id="source" name="inputtype" value="3" <?if($row[inputtype] == "3") echo"checked";?>/> 소스보기 입력(HTML – Object, Embed 등)&nbsp;&nbsp;
						<input type="radio" id="source" name="inputtype" value="1" <?if($row[inputtype] == "1") echo"checked";?> /> 동영상첨부&nbsp;&nbsp;
					</td>
				</tr>
				<tr>
					<th>Mediasource</th>
					<td><textarea cols="100" style="height:50px;" name="mediasource"><?=$contents?></textarea></td>
				</tr>
				<tr>
					<th>Video Attach</th>
					<td><input type="file" name="convdo" /></td>
				</tr>
			</tbody>
		</table>
		<div class="btn">
			<input type="submit" value="<?=$naviChkName?>하기" class="btn_red" />
			<input type="button" value="목록보기" class="btn_blue" onClick="go_List();"/>
		</div>
		</form>
	</div>
	</div>
<p></p>
</body>
</html>


Anon7 - 2021