<%@ Page Title="" Language="VB" MasterPageFile="~/App_MasterPage/mpManager.master" AutoEventWireup="false" CodeFile="VoteSubject.aspx.vb" Inherits="Manager_Vote_VoteSubject" %>
<%@ Register assembly="ControlPageing" namespace="ControlPageing" tagprefix="cc1" %>
<%@ Register assembly="iCalendar" namespace="iCalendar" tagprefix="cc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="chpPageTitle" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="chpHead" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="chpScript" Runat="Server">
<script type="text/javascript" src="/App_Themes/ManagerTheme/Js/jquery.min.js"></script> 
<script type="text/javascript" src="/App_Themes/ManagerTheme/js/lhgdialog.min.js"></script>
<script language="javascript" type="text/jscript">
            function ShowFileDilag() {
                $.dialog({
                    lock: true,
                    title: '选择文件',
                    content: 'url:/Manager/FileExplorer.aspx?Path=/Sites/Site<%=BaseFunction.PublicMethod.GetApplication("SiteID") %>/Upload/',
                    width: '800px',
                    height: '500px',
                    max: false,
                    min: false
                });
            }
            function callBack(FilePath) {
                $('#<%=txtSubPictrue.ClientID %>').attr('value', FilePath);
            }
</script>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="chpTitle" Runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="chpContent" Runat="Server">
    <asp:MultiView ID="MultiView1" runat="server">
        <asp:View ID="View_Edit" runat="server">
    	    <table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0" class="line_table">
    	    <tr>
                    <td align="right" width="20%">问卷标题：</td>
                    <td width="30%">
                        <asp:TextBox ID="txtTitle" runat="server"  Width="96%" ></asp:TextBox>
                    </td>
                    <td width="50%"><font color="red">*</font></td>
                </tr>
	    	<tr>
                    <td align="right" width="20%">答题时间：</td>
                    <td width="30%">
                        <asp:TextBox ID="txtTimeLimt" runat="server"  Width="30%" ></asp:TextBox>
                        秒</td>
                    <td width="50%"><font color="red">小于等于零时将不在计时</font></td>
                </tr>	    	<tr>
                    <td align="right" width="20%">结束日期：</td>
                    <td width="30%">
                        <cc2:ICalendar ID="icFailTime" runat="server" />
                    </td>
                    <td width="50%"><font color="red"></font></td>
                </tr>	    	<tr>
                    <td align="right" width="20%">允许重复提交：</td>
                    <td width="30%">
                        <asp:CheckBox ID="cbIsRepeat" runat="server" Text="是" />
                    </td>
                    <td width="50%"><font color="red">*</font></td>
                </tr>	    	<tr>
                    <td align="right" width="20%">是否公开：</td>
                    <td width="30%">
                        <asp:CheckBox ID="cbIsOpen" runat="server" Text="是" />
                    </td>
                    <td width="50%"><font color="red">*</font></td>
                </tr>
                <tr>
                    <td align="right" width="20%">图片：</td>
                    <td width="30%">
                        <asp:TextBox ID="txtSubPictrue" runat="server"  Width="96%" ></asp:TextBox>
                    </td>
                    <td width="50%"><a style="line-height:30px;" href="javascript:ShowFileDilag();">浏览</a></td>
                </tr>	    	<tr>
                    <td align="right" width="20%" style="vertical-align:top; line-height:25px;">问卷描述：</td>
                    <td width="30%">
                        <asp:TextBox ID="txtSubNote" runat="server"  Width="96%" Height="126px" 
                            TextMode="MultiLine" ></asp:TextBox>
                    </td>
                    <td width="50%"><font color="red"></font></td>
                </tr>	    		    	                                                                                             	            
	    </table>   
<div style=" text-align:center"><asp:ImageButton ID="imgSave" runat="server" ImageUrl="~/App_Themes/ManagerTheme/Images/tj.jpg" style="height: 22px" ToolTip="添加" /></div>     
        </asp:View>
        <asp:View ID="View_List" runat="server">
    	    <div style="text-align: right;" class="edittd">
        	<asp:CheckBox ID="cbSelectAll" runat="server" AutoPostBack="True" Text="全部" />&nbsp;
        	<asp:LinkButton ID="lnkBtnDel" runat="server"><img src="/App_Themes/ManagerTheme/Images/Delete.gif" style=" border:0px"/>&nbsp;删除选中</asp:LinkButton>&nbsp;&nbsp;
        	<a href="/Manager/Vote/VoteSubject.aspx?Action=Add"><img src="/App_Themes/ManagerTheme/Images/add.gif" style=" border:0px" />&nbsp;添加</a>
    	    </div>       
            <asp:Repeater ID="rptList" runat="server">
                <HeaderTemplate>
                    <table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0" class="line_table">
			<tr>
			    <td width="5%" align="center" class="left_bt2">选择</td>
			    <td width="30%" align="left" class="left_bt2">问卷标题</td>
			    <td width="15%" align="left" class="left_bt2">创建人</td>
			    <td width="15%" align="center" class="left_bt2">结束日期</td>
			    <td width="10%" align="center" class="left_bt2">是否公开</td>
			    <td align="center" width="25%" class="left_bt2">操作</td>
			</tr>
	        </HeaderTemplate>
                <ItemTemplate>
                    <tr class="menuout"   onMouseOver="this.className='menuin'" onMouseOut="this.className='menuout'">
			<td width="5%" align="center"><asp:CheckBox ID="CheckOn" runat="server" ToolTip='<%#Eval("ID")%>' /></td>
			<td width="30%" align="left"><%#Eval("Title")%></td>
			<td width="15%" align="left"><%#Eval("CreatUser")%></td>
			<td width="15%" align="center"><%#Eval("FailTime")%></td>
			<td width="10%" align="center"><%#bool2String(Eval("IsOpen"))%></td>
			<td width="25%" align="center">
		    <a href="/Manager/Vote/VoteQuestion.aspx?SubID=<%#Eval("ID") %>">题目管理</a>&nbsp;&nbsp;&nbsp;
			<a href="/Manager/Vote/VoteSubject.aspx?Action=Edit&ID=<%#Eval("ID") %>"><img src="/App_Themes/ManagerTheme/Images/Edit.gif" style=" border:0px" />&nbsp;编辑</a>&nbsp;&nbsp;&nbsp;
			<a href="/Manager/Vote/VoteSubject.aspx?Action=Del&ID=<%#Eval("ID") %>"><img src="/App_Themes/ManagerTheme/Images/Delete.gif" style=" border:0px" />&nbsp;删除</a></td>
			        </tr>
                </ItemTemplate>
                <FooterTemplate></table></FooterTemplate>
            </asp:Repeater>
            <div style="text-align:center"> <cc1:iPaging ID="ListPaging" runat="server" /></div>        
        </asp:View>        
    </asp:MultiView>
</asp:Content>

