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

<!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>
        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("HomeIndex")%></title>
    <link href="/Themes/Styles/Site.css" rel="stylesheet" type="text/css" />
    <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 type="text/javascript">
        $(function () {
            $("#BeautifulGreetings").text(BeautifulGreetings());
            // $("#Reminder").load("/RMBase/SysReminder/GetReminder.ashx");
            $("#box_Affichet").load("/Training/Affichet/GetAffchet.ashx");
        })
        /**修改密码**/
        function editpwd() {
            var url = "/RMBase/SysUser/UpdateUserPwd.aspx";
            top.openDialog(url, 'UpdateUserPwd', '<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("UpdateUserPwd")%>', 400, 225, 50, 50);
        }
        //新增快捷功能
        function add_HomeShortcut() {
            var url = "/RMBase/SysPersonal/HomeShortcut_Form.aspx";
            top.openDialog(url, 'Menu_Form', '<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("HomeIndex_kjj")%>', 450, 300, 50, 50);
        }
        //快捷功能点击事件
        function ClickShortcut(url, title, Target) {
            if (Target == "Open") {
                window.open(url);
            } else {
                top.NavMenu(url, title);
            }
        }
        //查看公告
        function affichetMore() {
            top.NavMenu('/Training/Affichet/Affichet_List.aspx', '<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("HomeIndex_gg")%>');
        }
    </script>
    <style type="text/css">
        .shortcuticons { float: left; border: solid 1px #fff; width: 62px; height: 55px; margin: 5px; padding: 5px; cursor: pointer; vertical-align: middle; text-align: center; word-break: keep-all; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .shortcuticons:hover { color: #FFF; border: solid 1px #3399dd; background: #2288cc; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#33bbee', endColorstr='#2288cc'); background: linear-gradient(top, #33bbee, #2288cc); background: -moz-linear-gradient(top, #33bbee, #2288cc); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#33bbee), to(#2288cc)); text-shadow: -1px -1px 1px #1c6a9e; width: 62px; height: 55px; font-weight: bold; }
        .box_Affichet { padding-left: 25px; }
        .ba_count { color: Red; padding: 0 2px; font-weight: bold !important; }
        .ba_LinkMore { text-decoration: underline !important; color: #368bc3 !important; padding: 0 2px; }
        table { border-collapse: collapse; border-spacing: 0; }
        img { border-style: none; border-color: inherit; border-width: 0; margin-bottom: -3px; }
        ul { list-style: none; }
        li { list-style: none; }
        h1, h2, h3, h4, h5, h6 { font-size: 100%; font-weight: normal; }
        input, textarea, select { font-size: 100%; }
        a { font-size: 12px; text-align: left; }
        abbr { font-weight: bold; font-size: 14px; text-align: left; margin-left: -4px; }
        .sanxing { border-radius: 0px 0px 30px 0px; height: 30px; width: 30px; float: left; margin-right: 55px; font-size: 18px; }
        .div1 { width: 202px; height: 125px; border-top: 1px solid #DDDDDD; border-left: 1px solid #DDDDDD; float: left; color: #fff; text-indent: 4px; position: relative; }
        .div1:hover { background-color: #f8f8f8; }
        .img1 { position: absolute; bottom: 5px; left: 3px; }
        .b-b { border-bottom: 1px solid #DDDDDD; }
        .b-r { border-right: 1px solid #DDDDDD; }
        .left { float: left; }
        .right { float: right; }
        .both { clear: both; }
        .l-h-17 { line-height: 17px; }
        #helpdiv a { text-decoration: underline !important; color: #368bc3 !important; padding: 0 2px; }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="box">
        <div class="box-title">
            <img src="/Themes/Images/sun_2.png" alt="" width="20" height="20" />
            <label id="BeautifulGreetings">
            </label>
            <%=_UserName.ToString()%>
        </div>
        <div class="box-content">
            <div style="width: 865px; height: 385px; padding-top: 5px; background: rgba(0,0,0,0.2);
                margin: 0 auto">
                <div style="width: 855px; height: 380px; background-color: #fff; margin: auto; border-radius: 5px;">
                    <div id="helpdiv" style="padding-top: 20px; margin-left: 20px; padding-right: 20px;">
                        <img class="left" src="img/1.png" style="margin-right: 7px;" /><div class="left"
                            style="font-size: 19px; color: #A1A1A1; line-height: 28px;">
                            使用向导</div>
                        <div class="right" style="font-size: 12px; margin-top: 14px; margin-right: 10px;">
                            第一次进入本系统，强烈建议您<a href="javascript:editpwd();" style="font-size: 12px;">修改密码</a></div>
                        <div class=" both">
                        </div>
                        <div style="margin-top: 20px;">
                            <div class=" div1">
                                <div class=" sanxing" style="background-color: #3E8FF5">
                                    1
                                </div>
                                <div class=" left" style="margin-top: 25px;">
                                    <abbr style="color: #000000;">
                                        基础设置</abbr><p class="l-h-17" style="margin-top: 3px;">
                                            <a href="#" title="点击查看视频帮助" style="margin-left: -4px;">更换LOGO</a><br />
                                            <a href="/RMBase/SysOrg/Organization_List.aspx">组织架构</a><a href="javascript:trysee('http://demo.newstartsoft.com:8088/Resources/movie/ZuZhiJiaGou.flv');" title="查看视频帮助"><img src="/Themes/Images/16/application_home.png"
                                                alt="查看视频帮助" /></a><br />
                                                
                                           <%-- <a href="#">职位管理</a>--%>
                                        </p>
                                </div>
                                <div class="both">
                                </div>
                                <img class=" img1" src="img/2.png" />
                            </div>
                            <div class=" div1">
                                <div class=" sanxing" style="background-color: #3E8FF5">
                                    2
                                </div>
                                <div class=" left" style="margin-top: 25px;">
                                    <abbr style="color: #000000;">
                                        添加员工</abbr><p class="l-h-17" style="margin-top: 3px;">
                                            <a href="/RMBase/SysUser/UserInfo_Index.aspx" style="margin-left: -4px;">员工管理</a><a href="javascript:trysee('http://demo.newstartsoft.com:8088/Resources/movie/YuanGongGuanLi.flv');" title="查看视频帮助"><img src="/Themes/Images/16/application_home.png"
                                                alt="查看视频帮助" /></a>
                                        </p>
                                </div>
                                <div class="both">
                                </div>
                                <img class=" img1" src="img/3.png" />
                            </div>
                            <div class=" div1">
                                <div class=" sanxing" style="background-color: #FF0000">
                                    3
                                </div>
                                <div class=" left" style="margin-top: 25px;">
                                    <abbr style="color: #000000;">
                                        培训资料</abbr><p class="l-h-17" style="margin-top: 3px;">
                                            <a href="/Training/Courseware/CoursewareType_List.aspx" style="margin-left: -4px;">知识结构</a>
                                            <a href="javascript:trysee('http://demo.newstartsoft.com:8088/Resources/movie/ZhiShiJieGou.flv');" title="查看视频帮助"><img src="/Themes/Images/16/application_home.png"
                                                alt="查看视频帮助" /></a><br />
                                            
                                            <a href="/Training/Courseware/Courseware_Manager.aspx">课程管理</a><a href="javascript:trysee('http://demo.newstartsoft.com:8088/Resources/movie/KeJianGuanLi.flv');" title="查看视频帮助"><img src="/Themes/Images/16/application_home.png"
                                                alt="查看视频帮助" /></a><br />
                                            <a href="/Training/TrainingTest/ExaminationPaper_Manager.aspx">试卷管理</a><a href="javascript:trysee('http://demo.newstartsoft.com:8088/Resources/movie/ShiJuanGuanLi.flv');" title="查看视频帮助"><img src="/Themes/Images/16/application_home.png"
                                                alt="查看视频帮助" /></a>
                                        </p>
                                        
                                </div>
                                <div class="both">
                                </div>
                                <img class=" img1" src="img/4.png" />
                            </div>
                            <div class=" div1 b-r">
                                <div class=" sanxing" style="background-color: #FF0000">
                                    4
                                </div>
                                <div class=" left" style="margin-top: 25px;">
                                    <abbr style="color: #000000;">
                                        培训任务制定</abbr><p class="l-h-17" style="margin-top: 3px;">
                                            <a href="/Training/plan/Plan_List.aspx" style="margin-left: -4px;">培训任务管理</a>
                                             <a href="javascript:trysee('http://demo.newstartsoft.com:8088/Resources/movie/PeiXunRenWuGuanLi.flv');" title="查看视频帮助"><img src="/Themes/Images/16/application_home.png"
                                                alt="查看视频帮助" /></a>
                                        </p>
                                </div>
                                <div class="both">
                                </div>
                                <img class=" img1" src="img/5.png" />
                            </div>
                            <div class=" div1 b-b">
                                <div class=" sanxing" style="background-color: #FF0000">
                                    5
                                </div>
                                <div class=" left" style="margin-top: 25px;">
                                    <abbr style="color: #000000;">
                                        培训过程管理</abbr><p class="l-h-17" style="margin-top: 3px;">
                                            <a href="/Training/DataStatistics/StudentsLearningProgressStatistics.aspx" style="margin-left: -4px;">培训进度报表</a><a href="javascript:trysee('http://demo.newstartsoft.com:8088/Resources/movie/PeiXunJinDuBaoBiao.flv');" title="查看视频帮助"><img src="/Themes/Images/16/application_home.png"
                                                alt="查看视频帮助" /></a>
                                            <br />
                                            <a href="/Training/Exam/CorrectExam_List.aspx">人工阅卷</a>
                                            <a href="javascript:trysee('http://demo.newstartsoft.com:8088/Resources/movie/RenGongYueJuan.flv');" title="查看视频帮助"><img src="/Themes/Images/16/application_home.png"
                                                alt="查看视频帮助" /></a>
                                        </p>
                                </div>
                                <div class="both">
                                </div>
                                <img class=" img1" src="img/6.png" />
                            </div>
                            <div class=" div1 b-b">
                                <div class=" sanxing" style="background-color: #FF0000">
                                    6
                                </div>
                                <div class=" left" style="margin-top: 25px;">
                                    <abbr style="color: #000000;">
                                        培训完成名单</abbr><p class="l-h-17" style="margin-top: 3px;">
                                            <a href="/Training/Learn/Schedule_List.aspx" style="margin-left: -4px;">培训完成名单</a>
                                        </p>
                                </div>
                                <div class="both">
                                </div>
                                <img class=" img1" src="img/7.png" />
                            </div>
                            <div class=" div1 b-b">
                                <div class=" sanxing" style="background-color: #FFCC00">
                                    7
                                </div>
                                <div class=" left" style="margin-top: 25px;">
                                    <abbr style="color: #000000;">
                                        售后问题</abbr><p class="l-h-17" style="margin-top: 3px;">
                                            <a href="#" style="margin-left: -4px;">常见问题</a><br />
                                            <a href="/webservice/sso.ashx?access_token=kf5">提交工单</a><a href="javascript:trysee('http://demo.newstartsoft.com:8088/Resources/movie/GongDan.flv');" title="查看视频帮助"><img src="/Themes/Images/16/application_home.png"
                                                alt="查看视频帮助" /></a>
                                            
                                        </p>
                                </div>
                                <div class="both">
                                </div>
                                <img class=" img1" src="img/8.png" />
                            </div>
                            <div class=" div1 b-b b-r">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <%-- <%=sbHomeShortcouHtml.ToString() %>
            <br />
            <br />
            <br />
            <br />
            <a href="javascript:void(0)" onclick="add_HomeShortcut()" class="button green"><span
                class="icon-botton" style="background: url('/Themes/images/world_add.png') no-repeat scroll 0px 4px;">
            </span><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("HomeIndex_kjj")%></a>
            --%>
        </div>
    </div>
    <div class="blank10">
    </div>
    <div class="box" style="display: none;">
        <div class="box-title">
            <img src="/Themes/Images/32/100.png" alt="" width="20" height="20" /><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("HomeIndex_ts")%>
        </div>
        <div class="box-content">
            <ul id="Reminder">
                <li>
                    <img src="../Themes/Images/loading1.gif" alt="<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Loading")%>" /><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Loading")%></li></ul>
        </div>
    </div>
    <div class="blank10">
    </div>
    <div class="box">
        <div class="box-title">
            <img src="/Themes/Images/32/356.png" alt="" width="20" height="20" /><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("HomeIndex_gg")%>
        </div>
        <div class="box-content">
            <div class="box_Affichet" id="box_Affichet">
                <img src="../Themes/Images/loading1.gif" alt="<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Loading")%>" /><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Loading")%></li></ul>
            </div>
        </div>
    </div>
    <div class="blank10">
    </div>
    <div class="box">
        <div class="box-title">
            <img src="/Themes/Images/milestone.png" alt="" width="20" height="20" /><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("HomeIndex_dl")%>
        </div>
        <div class="box-content">
            <%=Login_InfoHtml%>
            <br />
            <img src="/Themes/Images/exclamation_octagon_fram.png" style="vertical-align: middle;
                margin-bottom: 3px;" width="16" height="16" alt="tip" />
            <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("HomeIndex_zh")%>
            <a href="javascript:void(0);" title="<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("CurrentUserManager_xgmm")%>"
                style="text-decoration: underline; color: Blue;" onclick="editpwd()">
                <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("CurrentUserManager_xgmm")%></a>
        </div>
    </div>
    <div class="blank10">
    </div>
    </form>
    <script src="/Template/jingyaosi/js/ckplayer.js" type="text/javascript"></script>
    <script src="/live/swfobject.js" type="text/javascript"></script>
    <script type="text/javascript">
        var funclosevideo = function () {
            document.getElementById("trysee_bg").style.display = "none";
            document.getElementById("trysee").style.display = "none";
            document.getElementById("trysee_close").style.display = "none";
            if (CKobject.getObjectById('ckplayer_a1') != null) {
                CKobject.getObjectById('ckplayer_a1').videoPause();
            }

        }
        document.writeln("<div id=\"trysee_bg\" style=\" position:fixed; top:0; left:0; width:100%; height:100%; background-color:#000; filter:alpha(opacity=50);-moz-opacity:0.50;opacity:0.50; display:none;\"></div>");
        document.writeln("<div id=\"trysee\" style=\" width:800px; height:500px; position:fixed; left:50%; top:80px; margin-left:-400px; background-color:#000;display:none;\"></div>");
        document.writeln("<div id=\"trysee_close\" style=\"position:fixed; top:70px; left:50%; margin-left:380px; width:32px; height:32px; background:url(/Themes/Images/32/459.png); cursor:pointer;display:none; \" title=\"关闭\"></div>");
        document.getElementById("trysee_close").onclick = funclosevideo;
        function trysee(url) {

            var flashvars = { f: url, c: 0, b: 0, p: 1, e: 0, h: 3, j: 300 };
            var params = { bgcolor: '#000', allowFullScreen: true, allowScriptAccess: 'always', wmode: 'opaque' };
            var video = [url + '->video/mp4'];

            var houzhui = url.substring(url.lastIndexOf(".") + 1); //获得主视频后缀名
            if (houzhui.indexOf("?") >= 0) {
                houzhui = url.substring(url.lastIndexOf(".") + 1, url.lastIndexOf("?"));
            }
            if (houzhui == "flv" || houzhui == "mp4") {
                CKobject.embed('/Training/Learn/m/ckplayer/ckplayer.swf', 'trysee', 'ckplayer_a1', '100%', '100%', false, flashvars, video, params);
            }
            else if (houzhui == "swf") {
                var swfVersionStr = "10.0.0";
                var xiSwfUrlStr = "playerProductInstall.swf";
                var flashvars = {};
                var params = {};
                params.quality = "high";
                params.bgcolor = "#ececec";
                params.allowscriptaccess = "sameDomain";
                params.allowfullscreen = "true";
                var attributes = {};
                attributes.id = "trysee";
                attributes.name = "trysee";
                attributes.align = "middle";
                swfobject.embedSWF(
                url, "trysee",
                "100%", "100%",
                swfVersionStr, xiSwfUrlStr,
                null, params, attributes);
            } else if (houzhui == "htm" || houzhui == "html") {
                jQuery("#trysee").html("<iframe scrolling=\"no\" src=\"" + url + "\" frameborder=\"0\" width=\"100%\" height=\"100%\"></iframe>");
            }

            document.getElementById("trysee_bg").style.display = "block";
            document.getElementById("trysee").style.display = "block";
            document.getElementById("trysee_close").style.display = "block";

        }
    </script>
</body>
</html>
