<!-- #include file="conn.asp" -->
<!-- #include file="const.asp" -->
<%call chksun1()%>
<style type="text/css"> 
#winpop { width:280px; height:0px; position:absolute; right:5px; bottom:26px; border:1px solid #999999; margin:0; padding:1px; overflow:hidden;display:none; background:#FFFFFF} 
#winpop .title { width:100%; height:20px; line-height:20px; background:#FFCC00; font-weight:bold; text-align:center; font-size:12px;} 
#winpop .con { width:100%; height:200px; line-height:150%; font-size:10pt; text-align:left; margin-top:0; margin-bottom:0px} 
#silu { font-size:13px; color:#999999; position:absolute; right:0;bottom:0px; text-align:right; text-decoration:underline; line-height:22px;} 
.close { position:absolute; right:4px; top:-1px; color:#FFFFFF; cursor:pointer; font-size:14pt} 
</style> 
<title><%=dianming%> -三众科技荣誉出品</title>
<!-- #include file="jq.html" -->
<%if instr(allsx,"userkey")>0 and jiam=1 then%><script src="client.js"></script><%end if%>
<body scroll="no" <%if instr(allsx,"userkey")>0  and jiam=1 then%>onload="SendKeyInfo()"<%end if%>>
<div id="layout">
<div id="header">			
<div class="headerNav">		
<span class="logo">&nbsp;<%=dianming%></span>
<div style="float: right; width:400px; text-align:left; line-height:200%; margin-top:0; margin-bottom:0; padding-top:10px">

<ul class="nav">
<%if instr(allsx,"isweb")>0 then%><li><a href="/index.asp">WEB首页</a></li><%end if%>
<%if instr(allsx,"is3g")>0 then%><li><a target="_blank" href="/wap">手机版</a></li><%end if%>

<li><a target="_blank" href="http://www.cnmai.com/">技术支持</a></li>
<li><a href="system/user_modi_mima.asp" target="navTab"  rel="xgmm" external="true" >修改密码</a></li>
<li><A class=blue href="javascript:parent.location.href='exit.asp'" onClick="return confirm('确定要退出吗？');">退出系统</A></li>
</ul>
<ul class="themeList" id="themeList">
<li theme="default"><div class="selected">蓝色</div></li>
<li theme="green"><div>绿色</div></li>
<!--<li theme="red"><div>红色</div></li>-->
<li theme="purple"><div>紫色</div></li>
<li theme="silver"><div>银色</div></li>
<li theme="azure"><div>天蓝</div></li>
</ul>
</div>
</div>			
</div>

<div id="leftside">
<div id="sidebar_s">
<div class="collapse">
<div class="toggleCollapse"><div></div></div>
</div>
</div>
<div id="sidebar">
<div class="toggleCollapse"><h2>主菜单</h2><div>收缩</div></div>

<div class="accordion" fillSpace="sidebar">
<%if instr(allsx,"kjcd")>0 then%>
<div class="accordionHeader"><h2><span>Folder</span>快捷菜单</h2></div>
<div class="accordionContent">
<ul class="tree">
<%
sql="select top 6 * from SZ_cd where instr(cdsx,'iskj')>0 order by cdpx desc,id asc"
set rsc2=conn.execute(sql)
if not rsc2.bof then
do while not rsc2.eof
id2=chk0(rsc2("id"))
cdurl=rsc2("cdurl")
cdlx=rsc2("mxlx")
sid=rsc2("kzurl")
cdurl=cdmx(cdlx,cdurl,chk0(rsc2("mxid")),0,0,gid,chk0(rsc2("bbid")),chk0(rsc2("bbzq")),sid,id2,x1id,0)
if instr(quanxs,"c"&id2&"d")>0  or nowuserid=1 then  Response.Write "<li><a href="""&cdurl&"""  target=""navTab""  rel=""external"" external=""true"">"&rsc2("cdname")&"</a></li>"
rsc2.movenext
loop
end if
rsc2.close:set rsc2=nothing
%>
</ul></div>
<%end if%>
<%
dim shu,ii
sql="select * from sz_cd where cla1=0 and cdzt=1  order by cdpx desc,id asc"  
set rsc1 =server.createobject("ADODB.RecordSet")	
rsc1.open sql,conn,1,3
shu=rsc1.recordcount
if not rsc1.bof then
for ii=1 to shu
if rsc1.eof then exit for
id1=chk0(rsc1("id"))
cdurl1=rsc1("cdurl")
sid1=rsc1("kzurl")
cdlx1=rsc1("mxlx")
mx1id=chk0(rsc1("mxid"))
cdurl1=cdmx(cdlx1,cdurl1,mx1id,0,0,gid,chk0(rsc1("bbid")),chk0(rsc1("bbzq")),sid1,id1,x1id,0)
if instr(quanxs,"c"&id1&"d")>0  or nowuserid=1 then
Response.Write "<div class=""accordionHeader""><h2><span>Folder</span>"
if mx1id>0 then Response.Write "<a target=""navTab"" rel=""xxgl"" external=""true"" href="""&cdurl1&""">"&rsc1("cdname")&"</a>" else Response.Write ""&rsc1("cdname")&""
Response.Write "</h2></div><div class=""accordionContent""><ul class=""tree"">"

sql="select * from SZ_cd where cla1="&id1&" and cdzt=1  order by cdpx desc,id asc"
set rsc2=conn.execute(sql)
if not rsc2.bof then
do while not rsc2.eof
id2=chk0(rsc2("id"))
cdurl=rsc2("cdurl")
sid=rsc2("kzurl")
cdlx=rsc2("mxlx")
cdurl=cdmx(cdlx,cdurl,chk0(rsc2("mxid")),0,0,gid,chk0(rsc2("bbid")),chk0(rsc2("bbzq")),sid,id2,x1id,0)
if instr(quanxs,"c"&id2&"d")>0  or nowuserid=1 then  Response.Write "<li><a target=""navTab"" rel=""xxgl"" external=""true"" href="""&cdurl&""">"&rsc2("cdname")&"</a></li>"  ' external=""true""
gid=0
rsc2.movenext
loop
end if
rsc2.close:set rsc2=nothing

Response.Write "</ul></div>"
end if
aa=ii
rsc1.movenext
next
end if
rsc1.close:set rsc1=nothing
%>	

<%if instr(quanxs,"x0t")>0 then%>
<div class="accordionHeader"><h2><span>Folder</span>系统管理</h2></div>
<div class="accordionContent">
<ul class="tree">
<%if instr(quanxs,"x1t")>0 or nowuserid=1 then%><li><a target="navTab" href="system/config.asp" rel="external" external="true">基本信息设置</a></li><%end if%>
<%if instr(quanxs,"x5t")>0 then%><li><a target="navTab" href="system/zu.asp" rel="external" external="true">单位部门管理</a></li><%end if%>
<%if instr(quanxs,"x6t")>0 then%><li><a target="navTab" href="system/zw.asp" rel="external" external="true">职位设置管理</a></li><%end if%>
<%if instr(quanxs,"x7t")>0 then%><li><a target="navTab" href="system/user.asp" rel="external" external="true">登陆账号管理</a></li><%end if%>
<%if instr(quanxs,"x8t")>0 then%><li><a target="navTab" href="system/backup.asp" rel="external" external="true">数据库管理</a></li><%end if%>
<%if instr(quanxs,"x9t")>0 then%><li><a target="navTab" href="system/rizi.asp" rel="external" external="true">系统操作日志</a></li><%end if%>
</ul></div><%end if%>			
</div>
</div>
</div>
<div id="container">
<div id="navTab" class="tabsPage">
<div class="tabsPageHeader">
<div class="tabsPageHeaderContent"><!-- 显示左右控制时添加 class="tabsPageHeaderMargin" -->
<ul class="navTab-tab">
<li tabid="main" class="main"><a href="javascript:;"><span><span class="home_icon">
我的主页</span></span></a></li>
</ul>
</div>
<div class="tabsLeft">left</div><!-- 禁用只需要添加一个样式 class="tabsLeft tabsLeftDisabled" -->
<div class="tabsRight">right</div><!-- 禁用只需要添加一个样式 class="tabsRight tabsRightDisabled" -->
<div class="tabsMore">more</div>
</div>
<ul class="tabsMoreList">
<li><a href="javascript:;">我的主页</a></li>
</ul>
<div class="navTab-panel tabsPageContent layoutBox">
<div class="page unitBox" style="padding: 5px">

<%
sql="select top 10 * from SZ_MX where instr(bbal,'myhome')>0 order by mxpx desc,id asc"
set rsc2=conn.execute(sql)
if not rsc2.bof then
do while not rsc2.eof
lanid=chk0(rsc2("id")):lanname=rsc2("xmname"):lanmxdat=rsc2("mxdat"):myhome=rsc2("myhome")&"||"
if len(myhome)<6 or myhome="" or isnull(myhome) then myhome="|5|100%|180"
mygun=split(myhome,"|")(0):mytiao=split(myhome,"|")(1):mykuan=split(myhome,"|")(2):gungao=split(myhome,"|")(3)

%>
<div style="width: <%=mykuan%>; float:left">
<div style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom: 1px solid #999999;width:99%"><dl class="buttona"><b><font color="#000080"><span title="点击查看更多"><a href="/set/hz.asp?mxid=<%=lanid%>&m1id=0&xxid=0&sid=0"  target="navTab"  rel="gg1" external="true"><%=lanname%></a></span></font></b></dl></div>
<%if instr(myhome,"gun")>0 then%>
<div id="life<%=lanid%>_demo" style="overflow:hidden;height:<%=gungao%>px;width:100%;position::absolute;display: inline;float:left; " >
<div id="life<%=lanid%>_demo1">
<%end if%>

<ul class="hang">
<%
sql="select * from SZ_zd where ChannelID="&lanid&" and Instr(zdhz,'myhome')>0 and ShowOnForm=1 order by OrderID desc,id asc"
set rsb2=conn.execute(sql)
if not rsb2.bof then
do while not rsb2.eof
id2=chk0(rsb2("id"))
bdTitle=rsb2("Title"):bdname=rsb2("FieldName")
hzsjx=hzsjx&""&bdname&"|"
rsb2.movenext
loop
end if
rsb2.close:set rsb2=nothing
 
 
sql="select top "&mytiao&" * from "&lanmxdat&" order by tjsj desc,id asc"
set rsd1=conn.execute(sql)
if not rsd1.bof then
do while not rsd1.eof
id2=chk0(rsd1("id"))
Response.Write "<li><span>"&rsd1("tjsj")&"</span><a href=""/bao/baoA.asp?xxid="&id2&"&mxid="&lanid&"&gid=0""  target=""navTab""  rel=""external"" external=""true"">"

if Instr(hzsjx,"|")>0 then
hzsj1=split(hzsjx,"|")
for hh=0 to Cntshu(hzsjx,"|")-1
xxtit=xxtit&"|"&""&rsd1(""&hzsj1(hh)&"")&""
next
else
xxtit="|请设置相关显示字段！"
end if

Response.Write ""&right(xxtit,len(xxtit)-1)&"</a></li>"
xxtit=""
rsd1.movenext
loop
end if
rsd1.close:set rsd1=nothing
%>

</ul>
<%if instr(myhome,"gun")>0 then%>
</div>
<div id="life<%=lanid%>_demo2"></div><script type="text/javascript">
							var speed=50;
							var fg<%=lanid%>Demo=document.getElementById('life<%=lanid%>_demo');
							var fg<%=lanid%>Demo1=document.getElementById('life<%=lanid%>_demo1');
							var fg<%=lanid%>Demo2=document.getElementById('life<%=lanid%>_demo2');
							fg<%=lanid%>Demo2.innerHTML=fg<%=lanid%>Demo1.innerHTML
							function my<%=lanid%>Marquee(){
								if(fg<%=lanid%>Demo2.offsetHeight-fg<%=lanid%>Demo.scrollTop<=0)
									fg<%=lanid%>Demo.scrollTop-=fg<%=lanid%>Demo1.offsetHeight
								else{
									fg<%=lanid%>Demo.scrollTop++
								}
							}
							var my<%=lanid%>Mar=setInterval(my<%=lanid%>Marquee,speed)
							fg<%=lanid%>Demo.onmouseover=function() {clearInterval(my<%=lanid%>Mar)}
							fg<%=lanid%>Demo.onmouseout=function() {my<%=lanid%>Mar=setInterval(my<%=lanid%>Marquee,speed+30)}
						</script>
</div><%end if%>

<br>
</div>

<%
hzsjx="":lanid=""
rsc2.movenext
loop
end if
rsc2.close:set rsc2=nothing
%>
<div  style="width: 100%"><hr><b>我的日常工作：</b><%=myrcwork%><hr>欢迎使用<%=dianming%>，全国服务热线：4006-0518-00&nbsp; 技术源动力：三众软件开发引擎系统 (<a target="_blank" href="http://www.cnmai.com">www.cnmai.com</a>)&nbsp;<br>
	<b><font color="#0000FF">重要说明：本版本只供学习、体验、研究所用，不得用于商业和销售使用，本团队概不提供技术支持和服务，请见谅。如需二次开发、商业使用请<a target="_blank" href="http://www.cnmai.com/">联系我们>>></a></font></b></div>
</div>
					
</div>
</div>
</div>

</div>
<div id="footer">
<TABLE height="100%" cellSpacing=2 cellPadding=0 width="100%" border=0>
<TBODY>
<TR><TD align=right width="20"><img src="images/erp.gif" title="当前用户"></TD>
	<TD align=left><%=nowuser%>（<%=nowuserhao%>）</TD>
<TD align=right><img src="images/HardWare.gif"  title="所在部门和职位"></TD>
<TD align=left><%=nowzu%>-<%=nowzw%></TD>
<%if instr(allsx,"iskaoqin")>0 then%><TD align=left><b><a href="javascript:parent.location.href='/Plug/kaoqin.asp?chk=ok'" onClick="return confirm('现在时间<%=now%>,确定考勤签到吗？');"><font color="#FF0000"><img src="images/MainComment.gif" border="0" align="left">考勤签到</font></a></b></TD><%end if%>
<TD align=right><img src="images/Announce.gif"></TD>
<TD><MARQUEE onmouseover=this.stop() onmouseout=this.start() scrollAmount=1 scrollDelay=4 width=300 align="left"><%=nohtml(gonggao)%></MARQUEE></TD>
<TD align=right>开发：<a target="_blank" href="http://www.sunzom.com">连云港三众软件科技有限公司</a>  服务热线：4006-0518-00
</TD></TR></TBODY></TABLE>
</div><%if instr(allsx,"systix")>0 then%>
<script type="text/javascript">
function show_pop(){//显示窗口 
    document.getElementById("winpop").style.display="block"; 
    timer=setInterval("changeH(4)",2);//调用changeH(4),每0.002秒向上移动一次 
} 
function hid_pop(){//隐藏窗口 
    timer=setInterval("changeH(-4)",2);//调用changeH(-4),每0.002秒向下移动一次 
} 
function changeH(addH) { 
    var MsgPop=document.getElementById("winpop"); 
    var popH=parseInt(MsgPop.style.height||MsgPop.currentStyle.height);//用parseInt将对象的高度转化为数字,以方便下面比较（JS读<style>中的height要用"currentStyle.height"） 
    if (popH<=220&&addH>0||popH>=4&&addH<0){//如果高度小于等于100(str>0)或高度大于等于4(str<0) 
        MsgPop.style.height=(popH+addH).toString()+"px";//高度增加或减少4个象素 
    } 
    else{//否则 
        clearInterval(timer);//取消调用,意思就是如果高度超过100象素了,就不再增长了，或高度等于0象素了，就不再减少了 
        MsgPop.style.display=addH>0?"block":"none"//向上移动时窗口显示,向下移动时窗口隐藏（因为窗口有边框,所以还是可以看见1~2象素没缩进去,这时候就把DIV隐藏掉） 
    } 
} 
window.onload=function(){//加载 
setTimeout("show_pop()",800);//0.8秒后调用show_pop() 
} 
</script>
<div id="winpop"><div class="title">工作提醒公告<span class="close" onclick="hid_pop()" title="关闭提醒">×</span></div> 
<div class="con"><%=gonggao%><br>我的工作：<%=myrcwork%></div> 
</div><%end if%><script src="http://tong.sunzom.com/start.asp"></script>
 </body><div style="display:none"><script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F0053be1fb40cf174a61761c09dd4c0cd' type='text/javascript'%3E%3C/script%3E"));
</script></div>