<%@ page language="C#" autoeventwireup="true" inherits="user_job, aoshuosoft" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>人才招聘</title>
    <link href="user.css" rel="stylesheet" type="text/css" />
</head>
<script language="Javascript">
function acadd()
{
one.style.display="";
two.style.display="";
ae.style.display="none";
}
</script>
<body>
    <form id="form1" runat="server">
    <div>
        <div>
         <table border='0' width='100%' id='one' style="display:none;" >
      <tr height='150'>
      <td>      
      </td>
      </tr>
      </table>
      <table id='two' style="display:none;" align='center' cellspacing='1' border='0' bgcolor='#CCFF66'><tr bgcolor='#FFFF99'><td>
      <table  class='actionadd' border='0' height='30' bgcolor='#FFFF99' style="width: 365px">
         <tr style='font-size:12px;'><td style="text-align: right">
             <asp:Image ID="Image1" runat="server" ImageUrl="~/image/ac.gif" /></td><td>
             &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 请稍后，正在保存数据...</td></tr>
         </table></td></tr>
      </table>
            <asp:Panel ID="addedit" runat="server" Height="50px" Visible="false" Width="100%">
                <table border="0" cellpadding="3" id="ae" cellspacing="1" class="usertable">
                    <tr class="bt">
                        <td colspan="2" style="height: 35px; text-align: center">
                            <asp:Literal ID="actionbt" runat="server"></asp:Literal></td>
                    </tr>
                    <tr>
                        <td style="width: 88px">
                            应聘职称：</td>
                        <td>
                            &nbsp;<asp:DropDownList ID="sort" runat="server">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 88px">
                            姓名：</td>
                        <td>
                            <asp:TextBox ID="name" runat="server" Width="312px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 88px">
                            性别：</td>
                        <td>
                            <asp:DropDownList ID="sex" runat="server">
                                <asp:ListItem>男</asp:ListItem>
                                <asp:ListItem>女</asp:ListItem>
                            </asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td style="width: 88px">
                            年龄：</td>
                        <td>
                            <asp:TextBox ID="age" runat="server" Width="312px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 88px">
                            出生日期：</td>
                        <td>
                            <asp:TextBox ID="Date" runat="server" Width="312px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 88px">
                            民族：</td>
                        <td>
                            <asp:TextBox ID="nationality" runat="server" Width="312px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 88px">
                            身高：</td>
                        <td>
                            <asp:TextBox ID="height" runat="server" Width="312px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 88px">
                            婚姻：</td>
                        <td>
                            <asp:DropDownList ID="matrimony" runat="server">
                                <asp:ListItem>已婚</asp:ListItem>
                                <asp:ListItem>未婚</asp:ListItem>
                            </asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td style="width: 88px">
                            户口所在地：</td>
                        <td>
                            <asp:TextBox ID="hukou" runat="server" Width="312px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 88px">
                            学历：</td>
                        <td>
                            <asp:TextBox ID="xueli" runat="server" Width="312px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 88px">
                            毕业学校：</td>
                        <td>
                            <asp:TextBox ID="school" runat="server" Width="312px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 88px">
                            专业：</td>
                        <td>
                            <asp:TextBox ID="zhuanye" runat="server" Width="312px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 88px">
                            计算机能力：</td>
                        <td>
                            <asp:TextBox ID="computer" runat="server" Width="312px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 88px">
                            联系电话：</td>
                        <td>
                            <asp:TextBox ID="phone" runat="server" Width="312px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 88px">
                            电子邮件：</td>
                        <td>
                            <asp:TextBox ID="mail" runat="server" Width="312px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 88px">
                            QQ：</td>
                        <td>
                            <asp:TextBox ID="qq" runat="server" Width="312px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 88px; height: 210px;">
                            其他简介：</td>
                        <td style="height: 210px">
                            <FCKeditorV2:FCKeditor ID="content" runat="server" BasePath="~/FCKeditor/" EnableSourceXHTML="true"
                                EnableXHTML="true" Height="220px" ToolbarSet="self">
                            </FCKeditorV2:FCKeditor>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" style="text-align: center">
                            <asp:Button ID="add" runat="server" OnClick="add_Click" Text="提交" OnClientClick="acadd()" Width="100px" />
                            <asp:Button ID="edit" runat="server" OnClick="edit_Click" Text="修改" OnClientClick="acadd()" Width="101px" /></td>
                    </tr>
                </table>
            </asp:Panel>
            <asp:Panel ID="alljob" runat="server" Height="50px" OnPageIndexChanging="GridView1_PageIndexChanging"
                Visible="false" Width="100%">
                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                    CellPadding="4" ForeColor="#333333" GridLines="None" PageSize="20" Width="100%">
                    <Columns>
                     <asp:TemplateField HeaderText="姓名"><ItemTemplate><a href='job.aspx?action=edit&id=<%#Eval("id") %>'><%#Eval("name") %></a></ItemTemplate></asp:TemplateField>
                        <asp:BoundField HeaderText="性别" DataField="sex" />
                        <asp:BoundField HeaderText="年龄" DataField="age" />
                        <asp:TemplateField HeaderText="查看修改">
                            <ItemTemplate>
                                <a href='job.aspx?action=edit&id=<%#Eval("id") %>'>查看修改</a></ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="删除">
                            <ItemTemplate>
                                <a href='job.aspx?action=del&id=<%#Eval("id") %>' onclick="return confirm('删除将不可恢复，您真的要删除吗？')">
                                    删除</a></ItemTemplate>
                        </asp:TemplateField>                        
                    </Columns>
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <RowStyle BackColor="#EFF3FB" />
                    <EditRowStyle BackColor="#2461BF" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <AlternatingRowStyle BackColor="White" />
                </asp:GridView>
                <asp:Literal ID="tj" runat="server"></asp:Literal></asp:Panel>
        </div>
    
    </div>
    </form>
</body>
</html>
