최초등록
This commit is contained in:
@@ -0,0 +1,236 @@
|
||||
<!-- #include virtual="/manager/common/file/other_top.asp" -->
|
||||
<!-- #include virtual="/fckeditor/fckeditor.asp" -->
|
||||
<script type="text/javascript" src="/common/js/04popup.js"></script>
|
||||
|
||||
<!-- 권한 체크 -->
|
||||
<!-- #include file="config.asp" -->
|
||||
|
||||
<%
|
||||
|
||||
' 파라미터정보 *************************************************************************************
|
||||
idx = InputValue(request("idx")) ' --Pk
|
||||
' **************************************************************************************************
|
||||
|
||||
|
||||
|
||||
If idx <> "" then ' --수정상태일때..
|
||||
|
||||
' 레코드필드
|
||||
R_Fields = "w_width, w_height, w_top, w_left, ck_chk, ck_val, scrollbars, toolbar, menubar, locations, w_chk, subject, content, wdate, mdate, sdate, edate, tot_chk"
|
||||
R_tablename_str = "popup "
|
||||
R_WHERE_str = " WHERE idx="&idx
|
||||
|
||||
Call SelectQuery (R_Fields, R_tablename_str, R_WHERE_str)
|
||||
|
||||
reset_url = "list.asp?"&page_info
|
||||
is_title_str = "팝업 정보 수정"
|
||||
|
||||
Else ' 새글등록
|
||||
|
||||
w_width = "400"
|
||||
w_height = "400"
|
||||
w_top = "0"
|
||||
w_left = "0"
|
||||
ck_chk = "Y"
|
||||
|
||||
reset_url = "write.asp"
|
||||
is_title_str = "신규 팝업 생성"
|
||||
|
||||
End If
|
||||
|
||||
|
||||
If ck_chk = "" Then v_open = "none"
|
||||
|
||||
|
||||
If sdate = "" then
|
||||
|
||||
sdate_y = Year(now)
|
||||
sdate_m = Month(now)
|
||||
sdate_d = Day(now)
|
||||
|
||||
else
|
||||
|
||||
sdate_arr = split(sdate,"-")
|
||||
|
||||
sdate_y = sdate_arr(0)
|
||||
sdate_m = sdate_arr(1)
|
||||
sdate_d = sdate_arr(2)
|
||||
|
||||
End if
|
||||
|
||||
If edate = "" then
|
||||
|
||||
nm = DateAdd("m",1, now)
|
||||
|
||||
edate_y = Year(nm)
|
||||
edate_m = month(nm)
|
||||
edate_d = day(nm)
|
||||
|
||||
else
|
||||
|
||||
edate_arr = split(edate, "-")
|
||||
|
||||
edate_y = edate_arr(0)
|
||||
edate_m = edate_arr(1)
|
||||
edate_d = edate_arr(2)
|
||||
|
||||
End if
|
||||
|
||||
If Len(MM)=1 Then MM = "0"&MM
|
||||
If Len(DD)=1 Then DD = "0"&DD
|
||||
|
||||
%>
|
||||
|
||||
|
||||
<!-- 내용영역 -->
|
||||
<div id="contents">
|
||||
|
||||
<div id="contents_head">
|
||||
<div id="contents_title">
|
||||
<img src="/manager/img/tit_ic06.gif" width="22" height="21" class="<%=skin%> center" alt="" /><h1><span><%=is_title_str%></span></h1>
|
||||
</div>
|
||||
<div id="location">
|
||||
<a href="/manager/" tabindex="<%=getTabIndex()%>">Home</a> > <a href="/manager/content/04popup/list.asp" tabindex="<%=getTabIndex()%>">부가기능</a> > <a href="/manager/content/04popup/list.asp" tabindex="<%=getTabIndex()%>">팝업관리</a> > <a href="write.asp" class="now" tabindex="<%=getTabIndex()%>"><%=is_title_str%></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 내용들어가는곳 -->
|
||||
<div id="contents_area">
|
||||
|
||||
<form id="frm" method="post" action="write_ok.asp?<%=page_info%>" onsubmit="return w_chk();">
|
||||
<div>
|
||||
<input type="hidden" name="idx" value="<%=idx%>" />
|
||||
</div>
|
||||
|
||||
<h2 class="space"></h2>
|
||||
|
||||
|
||||
<fieldset>
|
||||
<legend>팝업생성 서식 작성</legend>
|
||||
<table cellspacing="0" class="bbs_<%=skin%>" summary="신규 팝업 생성을 위한 입력 양식입니다.">
|
||||
<caption>팝업생성 서식</caption>
|
||||
<colgroup>
|
||||
<col width="140" />
|
||||
<col width="580" />
|
||||
</colgroup>
|
||||
<tr>
|
||||
<th scope="row"><label for="subject">제목</label></th>
|
||||
<td class="left"><input type="text" size="90" title="제목 입력" id="subject" name="subject" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=subject%>" maxlength="200" tabindex="<%=getTabIndex()%>"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="sdate_y">사용기간</label></th>
|
||||
<td class="left">
|
||||
<select id="sdate_y" name="sdate_y" title="시작 사용기간(년)을 선택" tabindex="<%=getTabIndex()%>">
|
||||
<% For z=2009 To Year(now)+5 %>
|
||||
<option value="<%=z%>" <%If z = Int(sdate_y) Then response.write "selected='selected'" End if%>><%=z%>년</option>
|
||||
<% next%>
|
||||
</select>
|
||||
<select id="sdate_m" name="sdate_m" title="시작 사용기간(월)을 선택" tabindex="<%=getTabIndex()%>">
|
||||
<% For z=1 To 12 %>
|
||||
<option value="<%=z%>" <%If z = Int(sdate_m) Then response.write "selected='selected'" End if%>><%=z%>월</option>
|
||||
<% next%>
|
||||
</select>
|
||||
<select id="sdate_d" name="sdate_d" title="시작 사용기간(일)을 선택" tabindex="<%=getTabIndex()%>">
|
||||
<% For z=1 To 31 %>
|
||||
<option value="<%=z%>" <%If z = Int(sdate_d) Then response.write "selected='selected'" End If %>><%=z%>일</option>
|
||||
<% next%>
|
||||
</select>
|
||||
~
|
||||
<select id="edate_y" name="edate_y" title="종료 사용기간(년)을 선택" tabindex="<%=getTabIndex()%>">
|
||||
<% For z=2009 To Year(now)+5 %>
|
||||
<option value="<%=z%>" <%If z = Int(edate_y) Then response.write "selected='selected'" End If %>><%=z%>년</option>
|
||||
<% next%>
|
||||
</select>
|
||||
<select id="edate_m" name="edate_m" title="종료 사용기간(월)을 선택" tabindex="<%=getTabIndex()%>">
|
||||
<% For z=1 To 12 %>
|
||||
<option value="<%=z%>" <%If z = Int(edate_m) Then response.write "selected='selected'" End If %>><%=z%>월</option>
|
||||
<% next%>
|
||||
</select>
|
||||
<select id="edate_d" name="edate_d" title="종료 사용기간(일)을 선택" tabindex="<%=getTabIndex()%>">
|
||||
<% For z=1 To 31 %>
|
||||
<option value="<%=z%>" <%If z = Int(edate_d) Then response.write "selected='selected'" End If %>><%=z%>일</option>
|
||||
<% next%>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="w_width">팝업창 크기</label></th>
|
||||
<td class="left">가로 <input type="text" size="4" title="팝업창 가로사이즈 입력" id="w_width" name="w_width" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" maxlength="4" value="<%=w_width%>" tabindex="<%=getTabIndex()%>"/> <span class="eng">pixel</span> 세로 <input type="text" size="4" title="팝업창 세로사이즈 입력" id="w_height" name="w_height" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" maxlength="4" value="<%=w_height%>" tabindex="<%=getTabIndex()%>" /> <span class="eng">pixel</span> <span class="text1">* 픽셀(pixel) 단위만 사용하실 수 있습니다. </span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="w_top">위치지정</label></th>
|
||||
<td class="left">상단 <input type="text" size="4" title="팝업창 가로위치 입력" id="w_top" name="w_top" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" maxlength="4" value="<%=w_top%>" tabindex="<%=getTabIndex()%>" /> <span class="eng">pixel</span> 좌측 <input type="text" size="4" title="팝업창 세로위치 입력" id="w_left" name="w_left" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" maxlength="4" value="<%=w_left%>" tabindex="<%=getTabIndex()%>" /> <span class="eng">pixel</span> <span class="text1">* 픽셀(pixel) 단위만 사용하실 수 있습니다. </span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">환경설정</th>
|
||||
<td class="left">
|
||||
<input type="checkbox" name="scrollbars" title="스크롤바사용" value="Yes" <%if scrollbars = "Yes" Then response.write "checked='checked'" End if %> tabindex="<%=getTabIndex()%>" />스크롤바사용
|
||||
<input type="checkbox" name="toolbar" title="툴바사용" value="Yes" <%if toolbar = "Yes" then response.write "checked='checked'" end if %> tabindex="<%=getTabIndex()%>" />툴바사용
|
||||
<input type="checkbox" name="menubar" title="메뉴바사용" value="Yes" <%if menubar = "Yes" then response.write "checked='checked'" end if %> tabindex="<%=getTabIndex()%>" />메뉴바사용
|
||||
<input type="checkbox" name="locations" title="주소창사용" value="Yes" <%if locations = "Yes" then response.write "checked='checked'" end if %> tabindex="<%=getTabIndex()%>" />주소창사용
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">쿠키값설정</th>
|
||||
<td class="left">
|
||||
[다음에 창열지 않기] 사용
|
||||
<label for="ck_chk_Y"><input type="radio" id="ck_chk_Y" name="ck_chk" value="Y" title="사용 선택" onclick="document.getElementById('ck').style.display='block'" <%if ck_chk = "Y" Then response.write "checked='checked'" End if %> tabindex="<%=getTabIndex()%>" />사용</label>
|
||||
<label for="ck_chk_N"><input type="radio" id="ck_chk_N" name="ck_chk" value="N" title="사용안함 선택" onclick="document.getElementById('ck').style.display='none'" <%if ck_chk = "N" Then response.write "checked='checked'" End If %> tabindex="<%=getTabIndex()%>" />사용안함</label>
|
||||
|
||||
<div id="ck" style="display:block;" class="pt4">
|
||||
<table cellspacing="0" class="bbs_2step" summary="팝업창 쿠키값 기간(일)설정">
|
||||
<colgroup>
|
||||
<col width="240" />
|
||||
<col width="60" />
|
||||
</colgroup>
|
||||
<tr>
|
||||
<th scope="row"><label for="ck_val">팝업창을 며칠동안 열지 않겠습니까?</label></th>
|
||||
<td class="left"><input type="text" size="3" title="창을 열지않을 기간(일) 입력" id="ck_val" name="ck_val" class="input_box" onfocus="focus_on1_<%=skin%>(this);" maxlength="3" value="<%=ck_val%>" tabindex="<%=getTabIndex()%>" /> 일</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<%If ck_chk = "N" then%>
|
||||
<script type='text/javascript'>
|
||||
<!--
|
||||
document.getElementById('ck').style.display='none';
|
||||
//-->
|
||||
</script>
|
||||
<%End if%>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" class="textarea">
|
||||
<%
|
||||
|
||||
session("fck_filepath") = "/data/popup/" '업로드 경로(동적경로를 위해 세션사용)
|
||||
'response.write session("fck_filepath")
|
||||
Set oFCKeditor = New FCKeditor
|
||||
oFCKeditor.BasePath = "/fckeditor/"
|
||||
oFCKeditor.value = content
|
||||
oFCKeditor.ToolbarSet = "Basic"
|
||||
oFCKeditor.Create "content"
|
||||
%>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="contoll_box">
|
||||
<div id="<%=skin%>_bt"><span class="button"><input type="submit" value="등록" tabindex="<%=getTabIndex()%>" /></span> <span class="button"><input type="button" value="취소" onclick="page_go1('<%=reset_url%>');" tabindex="<%=getTabIndex()%>" /></span></div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
<!-- 내용들어가는곳 -->
|
||||
|
||||
</div>
|
||||
<!-- //내용영역 -->
|
||||
|
||||
|
||||
<!--#include virtual = "/manager/common/file/sub_bottom.asp"-->
|
||||
Reference in New Issue
Block a user