<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserArchives.aspx.cs" Inherits="RM.Web.Training.UserArchives" %>

<!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>
        <%=username %><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("archive_xxda")%></title>
    <script src="/Themes/Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/FunctionJS.js" type="text/javascript"></script>
        <script src="/Themes/Scripts/DatePicker/WdatePicker.js" type="text/javascript"></script>
<style type="text/css">
.grid { width:100%; margin: 10px 0; border-collapse: collapse; }
.grid thead td { border: 1px solid #ccc;background: url(/Themes/Images/datagrid_header_bg.gif); background-color: #f0f1f4; text-align: center; padding: 5px 1px; font-weight: normal; text-overflow: ellipsis; word-break: keep-all; white-space: nowrap; overflow: hidden; }
.grid tbody td { text-align:left;  border: 1px solid #ccc; padding:3px; height: 20px; overflow: hidden; }
.grid tbody .alt { background: #F7F7F7; }
.grid tbody .selected { background2: #D0E5F5; background1: #FBEC88; background: #e0eccc; }
/*当鼠标放在行上时的颜色*/
.grid tbody .trhover { background2: #D0E5F5; background1: #FBEC88; background: #e0eccc; }
.process-bar { width: 100px; display: inline-block; zoom: 1;  text-align:left;}
.pb-wrapper { border: 1px solid gray; border-style: solid none; position: relative; background: #f4f4f4; }
.pb-container { border: 1px solid gray; border-style: none solid; height: 12px; position: relative; left: -1px; margin-right: -2px; font: 1px/0 arial; padding: 1px; }
.pb-highlight { position: absolute; left: 0; top: 0; _top: 1px; width: 100%; opacity: 0.4; filter: alpha(opacity=40); height: 6px; background: white; font-size: 1px; line-height: 0; z-index: 1; }
.pb-text { width: 100%; position: absolute; left: 0; top: 0; text-align: center; color: gray; font: 10px/12px arial; }
.pb-value { height: 100%; width: 50%; background: #ffde00;}
b{ font-size:16px; color:Red;}
</style>
</head>
<body>
    <div class="archivers_main_tool"  style=" width:960px; margin:0 auto; text-align:right; border-bottom:1px #ccc solid;">
    <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Credit_User_Date")%>：<input id="start" type="text" onClick="WdatePicker()" value="<%=start %>" />&nbsp;&nbsp;
            --&nbsp;&nbsp;<input id="end" type="text" onClick="WdatePicker()" value="<%=end %>" />
          <input  type="button" value='<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("GetButton")%>' onclick="chaxun()"/>          
    <input type="button" value='<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Detail_DaYin")%>' onclick="printer()" />
    <input  style="display:none" id="userid" type="text" value="<%=id %>" /></div>
 
    <div id="archivers_main" class="archivers" style=" width:960px; margin:0 auto;">
        <h1 style=" font-size:18px; text-align:center"><%=username %><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("archive_xxda")%></h1>
        <table width="100%" >
          <tr>
            <td rowspan="4"><%=userimg %></td>            
            <td colspan="2"><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_Name")%>：<%=username %></td>
          </tr>
          <tr>
            <td><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("archive_zzjg")%>：<%=UserOrganization%></td>
            <td><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("archive_yonghuzu")%>：<%=UserGroup %></td>
          </tr>
          <tr>
            <td><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("archive_yonghujuese")%>：<%=UserRoles %></td>
            <td>&nbsp;</td>
          </tr>
          <tr><td colspan="2"><%=huizong%></td></tr>
        </table>
        <%=jilu %>
    </div>
<script src="/Themes/Scripts/LodopFuncs.js" type="text/javascript"></script>
    <object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width="0"
        height="0">
        <embed id="LODOP_EM" type="application/x-print-lodop" width="0" height="0"></embed>
    </object>
<script type="text/javascript">
    var LODOP; //声明为全局变量 
    function printer() {
        LODOP = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM'));
        LODOP.PRINT_INIT('<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("archive_xuexidangan")%>');
        var strBodyStyle = "<style>.grid { width:100%; margin: 10px 0; border-collapse: collapse; }.grid thead td { border: 1px solid #ccc;background: url(/Themes/Images/datagrid_header_bg.gif); background-color: #f0f1f4; text-align: center; padding: 5px 1px; font-weight: normal; text-overflow: ellipsis; word-break: keep-all; white-space: nowrap; overflow: hidden; }.grid tbody td { text-align: left; border: 1px solid #ccc; padding: 3px; height: 20px; overflow: hidden; }.grid tbody .alt { background: #F7F7F7; }.grid tbody .selected { background2: #D0E5F5; background1: #FBEC88; background: #e0eccc; }.grid tbody .trhover { background2: #D0E5F5; background1: #FBEC88; background: #e0eccc; }.process-bar { width: 100px; display: inline-block; zoom: 1; text-align:left; }.pb-wrapper { border: 1px solid gray; border-style: solid none; position: relative; background: #f4f4f4; }.pb-container { border: 1px solid gray; border-style: none solid; height: 12px; position: relative; left: -1px; margin-right: -2px; font: 1px/0 arial; padding: 1px; }.pb-highlight { position: absolute; left: 0; top: 0; _top: 1px; width: 100%; opacity: 0.4; filter: alpha(opacity=40); height: 6px; background: white; font-size: 1px; line-height: 0; z-index: 1; }.pb-text { width: 100%; position: absolute; left: 0; top: 0; text-align: center; color: gray; font: 10px/12px arial; }.pb-value { height: 100%; width: 50%; background: #ffde00; }b{ font-size:16px; color:Red;}</style>";
        LODOP.ADD_PRINT_HTM(0, 0, "100%", '100%', strBodyStyle + document.getElementById("archivers_main").innerHTML);
        LODOP.PREVIEW();
    }
    function chaxun() {
        var id = $("#userid").val();
        var start = $("#start").val();
        var end = $("#end").val();
        location.href = "UserArchives.aspx?id=" + id + "&&start=" + start + "&&end=" + end;
    }
</script>
</body>
</html>
