198 lines
6.7 KiB
Plaintext
198 lines
6.7 KiB
Plaintext
<!--#include virtual="/common/file/inc_head.asp"-->
|
|
<%
|
|
prepage = request("prepage")
|
|
b_num = InputValue( request("b_num") )
|
|
tablename = "board_1"
|
|
a_num = "72108979"
|
|
|
|
If b_num = "" Then
|
|
w_mode = "W"
|
|
b_name = session("ss_m_name")
|
|
b_pwd = session("ss_m_pwd")
|
|
b_sdate = Date()
|
|
b_edate = Date()
|
|
|
|
m_mobile = SESSION("ss_m_mobile")
|
|
If m_mobile = "" Then m_mobile = "--"
|
|
m_mobile_arr = Split(m_mobile, "-")
|
|
|
|
b_phone1 = m_mobile_arr(0)
|
|
b_phone2 = m_mobile_arr(1)
|
|
b_phone3 = m_mobile_arr(2)
|
|
Else
|
|
|
|
w_mode= "M"
|
|
|
|
Set ST = New SelectTable
|
|
s_fields = "b_name, b_pwd, b_subject, b_content, b_sdate, b_edate, b_temp1, b_temp2, b_temp3, b_temp4, b_phone1, b_phone2, b_phone3 "
|
|
where_query = " where b_num = '" & b_num & "' "
|
|
sql = "select " & s_fields & " from " & tablename & where_query
|
|
|
|
Set rs = ST.selectQueryRecord( sql )
|
|
ST.arr2Value( rs )
|
|
|
|
End If
|
|
|
|
b_sdate_arr = Split(b_sdate, "-")
|
|
b_edate_arr = Split(b_edate, "-")
|
|
|
|
b_sdate_y = b_sdate_arr(0)
|
|
b_sdate_m = b_sdate_arr(1)
|
|
b_sdate_d = b_sdate_arr(2)
|
|
|
|
b_edate_y = b_edate_arr(0)
|
|
b_edate_m = b_edate_arr(1)
|
|
b_edate_d = b_edate_arr(2)
|
|
|
|
%>
|
|
<link rel="Stylesheet" type="text/css" href="/common/helloCalendar/helloCalendar.css" />
|
|
<script type="text/javascript" src="/common/helloCalendar/helloCalendar.js"></script>
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
|
|
$(function(){
|
|
|
|
$('#b_sdate').attr("readonly", true).helloCalendar({'selectBox':true});
|
|
$('#b_edate').attr("readonly", true).helloCalendar({'selectBox':true});
|
|
|
|
});
|
|
|
|
function w_chk(eForm){
|
|
if (CheckSpaces(eForm.b_name, '이름')) {return false;}
|
|
if (CheckSpaces(eForm.b_pwd, '비밀번호')) {return false;}
|
|
if (CheckSpaces(eForm.b_subject, '일정명')) {return false;}
|
|
}
|
|
|
|
//]]>
|
|
</script>
|
|
<!-- 타이틀 -->
|
|
<div id="cont_head">
|
|
<h2>일정관리</h2>
|
|
</div>
|
|
<!-- //타이틀 -->
|
|
<!-- 내용 -->
|
|
<div id="cont_wrap">
|
|
<!-- 일정관리 -->
|
|
<div class="s0301">
|
|
<!--#include file="inc_calendar.asp"-->
|
|
<!-- 일정쓰기 -->
|
|
<div class="sche_write">
|
|
<p class="essential"><strong>필수항목</strong></p>
|
|
|
|
<form id="frm" method="post" action="/content/board/write.asp?a_num=<%=a_num%>&proc_mode=write_ok" enctype="multipart/form-data" onsubmit="return w_chk(this);">
|
|
|
|
<div>
|
|
<input type="hidden" name="prepage" value="<%=prepage%>" />
|
|
<input type="hidden" name="b_num" value="<%=b_num%>" /><!-- (수정일때사용) -->
|
|
<input type="hidden" name="b_type" value="N" />
|
|
<input type="hidden" name="w_mode" value="<%=w_mode%>" />
|
|
</div>
|
|
<table class="table3">
|
|
<colgroup>
|
|
<col width="15%" />
|
|
<col width="*" />
|
|
</colgroup>
|
|
<tbody>
|
|
<tr>
|
|
<th scope="row">이름</th>
|
|
<td><input type="text" name="b_name" value="<%=b_name%>" maxlength="30" class="inp_basic ess w3" /> <span class="ml10">한글만 사용하실 수 있습니다.</span></td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">비밀번호</th>
|
|
<td><input type="password" id="b_pwd" name="b_pwd" value="<%=b_pwd%>" maxlength="30" class="inp_basic ess w3" /> <span class="ml10">10자 이내의 영문/숫자만 사용하실 수 있습니다.</span></td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">일정기간</th>
|
|
<td>
|
|
<ul class="term">
|
|
<li>
|
|
<input type="text" id="b_sdate" name="b_sdate" value="<%=b_sdate%>" maxlength="10" class="inp_basic ess w1" />
|
|
</li>
|
|
<li>~</li>
|
|
<li>
|
|
<input type="text" id="b_edate" name="b_edate" value="<%=b_edate%>" maxlength="10" class="inp_basic ess w1" />
|
|
</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">문자알림</th>
|
|
<td>
|
|
<dl class="alram">
|
|
<dt><input type="checkbox" id="b_temp1" name="b_temp1" value="Y" <%=chkRadio(b_temp1 ,"Y")%> /><label for="b_temp1">알림기능 사용</label></dt>
|
|
<dd>
|
|
<ul>
|
|
<li>
|
|
<select id="b_temp2" name="b_temp2" class="select_basic w2">
|
|
<option value="<%=dateserial(b_sdate_y, b_sdate_m, b_sdate_d-7)%>" <%=chkSelect(dateserial(b_sdate_y, b_sdate_m, b_sdate_d-3), b_temp2)%>>7일전</option>
|
|
<option value="<%=dateserial(b_sdate_y, b_sdate_m, b_sdate_d-3)%>" <%=chkSelect(dateserial(b_sdate_y, b_sdate_m, b_sdate_d-3), b_temp2)%>>3일전</option>
|
|
<option value="<%=dateserial(b_sdate_y, b_sdate_m, b_sdate_d-1)%>" <%=chkSelect(dateserial(b_sdate_y, b_sdate_m, b_sdate_d-1), b_temp2)%>>1일전</option>
|
|
<option value="<%=dateserial(b_sdate_y, b_sdate_m, b_sdate_d)%>" <%=chkSelect(dateserial(b_sdate_y, b_sdate_m, b_sdate_d), b_temp2)%>>당일</option>
|
|
</select>
|
|
</li>
|
|
<li>
|
|
<select id="b_temp3" name="b_temp3" class="select_basic w2">
|
|
<%
|
|
For i = 0 To 23
|
|
i_value = Right("0" & i, 2)
|
|
%>
|
|
<option value="<%=i_value%>" <%=chkSelect(i_value, b_temp3)%>><%=i_value%>시</option>
|
|
<%
|
|
next
|
|
%>
|
|
</select>
|
|
</li>
|
|
<li>
|
|
<select id="b_temp4" name="b_temp4" class="select_basic w2">
|
|
<%
|
|
For i = 0 To 50 Step 10
|
|
i_value = Right("0" & i, 2)
|
|
%>
|
|
<option value="<%=i_value%>" <%=chkSelect(i_value, b_temp4)%>><%=i_value%>분</option>
|
|
<%
|
|
next
|
|
%>
|
|
</select>
|
|
</li>
|
|
</ul>
|
|
</dd>
|
|
<dt>문자알람 수신번호</dt>
|
|
<dd>
|
|
<ul>
|
|
<li><input type="text" id="b_phone1" name="b_phone1" class="inp_basic w2" value="<%=b_phone1%>" maxlength="4" onkeyup="SetNum(this);" /></li>
|
|
<li>-</li>
|
|
<li><input type="text" id="b_phone2" name="b_phone2" class="inp_basic w2" value="<%=b_phone2%>" maxlength="4" onkeyup="SetNum(this);" /></li>
|
|
<li>-</li>
|
|
<li><input type="text" id="b_phone3" name="b_phone3" class="inp_basic w2" value="<%=b_phone3%>" maxlength="4" onkeyup="SetNum(this);" /></li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">일정명</th>
|
|
<td><input type="text" id="b_subject" name="b_subject" value="<%=b_subject%>" maxlength="100" class="inp_basic ess w4" /><p class="mt10">문자알림설정시 일정명으로 문자메세지가 발송됩니다.</p></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">
|
|
<textarea class="editor" id="b_content" name="b_content"><%=b_content%></textarea>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<div class="btngroup">
|
|
<ul class="btn_nrm column2">
|
|
<li><input type="submit" value="저장" class="nrm1" style="width:160px;" /></li>
|
|
<li><a href="<%=prepage%>" class="nrm2">목록</a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
</form>
|
|
</div>
|
|
<!-- //일정쓰기 -->
|
|
</div>
|
|
<!-- //일정관리 -->
|
|
</div>
|
|
<!-- //내용 -->
|
|
|
|
<!--#include virtual="/common/file/bottom.asp"--> |