<%@ page language="C#" autoeventwireup="true" inherits="resume_Res_Letter_Index, ZhaoPinXiTong" enableEventValidation="false" %>

<%@ Register Tagprefix="UserControls" TagName="Header" Src="../Controls/Header_Person_User.ascx" %>
<%@ Register Tagprefix="UserControls" TagName="Footer" Src="../Controls/Footer.ascx" %>
<%@ Register Tagprefix="UserControls" TagName="Right" Src="../Controls/Right_Person_Resume.ascx" %>
<!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>
		<title>
			<%= "求职信_" + pub_WebName %>
		</title>
		<meta name="author" content="www.zhaopinxitong.com,无忧招聘系统开发制作" />
		<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
		<LINK rel="stylesheet" type="text/css" href="../Css/Style.css">
	</HEAD>
	<body>
		<form id="Form1" method="post" Runat=server>
			<!--页面顶部-->
  <UserControls:Header Runat=server id="Header1"></UserControls:Header>
  <!--页面主体-->
  <table width="992" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr><td align="center" bgcolor="#FFFFFF"><table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
				<tr valign="top">
<td width="188"  class="UserMenu_bg"><!--菜单--><UserControls:Right Runat=server id="Right1" /></td>
          <td bgcolor="#FFFFFF">
          <!--右侧-->
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td class="userbg_top"></td>
            </tr>
            <tr>
              <td valign="top" class="userbg_bg"><!--右侧--><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td valign="bottom" class="userbuttom_bg"> 
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td class="userbuttom12"><a href="Index.aspx">我的简历</a></td>
                      <td width="5"></td>
                      <td class="userbuttom12"><a href="Res_Create_Resume.aspx">新建简历</a></td>
                      <td width="5"></td>
                      <td class="userbuttom11"><a href="Res_Letter_Index.aspx">求 职 信</a></td>
                      <td>&nbsp;</td>
                    </tr>
                  </table></td>
              </tr>
            </table>
						<table width="100%" border="0" cellspacing="0" cellpadding="4">
							<tr>
								<td style="PADDING-LEFT:5px"><font color="#777777">您可以保存 5 份不同内容的求职信，以适应不同职位的需求；</font></td>
							</tr>
						</table>
						<table width="100%" border="0" cellspacing="1" cellpadding="0">
							<tr>
								<td height="1" bgcolor="#FBB963"></td>
							</tr>
						</table>
						<!--求职信列表-->
						<asp:DataList Runat=server ID="lit_MyLetter" RepeatColumns="1" DataKeyField="Mid" CellPadding="0"
							CellSpacing="0" GridLines="None" Width="100%" OnItemDataBound="lit_MyLetter_ItemDataBound">
							<HeaderTemplate>
								<table width="100%" border="0" cellspacing="1" cellpadding="4">
									<tr bgcolor="#FEEECC">
										<td width="5%" align="center" bgcolor="#FEEECC">&nbsp;</td>
										<td width="65%"><strong>标题</strong></td>
										<td width="15%"><strong>创建时间</strong></td>
										<td align="center"><strong>操作</strong></td>
									</tr>
								</table>
							</HeaderTemplate>
							<ItemTemplate>
								<table width="100%" border="0" cellspacing="1" cellpadding="4">
									<tr>
										<td width="5%" align="center">
											<asp:Label Runat=server Runat=server ID="lbl_Orderid"></asp:Label></td>
										<td width="65%"><%# Eval("LetterName") %></td>
										<td width="15%"><%# Eval("CreateDate","{0:d}") %></td>
										<td align="center"><a href='<%# "?Action=update&Mid="+ Eval("Mid") %>' class="uline">修改</a><img src="../Images/Public/icon2.gif" width="11" height="15" align="absmiddle"><a href='<%# "?Action=delete&Mid="+ Eval("Mid") %>' class="uline" onClick="return confirm ('确认删除选择的记录！');">删除</a></td>
									</tr>
									<tr>
										<td colspan="4" height="1" bgcolor="#d3d3d3"></td>
									</tr>
								</table>
							</ItemTemplate>
						</asp:DataList>
						<!--新增/修改求职信-->
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td height="5"></td>
							</tr>
							<tr>
								<td height="28" style="PADDING-LEFT: 12px; PADDING-TOP: 3px; BORDER-BOTTOM: #d3d3d3 1px solid"><strong><asp:Label Runat=server ID="lbl_Operate"></asp:Label></strong>
									(<font color="#ff3300">*</font> 为必填项)</td>
							</tr>
						</table>
						<table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#dddddd">
							<tr bgcolor="#ffffff">
								<td width="100" style="PADDING-LEFT:12px"><font color="#ff0000">*</font> 标 题：</td>
								<td><asp:TextBox Runat=server ID="txt_LetterName" Width="400" MaxLength="50"></asp:TextBox>
									<asp:RequiredFieldValidator SetFocusOnError="True" Runat=server ID="rfv_LetterName" ControlToValidate="txt_LetterName" Display="Dynamic" ErrorMessage="<br><img src=../Images/Public/Icon1.gif align=absbottom> 请填写标题！"></asp:RequiredFieldValidator>
								</td>
							</tr>
							<tr bgcolor="#ffffff">
								<td width="100" style="PADDING-LEFT:12px"><font color="#ff0000">*</font> 内 容：</td>
								<td><font color="#777777">请详细填写相关内容 (限2000字 <a href="javascript:" onClick="javascript:alert('您输入了'+ document.getElementById('txt_LetterDesc').value.length +'个字');">
											<font color="#777777">计算字数</font></a>) </font>
									<br>
									<asp:TextBox Runat=server ID="txt_LetterDesc" Width="400" MaxLength="2000" Rows="12" TextMode="MultiLine"></asp:TextBox>
									<asp:RequiredFieldValidator SetFocusOnError="True" Runat=server ID="rfv_LetterDesc" ControlToValidate="txt_LetterDesc" Display="Dynamic"
										ErrorMessage="<br><img src=../Images/Public/Icon1.gif align=absbottom> 请填写内容！"></asp:RequiredFieldValidator>
								</td>
							</tr>
						</table>
						<!--新增-->
						<asp:Panel Runat=server ID="pan_Add">
							<TABLE cellSpacing="1" cellPadding="4" width="100%" border="0">
								<TR>
									<TD style="PADDING-LEFT: 12px" width="100">&nbsp;</TD>
									<TD align="left">
										<asp:Button id="btn_Submit" onclick="btn_Submit_Click" Width="60" Runat=server Height="30"
											Text="保存"></asp:Button>
										<asp:Label id="lbl_Error" Runat=server ForeColor="#ff0000"></asp:Label></TD>
								</TR>
							</TABLE>
						</asp:Panel>
						<!--修改-->
						<asp:Panel Runat=server ID="pan_Update">
							<TABLE cellSpacing="1" cellPadding="4" width="100%" border="0">
								<TR>
									<TD style="PADDING-LEFT: 12px" width="100">&nbsp;</TD>
									<TD align="left">
										<asp:Button id="btn_Update" onclick="btn_Update_Click" Width="60" Runat=server Height="30"
											Text="保存"></asp:Button>
										<asp:Label id="lbl_Error2" Runat=server ForeColor="#ff0000"></asp:Label></TD>
								</TR>
							</TABLE>
						</asp:Panel>
						<tr>
              <td class="userbg_bottom"></td>
            </tr>
          </table>
						<!--页面左侧 结束-->
					</td>
				</tr>
			</table></td>
				</tr>
			</table></td>
				</tr>
			</table>
			<!--页面底部-->
			<UserControls:Footer Runat=server id="Footer1"></UserControls:Footer>
		</form>
<script type="text/javascript">
    document.getElementById("txt_LetterName").value = "我的求职信";
    var va = document.getElementById("txt_LetterDesc").value;
    if (va == "") {
        document.getElementById("txt_LetterDesc").value = "尊敬的领导：\n\n    您好！\n\n    非常感谢您在百忙之中查看我的简历，本人吃苦耐劳、服从管理、责任心强、善于思考、有良好的沟通能力及较强的集体荣誉而且感富有团队合作精神，能承受一定的工作压力，真诚希望能得到您的支持和认可，成为贵公司的一员，我将用我的行动来证明自己，谢谢！祝您工作愉快，身体健康。";
    }
</script>
	</body>
</HTML>
