158 lines
4.9 KiB
Plaintext
158 lines
4.9 KiB
Plaintext
<!-- #include virtual = "lib/config.asp" -->
|
|
<%
|
|
|
|
|
|
dim n1, n2, n11, n22
|
|
dim tvals : tvals=""
|
|
dim tchecks : tchecks=""
|
|
dim tmsg : tmsg=""
|
|
dim thtmls : thtml="<table style=""width:500px;"" cellpadding=""5"" cellspacing=""0"" border=""1"" style=""border-collapse:collapse;"" >"
|
|
|
|
|
|
For Each s In request.form
|
|
'-- response.write s &":"& request.form(s)&"<br>"
|
|
if left(s,4)="smo_" then
|
|
|
|
if request.form(s)<>"" and tmsg="" then
|
|
|
|
thtml=thtml&"<tr bgcolor=""#dbe9f2"" ><td colspan=""2""><b>"
|
|
thtml=thtml& replace(s,"smo_field_set_","")&" [<font color=blue>"&request.form(replace(s,"smo_",""))&"</font>]"
|
|
thtml=thtml&"</b></td></tr>"
|
|
thtml=thtml&"<tr bgcolor=""#dbe9f2"" ><td width=""50"" >보기코드</td><td>보기라벨</td></tr>"
|
|
tchecks=""
|
|
n11=split(request.form(s),vbCrLf)
|
|
for n1=0 to ubound(n11)
|
|
if trim(n11(n1))<>"" then
|
|
|
|
|
|
n22=split(n11(n1)," ")
|
|
if ubound(n22)=1 then
|
|
|
|
if trim(n22(0))<>"" then '-- 코드가 있는경우만
|
|
|
|
if instr(trim(tchecks),":"&trim(n22(0))&":")>0 then '-- 코드중복인 경우
|
|
'-- tmsg=trim(tchecks)&"===:"&trim(n22(0))&":"&"검증문항의 보기코드가 중복되는 내용이 있습니다. 확인하시기 바랍니다"
|
|
tmsg="검증문항의 보기코드가 중복되는 내용이 있습니다. 확인하시기 바랍니다"
|
|
exit for
|
|
|
|
else '-- 정상
|
|
|
|
'for n2=0 to ubound(n22)
|
|
' '-- response.write n22(n2)&":"
|
|
'next
|
|
'response.write "<br>"
|
|
tchecks=tchecks&":"&n22(0)&":" '-- 코드중복 체크변수
|
|
tvals=tvals&s&"♬"&n22(0)&"♬"&n22(1)&vbCrLf
|
|
thtml=thtml&"<tr>"&"<td width=""50"" ><font color=red>"&n22(0)&"</font></td><td>"&n22(1)&"</td></tr>"
|
|
|
|
end if
|
|
end if
|
|
|
|
end if
|
|
|
|
|
|
end if
|
|
next
|
|
end if
|
|
|
|
end if
|
|
next
|
|
|
|
thtml=thtml&"</table>"
|
|
|
|
|
|
|
|
%>
|
|
<meta http-equiv="Content-Type" content="application/vnd.ms-excel;charset=euc-kr">
|
|
<meta http-equiv="Expires" content="Mon, 06 Jan 1990 00:00:01 GMT">
|
|
<meta http-equiv="Expires" content="-1">
|
|
<meta http-equiv="Pragma" content="no-cache">
|
|
<meta http-equiv="Cache-Control" content="no-cache">
|
|
<title><%=GNB_TITLE%></title>
|
|
<link rel="stylesheet" type="text/css" href="../css/basic.css">
|
|
<script src="/js/jquery.min.js"></script>
|
|
<script src="/js/jquery-ajax-call.js"></script>
|
|
<script src="/js/jquery.form.min.js"></script>
|
|
<script language="javascript" src="../js/common.js"></script>
|
|
<script language=javascript>
|
|
|
|
|
|
function js_init(x,xmsg){
|
|
|
|
|
|
if(xmsg!=""){
|
|
alert(xmsg);
|
|
return;
|
|
}
|
|
|
|
|
|
parent.name = "parentPage"
|
|
x.target = "parentPage"; // 타켓을 부모창으로 설정
|
|
x.action = "punching_field_setting_reg_check_view.asp";
|
|
x.submit();
|
|
|
|
//return;
|
|
|
|
// 검증문항 보기정보(코드,라벨) 확인
|
|
/*
|
|
var url = "punching_field_setting_reg_check_view.asp";
|
|
|
|
var pwidth=800;
|
|
var pheight=700;
|
|
var tleft=(screen.width-pwidth)/2;
|
|
var ttop=(screen.height-pheight)/2;
|
|
|
|
winObj=window.open("", "wins3", "left="+tleft+", top="+ttop+", menubar=no, location=no, status=no, toolbar=no, width="+pwidth+", height="+pheight+", scrollbars=yes ,resizable=no");
|
|
|
|
x.action = url;
|
|
x.target = 'wins3';
|
|
x.submit();
|
|
*/
|
|
// window.open('about:blank','_self').self.close();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
</head>
|
|
<body onclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" ondblclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" onload="javascript:js_init(fname,'<%=tmsg%>');" >
|
|
<form name='fname' method='post' >
|
|
<input type="hidden" name="pn_cd" value="<%=request.form("pn_cd")%>" ><!-- 펀칭코드 -->
|
|
<input type="hidden" name="pu_type" value="<%=request.form("pu_type")%>" ><!-- 펀칭타입 -->
|
|
<input type="hidden" name="pu_area" value="<%=request.form("pu_area")%>" ><!-- 펀칭지역 -->
|
|
|
|
<input type="hidden" name="tvals" id="tvals" value='<%=replace(replace(tvals,"'",""),"""","")%>' />
|
|
<input type="hidden" name="thtml" id="thtml" value='<%=replace(replace(thtml,"'",""),"""","")%>' />
|
|
|
|
<!----------------------------------------------------------------->
|
|
<%
|
|
For Each s In request.form
|
|
if request.form(s)<>"" then
|
|
select case s
|
|
case "field_set_x_type","field_set_x_id","field_set_x_name"
|
|
%>
|
|
<input type="hidden" name="<%=s%>" value="<%=request.form(s)%>" >
|
|
|
|
<%case else %>
|
|
|
|
<% if (request.form("bno")<>replace(s,"field_set_","")) and instr(s,"field_set_")>0 then %>
|
|
<input type="hidden" name="<%=s%>" value="<%=request.form(s)%>" >
|
|
<% end if %>
|
|
|
|
|
|
<% end select %>
|
|
<%end if%>
|
|
|
|
<% next %>
|
|
<input type="hidden" name="uno" value="<%=request.form("uno")%>" >
|
|
<input type="hidden" name="bno" value="<%=request.form("bno")%>" >
|
|
<input type="hidden" name="bno2" value="<%=request.form("bno2")%>" >
|
|
<!----------------------------------------------------------------->
|
|
</form>
|
|
</body>
|
|
</html>
|