<%@ page language="VB" autoeventwireup="false" inherits="parrot_admin_new_diaocha, App_Web_admin_new_diaocha.aspx.25f04327" %>
<head>
<title>投票管理</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<!--#include file="js/tanboxf4.inc"-->
<link href="css/css.css" rel="stylesheet" type="text/css" />
<link href="css/body.css" rel="stylesheet" type="text/css" />
<link href="css/text.css" rel="stylesheet" type="text/css" />
<link href="css/button.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
document.oncontextmenu=new Function('event.returnValue=false;'); 
</script>
</head>
<body>
<form id="form1" runat="server">
<table width="100%" border="0" cellspacing="3" cellpadding="0">
  <tr>
    <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td bgcolor="#E7E7E7"><table width="100%" border="0" cellspacing="1" cellpadding="0">
            <tr>
              <td bgcolor="#FFFFFF"><table width="100%" height="29" border="0" cellpadding="0" cellspacing="5">
                  <tr>
                    <td height="19" bgcolor="#EBEBEB"><table width="100%" border="0" cellspacing="8" cellpadding="0">
                        <tr>
                          <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="3" cellpadding="0">
                              <tr>
                                <td width="15%" height="25" align="center" class="wuse16"><strong class="16huise">管理中心</strong></td>
                                <td width="76%" valign="bottom" class="huise12">投票管理</td>
                                <td width="9%" valign="bottom" class="huise12">&nbsp;</td>
                              </tr>
                          </table></td>
                        </tr>
                    </table></td>
                  </tr>
              </table></td>
            </tr>
            
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
<fieldset style="margin:10px 5px 5px 5px; padding:0px 5px 5px 5px;">
<legend class="wuse12"><strong>添加新投票</strong></legend>

<table width="100%" border="1" cellpadding="0" cellspacing="1" bordercolor="#E7E7E7" style="margin-top:5px;">
  <tr>
    <td width="17%" height="30" align="center" bgcolor="#F6F6F6"><span class="lanse12">投票标题：</span></td>
    <td  height="30"><asp:TextBox ID="wn_dc_bt" runat="server" 
                                                  CssClass="text_autox22_cccccc" width="250px" MaxLength="16"></asp:TextBox>
      &nbsp;
      <asp:Button 
                                                  ID="wn_dc_ok" runat="server" Text="添加一个投票项" CssClass="btn" Height="23px" />
      <asp:Label ID="wn_dc_ts" runat="server" CssClass="hongse12"></asp:Label>
    </td>
  </tr>
</table>
</fieldset>
<fieldset style="margin:10px 5px 5px 5px; padding:0px 5px 5px 5px;">
<legend class="wuse12"><strong>已建立的投票项</strong></legend>

<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:5px;">
  <tr>
    <td><% For i = 0 To new_dc_tb.Rows.Count - 1%>
        <table width="100%" border="0" cellpadding="0" cellspacing="3" onMouseOver="this.bgColor='#DBDBDB';" onMouseOut="this.bgColor='#D7F7FF';" bgcolor="#D7F7FF">
          <tr>
            <td width="3%" align="center"><img src="image/gif-0900_2.gif" width="12" height="17" /></td>
            <td class="wuse12"><%=new_dc_tb.Rows(i).Item("wn_dc_bt")%></td>
            <td width="18%" align="center" class="wuse12"><a href="?url=over&id=<%=new_dc_tb.Rows(i).Item("wn_dc_id")%>">清空投票结果</a></td>
            <td width="18%" align="center" class="wuse12"><a href="javascript:ShowHtmlString(570,138,'admin_upnew_diaocha.aspx?admin_url=add&fid=<%=new_dc_tb.Rows(i).Item("wn_dc_id")%>','添加投票选项');" >添加投票选项</a></td>
            <td width="14%" class="wuse12"><a href="javascript:ShowHtmlString(570,138,'admin_upnew_diaocha.aspx?admin_url=up_new_dc&id=<%=new_dc_tb.Rows(i).Item("wn_dc_id")%>','修改投票选项');" >修改</a>　|　<a href="?url=delete&id=<%=new_dc_tb.Rows(i).Item("wn_dc_id")%>" onClick="javascrip:return confirm('你确认要删除此投票项目吗？');">删除</a> </td>
          </tr>
          <tr>
            <td colspan="6" bgcolor="#CCCCCC"><img src="image/bj/gli.gif" width="22" height="1" /></td>
          </tr>
        </table>
      <%
                                              new_dc_tbs = ubb.tables("select * from wn_new_dc where wn_dc_fid=" & new_dc_tb.Rows(i).Item("wn_dc_id"))
                                              For j = 0 To new_dc_tbs.Rows.Count - 1%>
        <table width="100%" border="0" cellpadding="0" cellspacing="3" onMouseOver="this.bgColor='#DBDBDB';" onMouseOut="this.bgColor='#F7F7F7';" bgcolor="#F7F7F7">
          <tr>
            <td width="5%" align="right">&nbsp;</td>
            <td width="1%" align="right"><img src="image/gif-0900.gif" width="12" height="17" /></td>
            <td class="wuse12"><%=new_dc_tbs.Rows(j).Item("wn_dc_bt")%>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [<%=new_dc_tbs.Rows(j).Item("wn_dc_int")%>]</td>
            <td width="14%" align="center" class="wuse12"><a href="javascript:ShowHtmlString(570,138,'admin_upnew_diaocha.aspx?admin_url=up_new_dc&id=<%=new_dc_tbs.Rows(j).Item("wn_dc_id")%>','修改投票选项');" >修改</a>　|　<a href="?url=deletes&fid=<%=new_dc_tbs.Rows(j).Item("wn_dc_id")%>" onClick="javascrip:return confirm('你确认要删除此投票选项吗？');">删除</a> </td>
          </tr>
          <tr>
            <td colspan="5" bgcolor="#CCCCCC"><img src="image/bj/gli.gif" width="22" height="1" /></td>
          </tr>
        </table>
      <%next%>
        <%next%></td>
  </tr>
</table>
</fieldset>

    </form>
</body>