<%side_vote_list_show=site.object_p%>
<!-- object[<%=site.object_p%>]::side_vote_list_show -->
<%
site.object(site.object_p).rs.open "SELECT * from jins_vote_list where vote_open=1",conn,1,1
%>
<table cellpadding="0" cellspacing="0" width="1" height="170" <%=site.object(site.object_p).style%>>
	<tr><td height="29" valign="top"><img border="0" src="<%=site.object(site.object_p).image%>/menu.gif" width="175" height="47"></td></tr>
	<tr>
		<td height="123" valign="top" align="center" style="padding-top: 5px;padding-bottom: 5px">
		<table cellpadding="0" cellspacing="0" width="163" style="border: 1px solid #E3E3E3" >
			<tr>
				<td height="116" >
<%
if site.object(site.object_p).rs.eof then
    response.write "<center>ΤέΞήΝΆΖ±" 
else
	do while not site.object(site.object_p).rs.eof 
		if site.object(site.object_p).rs("vote_option")<>"" then
		
		   vote_option=split(site.object(site.object_p).rs("vote_option"),",")
		   vote_option_num=ubound(vote_option)
			
		   response.write "<table border='0' width='100%' cellspacing='2' cellpadding='2'>"
		   response.write "<tr>" 
		   response.write "<td width=100% align='center' style='padding-bottom: 5px;padding-top: 5px;border-bottom: 1px solid #E3E3E3'>"&site.object(site.object_p).rs("vote_title")&"</td>"
		   response.write "</tr>"
		   response.write "<form action='do.asp?tr=vote|submit&vote_id="&site.object(site.object_p).rs("vote_id")&"' target='newwindow' method=post name=research_"&site.object(site.object_p).rs("vote_id")&">"
		   response.write "<tr>"
		   response.write "<td valign=top width='100%'style='padding-left: 10px;padding-bottom: 10px;padding-top: 10px;border-bottom: 1px solid #E3E3E3'>"
			
			for vote_option_n=0 to vote_option_num
				if vote_option(vote_option_n)<>"" then
						   response.write "<input style='border: 0' "
						   if  vote_option_n=0 then    response.write "checked "
						   response.write "name=vote_option type=radio value="&vote_option_n&">"
						   response.write " "&vote_option(vote_option_n)&"<br>"
				end if
			next
			
		   response.write "</td>"
		   response.write "</tr>"
		   response.write "<tr> "
		   response.write "<td width='100%' height=19 align=center style='padding-bottom: 3px;padding-top: 8px;'> "
		   response.write "<input type='image' border='0' name='submit' src='"&site.object(site.object_p).image&"/vote1.gif' width='59' height='19' style='cursor:hand'>  "
		   response.write "<a href='temp.asp?tr=vote|result&vote_id="&site.object(site.object_p).rs("vote_id")&"' target='_blank'><img src='"&site.object(site.object_p).image&"/vote.gif' width='59' height='19' border='0'></a> "
		   response.write "</td>"
		   response.write "</tr>"
		   response.write "</form>"
		   response.write "</table><br>"
		
		end if
		site.object(site.object_p).rs.movenext
	loop
	site.object(site.object_p).rs.close
end if
%>
				</td>
			</tr>
		</table>
		</td>
	</tr>
</table>