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/jaejoong_X/pages/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/queenjbs/jaejoong_X/pages/qna_write.php
<?php

	include $_SERVER['DOCUMENT_ROOT']."/conf/conf_dir.php";

	//$PAGE_GUBUN =	"5";

	include $_SERVER['DOCUMENT_ROOT']."/pages/inc_top.php";
?>
<script type="text/javascript" src="/sys_css_js/default.js"></script>
<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="/ckeditor/config.js"></script>


 <div id="page_index">
  <a href="default.php">HOME</a> > QnA
 </div>

 <div id="sub_content_box">
<?include"./inc_mypage_tab.php";?>
 <?
					if($num){
						$tableName = "free";
						$qry = "SELECT * FROM board_$tableName where no='$num'";
						$result= mysql_query($qry,$db_con);
						$row = mysql_fetch_array($result);

						$loginDate = substr($row[logindate],0,10);
						$regDate = substr($row[cdate],0,10);

						//$naviChkName = "수정";
					}else{
						//$naviChkName = "등록";
					}
					?>
						<form  name="form" method="post" >
						<input type=hidden name="PAGE_GUBUN" value="<?=$PAGE_GUBUN?>">
						<input type=hidden name="mode" value="<?=$mode?>">
						<input type=hidden name="num">

						<table class="basic_table">
       <colgroup>
        <col width='20%'>
        <col	width="80%">
       </colgroup>
							<tbody>

       <?if($sessionLevel == 15){?>
        <tr>
         <th class="title_le_w_top">is_secret</th>
         <td class="title_ri_w_top"><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 class="title_le_w">notice</th>
         <td class="title_ri_w"><input  type="checkbox" id="is_notice" name="is_notice" class="input_box" value="Y" <?if($row[is_notice] == "Y") echo"checked";?>/> <b>notice check</b></td>
        </tr>
       <?}?>
       <tr>
        <th class="title_le_w">カテゴリー</th>
        <td class="title_ri_w">
				<select name="gubun_sort">
					<option value="1" >その他</option>
					<option value="2" >入金確認</option>
					<option value="3" >GOODS払い戻し要請</option>
					<option value="4" >GOODS取り消し</option>
				</select>

       </tr>
			 <tr>
				 <th class="title_le_w">タイトル</th>
				<td class="title_ri_w"><input  type="text" id="subject" name="subject" value="<?=stripslashes($row[subject])?>" size="50" class="input_box" /></td></td>
			 </tr>
       <tr>
        <th class="title_le_w">内容</th>
        <td class="title_ri_w">
         <textarea cols="60" id="editor_kama" name="contents" rows="10"><?=stripslashes($row[contents])?></textarea>
         <script type="text/javascript">
         //<![CDATA[

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

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


           });
         //]]>
         </script>
        </td>
       </tr>
       <tr>
        <th class="title_le_w">添 付</th>
        <td class="title_ri_w"><input name="addfile" type="file">
        <?
        $imgName = get_db("select original_name from files where module_no = '$idx' and module_name='$tableName' order by no");
        if($imgName){
        echo $imgName."<input type='checkbox' name='delfile' value='1'>添付削除 ";
        }
        ?>
        <br><font color=blue>※動画ファイルは(wmv,asf,mov)のみ、10mb以下で保存することが可能です。 </font>
        </td>
      	</tr>
							<tr>
       	<td class="bottom_ri" colspan="2">
										<a href="./qna.php" >■ リスト ■</a>&nbsp;&nbsp;&nbsp;&nbsp;
										<a onclick="chkcontents();" style="CURSOR: pointer" id="btn">■ 完了 ■</a>
        </td>
       </tr>

	     </tbody>
					</table>
				</form>
 			</div>




<?php
  include"inc_footer.php";
?>
<script language="javascript">
		<!--
		function chkcontents(){
			var obj = document.form;

			if(!obj.subject.value){
				alert("題名をお入れ下さい");
				obj.subject.focus();
				return false;
			}
			document.form.action = "qna_proc.php";
			document.form.submit();
		}
		function formChange(val,mode){
		if(mode == "del"){
			if(confirm("削除しましょうか?")){

			} else {
				return false;
			}

		}
		//내용변경
		document.form.idx.value = val;
		document.form.mode.value = mode;
		if(mode == 'write' || mode == 'proc'){
			document.form.method = "post";
		}else{
			document.form.method = "get";
		}
		document.form.action = "<?=$php_self?>";
		document.form.submit();

		}
		-->
</script>
</body>
</html>

Anon7 - 2021