최초등록
This commit is contained in:
@@ -0,0 +1,150 @@
|
||||
<!--#include virtual="/common/file/inc_head.asp"-->
|
||||
<%
|
||||
v_year = InputValue( request.querystring("p_year") )
|
||||
v_month = InputValue( request.querystring("p_month") )
|
||||
|
||||
If v_year = "" Then v_year = year(now)
|
||||
If v_month = "" Then v_month = Right( "0" & month(now), 2 )
|
||||
|
||||
a_num = "72108979"
|
||||
tablename = "board_1"
|
||||
|
||||
Set ST = New SelectTable
|
||||
|
||||
|
||||
thisYM = v_year & "-" & v_month
|
||||
|
||||
where_query = " where (b_sdate like '" & thisYM & "%' or b_edate like '" & thisYM & "%') and b_id = '" & SESSION("ss_m_id") & "' "
|
||||
orderby_query = " order by b_sdate asc"
|
||||
sql = "select b_num, b_subject, b_sdate, b_edate, b_temp1 from " & tablename & where_query & orderby_query
|
||||
rs = ST.selectQueryTable( sql )
|
||||
|
||||
%>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
function alarmOk( obj ){
|
||||
var checked = obj.checked;
|
||||
var b_num = $(obj).data("b_num");
|
||||
var b_temp1 = "N";
|
||||
if( checked ){ b_temp1 = "Y"; }
|
||||
$.ajax({
|
||||
type: "POST"
|
||||
,url: "./ajax_alarm_ok.asp"
|
||||
,data: "a_num=<%=a_num%>&b_num="+b_num+"&b_temp1="+b_temp1
|
||||
,async:false
|
||||
,error:function(request, status, error){
|
||||
alert("code:"+request.staus+"\nmessage:"+request.responseText);
|
||||
//alert("설정실패\n\n잠시후 다시 시도하세요.");
|
||||
if(b_temp1 == "Y"){
|
||||
$(obj).attr("checked", false);
|
||||
}else{
|
||||
$(obj).attr("checked", true);
|
||||
}
|
||||
}
|
||||
,success: function(msg){
|
||||
//alert(msg);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
//]]>
|
||||
</script>
|
||||
<!-- 타이틀 -->
|
||||
<div id="cont_head">
|
||||
<h2>일정관리</h2>
|
||||
</div>
|
||||
<!-- //타이틀 -->
|
||||
<!-- 내용 -->
|
||||
<div id="cont_wrap">
|
||||
<!-- 일정관리 -->
|
||||
<div class="s0301">
|
||||
<!--#include file="inc_calendar.asp"-->
|
||||
<!-- 일정리스트 -->
|
||||
<div class="sche_list">
|
||||
<table class="table2">
|
||||
<colgroup>
|
||||
<col width="30%" />
|
||||
<col width="*" />
|
||||
<col width="20%" />
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">날짜</th>
|
||||
<th scope="col">일정내용</th>
|
||||
<th scope="col">문자설정</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
<div class="list_box">
|
||||
<table class="table2">
|
||||
<colgroup>
|
||||
<col width="30%" />
|
||||
<col width="*" />
|
||||
<col width="20%" />
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<%
|
||||
If isnull(rs) Then
|
||||
%>
|
||||
<tr>
|
||||
<td colspan="3">일정이 없습니다.</td>
|
||||
</tr>
|
||||
<%
|
||||
else
|
||||
For i = 0 To ubound( rs )
|
||||
ST.arr2Value( rs(i) )
|
||||
b_date = b_sdate
|
||||
If b_sdate <> b_edate Then
|
||||
b_date = b_date & "<br />~ " & b_edate
|
||||
End If
|
||||
|
||||
href = "02_01.asp?b_num=" & b_num
|
||||
href = href & "&prepage=" & server.urlencode(NOWPAGE)
|
||||
href = href & "&p_year=" & server.urlencode(v_year)
|
||||
href = href & "&p_month=" & server.urlencode(v_month)
|
||||
%>
|
||||
<tr>
|
||||
<th scope="row"><%=b_date%></th>
|
||||
<td style="text-align:left;padding:0px 10px 0px 10px;"><a href="<%=href%>"><%=b_subject%></a></td>
|
||||
<td><input type="checkbox" id="checkbox-11-<%=i%>" <%=chkRadio(b_temp1, "Y")%> onclick="alarmOk(this);" data-b_num="<%=b_num%>" /><label for="checkbox-11-<%=i%>"></label></td>
|
||||
</tr>
|
||||
<%
|
||||
next
|
||||
End if
|
||||
%>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="btngroup">
|
||||
<ul class="btn_nrm column1">
|
||||
<%
|
||||
href = "02_01.asp?prepage=" & server.urlencode(NOWPAGE)
|
||||
href = href & "&p_year=" & server.urlencode(v_year)
|
||||
href = href & "&p_month=" & server.urlencode(v_month)
|
||||
%>
|
||||
<li><a href="<%=href%>" class="nrm1">일정쓰기</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //일정리스트 -->
|
||||
</div>
|
||||
<!-- //일정관리 -->
|
||||
</div>
|
||||
<!-- //내용 -->
|
||||
|
||||
<!--#include virtual="/common/file/bottom.asp"-->
|
||||
<%
|
||||
function todaySchedule( thisdate )
|
||||
|
||||
Dim ST
|
||||
Dim sql, cnt
|
||||
Set ST = New SelectTable
|
||||
|
||||
where_query = " where b_sdate <= '" & thisdate & "' AND b_edate >='" & thisdate & "' and b_id = '" & SESSION("ss_m_id") & "' "
|
||||
sql = "select count(*) as cnt from " & tablename & where_query
|
||||
cnt = ST.selectQueryColumn( sql )
|
||||
|
||||
todaySchedule = cnt
|
||||
|
||||
End function
|
||||
%>
|
||||
@@ -0,0 +1,230 @@
|
||||
<!--#include virtual="/common/file/inc_head.asp"-->
|
||||
<%
|
||||
v_year = InputValue( request.querystring("p_year") )
|
||||
v_month = InputValue( request.querystring("p_month") )
|
||||
|
||||
if v_year = "" then
|
||||
intThisYear = Year(now)
|
||||
else
|
||||
intThisYear = v_year
|
||||
End if
|
||||
|
||||
if v_month = "" then
|
||||
intThisMonth = Right( "0" & Month(now), 2 )
|
||||
else
|
||||
intThisMonth = Right( "0" & v_month, 2 )
|
||||
End if
|
||||
|
||||
intThisMonth2 = intThisMonth '//1~9숫자 앞에 0붙이기
|
||||
|
||||
gday = Right("0"&Day(now), 2) '//오늘날짜
|
||||
datFirstDay = Weekday( DateSerial( intThisYear, intThisMonth, 1 ) ) '//요일 구하기 (num)
|
||||
intLastDay = Day( DateSerial( intThisYear, intThisMonth+1, 1-1 ) ) '//마지막날 구하기
|
||||
jucnt = Round( ( ( datFirstDay + intLastDay) / 7 ) + 0.5, 0 )
|
||||
|
||||
'response.write jucnt
|
||||
|
||||
'// 이전, 다음 만들기
|
||||
If CInt( intThisMonth ) = 1 Then
|
||||
prevYear = intThisYear - 1
|
||||
Else
|
||||
prevYear = intThisYear
|
||||
End if
|
||||
|
||||
If CInt( intThisMonth ) = 1 Then
|
||||
prevMonth = 12
|
||||
Else
|
||||
prevMonth = CInt(intThisMonth) - 1
|
||||
End if
|
||||
|
||||
If intThisMonth = 12 Then
|
||||
nextYear = intThisYear + 1
|
||||
Else
|
||||
nextYear = intThisYear
|
||||
End if
|
||||
|
||||
If intThisMonth = 12 Then
|
||||
nextMonth = 1
|
||||
Else
|
||||
nextMonth = intThisMonth + 1
|
||||
End if
|
||||
|
||||
|
||||
%>
|
||||
<!-- 타이틀 -->
|
||||
<div id="cont_head">
|
||||
<h2>일정관리</h2>
|
||||
</div>
|
||||
<!-- //타이틀 -->
|
||||
<!-- 내용 -->
|
||||
<div id="cont_wrap">
|
||||
<!-- 일정관리 -->
|
||||
<div class="s0301">
|
||||
<div class="calen">
|
||||
<ul class="sl_area">
|
||||
<li>
|
||||
<select class="select_basic" style="width:120px;">
|
||||
<option>2017년</option>
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<select class="select_basic" style="width:80px;">
|
||||
<option>5월</option>
|
||||
</select>
|
||||
</li>
|
||||
</ul>
|
||||
<table class="table1">
|
||||
<colgroup>
|
||||
<col width="15%" />
|
||||
<col width="14%" />
|
||||
<col width="14%" />
|
||||
<col width="14%" />
|
||||
<col width="14%" />
|
||||
<col width="14%" />
|
||||
<col width="15%" />
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">일</th>
|
||||
<th scope="col">월</th>
|
||||
<th scope="col">화</th>
|
||||
<th scope="col">수</th>
|
||||
<th scope="col">목</th>
|
||||
<th scope="col">금</th>
|
||||
<th scope="col">토</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td><a href="#">1</a></td>
|
||||
<td><a href="#">2</a></td>
|
||||
<td><a href="#">3</a></td>
|
||||
<td><a href="#">4</a></td>
|
||||
<td><a href="#">5</a></td>
|
||||
<td><a href="#">6</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="#">7</a></td>
|
||||
<td><a href="#">8</a></td>
|
||||
<td><a href="#">9</a></td>
|
||||
<td><a href="#">10</a></td>
|
||||
<td><a href="#" class="today sch_on">TODAY</a></td>
|
||||
<td><a href="#">12</a></td>
|
||||
<td><a href="#">13</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="#">14</a></td>
|
||||
<td><a href="#">15</a></td>
|
||||
<td><a href="#" class="sch_on">16</a></td>
|
||||
<td><a href="#">17</a></td>
|
||||
<td><a href="#">18</a></td>
|
||||
<td><a href="#">19</a></td>
|
||||
<td><a href="#">20</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="#">21</a></td>
|
||||
<td><a href="#">22</a></td>
|
||||
<td><a href="#">23</a></td>
|
||||
<td><a href="#">24</a></td>
|
||||
<td><a href="#">25</a></td>
|
||||
<td><a href="#">26</a></td>
|
||||
<td><a href="#">27</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="#">28</a></td>
|
||||
<td><a href="#">29</a></td>
|
||||
<td><a href="#">30</a></td>
|
||||
<td><a href="#">31</a></td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- 일정리스트 -->
|
||||
<div class="sche_list">
|
||||
<table class="table2">
|
||||
<colgroup>
|
||||
<col width="30%" />
|
||||
<col width="*" />
|
||||
<col width="20%" />
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">날짜</th>
|
||||
<th scope="col">일정내용</th>
|
||||
<th scope="col">문자설정</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
<div class="list_box">
|
||||
<table class="table2">
|
||||
<colgroup>
|
||||
<col width="30%" />
|
||||
<col width="*" />
|
||||
<col width="20%" />
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">2017-04-05 ~ 2017-04-05</th>
|
||||
<td>조심히 다녀올게요 뿌잉뿌잉</td>
|
||||
<td><input type="checkbox" id="checkbox-11-1" checked="checked" disabled="disabled" /><label for="checkbox-11-1"></label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">2017-04-05 ~ 2017-04-05</th>
|
||||
<td>조심히 다녀올게요 뿌잉뿌잉</td>
|
||||
<td><input type="checkbox" id="checkbox-11-2" checked="checked" disabled="disabled" /><label for="checkbox-11-2"></label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">2017-04-05 ~ 2017-04-05</th>
|
||||
<td>조심히 다녀올게요 뿌잉뿌잉</td>
|
||||
<td><input type="checkbox" id="checkbox-11-3" checked="checked" disabled="disabled" /><label for="checkbox-11-3"></label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">2017-04-05 ~ 2017-04-05</th>
|
||||
<td>조심히 다녀올게요 뿌잉뿌잉</td>
|
||||
<td><input type="checkbox" id="checkbox-11-4" checked="checked" disabled="disabled" /><label for="checkbox-11-4"></label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">2017-04-05 ~ 2017-04-05</th>
|
||||
<td>조심히 다녀올게요 뿌잉뿌잉</td>
|
||||
<td><input type="checkbox" id="checkbox-11-5" disabled="disabled" /><label for="checkbox-11-5"></label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">2017-04-05 ~ 2017-04-05</th>
|
||||
<td>조심히 다녀올게요 뿌잉뿌잉</td>
|
||||
<td><input type="checkbox" id="checkbox-11-5" disabled="disabled" /><label for="checkbox-11-5"></label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">2017-04-05 ~ 2017-04-05</th>
|
||||
<td>조심히 다녀올게요 뿌잉뿌잉</td>
|
||||
<td><input type="checkbox" id="checkbox-11-5" disabled="disabled" /><label for="checkbox-11-5"></label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">2017-04-05 ~ 2017-04-05</th>
|
||||
<td>조심히 다녀올게요 뿌잉뿌잉</td>
|
||||
<td><input type="checkbox" id="checkbox-11-5" disabled="disabled" /><label for="checkbox-11-5"></label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">2017-04-05 ~ 2017-04-05</th>
|
||||
<td>조심히 다녀올게요 뿌잉뿌잉</td>
|
||||
<td><input type="checkbox" id="checkbox-11-5" disabled="disabled" /><label for="checkbox-11-5"></label></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="btngroup">
|
||||
<ul class="btn_nrm column1">
|
||||
<li><a <%=menu03_0201%> class="nrm1">일정쓰기</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //일정리스트 -->
|
||||
</div>
|
||||
<!-- //일정관리 -->
|
||||
</div>
|
||||
<!-- //내용 -->
|
||||
|
||||
<!--#include virtual="/common/file/bottom.asp"-->
|
||||
@@ -0,0 +1,198 @@
|
||||
<!--#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"-->
|
||||
@@ -0,0 +1,39 @@
|
||||
<!--#include virtual="/common/lib/dbcon.asp"-->
|
||||
<!-- #Include virtual = "/common/lib/func.asp" -->
|
||||
<%
|
||||
Dim b_num, b_temp1
|
||||
|
||||
a_num = InputValue( request("a_num") )
|
||||
b_num = InputValue( request("b_num") )
|
||||
b_temp1 = InputValue( request("b_temp1") )
|
||||
|
||||
|
||||
'기존 문자알람 삭제
|
||||
sql = "delete from em_tran where tran_etc2 = '" & a_num & "_" & b_num & "'"
|
||||
executeQuery( sql )
|
||||
|
||||
If b_temp1 = "Y" then
|
||||
|
||||
Set ST = New SelectTable
|
||||
sql = "select b_subject, b_sdate, b_temp2, b_temp3, b_temp4, b_phone1, b_phone2, b_phone3 from board_1 where b_num = '" & b_num & "'"
|
||||
Set rs = ST.selectQueryRecord( sql )
|
||||
ST.arr2Value( rs )
|
||||
|
||||
tran_phone = b_phone1 & b_phone2 & b_phone3
|
||||
RDate = b_temp2 & " " & b_temp3 & ":" & b_temp4
|
||||
tran_callback = "15449642"
|
||||
Msg = "일정:"& b_sdate & vbcrlf & b_subject
|
||||
s_num = a_num & "_" & b_num
|
||||
|
||||
If tran_phone <> "" then '예약발송
|
||||
Call SmsSend(tran_phone, tran_callback, Msg, RDate, s_num)
|
||||
End if
|
||||
End if
|
||||
|
||||
Set UT = New UpdateTable
|
||||
u_fields = "b_temp1"
|
||||
UT.tableName = "board_1"
|
||||
UT.whereQuery = " where b_num = '" & b_num & "' "
|
||||
UT.setFieldsValues(u_fields)
|
||||
UT.execute()
|
||||
%>
|
||||
@@ -0,0 +1,169 @@
|
||||
<%
|
||||
Set ST = New SelectTable
|
||||
|
||||
if v_year = "" then
|
||||
intThisYear = Year(now)
|
||||
else
|
||||
intThisYear = v_year
|
||||
End if
|
||||
|
||||
if v_month = "" then
|
||||
intThisMonth = Right( "0" & Month(now), 2 )
|
||||
else
|
||||
intThisMonth = Right( "0" & v_month, 2 )
|
||||
End if
|
||||
|
||||
intThisMonth2 = intThisMonth '//1~9숫자 앞에 0붙이기
|
||||
|
||||
gday = Right("0"&Day(now), 2) '//오늘날짜
|
||||
datFirstDay = Weekday( DateSerial( intThisYear, intThisMonth, 1 ) ) '//요일 구하기 (num)
|
||||
intLastDay = Day( DateSerial( intThisYear, intThisMonth+1, 1-1 ) ) '//마지막날 구하기
|
||||
jucnt = Round( ( ( datFirstDay + intLastDay) / 7 ) + 0.5, 0 )
|
||||
|
||||
'response.write jucnt
|
||||
|
||||
'// 이전, 다음 만들기
|
||||
If CInt( intThisMonth ) = 1 Then
|
||||
prevYear = intThisYear - 1
|
||||
Else
|
||||
prevYear = intThisYear
|
||||
End if
|
||||
|
||||
If CInt( intThisMonth ) = 1 Then
|
||||
prevMonth = 12
|
||||
Else
|
||||
prevMonth = CInt(intThisMonth) - 1
|
||||
End if
|
||||
|
||||
If intThisMonth = 12 Then
|
||||
nextYear = intThisYear + 1
|
||||
Else
|
||||
nextYear = intThisYear
|
||||
End if
|
||||
|
||||
If intThisMonth = 12 Then
|
||||
nextMonth = 1
|
||||
Else
|
||||
nextMonth = intThisMonth + 1
|
||||
End if
|
||||
|
||||
%>
|
||||
<div class="calen">
|
||||
<form id="frm_search" name="frm_search" method="get" action="01_01.asp">
|
||||
<ul class="sl_area">
|
||||
<li>
|
||||
<select id="p_year" name="p_year" class="select_basic" style="width:120px;" onchange="this.form.submit();">
|
||||
<%
|
||||
For i = 2010 To year(now)+1
|
||||
%>
|
||||
<option value="<%=i%>" <%=chkSelect(intThisYear, i)%>><%=i%>년</option>
|
||||
<%
|
||||
next
|
||||
%>
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<select id="p_month" name="p_month" class="select_basic" style="width:80px;" onchange="this.form.submit();">
|
||||
<%
|
||||
For i = 1 To 12
|
||||
i_value = Right("0"&i, 2)
|
||||
%>
|
||||
<option value="<%=i_value%>" <%=chkSelect(intThisMonth, i_value)%>><%=i_value%>월</option>
|
||||
<%
|
||||
next
|
||||
%>
|
||||
</select>
|
||||
</li>
|
||||
</ul>
|
||||
</form>
|
||||
<table class="table1">
|
||||
<colgroup>
|
||||
<col width="15%" />
|
||||
<col width="14%" />
|
||||
<col width="14%" />
|
||||
<col width="14%" />
|
||||
<col width="14%" />
|
||||
<col width="14%" />
|
||||
<col width="15%" />
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">일</th>
|
||||
<th scope="col">월</th>
|
||||
<th scope="col">화</th>
|
||||
<th scope="col">수</th>
|
||||
<th scope="col">목</th>
|
||||
<th scope="col">금</th>
|
||||
<th scope="col">토</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<%
|
||||
|
||||
'cal = CInt(a_width) / 7
|
||||
day1 = (-1 * datFirstDay)+2 '//날수1
|
||||
|
||||
For ju = 1 to jucnt '//주간 7개 돌리공..
|
||||
%>
|
||||
|
||||
<tr>
|
||||
<%
|
||||
for i = 1 to 7
|
||||
'//글자색
|
||||
|
||||
Select Case i
|
||||
Case 1 : tcolor="sun"
|
||||
Case 7 : tcolor="sat"
|
||||
Case Else
|
||||
tcolor = ""
|
||||
End select
|
||||
|
||||
'//날짜계산
|
||||
If day1 > 0 and day1 <= intLastDay then
|
||||
cday = day1
|
||||
else
|
||||
cday = ""
|
||||
End If
|
||||
|
||||
day_class = ""
|
||||
|
||||
If cday <> "" Then
|
||||
thisdate = dateserial(intThisYear, intThisMonth, cday)
|
||||
If Date() = thisdate Then
|
||||
day_class = "today " 'sch_on
|
||||
cday = "TODAY"
|
||||
End If
|
||||
|
||||
cnt = todaySchedule( thisdate )
|
||||
If cnt <> "0" Then
|
||||
day_class = day_class & "sch_on"
|
||||
End if
|
||||
End If
|
||||
%>
|
||||
<td><a href="#day" class="<%=day_class%>"><%=cday%></a></td>
|
||||
<%
|
||||
day1 = day1 + 1
|
||||
next
|
||||
%>
|
||||
</tr>
|
||||
|
||||
<%next%>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<%
|
||||
function todaySchedule( thisdate )
|
||||
|
||||
Dim ST
|
||||
Dim sql, cnt
|
||||
Set ST = New SelectTable
|
||||
|
||||
where_query = " where b_sdate <= '" & thisdate & "' AND b_edate >='" & thisdate & "' and b_id = '" & SESSION("ss_m_id") & "' "
|
||||
sql = "select count(*) as cnt from " & tablename & where_query
|
||||
cnt = ST.selectQueryColumn( sql )
|
||||
|
||||
todaySchedule = cnt
|
||||
|
||||
End function
|
||||
%>
|
||||
@@ -0,0 +1,156 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr" />
|
||||
<title>대구유아교육진흥원 직원전용문자전송시스템</title>
|
||||
<style type="text/css">
|
||||
<!--
|
||||
body {margin-left: 0px; margin-top: 0px;}
|
||||
.style1 {font-family: "돋움"; font-size: 11px;color: #FFFFFF;}
|
||||
.style4 { font-family: "돋움"; font-size: 11px; color: #FFFFFF}
|
||||
.style5 {font-family: "돋움"; font-size: 11px; color: #ffe50c;font-weight: bold;}
|
||||
.style7 {font-family: "돋움"; font-size: 11px; color: #2865ae;font-weight: bold;}
|
||||
.style9 {font-family: "돋움"; font-size: 11px; color: #666666; }
|
||||
.style11 {font-family: "돋움"; font-size: 11px; color: #4888a0; font-weight: bold;}
|
||||
.style12 {font-family: "돋움"; font-size: 11px; color: #333333; font-weight: bold;}
|
||||
.style13 {font-family: "돋움"; font-size: 12px; color: #FFFFFF;}
|
||||
-->
|
||||
</style>
|
||||
<script type="text/JavaScript">
|
||||
<!--
|
||||
function MM_preloadImages() { //v3.0
|
||||
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
|
||||
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
|
||||
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
|
||||
}
|
||||
|
||||
function MM_swapImgRestore() { //v3.0
|
||||
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
|
||||
}
|
||||
|
||||
function MM_findObj(n, d) { //v4.01
|
||||
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
|
||||
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
|
||||
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
|
||||
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
|
||||
if(!x && d.getElementById) x=d.getElementById(n); return x;
|
||||
}
|
||||
|
||||
function MM_swapImage() { //v3.0
|
||||
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
|
||||
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body style="background:url(/sms_img/common/bg.jpg) no-repeat" onload="MM_preloadImages('/sms_img/common/lmenu_0102_on.gif','/sms_img/common/lmenu_0103_on.gif','/sms_img/common/lmenu_b01_on.gif','/sms_img/common/lmenu_b02_on.gif','/sms_img/common/lmenu_b03_on.gif','/sms_img/common/lmenu_b04_on.gif','/sms_img/common/menu01_on.gif','/sms_img/common/menu02_on.gif','/sms_img/common/menu03_on.gif','/sms_img/common/menu04_on.gif','/sms_img/common/menu05_on.gif')">
|
||||
|
||||
<!-- 상단 부분-->
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="976" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td height="115" colspan="2" align="left" valign="top" style="background:url(/sms_img/common/navi_bg.jpg) no-repeat;">
|
||||
<table width="976" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="275" rowspan="2" style="padding:25px 0 0 26px;"><a href="sms.html"><img src="/sms_img/common/logo.gif" width="212" height="41" border="0" /></a></td>
|
||||
<td>
|
||||
<table width="669" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td style="padding-top:26px;" height="27" width="75"><span class="style5">전지은</span> <span class="style4">님 </span></td>
|
||||
<td style="padding-top:31px;" width="75"><span class="style1">남은 문자수</span></td>
|
||||
<td style="padding-top:26px;" width="60"><span class="style7">99건</span> </td>
|
||||
<td style="padding-top:26px;"><span class="style1">개인정보수정</span> <img src="/sms_img/common/icon.gif" width="4" height="10" border="0" /></td>
|
||||
<td> </td>
|
||||
<td width="92" align="right" valign="top" style="padding-top:26px;"><a href="#"><img src="/sms_img/common/top_btn01.gif" border="0" /></a></td>
|
||||
<td width="89" align="right" valign="top" style="padding-top:26px;"><a href="#"><img src="/sms_img/common/top_btn02.gif" border="0" /></a></td>
|
||||
<td width="75" align="right" valign="top" style="padding-top:26px;"><a href="advice.html"><img src="/sms_img/common/top_btn03.gif" border="0" /></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" valign="top">
|
||||
<table width="454" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td align="left" valign="top" ><a href="sms.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image21','','/sms_img/common/menu01_on.gif',1)"><img src="/sms_img/common/menu01.gif" name="Image21" width="120" height="62" border="0" id="Image21" /></a></td>
|
||||
<td><a href="schedule.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image22','','/sms_img/common/menu02_on.gif',1)"><img src="/sms_img/common/menu02.gif" name="Image22" width="119" height="62" border="0" id="Image22" /></a></td>
|
||||
<td><a href="address.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image23','','/sms_img/common/menu03_on.gif',1)"><img src="/sms_img/common/menu03.gif" name="Image23" width="96" height="62" border="0" id="Image23" /></a></td>
|
||||
<!--<td><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image24','','/sms_img/common/menu04_on.gif',1)"><img src="/sms_img/common/menu04.gif" name="Image24" width="105" height="62" border="0" id="Image24" /></a></td>-->
|
||||
<td><a href="notice.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image25','','/sms_img/common/menu05_on.gif',1)"><img src="/sms_img/common/menu05.gif" name="Image25" width="120" height="62" border="0" id="Image25" /></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="left" valign="top"><img src="/sms_img/common/visual.jpg" width="976" height="92" /></td>
|
||||
</tr>
|
||||
|
||||
<!-- left menu 부분-->
|
||||
<tr>
|
||||
<td width="198" align="left" valign="top">
|
||||
<table width="226" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td style="background:url(/sms_img/common/lmenu_bg.gif) repeat-y">
|
||||
<table width="182" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="156" align="left" valign="top"><img src="/sms_img/common/lmenu_top02.gif" width="156" height="169" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image8','','/sms_img/common/lmenu_0201_on.gif',0)"><img src="/sms_img/common/lmenu_0201.gif" name="Image8" width="156" height="36" border="0" id="Image8" /></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top:67px;">
|
||||
<table width="156" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><a href="notice.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image11','','/sms_img/common/lmenu_b01_on.gif',1)"><img src="/sms_img/common/lmenu_b01.gif" name="Image11" width="78" height="49" border="0" id="Image11" /></a></td>
|
||||
<td><a href="sms.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image12','','/sms_img/common/lmenu_b02_on.gif',1)"><img src="/sms_img/common/lmenu_b02.gif" name="Image12" width="78" height="49" border="0" id="Image12" /></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="schedule.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image13','','/sms_img/common/lmenu_b03_on.gif',1)"><img src="/sms_img/common/lmenu_b03.gif" name="Image13" width="78" height="49" border="0" id="Image13" /></a></td>
|
||||
<td><a href="address.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image14','','/sms_img/common/lmenu_b04_on.gif',1)"><img src="/sms_img/common/lmenu_b04.gif" name="Image14" width="78" height="49" border="0" id="Image14" /></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top:20px;"><a href="advice.html"><img src="/sms_img/common/lmenu_ban01.jpg" width="156" height="63" border="0" /></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top:15px;"><a href="/" target="_blank"><img src="/sms_img/common/lmenu_ban02.gif" width="156" height="36" border="0" /></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
|
||||
|
||||
<!-- 컨텐츠 부분-->
|
||||
<td width="720" align="left" valign="top">
|
||||
<table width="720" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="560" align="left" valign="top" style="padding-bottom:30px;"><img src="/sms_img/sub/stit_02.gif" width="97" height="69" /></td>
|
||||
<td width="300" align="right" valign="bottom" style="padding-bottom:30px;"><img src="/sms_img/sub/home.gif" width="14" height="10" /><img src="/sms_img/sub/arrow.gif" width="14" height="10" /><span class="style11">일정관리</span></td>
|
||||
</tr>
|
||||
|
||||
<!-- 핸드폰 전송 부분-->
|
||||
<tr>
|
||||
<td>
|
||||
<span class="style9">현재 준비중입니다.</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user