<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InterviewRecordAdd.aspx.cs"
    Inherits="OAWeb.hrm.employ.InterviewRecordAdd" EnableViewState="true"%>

<!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 id="Head1" runat="server">
    <title>仁亚任务管理系统</title>
    <link href="../../App_Themes/Default/default.css" rel="stylesheet" type="text/css" />
    <base target="_self" />
    <script language="javascript" type="text/javascript" src="/js/My97DatePicker/WdatePicker.js"></script>
    <script src="/js/artDialog/artDialog.js?skin=default" type="text/javascript"></script>
    <script src="/js/artDialog/plugins/iframeTools.source.js" type="text/javascript"></script>
    <script src="../../Js/Dialog/Dialog.js" type="text/javascript"></script>
    <script>
        function OpenEditDialog() {
            document.getElementById("tbContent").style.display = "";
            document.getElementById("tbRecord").style.display = "none";
        }

        function ShowRecord() {
            document.getElementById("tbContent").style.display = "none";
            document.getElementById("tbRecord").style.display = "";
        }
    </script>
    <style>
    .tb1 td
    {
    	padding:5px;
    }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div style="width:600px; height:450px;">
    <table id="tbRecord" runat="server" cellspacing="0" cellpadding="3" border="1" style="border-collapse: collapse;
        width: 100%;" align="center"  class="tb1">
        <tr>
            <td align="right" width="98%" colspan="4" bgcolor="#e6e6e6" style="height: 25px">
                <p align="center">
                    <b>面试安排</b>
            </td>
        </tr>
        <tr>
            <td width="139" align="right" class="st12pt">
                主题：
            </td>
            <td align="left" class="st12pt" colspan="3">
                <asp:TextBox ID="txtSubject" runat="server" Width="250px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td width="139" align="right" class="st12pt">
                说明：
            </td>
            <td align="left" class="st12pt" colspan="3">
                <asp:TextBox ID="txtContent" runat="server" Height="100px" Width="250px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" class="st12pt" width="139">
                候选人：
            </td>
            <td align="left" class="st12pt" colspan="3">
                <asp:Repeater ID="RpResume" runat="server">
                <ItemTemplate>
                <%# Eval("RealName") %> 
                <span style=" margin-left:10px;">手机：<%# Eval("Mobile") %></span>
                邮箱:<%# Eval("Email") %><br />
                </ItemTemplate>
                </asp:Repeater>  
            </td>
            
        </tr>
        <tr>
            <td align="right" class="st12pt" width="139">
                人事经办：
            </td>
            <td align="left" class="st12pt" colspan="3">
                <asp:DropDownList ID="ddlUserId" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="right" class="st12pt" width="139">
                安排时间：
            </td>
            <td align="left" class="st12pt" colspan="3">
                <asp:TextBox ID="txtInterviewDate" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false,readOnly:true})"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="center" valign="top" class="st12pt" colspan="4">
                <asp:CheckBox ID="cboSendSMS" runat="server" Checked="true" />
                发短信给候选人
                <asp:CheckBox ID="cboSendEmail" runat="server" Checked="true" />
                发邮件给候选人 &nbsp; &nbsp; <a href="javascript:void(0)" onclick="OpenEditDialog()">编辑模板</a>
            </td>
        </tr>
        <tr>
            <td align="center" valign="top" class="st12pt" colspan="4">
                &nbsp; &nbsp;<asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" Text="保 存"
                    Width="81px" />&nbsp;<asp:Button ID="btnCannel" runat="server" OnClick="btnCannel_Click"
                        Text="取 消" Width="75px" />
            </td>
        </tr>
    </table>
    <table cellspacing="0" runat="server" id="tbContent" cellpadding="3" width="100%"
        border="1" style="border-collapse: collapse; display: none">
        <tr>
            <td align="right" width="98%" colspan="4" bgcolor="#e6e6e6" style="height: 25px">
                <p align="center">
                    <b>编辑模板</b>
            </td>
        </tr>
        <tr>
            <td align="center" colspan="4">
                输入[name]和[time]将会自动替换成每次面试的姓名和地点
            </td>
        </tr>
        <tr>
            <td align="right">
                短信模板：
            </td>
            <td align="center" class="st13pt" colspan="3">
                <asp:TextBox ID="txtSMS" runat="server" Height="133px" Width="250px" TextMode="MultiLine"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                邮件模板：
            </td>
            <td align="center" class="st13pt" colspan="3">
                <asp:TextBox ID="txtEmail" runat="server" Height="133px" Width="250px" TextMode="MultiLine"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                邮件发送人：
            </td>
            <td align="center" class="st13pt" colspan="3">
                <asp:TextBox ID="txtSendName" runat="server" Width="250px" ></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="center" class="st13pt" colspan="4">
                <asp:Button ID="Button1" runat="server" Text="保存" OnClick="Button1_Click" />
                <input type="button" onclick="ShowRecord()" value="取消" />
            </td>
        </tr>
    </table>
    </div>
    </form>
</body>
</html>
