apps/com.actionsoft.apps.coe.pal.publisher/template/page/publish.client.sso.home1.html

320 lines
13 KiB
HTML
Raw Normal View History

2022-06-28 01:22:45 +08:00
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><#title></title>
<!-- js -->
<script type="text/javascript" src="../commons/js/jquery/scripts/jquery.js"></script>
<script type="text/javascript" src="../commons/js/awsui.js"></script>
<script type="text/javascript" src="../commons/js/public.js"></script>
<!-- css -->
<link rel="stylesheet" href="../commons/css/awsui.css">
<link rel="stylesheet" href="../apps/com.actionsoft.apps.coe.pal.publisher/css/publish.client.sso1.css">
<style>
#awsui-tabs1 {
display: inline-block;
border-radius: 4px 4px 0 0;
vertical-align: top;
border-bottom: none;
}
.awsui-layout-left-title{
border: none;
}
.ui-tree .tree-items {
color: #2F2F2F;
}
.awsui-layout-left-op {
z-index: 9;
}
#main_publish_content {
margin-top: 10px;
padding: 10px 20px;
box-shadow: 0 0 15px rgb(221, 221, 221);
position: absolute;
left: 40px;
right: 40px;
bottom: 20px;
top: 50px;
overflow: auto;
}
.main_ul {
padding: 5px;
}
.main_ul li {
padding: 3px;
}
.main_ul li:hover {
background-color: #EEE;
}
</style>
<script>
window["MzBrowser"]={};(function() {
if(MzBrowser.platform) return;
var ua = window.navigator.userAgent;
MzBrowser.platform = window.navigator.platform;
MzBrowser.firefox = ua.indexOf("Firefox")>0;
MzBrowser.opera = typeof(window.opera)=="object";
MzBrowser.ie = !MzBrowser.opera && ua.indexOf("MSIE")>0;
MzBrowser.mozilla = window.navigator.product == "Gecko";
MzBrowser.netscape= window.navigator.vendor=="Netscape";
MzBrowser.safari= ua.indexOf("Safari")>-1;
if(MzBrowser.firefox) var re = /Firefox(\s|\/)(\d+(\.\d+)?)/;
else if(MzBrowser.ie) var re = /MSIE( )(\d+(\.\d+)?)/;
else if(MzBrowser.opera) var re = /Opera(\s|\/)(\d+(\.\d+)?)/;
else if(MzBrowser.netscape) var re = /Netscape(\s|\/)(\d+(\.\d+)?)/;
else if(MzBrowser.safari) var re = /Version(\/)(\d+(\.\d+)?)/;
else if(MzBrowser.mozilla) var re = /rv(\:)(\d+(\.\d+)?)/;
if("undefined"!=typeof(re)&&re.test(ua))
MzBrowser.version = parseFloat(RegExp.$2);
})();
function aa() {
if(MzBrowser.ie&&MzBrowser.version==8) {
window.location.href = "../pal/error/coe_not_support.htm";
}
}
aa();
</script>
<script type="text/javascript">
var isSecurityPwdChange = <#isSecurityPwdChange>;
var forceChangePwd = <#forceChangePwd>;
var isSecurityPwdComplexity = <#isSecurityPwdComplexity>; // 密码强度
var securityMinPwdLength = <#securityMinPwdLength>; // 允许账户口令最小长度0表示无限制
var securityMaxPwdLength = <#securityMaxPwdLength>; // 允许账户口令最大长度最多32位长度
var wsTreeData = <#wsTree>;
var dockDisplay = '<#dockDisplay>';
var palIds = '';
var version = "v2";
</script>
<script type="text/javascript" src="../apps/com.actionsoft.apps.coe.pal.publisher/js/publish.client.sso.index.js"></script>
<script type="text/javascript" src="../apps/com.actionsoft.apps.coe.pal.publisher/js/publish.client.sso.index1.js"></script>
</head>
<body>
<div class="top_div">
<div id="title" class="title">
<img src="../apps/com.actionsoft.apps.coe.pal.publisher/img/title.png" style="width: 20px; margin-top: -3px; margin-right: 5px;"><#title>
</div>
<div>
<div id="awsui-tabs1" class="awsui-simple-tab" contentid="content" onbeforechange="clickMainTab" onchange="initTab2">
<a tit="tab1" class="active">首页</a><!-- <a tit="tab2">标准化体系</a> --><a tit="tab3">待办任务</a>
</div>
<div id="extend_tabs" class="awsui-tabs" contentid="extend_content" style="display: inline-block; width: 500px; background-color: rgba(0, 0, 0, 0); border: none;"></div>
<div id="setting_div" class="setting_div">
<font id="userName" style="position:relative;top:3px; float: left; cursor: pointer;"><#userName></font>
<span id="userName_icon" class="content-icons down_black" style="cursor: pointer;"></span>
<font style="border-left: solid 1px #c0c0c0;position: relative;float: left;height: 20px;margin-left: 10px;"></font>
<div id="appviewport2-top-right-dialog" style="display: none; top: 95px;">
<span id="updatePwd" onclick="modifyPwd();"><img src="../apps/com.actionsoft.apps.coe.pal.publisher/img/password.png" id="updatePasswordBtn"/>修改密码</span>
<span style="<#entryCoEView>" onClick="entryCoE();"><img src="../apps/com.actionsoft.apps.coe.pal.publisher/img/change.png" />切换到PAL</span>
<span style="<#settingView>" onClick="setting();"><img src="../apps/com.actionsoft.apps.coe.pal.publisher/img/settings.png" />设置</span>
<span onClick="logout();"><img src="../apps/com.actionsoft.apps.coe.pal.publisher/img/exit.png" />退出账号</span>
</div>
<img id="listBell" style="margin-left: 10px; height: 20px; cursor: pointer;" src="../apps/com.actionsoft.apps.coe.pal.publisher/img/bell_blue.png" onclick="showPublishList();" />
</div>
</div>
</div>
<div id="content">
<div tit="tab1" class="active" style="display:none;">
<div class="layout" id="tab1" style="top: 100px; bottom: 0px;width:100%;position:absolute;">
<div id="tab1_left" style="background-color: rgb(245, 245, 245); color: rgb(150, 150, 150);">
<div style="padding-top: 10px; overflow: auto; width: 240px;">
<ul id="tree" style="overflow: visible; margin-top: 10px; padding: 0 20px;"></ul>
<!-- <div id="relationSearch" appId="<#relationSearchId>" name="<#relationSearchTitle>" cmd="<#relationSearchCmd>" class="app" style="<#showRelationSearch>">
<img src="<#relationSearchIcon>" /><span><#relationSearchName></span>
</div> -->
</div>
</div>
<div id="tab1_separater"></div>
<div id="tab1_right">
<div id="awsui-tabs-content" class="awsui-tabs-panel" style="height: 100%;">
<div id="mainPublishList" style="padding: 30px 40px;">
<div style="display: inline-block;"><span style="font-size: 18px; color: #808080;">最近更新</span></div>
<div id="main_type_select" class="blue_tab" style="display: inline-block; float: right;">
<span publishType="" class="current">全部</span>
<span publishType="N">新发布</span>
<span publishType="C">变更</span>
<span publishType="S">停用</span>
</div>
<div id="main_publish_content"></div>
</div>
<iframe id="home_iframe" name="home_iframe" frameborder="0" index="main-index" class="awsui-layout-iframe" style="height: 100%; display: none;" allowtransparency="true"
src="./w?sid=<#sid>&amp;cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_main&wsId=<#wsId>"></iframe>
</div>
</div>
</div>
</div>
<div tit="tab2" style="display:none;">
<div class="layout" id="tab2" style="top: 100px; bottom: 0px;width:100%;position:absolute;">
<iframe id="tab2_iframe" name="tab2_iframe" frameborder="0" class="awsui-layout-iframe" style="height: 100%;" allowtransparency="true"
src=""></iframe>
</div>
</div>
<div tit="tab3" style="padding:20px; position: absolute; left: 0px; right: 0px; bottom: 0px; top: 100px;display:none;">
<iframe id="publisthlist_iframe" name="org_iframe" frameborder="0" class="awsui-layout-iframe" style="height: 100%;" allowtransparency="true"
src="./w?sid=<#sid>&cmd=com.actionsoft.apps.coe.pal.publisher_home"></iframe>
</div>
</div>
<div id="extend_content" class="awsui-tabs-panel" style="display: none;"></div>
<div id="publish_history" class="fold_right" style="display: none; padding: 10px 20px;">
<div style="width: 100%; margin-top: 20px;"><span style="font-size: 16px; color: #808080;">最近更新</span></div>
<div id="select_type" class="blue_tab" style="text-align: right; margin-top: 20px;">
<span id="publish_list_all" publishType="" class="current">全部</span>
<span publishType="N">新发布</span>
<span publishType="C">变更</span>
<span publishType="S">停用</span>
</div>
<div id="publish_history_list" style="overflow: auto; margin-top: 10px;"></div>
</div>
<div id="modify_dialog" style="display: none;">
<table class="awsui-ux" style="padding: 0px;">
<tbody>
<tr class="force-change-pwd-tips">
<td colspan="2" class="awsui-ux-title">如果需要,请修改门户登录密码!</td>
</tr>
<tr>
<td class="awsui-ux-title" style="width: 125px;">旧口令</td>
<td class="required"><input id="oldPassword" name="oldPassword" class="awsui-textbox" type="password" style="height: 30px;"></td>
</tr>
<tr>
<td class="awsui-ux-title">新口令</td>
<td class="required"><input id="password" name="password" class="awsui-textbox password" type="password" style="height: 30px;"></td>
</tr>
<tr>
<td class="awsui-ux-title">确认口令</td>
<td class="required"><input id="confirmPassword" name="confirmPassword" class="awsui-textbox confirmPassword" type="password" style="height: 30px;"></td>
</tr>
</tbody>
</table>
</div>
<div id="setting_dialog" style="display: none;">
<table class="awsui-ux">
<tbody>
<tr>
<td class="awsui-ux-title" style="width:125px;">门户标题</td>
<td class="required"><input id="title" name="title" class="awsui-textbox" type="text" value="<#title>"></td>
</tr>
<tr>
<td class="awsui-ux-title">页底信息</td>
<td class="required"><input id="fotter" name="fotter" class="awsui-textbox" type="text" value="<#fotter>"></td>
</tr>
<tr>
<td class="awsui-ux-title">允许留言</td>
<td class="required">
<select id="isComment" name="isComment" style="width:313px;" class="awsui-select">
<option value="true"></option>
<option value="false"></option>
</select>
</td>
</tr>
<tr>
<td class="awsui-ux-title">允许打印</td>
<td class="required">
<select id="isPrint" name="isPrint" style="width:313px;" class="awsui-select">
<option value="true"></option>
<option value="false"></option>
</select>
</td>
</tr>
<tr>
<td class="awsui-ux-title">允许查看属性</td>
<td class="required">
<select id="isViewAttribute" name="isViewAttribute" style="width:313px;" class="awsui-select">
<option value="true"></option>
<option value="false"></option>
</select>
</td>
</tr>
<tr>
<td class="awsui-ux-title">允许查看发布历史</td>
<td class="required">
<select id="isViewHistory" name="isViewHistory" style="width:313px;" class="awsui-select">
<option value="true"></option>
<option value="false"></option>
</select>
</td>
</tr>
</tbody>
</table>
</div>
<form action="./w" method="post" id="frm" name="frm" target="_blank">
<input type="hidden" name="cmd" value="com.actionsoft.apps.coe.pal_user_home_page">
<input type="hidden" name="clientIp" value="0:0:0:0:0:0:0:1">
<input type="hidden" name="sid" id="sid" value="<#sid>" />
<input type="hidden" name="appId" id="appId" value="<#appId>" />
</form>
<input type="hidden" name="roleId" id="roleId" value="<#roleId>" />
</body>
<script type="text/javascript">
var modelIds = "<#modelIds>";
var wsIds = "<#wsIds>";
var navtab;
$(function($){
var tab_width = $("#title").width() - $("#awsui-tabs1").width() - $("#setting_div").width() - 10;
$("#extend_tabs").width(tab_width);
//tab1布局
var options1 = {
left:{
target:"#tab1_left",
title:""
},
separater:{
target :"#tab1_separater",
width: 0
},
right:{
target:"#tab1_right"
}
};
$("#tab1").layout(options1);
loadMainPublishListData($("#main_type_select span[publishType='']"));
$("#main_type_select span[publishType]").off("click").on("click", function(){
loadMainPublishListData($(this));
})
//初始化tab
navtab = awsui.tabs.init($("#extend_tabs"),{
contentPanel:$("#extend_content"),
height:33,
noborder:true,
afterClick: function() {
$("#awsui-tabs1 a.active").removeClass("active");
$("#content").hide();
$("#extend_content").height($(window).height() - 100);
$("#extend_content").show();
},
onCloseTab: function() {
if ($("#extend_content iframe").length == 1) {
$("#extend_content").hide();
$("#content").show();
var tit = $("#content").children("div:visible").attr("tit");
$("#awsui-tabs1 a[tit=" + tit + "]").click();
}
}
});
if (!$('a[tit=tab1]').hasClass('active')) {
$('a[tit=tab1]').click();
}
$(window).resize();
})
</script>
</html>