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/Image_edit.php
<?include $_SERVER['DOCUMENT_ROOT']."/admin/adminTopMenu.html";?>
<script type="text/javascript">
function validate()
{
	if(!chkBlank(frm.title,"타이틀을 입력하여 주십시요.")) {return false;}
	return true;
}

</script>
<script type="text/javascript">
function goLang(lang_code) {
	var f = document.form;
	f.lang_code.value = lang_code;
	f.action = 'Image_view.php';
	f.submit();
}

function go_View(mediano) {
	var f = document.form;
	f.idx.value = mediano;
	f.action = 'Image_view.php';
	f.submit();
}

function go_FileDel(mediano, fileno) {
	if(confirm("해당 파일이 삭제 됩니다.\n삭제하시겠습니까?")) {
		var f = document.form;
		f.idx.value = mediano;
		f.fd.value = 'fdel';
		f.fileno.value = fileno;
		f.action = './Proc/Image_modify_proc.php';
		f.submit();
	}
}


function go_FileModify(modify_no){

	var modify_img_no = modify_no
	var modify_url				= "Image_add_modify.php?idx=<?=$idx?>&modify_img_no="+modify_img_no;
 window.open( modify_url,"_blank","");

}

</script>
<div id="contents">
<?
	$tableName="gallery";
	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 = "";
	}
?>
	<h2>Multimedia Image</h2>
	<div id="content">


<form name="form" method="post" target="_self" onsubmit="return false;">
<input type="hidden" name="page" value="1">
<input type="hidden" name="totalRow" value="22" >
<input type="hidden" name="searchType" value="">
<input type="hidden" name="searchStr" value="">
<input type="hidden" name="searchGroup" value="">
<input type="hidden" name="fd" value="">
<input type="hidden" name="lang_code" value="KO">
<input type="hidden" name="category" value="Image">
<input type="hidden" name="idx" value="">
<input type="hidden" name="seq" value="">
<input type="hidden" name="fileno" value="">
</form>


	<form name="frm" method="post" action="./Proc/Image_proc.php" onsubmit="return validate();" enctype="multipart/form-data">
	<input type="hidden" name="mode" value="proc">
	<input type="hidden" name="lang_code" value="KO">
	<input type="hidden" name="category" value="gallery">
	<input type="hidden" name="idx" value="<?=$idx?>">
	<table class="write" summary="관리자모드 게시판입니다" cellspacing="0">
		<colgroup>
			<col width="120" />
			<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" value="<?=$subject?>" class="title" /></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 $imgName."<input type='checkbox' name='delfile' value='1'>添付削除 ";
						}
						?>
					</td>
				</tr>
				<tr>
					<th>Date</th>
					<td><input type="text" value="<?=$row[start_date]?>" name="usedate"/></td>
				</tr>
				<tr>
					<th>Contents</th>
					<td><textarea cols="100" style="height:100px;" name="mediasource"><?=$contents?></textarea></td>
				</tr>
				<tr>
					<th>Images Attach</th>
					<td>
							<?
							if($row[files_count]){
								$QUERY_PAGE  = "SELECT * FROM files where module_no = '$idx' and module_name='$tableName' and module_type='C' order by no";
								$results= mysql_query($QUERY_PAGE,$db_con);
								$totals = mysql_affected_rows();
								for($i=0; $i<$totals; $i++) {
									$rows = mysql_fetch_array($results);
									$Nums = $i +1;
									echo $Nums.". &nbsp;파일 : ".$rows[original_name]."&nbsp;<a href='javascript:go_FileModify(".$rows[no].");' title='수정'><img src='/admin/images/check.png'></a>"."&nbsp;<a href='javascript:go_FileDel(".$idx.",".$rows[no].");'><img src='/admin/images/out.png'></a>";
									echo "<br><br>";
								}
							}
							?>
						<div id="file_make"><input type="button" value="추가" class="btn_red" /></div>
					</td>
				</tr>
			</tbody>
		</table>
		<div class="btn">
			<input type="submit" value="수정하기" class="btn_red" />
			<a href="javascript:go_View(<?=$idx?>);" class="btn_blue">취소하기</a>
		</div>
		</form>
	</div>
	</div>
<script type="text/javascript">
;(function($){
	$(document).ready(function(){
		var imgs = $('input[name=conImg]').length;

		$('div#file_make input').bind('click',function(){
			imgs = (imgs+1);
			$(this).before( imgs + '. <input type="file" name="conImg[]" size="30" /><br /><br />');
			return false;
		});
	});
})(jQuery);
</script>
<p></p>
</body>
</html>


Anon7 - 2021