<%@ Page Title="添加候选人" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Vote_Candidate_Add.aspx.cs" Inherits="Vote.Admin.Vote_Candidate_Add" %>
<%@ Register src="../UserControls/HtmlEdit.ascx" tagname="HtmlEdit" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

  <script src="../tinymce/jscripts/tiny_mce/tiny_mce.js" type="text/javascript"></script>
 
    <link href="../Style/Combox.css" rel="stylesheet" />



 <div class="result-wrap">
  <div  class="result-content"> 
 
    
 <table class="table" width="100%">
			<tbody>
				<tr>
					<td colSpan="2"><strong>新建/修改候选人</strong></td>
				</tr>
				
				
				 <tr>
					<td width="120">投票分类:</td>
					<td>
					
                        <asp:DropDownList ID="ddl_cat"  Width="300px" AutoPostBack="true" runat="server" 
                            onselectedindexchanged="ddl_cat_SelectedIndexChanged">
                        </asp:DropDownList>
					
					</td>
				</tr>
				
				
				
			 <tr>
					<td  >投票主题:</td>
					<td>
					
                        <asp:DropDownList ID="ddl_archives" Width="300px" runat="server">
                        </asp:DropDownList>
					
					</td>
				</tr>
				
				
				<tr>
					<td  >姓名:</td>
					<td><asp:textbox id="username" Width="300px" Runat="server"></asp:textbox>
					<asp:requiredfieldvalidator id="RequiredEnName" runat="server" ControlToValidate="username" ErrorMessage="***"></asp:requiredfieldvalidator>
				 </td>
				</tr>
				
				
				<tr>
					<td  >编号:</td>
					<td><asp:textbox id="staffcode" Width="300px" Runat="server"></asp:textbox><asp:requiredfieldvalidator id="RequiredCnName" runat="server" ControlToValidate="staffcode" ErrorMessage="***"></asp:requiredfieldvalidator>
					</td>
				</tr>
				
				
				
				<tr>
					<td  >部门:</td>
					<td>
                    
                  
          <div class="combox" id="cb_dept">
            <div class="dropdown"> 
            <asp:TextBox ID="dept" class="cb_popmenu"    Width="300px" runat="server"></asp:TextBox> 
            <div>
            <ul> 
              <asp:Literal runat="server" ID="lt_dept"></asp:Literal> 
            </ul> 
            </div>
            </div> 
        </div>

            
                    
                    
                    
                    
                    
                    </td>
				</tr>
				 
				 
				 
				<tr>
					<td  >顺序:</td>
					<td><asp:textbox id="orderid" Width="300px" Text="0" Runat="server"></asp:textbox>
					(数字小靠前，支持负数，例如-2)
					</td>
				</tr>
				 
				
				<tr>
					<td style="WIDTH: 106px">  头像:</td>
					<td>  

                    <a href="#" target="_blank"  id="a_avtor">
                      <img src="img/nopic.jpg" id="img_avtor" height="80px" style=" margin:5px; margin-left:30px; border:0px; vertical-align:middle" />
                   </a>
                   
                    <a href="#" onclick="window.open('Upload.aspx'); return false;">上传图片</a>

                    <div style=" display:none ">
					 <asp:textbox id="image_small" Width="150px"  ClientIDMode="Static" Runat="server"></asp:textbox> 
			         <asp:textbox id="image_big" ClientIDMode="Static" Width="150px" Runat="server"></asp:textbox>
                  </div>
					
					
					 
					 
					</td>
				</tr>
				
				 
				 
				<TR>
					<TD style="HEIGHT: 29px"><FONT face="宋体"></FONT></TD>
					<TD style="HEIGHT: 29px"></TD>
				</TR>
				<tr>
					<td style="WIDTH: 106px">简介:</td>
					<td>
                    
           
           
             <uc1:HtmlEdit ID="intro" runat="server" />
                    

                    
                    
                    </td>
				</tr>
				<tr>
					<td align="center" colSpan="2">

                     <div class="btnc">
					<asp:button id="createBTN" runat="server" Text="添加" onclick="createBTN_Click" class="btn btn-primary btn6 mr10"  ></asp:button>
					<asp:button id="updateBTN" runat="server" Text="更新" onclick="updateBTN_Click"  class="btn btn-primary btn6 mr10"  ></asp:button>
					<asp:button id="cancelBTN" runat="server" Text="删除" OnClientClick="return confirm('确定要删除吗');" onclick="cancelBTN_Click" class="btn btn-primary btn6 mr10"  ></asp:button>
				
				<input type="button" onclick="window.location='Vote_Candidate_Lists.aspx'" value="返回"  class="btn btn6" />
				</div>
                </td>
				</tr>
				 
			</tbody>
		</table>
		
</div>
</div>











        <script>

            function ResetImg(s, b) {

                $("#image_small").val(s);
                $("#image_big").val(b);
                $("#img_avtor").attr("src", s);
                $("#a_avtor").attr("href", b);

            }
        
        
        </script>
		

        


          <script>
             combox("cb_dept");
         </script>


</asp:Content>
