roycms_tp.aspx

来自「ROYcms 是国内CMS市场的新秀、也是国内少有的采用微软的ASP.NET 2」· ASPX 代码 · 共 682 行 · 第 1/3 页

ASPX
682
字号
                
                
                <tr>
                  <td height="41" align="right" nowrap="nowrap" class="text">项目连接地址:</td>
                  <td align="left"><asp:TextBox ID="link_url" runat="server" CssClass="input" Height="18px" 
            Width="278px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
            Display="Dynamic" ErrorMessage="请填写项目连接地址" ControlToValidate="link_url" ValidationGroup="01"></asp:RequiredFieldValidator>
                  </td>
                  <td>&nbsp;</td>
                </tr>
                
                
                
                <tr>
                  <td height="41" align="right" nowrap="nowrap" class="text">&nbsp;</td>
                  <td align="left"><asp:Button ID="Button1" runat="server" Text="添加该项目" CssClass="bt" 
            Height="29px" Width="121px" OnClick="Button1_Click" ValidationGroup="01" />
                  </td>
                  <td>&nbsp;</td>
                </tr>
                
                </asp:Panel>
              </table>
            </div>
            <!--选项卡一结束-->
            <div class="TabbedPanelsContent">
            <table width="100%" border="0" cellspacing="5" cellpadding="5">
              <tr>
                <td height="47"><span class="huise">项目管理帮助:请明确每一步操作的情况下进行下一步。每个操作都可能影响到正在进行中的投票结果。</span></td>
              </tr>
            </table>
            
            <asp:Panel ID="Panel_edit_date" runat="server" Visible="false">
              <div class="xm_list">
                <table width="100%" border="0" align="center" cellpadding="3" cellspacing="0">
                 
                  
                  <tr>
                    <td width="16%" height="41" align="right" nowrap="nowrap" class="text">项目图片:</td>
                    <td width="52%" align="left"><asp:TextBox ID="edit_date_img" runat="server" CssClass="input" Height="18px" 
                        Width="278px"></asp:TextBox>
                      <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                        Display="Dynamic" ErrorMessage="请选填写目形象图片"  ControlToValidate="edit_date_img"
                                  ValidationGroup="05"></asp:RequiredFieldValidator>
                    </td>
                    <td width="32%">&nbsp;</td>
                  </tr>
                  
                  
                  <tr>
                    <td height="30" align="right" nowrap="nowrap" class="text">项目名称:</td>
                    <td align="left"><asp:TextBox ID="edit_names" runat="server" CssClass="input" Height="18px" 
                        Width="278px"></asp:TextBox>
                      <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                        Display="Dynamic" ErrorMessage="请填写项目名称" ControlToValidate="edit_names" ValidationGroup="05"></asp:RequiredFieldValidator>
                    </td>
                    <td>&nbsp;</td>
                  </tr>
                  
                  
                  <tr>
                    <td height="30" align="right" nowrap="nowrap" class="text">项目描述:</td>
                    <td align="left"><asp:TextBox ID="edit_characterization" runat="server" Height="68px" TextMode="MultiLine" 
                        Width="360px" CssClass="input"></asp:TextBox>
                      <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" 
                        Display="Dynamic" ErrorMessage="请填写项目描述" 
                        ControlToValidate="edit_characterization" ValidationGroup="05"></asp:RequiredFieldValidator>
                    </td>
                    <td>&nbsp;</td>
                  </tr>
                  
                  
                  <tr>
                    <td height="30" align="right" nowrap="nowrap" class="text">项目连接地址:</td>
                    <td align="left"><asp:TextBox ID="edit_link_url" runat="server" CssClass="input" Height="18px" 
                        Width="278px"></asp:TextBox>
                      <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" 
                        Display="Dynamic" ErrorMessage="请填写项目连接地址" ControlToValidate="edit_link_url" ValidationGroup="05"></asp:RequiredFieldValidator>
                    </td>
                    <td>&nbsp;</td>
                  </tr>
                  
                  
                  <tr>
                    <td height="30" align="right" nowrap="nowrap" class="text">请选择分组:</td>
                    <td align="left">

                        <asp:DropDownList ID="DropDownList_edit_date" runat="server">
                        </asp:DropDownList> 
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" 
                        Display="Dynamic" ErrorMessage="请选择分组" ControlToValidate="DropDownList_edit_date" ValidationGroup="05"></asp:RequiredFieldValidator>
                    </td>
                    <td>&nbsp;</td>
                  </tr>
                  <tr>
                    <td height="30" align="right" nowrap="nowrap" class="text">票数:</td>
                    <td align="left"><asp:TextBox ID="edit_date_p" runat="server" CssClass="input" Height="18px" 
                        Width="60px"></asp:TextBox>
                      <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" 
                        Display="Dynamic" ErrorMessage="请填写票数" ControlToValidate="edit_date_p" ValidationGroup="05"></asp:RequiredFieldValidator>
                        
        
                    </td>
                    <td>&nbsp;</td>
                  </tr>
                  <tr>
                    <td height="30" align="right" nowrap="nowrap" class="text">&nbsp;</td>
                    <td align="left"><asp:Button ID="Button_edit_date" runat="server" Text="确认编辑" CssClass="bt" 
                        Height="29px" Width="121px" ValidationGroup="05" onclick="Button_edit_date_Click" />
                    </td>
                    <td>&nbsp;</td>
                  </tr>
                </table>
              </div>
            </asp:Panel>
            <asp:Repeater ID="Repeater_xmlist" runat="server">
              <HeaderTemplate>
                <div class="xm_list">
                <table border="0" cellpadding="0" cellspacing="0" width="98%">
              </HeaderTemplate>
              <ItemTemplate>
                <tbody><tbody  ><tbody  ><tbody  ><tbody  ><tbody  ><tbody  ><tbody  ><tbody  ><tbody  ><tbody  ><tbody  ><tbody  ><tr class="xm_list">
                    <td> 项目名称: [
                      <a href='<%#Eval("link_url").ToString().Trim() %>' target="_blank">
                        <span class="text"><%#Eval("names").ToString().Trim() %></span>
                      </a>
                        ] </td>
                    <td> 入库时间: [ <%#Eval("datetime") %>] </td>
                    <td> 票数: <%#Eval("ballot") %>
                    </td>
                    <td> 状态:<%# Eval("y").ToString()=="1"?"已审":"未审" %>
                    </td>
                    <td><a href='?id=<%#Eval("id")%>&t=del' onClick="return window.confirm('确定删除吗?');" >
                        删除</a>
                        |
                      <a href='?id=<%#Eval("id")%>&z_id=<%#Eval("z_id")%>&t=date_edit' >编辑</a>
                        |
                      <a href='?tp_id=<%#Eval("id")%>' target="_blank" >投一票</a>
                      <%# Eval("y").ToString() == "1" ? "" : no(Eval("id").ToString())%>
                    </td>
                  </tr>
              </ItemTemplate>
              <FooterTemplate>
                </table>
                </div>
              </FooterTemplate>
            </asp:Repeater>
            <br />
          </div>
          <div class="TabbedPanelsContent">
            <table width="100%" border="0" cellspacing="5" cellpadding="5">
              <tr>
                <td height="47"><span class="huise">项目添加帮助:项目的添加分 
                    形象图片,项目名称,项目描述,项目的链接地址,可以在发布时根据自己的需要来理解项目的定义。</span></td>
              </tr>
            </table>
            <table width="100%" height="160" border="0" cellpadding="5" cellspacing="0">
              <tr>
                <td width="21%" align="right" nowrap="nowrap">&nbsp;</td>
                <td width="79%" nowrap="nowrap"><asp:CheckBox ID="CheckBox1" runat="server" Text="是否启用参与投票者调查"/></td>
              </tr>
              <tr>
                <td align="right" nowrap="nowrap">&nbsp;</td>
                <td nowrap="nowrap"><asp:CheckBox ID="CheckBox_IP_Y" runat="server"  Text="是否限制IP重复投票"/></td>
              </tr>
              <tr>
                <td height="38" align="right" nowrap="nowrap" class="text">限制同一IP投票的间隔时间:</td>
                <td nowrap="nowrap"><asp:TextBox ID="config_time" runat="server" 
                CssClass="input" Height="18px" Width="160px"></asp:TextBox>
                  <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                ErrorMessage="请填写限制同一IP投票的间隔时间" ControlToValidate="config_time" 
                      Display="Dynamic" validationgroup="02" ></asp:RequiredFieldValidator>
                  <span class="link">(秒为单位,例:如果是30分钟就填写30*60=1800)</span></td>
              </tr>
              <tr>
                <td align="right" nowrap="nowrap" class="text">投票的项目图片存放路径:</td>
                <td nowrap="nowrap"><asp:TextBox ID="TP_upfile" runat="server" CssClass="input" Height="18px" Width="160px" ></asp:TextBox></td>
              </tr>
              <tr>
                <td align="right" nowrap="nowrap" class="text">项目缩略图图宽和高:</td>
                <td nowrap="nowrap"><asp:TextBox ID="TP_upfile_w_h" runat="server" CssClass="input" Height="18px" Width="160px"></asp:TextBox></td>
              </tr>
              <tr>
                <td align="right" nowrap="nowrap" class="text">投票之后返回页面:</td>
                <td nowrap="nowrap"><asp:TextBox ID="TP_Redirect" runat="server" CssClass="input" Height="18px" Width="160px"></asp:TextBox></td>
              </tr>
              
              <tr>
                <td align="right" nowrap="nowrap" class="text">管理密码修改:</td>
                <td nowrap="nowrap"><asp:TextBox ID="admin_password" runat="server" CssClass="input" Height="18px" Width="160px"></asp:TextBox></td>
              </tr>
              <tr>
                <td align="right" nowrap="nowrap" class="text">&nbsp;</td>
                <td nowrap="nowrap"><asp:Button ID="Button2" runat="server" Text="确认设置" CssClass="bt" 
                Height="25px" Width="88px" OnClick="Button2_Click" OnClientClick="return window.confirm('确定要更新配置吗?');" validationgroup="02" /></td>
              </tr>
            </table>
          </div>
          <div class="TabbedPanelsContent">
            <table width="100%" border="0" cellspacing="5" cellpadding="5">
              <tr>
                <td height="47"><span class="huise">项目添加帮助:项目的添加分 
                    形象图片,项目名称,项目描述,项目的链接地址,可以在发布时根据自己的需要来理解项目的定义。</span></td>
              </tr>
            </table>
            <table width="100%" height="267" border="0" cellpadding="5" cellspacing="5">
              <tr>
                <td width="16%" height="48" rowspan="2" align="right" nowrap="nowrap" class="text">
                    项目模式设置:</td>
                <td width="84%">
                    &nbsp;<asp:CheckBox ID="CheckBoxA" runat="server" Checked="True" Text="简单(不选)/全能(选择)" />
                </td>
              </tr>
              <tr>
                <td><asp:RadioButtonList ID="RadioButtonListX" runat="server" 
                        RepeatDirection="Horizontal">
                  <asp:ListItem Value="0" Selected="True">多选投票</asp:ListItem>
                  <asp:ListItem Value="1">单选投票</asp:ListItem>
                </asp:RadioButtonList></td>
              </tr>
              <tr>
                <td height="47" align="right" nowrap="nowrap" class="text">项目组名称:</td>
                <td><asp:TextBox ID="group_name" runat="server" 
                CssClass="input" Height="18px" Width="280px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                          ControlToValidate="group_name" Display="Dynamic" 
                          ErrorMessage="请填写项目组名称" validationgroup="03"></asp:RequiredFieldValidator></td>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?