<!--#include virtual="/manager/common/file/other_top.asp"-->
<!--#include file="config.asp"-->
<script type="text/javascript" src="/common/js/04ebook.js"></script>
<%

' 파라미터정보 *************************************************************************************
eb_idx		= InputValue(request("eb_idx")) ' --Pk
' **************************************************************************************************


If eb_idx <> "" then ' --수정상태일때..
	
	' 레코드필드
	R_Fields		= "eb_idx, eb_subject, eb_skin, eb_logoimg, eb_wdate, eb_mdate, eb_chk, eb_viewtype"
	R_tablename_str	= "ebook "
	R_WHERE_str		= " WHERE eb_idx="&eb_idx

	Call SelectQuery (R_Fields, R_tablename_str, R_WHERE_str)

	reset_url = "list.asp?"&page_info
	is_title_str = "이북 정보 수정"


Else ' 새글등록
	
	eb_chk		= "Y"
	eb_skin		= "1"
	eb_viewtype	= "1"

	reset_url = "write.asp"
	is_title_str = "신규 이북 생성"

End if

%>
		
		



		<!-- 내용영역 -->
		<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> &gt; <a href="/manager/content/04popup/list.asp" tabindex="<%=getTabIndex()%>">부가기능</a> &gt; <a href="list.asp" tabindex="<%=getTabIndex()%>">이북관리</a> &gt; <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%>" enctype="multipart/form-data" onsubmit="return w_chk();">
				<div>
				<input type="hidden" name="eb_idx" value="<%=eb_idx%>" />
				<input type="hidden" name="eb_logoimg_org" value="<%=eb_logoimg%>" />
				<input type="hidden" name="eb_chk" value="<%=eb_chk%>" />
				
				</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="eb_subject">제목</label></th>
							<td class="left"><input type="text" size="90" title="제목 입력" id="eb_subject" name="eb_subject" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=eb_subject%>" maxlength="50" onkeyup='document.getElementById("subject_skin").value = this.value;' tabindex="<%=getTabIndex()%>" /></td>
						</tr>
						<tr>
							<th scope="row">스킨설정</th>
							<td class="left" style="padding-top:14px;padding-bottom:14px;">
								<label for="eb_skin_1"><input type="radio" id="eb_skin_1" name="eb_skin" value="1" title="1번 스킨 선택" <%if eb_skin = "1" then response.write "checked='checked'" end if %> tabindex="<%=getTabIndex()%>" /><img src="/manager/img/ebook_skin1.gif" width="158" height="125" class="img_center" alt="1번 스킨 선택" /></label>&nbsp;
								<label for="skin_2"><input type="radio" id="eb_skin_2" name="eb_skin" value="2" title="2번 스킨 선택" <%if eb_skin = "2" then response.write "checked='checked'" end if %>  tabindex="<%=getTabIndex()%>" /><img src="/manager/img/ebook_skin2.gif" width="158" height="125" class="img_center" alt="2번 스킨 선택" /></label>&nbsp;
								<label for="skin_3"><input type="radio" id="eb_skin_3" name="eb_skin" value="3" title="3번 스킨 선택" <%if eb_skin = "3" then response.write "checked='checked'" end if %>  tabindex="<%=getTabIndex()%>" /><img src="/manager/img/ebook_skin3.gif" width="158" height="125" class="img_center" alt="3번 스킨 선택" /></label>&nbsp;								<br /><br />
								<label for="skin_4"><input type="radio" id="eb_skin_4" name="eb_skin" value="4" title="4번 스킨 선택" <%if eb_skin = "4" then response.write "checked='checked'" end if %>  tabindex="<%=getTabIndex()%>" /><img src="/manager/img/ebook_skin4.gif" width="158" height="125" class="img_center" alt="4번 스킨 선택" /></label>&nbsp;
								<label for="skin_5"><input type="radio" id="eb_skin_5" name="eb_skin" value="5" title="5번 스킨 선택" <%if eb_skin = "5" then response.write "checked='checked'" end if %>  tabindex="<%=getTabIndex()%>" /><img src="/manager/img/ebook_skin5.gif" width="158" height="125" class="img_center" alt="5번 스킨 선택" /></label>&nbsp;
								<label for="skin_6"><input type="radio" id="eb_skin_6" name="eb_skin" value="6" title="6번 스킨 선택" <%if eb_skin = "6" then response.write "checked='checked'" end if %>  tabindex="<%=getTabIndex()%>" /><img src="/manager/img/ebook_skin6.gif" width="158" height="125" class="img_center" alt="6번 스킨 선택" /></label>&nbsp;
							</td>
						</tr>
						<tr>
							<th scope="row">페이지 형태</th>
							<td class="left"><label for="eb_viewtype_1"><input type="radio" id="eb_viewtype_1" name="eb_viewtype" value="1" title="일반형 선택" <%if eb_viewtype = "1" then response.write "checked='checked'" end if %> tabindex="<%=getTabIndex()%>" /> 일반형</label>&nbsp;

								<label for="eb_viewtype_2"><input type="radio" id="eb_viewtype_2" name="eb_viewtype" value="0" title="PT형선택" <%if eb_viewtype = "0" then response.write "checked='checked'" end if %>  tabindex="<%=getTabIndex()%>" /> PT형</label></td>
						</tr>

						<%If eb_idx = "" then ' 등록일때만..%>
						<tr>
							<th scope="row"><label for="eb_pages">기본 페이지수</label></th>
							<td class="left"><input type="text" size="4" title="페이지수 입력" id="eb_pages" name="eb_pages" class="input_box" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="<%=subject%>" maxlength="200" onkeyup='document.getElementById("subject_skin").value = this.value;' tabindex="<%=getTabIndex()%>" /> 개 <span class="text1">* 페이지보기화면에서 추가가능</span></td>
						</tr>
						<%End if%>
						<tr>
							<th scope="row"><label for="eb_logoimg">로고 이미지 파일</label></th>
							<td class="left">
								<input type="file" size="42" id="eb_logoimg" name="eb_logoimg" title="로고 이미지 찾아보기" class="input_box_file" onfocus="focus_on1_<%=skin%>(this);" onblur="focus_off1(this);" value="" tabindex="<%=getTabIndex()%>"/> <span class="text1">* 권장 사이즈 : 150 픽셀 x 48 픽셀 이하</span>

								<%If eb_logoimg <> "" then%>
									<br/><img src = "/data/ebook/logo/<%=eb_logoimg%>" alt="<%=eb_logoimg%>" /></a>
									&nbsp;<input type='checkbox' name='eb_logoimg_del' value='<%=eb_logoimg%>' tabindex="<%=getTabIndex()%>" />삭제
								<%End if%>
							</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"-->