90 lines
3.4 KiB
Plaintext
90 lines
3.4 KiB
Plaintext
<!-- #include File="./include/Header.asp"-->
|
|
<%
|
|
|
|
Server.ScriptTimeOut = 60 * 5
|
|
Dim SQL,Rcset
|
|
Dim ObjCmd : set ObjCmd = Server.CreateObject("ADODB.Command")
|
|
Set Rcset = Server.CreateObject("ADODB.RecordSet")
|
|
Call DBConnect2()
|
|
|
|
|
|
%>
|
|
|
|
<style>
|
|
.bd-example {
|
|
padding: 1.0rem;
|
|
margin-right: 0;
|
|
margin-left: 0;
|
|
border-width: 1px;
|
|
border-top-left-radius: 0.25rem;
|
|
border-top-right-radius: 0.25rem;
|
|
}
|
|
.li_list:hover {
|
|
background-color: gold;
|
|
}
|
|
</style>
|
|
|
|
<body>
|
|
<div class="container">
|
|
<div class="row justify-content-md-center p-3">
|
|
<div class="col-xl-12 col-lg-offset-6 mt-5">
|
|
<div class="login-panel panel panel-default">
|
|
<div class="panel-heading">
|
|
<h3 class="panel-title"></h3>
|
|
</div>
|
|
<div class="p-3 border rounded shadow-sm">
|
|
<div class="d-flex align-items-center">
|
|
<span style="width:20%" class="p-1"><img src="/img/non_logo.png" style="width:100%"/></span>
|
|
</div>
|
|
<hr>
|
|
<div class="row bd-example d-flex align-items-center">
|
|
<%
|
|
|
|
SQL = " SELECT pkey, gkey, JSON_VALUE(PROJECTJSON, '$.must.title') title, json_query(PROJECTJSON) PROJECTJSON FROM kon.dbo.PROJECT p with(nolock) "
|
|
SQL = SQL & " WHERE JSON_VALUE(PROJECTJSON, '$.must.surveytype') = '3' "
|
|
SQL = SQL & " AND JSON_VALUE(PROJECTJSON, '$.must.status') = '2' "
|
|
SQL = SQL & " ORDER BY pkey desc "
|
|
Rcset.Open SQL,DBConn,3,1,1
|
|
Dim p_title, p_pkey
|
|
IF Rcset.eof or Rcset.bof THEN
|
|
%>
|
|
<div class="col-9 " >진행중인 설문이 없습니다.</div>
|
|
<%
|
|
ELSE
|
|
While Not Rcset.eof
|
|
'response.write Rcset("title")
|
|
p_title = Rcset("title")
|
|
p_pkey = Rcset("pkey")
|
|
%>
|
|
<div class="row col-12 bd-example li_list" >
|
|
<div class="col-9" ><%=p_title %></div>
|
|
<div class="col-3" >
|
|
<button class="btn btn-sm btn-outline-primary w-100" type="button" onclick="in_click('<%=p_pkey %>');window.location.href='/project/<%=p_pkey %>/INDEX.asp';">설문조사 참여하기</button>
|
|
</div>
|
|
</div>
|
|
<%
|
|
Rcset.movenext
|
|
wend
|
|
'response.write "[" & Rcset("PROJECTJSON") & "]"
|
|
END IF
|
|
%>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
|
|
</html>
|
|
|
|
<script>
|
|
function in_click(a){
|
|
clklog("wi11u215oh", a,"","/gang.asp","","");
|
|
}
|
|
|
|
</script>
|
|
|
|
<!-- #include Virtual="/include/footer.asp" -->
|