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/21571/root/home/queenjbs/jaejoong_X/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21571/root/home/queenjbs/jaejoong_X/admin/mainLayout_slide.php
<?include $_SERVER['DOCUMENT_ROOT']."/admin/adminTopMenu.html";?>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<div id="contents">
<h2>Main Layout</h2>
<div id="content">
<?include('mainLayout_tab.html');?>
<form name="form" method="post" action="./Proc/layout_slide_proc.php" 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="100"/>
			<col />
		</colgroup>
			<tbody>
				<tr>
					<td valign="top">
								secret  : <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> (관리자로그인만 이미지보임)<br>
								 image  : <input type='file' name="imgfile" onchange="readURL(this,0);" accept="image/*"/><br><img id="blah0" src="#" alt="" style="display: none;"/><br>
								URL: &nbsp;&nbsp;&nbsp;&nbsp;<input type="text" class="title" name="URL" value="<?=$row[URL]?>"/> <br>
								타겟 :  &nbsp;&nbsp;
													<select name="url_target">
															<option value="">현재창</option>
															<option value="_blink">새창띄우기</option>
													</select></br>
								제목: &nbsp;&nbsp;&nbsp;&nbsp;<input type="text" class="title" name="subject" value="<?=$row[subject]?>"/><br>
								<input type="hidden" name="idx" value="<?=$row[no]?>"/>
						<input type="hidden" name="file_name" value="<?=$row[file_name]?>"/>
					</td>

				</tr>
			</tbody>
		</table>
		</form>
		<div class="btn">
			<input type="button" value="등록" onclick="validate()" class="btn_red" />
		</div>



		<?
				$qry = "SELECT * FROM layoutTable where division=1 order by no desc";
				$result= mysql_query($qry,$db_con);
				$total = mysql_affected_rows();
				$naviChkName = "수정";
				$mode ="proc";

				for($i=0; $i<$total; $i++) {
					$row = mysql_fetch_array($result);
				//$idx = mysql_result($result, $i, "no");

				?>

				<form name="forms<?=$i?>" action="./Proc/layout_slide_proc.php" method="post" enctype="multipart/form-data" class="form-horizontal" >
				<input type="hidden" name="mode" value="proc">
				<table class="write" summary="관리자모드 게시판입니다" cellspacing="0" >
					<colgroup>
						<col width="100"/>
						<col />
					</colgroup>
						<tbody>
							<tr>
								<td valign="top">
								secret  : <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> (관리자로그인만 이미지보임)<br>
								image  : <input type='file' name="imgfile" onchange="readURL(this,0);" accept="image/*"/><?=$row[file_name]?>
								<img src='/files/muti/main/<?=$row[file_name]?>' width="100">
								<br><img id="blah0" src="#" alt="" style="display: none;"/><br>
								URL: &nbsp;&nbsp;&nbsp;&nbsp;<input type="text" class="title" name="URL" value="<?=$row[URL]?>"/> <br>
								타겟 :  &nbsp;&nbsp;
													<select name="url_target">
															<option value="" <?if($row[URL_target]=="") echo"selected";?>>현재창</option>
															<option value="_blank" <?if($row[URL_target]=="_blank") echo"selected";?>>새창띄우기</option>
													</select></br>
								제목: &nbsp;&nbsp;&nbsp;&nbsp;<input type="text" class="title" name="subject" value="<?=$row[subject]?>"/><br>

								<input type="hidden" name="idx" value="<?=$row[no]?>"/>
								<input type="hidden" name="imgName" value="<?=$row[file_name]?>"/>
					</td>

				</tr>
				<tr><td>
					<div class="btn">
						<input type="submit" value="수정" class="btn_red" />
						<input type="button" value="삭제" onclick="go_Delete('<?=$i+1?>')" class="btn_blue" />
					</div>
				</td></tr>
				</tbody>
				</table>
				</form>
				<?

				}?>




</div>
<script type="text/javascript">
function validate()
{
    var f = document.form;
    if(!f.URL.value){
        alert("URL을 입력하세요.");
        f.URL.focus();
        return false;
    }else if( !f.imgfile.value){
        alert("이미지를 넣어주세요.");
        f.conImg.focus();
        return false;
    }
		f.mode.value="slideInsert";
    f.submit();
}
function go_Delete(val) {
    if(confirm("등록된 글이 삭제 됩니다.\n삭제하시겠습니까?")) {
        var f=document.forms[val];
        f.mode.value="del";
        f.submit();
    }
}

</script>

<script type="text/javascript">
        function readURL(input,val) {
            if (input.files && input.files[0]) {
                var reader = new FileReader();
                reader.onload = function (e) {
                    if(val==0 ||val=="SS") {
                        $('#blah'+val).show();
                    }
                    $('#blah'+val).removeAttr('width');
                    $('#blah'+val).attr('src', e.target.result);

                    if($('#blah'+val).width() >250){
                    $('#blah'+val).attr('width', '250px');
                    }
                }
                reader.readAsDataURL(input.files[0]);
            }
        }
</script>
</body>
</html>

Anon7 - 2021