최초등록

This commit is contained in:
sp1000je
2026-02-23 10:01:00 +09:00
commit 7bc9767bf4
3120 changed files with 198447 additions and 0 deletions
+205
View File
@@ -0,0 +1,205 @@
<?
//파라미터정보 *************************************************************************************
$b_num = InputValue($b_num);
$b_type = InputValue($b_type);
//**************************************************************************************************
//수정모드
$w_mode = "M";
If ($is_ad_cms != "Y") { //관리자가아닐때 체크
If ($_SESSION["pwd_chk_".$a_num."_".$b_num] != "ok") { //체크통과했으면..
locationhref("pwd.php?prepage=modi&amp;a_num=".$a_num."&amp;b_num=".$b_num."&amp;".$page_info);
}
}
//레코드필드
$R_Fields = "b_num, b_type, b_id, b_name, b_pwd, b_subject, b_email, b_jumin, b_phone1, b_phone2, b_phone3, b_cate, b_catename, b_noticechk, b_content, b_ip, b_count, b_look, b_open, b_ref, b_step, b_level, b_regdate, b_chuchun, b_sbjclr, b_sdate, b_edate, b_temp1, b_temp2, b_temp3, b_temp4, b_temp5, b_temp6, b_temp7,b_temp8, b_file1, b_file2, b_file3, b_file4, b_file5,b_keyword";
$R_tablename_str = $a_tablename;
$R_WHERE_str = " WHERE b_num=".$b_num;
SelectQuery ($R_Fields, $R_tablename_str, $R_WHERE_str);
if($b_temp6 == ""){
$b_temp6e_y = date("Y");
$b_temp6e_m = date("m");
$b_temp6_d = date("d");
}else{
$b_temp6_arr = explode("-", $b_temp6);
$b_temp6_y = $b_temp6_arr[0];
$b_temp6_m = $b_temp6_arr[1];
$b_temp6_d = $b_temp6_arr[2];
}
?>
<?include("top.php"); //상단파일?>
<script type="text/javascript">//<![CDATA[
var xed;
function w_chk2(){
if (CheckSpaces(document.getElementById('frm').b_temp5, '답변부서')) {return false;}
else if (CheckSpaces(document.getElementById('frm').b_temp8, '답변내용')) {return false;}
//else if (CheckSpaces(document.getElementById('frm').b_subject, '제목')) {return false;}
loading_st(1);
}
//]]>
</script>
<!-- 쓰기 -->
<div id="board" style="width:<?=$a_width?>;">
<form id="frm" method="post" action="/content/board/<?=$a_level?>/reply_ok.php?a_num=<?=$a_num?>&amp;<?=$page_info?>" enctype="multipart/form-data" onsubmit="return w_chk2();">
<div>
<input type="hidden" name="b_num" value="<?=$b_num?>" /><!-- (수정일때사용) -->
<input type="hidden" name="b_type" value="<?=$b_type?>" />
<input type="hidden" name="w_mode" value="<?=$w_mode?>" />
<input type="hidden" name="b_open" value="Y" />
<input type="hidden" name="b_ref" value="<?=$b_ref?>" />
<input type="hidden" name="b_step" value="<?=$b_step?>" />
<input type="hidden" name="b_level" value="<?=$b_level?>" />
</div>
<div class="guide">
<span><img src="/content/board/nninc_qna/img/ic_vcheck.gif" width="7" height="10" alt="*" /> 표시가 된 곳은 필수 항목입니다.</span>
</div>
<!-- 쓰기 테이블 -->
<div class="table_bwrite">
<table cellspacing="0">
<caption><?=str_replace( " | ", "",$tit_name);?></caption>
<colgroup>
<col width="130" />
<col width="" />
</colgroup>
<thead>
<tr>
<th scope="col"></th>
<th scope="col" class="th_end">답변쓰기</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row"><label for="b_temp5">답변부서</label></th>
<td>
<input type="text" size="50" id="b_temp5" name="b_temp5" class="board_input" onfocus="focus_on1(this);" onblur="focus_off1(this);" value="<?=$b_temp5?>" maxlength="50" />
</td>
</tr>
<tr>
<th scope="row">처리기한</th>
<td>
<select id="b_temp6_y" name="b_temp6_y" >
<?For ($z=2009; $z <=(date("Y")+5); $z++) {?>
<option value="<?=$z?>" <?If ($z == $b_temp6_y ) { echo "selected='selected'"; }?>><?=$z?></option>
<label for="b_temp6_y">년</label>
<?}?>
</select>
<select id="b_temp6_m" name="b_temp6_m" >
<?For ($z=1; $z <=12; $z++) {?>
<option value="<?=$z?>" <?If ($z == $b_temp6_m ) { echo "selected='selected'"; }?>><?=$z?></option>
<label for="b_temp6_y">월</label>
<?}?>
</select>
<select id="b_temp6_d" name="b_temp6_d">
<?For ($z=1; $z <=31; $z++) {?>
<option value="<?=$z?>" <?If ($z == $b_temp6_d ) { echo "selected='selected'"; }?>><?=$z?></option>
<label for="b_temp6_y">일</label>
<?}?>
</select>
</td>
</tr>
<tr>
<th scope="row"><label for="b_temp7">처리상황</label></th>
<td>
<select id="b_temp7" name="b_temp7">
<option value="접수" <?if ($b_temp7 == "접수") { echo("selected='selected'"); } ?>>접수</option>
<option value="진행중" <?if ($b_temp7 == "진행중") { echo("selected='selected'"); } ?> >진행중</option>
<option value="완료" <?if ($b_temp7 == "완료") { echo("selected='selected'"); } ?>>완료</option>
<option value="취하" <?if ($b_temp7 == "취하") { echo("selected='selected'"); } ?>>취하</option>
</select>
</td>
</tr>
<tr>
<td colspan="2" class="content">
<textarea cols="50" rows="15" id="b_temp8" name="b_temp8" title="답변 내용 입력" style="width:98%;" onfocus="focus_on1(this);" onblur="focus_off1(this);" ><?=$b_temp8?></textarea>
</td>
</tr>
</tbody>
</table>
</div>
<!-- //쓰기 테이블 -->
<!-- 버튼 -->
<div class="board_button2">
<span><input type="image" src="/content/board/nninc_qna/img/save_bt.gif" alt="저장"/></span>
<span><a href="list.php?a_num=<?=$a_num?>&amp;<?=$page_info?>" ><img src="/content/board/nninc_qna/img/list_bt.gif" width="62" height="23" alt="목록" /></a></span>
</div>
<!-- //버튼 -->
</form>
</div>
<!-- //쓰기 -->
<?include("bottom.php"); //하단파일?>