<%@page import="com.zky.manager.*"%>
<%@ page import="com.zky.pub.*"%>
<%@ page language="java" pageEncoding="utf-8" %>
<%
    String ls_url1 = "",outstr1 = "";

    Login login_obj = (Login)session.getAttribute("login");

    //验证session是否过期
    if(login_obj == null)
    {
    	 ls_url1 = "/error.jsp?errorinfo=" + "<table><tr><td><font size='3' color='red'>"+Common.toGb("您尚未登录或已经过期!")+"</font></td></tr><tr><td align='center'> <a href='/login.jsp' target='_parent'>"+Common.toGb("重新登录")+"</a></td></tr></table>";  //outstr1 = new String(ls_url1.getBytes("gb2312"),"iso8859-1");
        outstr1 = Common.GbConvertIso(ls_url1);
        response.sendRedirect(outstr1);
        return;
        
    }
    
    //验证口令是否验证通过
    if(login_obj.checkPasstag() == false)
    {
    	ls_url1 = "/error.jsp?errorinfo=" + Common.toGb("您没有成功登录!")+"<br> <a href='/login.jsp' target='_parent'>"+Common.toGb("重新登录")+"</a>";
         //outstr1 = new String(ls_url1.getBytes("gb2312"),"iso8859-1");
        outstr1 = Common.GbConvertIso(ls_url1);
        response.sendRedirect(outstr1);
        return;
    }
%>



<div  id="mydiv"  name="mydiv"  style="display:none"></div>  

 
<html>
<head>

<title>学生评定系统</title>
</head>
<style>
.divclass{
 position:absolute;
 width:120;
 height:50;
 z-index:99;
 
 background:  #eeeeee;
 font-size: 12px;
 border: 1px solid #333333;
 top: 10px;
 padding:  0px 0px;
 text-align : left; 
 

 
 BACKGROUND-IMAGE: url(/images/menuback.gif); 
 filter: Alpha(Opacity=85);


}
.divclassZHCXDiv{
 position:absolute;
 width:120;
 height:50;
 z-index:99;
 
 background:  #eeeeee;
 font-size: 12px;
 border: 1px solid #333333;
 top: 10px;
 padding:  0px 0px;
 text-align : left; 
 
  BACKGROUND-IMAGE: url(/images/menuback.gif); 
 filter: Alpha(Opacity=85);

}
</style>
<style type="text/css">
body{
	text-align: left;
	margin: 0px;
	padding: 0px;
}

ul{
	margin: 0px;padding: 0px;
	text-align : center;
	
}
li {
	 margin-left:30px;
	line-height: 22px;
	list-style-type: none;
	border-bottom: 1px solid #999999;
	display: block;
	weight: 100%;
	text-align : left; 
} 

a:link {
	display: block;
	text-decoration: none;
	color: #000000;
}
a:visited {
display: block;
	text-decoration: none;
	color: #000000;
}
a:hover {
display: block;
	background-color: #CCCCCC;
	text-decoration: none;
	color: #000000;
}
</style>

<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
<link href="/css/font.css" rel="stylesheet" type="text/css">
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    
    set();
    clock()
    //hideAll();
    //window.open('jumpinfo.jsp','提示信息','width=250,Height=260');
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>


<%
	login_obj = (Login)session.getAttribute("login");
	login_obj.outXTree();
	String menuidlist = login_obj.menuidlist;
	
%> 
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 onLoad="MM_preloadImages('images/first_9_later.gif','images/first_12.gif','images/first_later_14.gif','images/first_later_17.gif','images/first_later_19.gif','images/first_later_24.gif','images/first_later_27.gif','images/first_later_29.gif','images/first_later_34.gif','images/first_later_39.gif')">
<div  align=left> 
<table width="1004" height="245"  border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="128" height="76"><IMG SRC="images/first_1.gif" WIDTH=128 HEIGHT=76 ALT=""></td>
    <td width="209"><IMG  onMouseOver="hideAll()"  SRC="images/first_2.gif" WIDTH=209 HEIGHT=76 ALT=""></td>
    <td width="211"><IMG  onMouseOver="hideAll()"  SRC="images/first_3.gif" WIDTH=211 HEIGHT=76 ALT=""></td>
    <td width="268"><IMG  onMouseOver="hideAll()"  SRC="images/first_4.gif" WIDTH=268 HEIGHT=76 ALT=""></td>
    <td width="188"><IMG  onMouseOver="hideAll()"  SRC="images/first_5.gif" WIDTH=188 HEIGHT=76 ALT=""></td>
  </tr>
  <tr>
    <td height="52"><IMG  onMouseOver="hideAll()"  SRC="images/first_6.gif" WIDTH=128 HEIGHT=52 ALT=""></td>
    <td><IMG  onMouseOver="hideAll()"  SRC="images/first_7.gif" WIDTH=209 HEIGHT=52 ALT=""></td>
    <td><IMG  onMouseOver="hideAll()"  SRC="images/first_8.gif" WIDTH=211 HEIGHT=52 ALT=""></td>
    <td width="268" height="52"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('HPXDD','','images/first_later_9.gif',1)"><img    onmouseover="cc(this)"   src="images/first_9.gif" name="HPXDD" width="268" height="52" border="0"></a></td>
    <td><IMG  onMouseOver="hideAll()"  SRC="images/first_10.gif" WIDTH=188 HEIGHT=52 ALT=""></td>
  </tr>
  <tr>
    <td><IMG  onMouseOver="hideAll()"  SRC="images/first_11.gif" WIDTH=128 HEIGHT=54 ALT=""></td>
    <td width="209" height="54"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('YJGL','','images/first_later_12.gif',1)"><img   onmouseover="cc(this)"   src="images/first_12.gif" name="YJGL" width="209" height="54" border="0"></a></td>
    <td><IMG  onMouseOver="hideAll()"  SRC="images/first_13.gif" WIDTH=211 HEIGHT=54 ALT=""></td>
    <td><IMG  onMouseOver="hideAll()"  SRC="images/first_14.gif" WIDTH=268 HEIGHT=54 ALT=""></td>
    <!--
    <td width="268" height="54"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('DDSH','','images/first_later_14.gif',1)"><img  onmouseover="cc(this)"   src="images/first_14.gif" name="DDSH" width="268" height="54" border="0"></a></td>
    -->
    <td><IMG  onMouseOver="hideAll()"  SRC="images/first_15.gif" WIDTH=188 HEIGHT=54 ALT=""></td>
  </tr>
  <tr>
    <td><IMG  onMouseOver="hideAll()"  SRC="images/first_16.gif" WIDTH=128 HEIGHT=60 ALT=""></td>
    <td width="209" height="60"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('BBFX','','images/first_later_17.gif',1)"><img  onmouseover="cc(this)"   src="images/first_17.gif" name="BBFX" width="209" height="60" border="0"></a></td>
    <td><IMG  onMouseOver="hideAll()"  SRC="images/first_18.gif" WIDTH=211 HEIGHT=60 ALT=""></td>
    <td width="268" height="60"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('HPRK','','images/first_later_19.gif',1)"><img onmouseover="cc(this)"  src="images/first_19.gif" name="HPRK" width="268" height="60" border="0"></a></td>
    <td><IMG  onMouseOver="hideAll()"  SRC="images/first_20.gif" WIDTH=188 HEIGHT=60 ALT=""></td>
  </tr>
  <tr>
    <td><IMG  onMouseOver="hideAll()"  SRC="images/first_21.gif" WIDTH=128 HEIGHT=56 ALT=""></td>
    <td><IMG  onMouseOver="hideAll()"  SRC="images/first_22.gif" WIDTH=209 HEIGHT=56 ALT=""></td>
    <td><IMG  onMouseOver="hideAll()"  SRC="images/first_23.gif" WIDTH=211 HEIGHT=56 ALT=""></td>
    <td><IMG  onMouseOver="hideAll()"  SRC="images/first_24.gif" WIDTH=268 HEIGHT=56 ALT=""></td>
    <!--
    <td width="268" height="56"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('HPFP','','images/first_later_24.gif',1)"><img onmouseover="cc(this)"   src="images/first_24.gif" name="HPFP" width="268" height="56" border="0"></a></td>
    -->
    <td><IMG  onMouseOver="hideAll()"  SRC="images/first_25.gif" WIDTH=188 HEIGHT=56 ALT=""></td>
  </tr>
  <tr>
    <td><IMG  onMouseOver="hideAll()"  SRC="images/first_26.gif" WIDTH=128 HEIGHT=58 ALT=""></td>
    <td width="209" height="58"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('XTGL','','images/first_later_27.gif',1)"><img onmouseover="cc(this)"   src="images/first_27.gif" name="XTGL" width="209" height="58" border="0"></a></td>
    <td><IMG  onMouseOver="hideAll()"  SRC="images/first_28.gif" WIDTH=211 HEIGHT=58 ALT=""></td>
    <td width="268" height="58"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('HPXS','','images/first_later_29.gif',1)"><img onmouseover="cc(this)"   src="images/first_29.gif" name="HPXS" width="268" height="58" border="0"></a></td>
    <td><IMG  onMouseOver="hideAll()"  SRC="images/first_30.gif" WIDTH=188 HEIGHT=58 ALT=""></td>
  </tr>
  <tr>
    <td><IMG  onMouseOver="hideAll()"  SRC="images/first_31.gif" WIDTH=128 HEIGHT=52 ALT=""></td>
    <td><IMG  onMouseOver="hideAll()"  SRC="images/first_32.gif" WIDTH=209 HEIGHT=52 ALT=""></td>
    <td><IMG  onMouseOver="hideAll()"  SRC="images/first_33.gif" WIDTH=211 HEIGHT=52 ALT=""></td>
    <td><IMG  onMouseOver="hideAll()"  SRC="images/first_34.gif" WIDTH=268 HEIGHT=52 ALT=""></td>  <!--
    <td width="268" height="52"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('HPWX','','images/first_later_34.gif',1)"><img onmouseover="cc(this)"   src="images/first_34.gif" name="HPWX" width="268" height="52" border="0"></a></td>
    -->
    <td><IMG  onMouseOver="hideAll()"  SRC="images/first_35.gif" WIDTH=188 HEIGHT=52 ALT=""></td>
  </tr>
  <tr>
    <td><IMG  onMouseOver="hideAll()"  SRC="images/first_36.gif" WIDTH=128 HEIGHT=57 ALT=""></td>
    <td><IMG  onMouseOver="hideAll()"  SRC="images/first_37.gif" WIDTH=209 HEIGHT=57 ALT=""></td>
    <td><IMG  onMouseOver="hideAll()"  SRC="images/first_38.gif" WIDTH=211 HEIGHT=57 ALT=""></td>
    <td width="268" height="57"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('ZHCX','','images/first_later_39.gif',1)"><img onmouseover="cc(this)"   src="images/first_39.gif" name="ZHCX" width="268" height="57" border="0"></a></td>
    <td><IMG  onMouseOver="hideAll()"  SRC="images/first_40.gif" WIDTH=188 HEIGHT=57 ALT=""></td>
  </tr>
</table>

<%@include file="/menu.jsp"%>  

</body>
</html>

<script  language=javascript>  
function isVisible(cd)
{

	<%=menuidlist%>
	var count = 0;
	for (i=0;i<menuidlist.length;i++)
	{
		if (menuidlist[i] == cd.name)
		{
			count++;
			break;
		}			
	}
	if (count == 0)
	{
		cd.disabled=true;
	}
	
	
}

function check(cd)
{

	<%=menuidlist%>
	var count = 0;
	for (i=0;i<menuidlist.length;i++)
	{
		if (menuidlist[i] == cd.name)
		{
			count++;
			break;
		}			
	}
	if (count == 0)
	{
	
		return false;
	}
	return true;	
	
}

function  cc(tt)  
{  
   var flag = tt.name;
   var  daps;
   var top = 0;
   var left = 0;
   
   var  ttop    =  tt.offsetTop;          //TT控件的定位点高  
   var  thei    =  tt.clientHeight;    //TT控件本身的高 
   var  twidth  =  tt.clientWidth;
   var  tleft  =  tt.offsetLeft;        //TT控件的定位点宽  
   var  ttyp    =  tt.type;                    //TT控件的类型 
    var ttx;
   var tty;  
      
   while  (tt  =  tt.offsetParent){ttop+=tt.offsetTop;  tleft+=tt.offsetLeft;}  
   top = top + (ttyp=="image")?  ttop+thei  :  ttop+thei;  //层的  Y  坐标 
   left = left + tleft  ;    //层的  X  坐标  
   
   tty = ttop+thei/2;
   ttx = tleft + twidth;
   
   
   if	(flag == "XTGL")
   {
   	daps    =  document.all.XTGLDiv.style;  
   	left += 185;
   	top = top-50;
   }
   else if (flag == "HPXDD")
   {
   	daps    =  document.all.HPXDDDiv.style; 
   	left += 230;
   	top = top-50;
   }
   else if (flag == "DDSH")
   {
   	daps    =  document.all.DDSHDiv.style;  
   	left += 250;
   	top = top-50;
   }
   else if (flag == "HPRK")
   {
   	daps    =  document.all.HPRKDiv.style;  
   	left += 265;
   	top = top-50;
   }
   else if (flag == "HPFP")
   {
   	daps    =  document.all.HPFPDiv.style;  
   	left += 265;
   	top = top-50;
   }
   else if (flag == "HPXS")
   {
   	daps    =  document.all.HPXSDiv.style;  
   	left += 265;
   	top = top-50;
   }
   else if (flag == "HPWX")
   {
   	daps    =  document.all.HPWXDiv.style;  
   	left += 265;
   	top = top-50;
   }
   else if (flag == "ZHCX")
   {
   	daps    =  document.all.ZHCXDiv.style;
   	   	left += 265;
   	top = top-50;
   //	left = left -110;  
   	//top = top-150;
   	
   }
   else if (flag == "YJGL")
   {
   	daps    =  document.all.YJGLDiv.style;
   	left += 205;
   	top = top-55;
   	
   }
   else if (flag == "BBFX")
   {
   	daps    =  document.all.BBFXDiv.style;
   	left += 200;
   	top = top-40;
   	
   }

   daps.top    =   tty;
   daps.left  =  ttx;

   //daps.top    =   top;
  // daps.left  =  left;
      
   document.all.XTGLDiv.style.display  =  "none";
   document.all.HPXDDDiv.style.display  =  "none";
   document.all.DDSHDiv.style.display  =  "none";
   document.all.HPRKDiv.style.display  =  "none";
   document.all.HPFPDiv.style.display  =  "none";
   document.all.HPXSDiv.style.display  =  "none";
   document.all.HPWXDiv.style.display  =  "none";
   document.all.ZHCXDiv.style.display  =  "none";
   
   document.all.YJGLDiv.style.display  =  "none";
   document.all.BBFXDiv.style.display  =  "none";
   
   daps.display  =  "";    //层显示  
   //daps.visibility="visible";
}  



function hideAll()
{
   document.all.XTGLDiv.style.display  =  "none";
   document.all.HPXDDDiv.style.display  =  "none";
   document.all.DDSHDiv.style.display  =  "none";
   document.all.HPRKDiv.style.display  =  "none";
   document.all.HPFPDiv.style.display  =  "none";
   document.all.HPXSDiv.style.display  =  "none";
   document.all.HPWXDiv.style.display  =  "none";
   document.all.ZHCXDiv.style.display  =  "none";
   
   document.all.YJGLDiv.style.display  =  "none";
   document.all.BBFXDiv.style.display  =  "none";
}

function clock() {
    var title="时间:";
    var date=new Date();
    var year=date.getYear();
    var month=date.getMonth();
    var day=date.getDate();
    var hour=date.getHours();
    var minute=date.getMinutes();
    var second=date.getSeconds();
    var months=new Array("1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月")

    var monthname=months[month];

    if (hour > 12) {
        hour=hour- 12;
    }

    if (minute < 10) {
        minute="0"+minute;
    }

    if (second < 10) {
        second="0"+second;
    }

    document.title=title+" "+monthname+" "+day+", "+year+" - "+hour+":"+minute+":"+second;
    status=title+" "+year+"年"+monthname+day+"日"+" "+hour+":"+minute+":"+second;

	//status += "    ";
    setTimeout("clock()", 500)
}



if (window.Event) 
  document.captureEvents(Event.MOUSEUP); 

function nocontextmenu() 
{
  event.cancelBubble = true
  event.returnValue = false;

  return false;
}

function norightclick(e) 
{
  if (window.Event) 
  {
    if (e.which == 2 || e.which == 3)
    return false;
  }
  else
    if (event.button == 2 || event.button == 3)
    {
      event.cancelBubble = true
      event.returnValue = false;
      return false;
    }
  //window.status = '甘肃联通有价卡管理系统';
  //return false;
}
function look(){ 
  if(event.shiftKey) 
    alert("禁止按Shift键!"); //可以换成ALT CTRL
}
function disstatus () {
  window.status = '甘肃联通有价卡管理系统';
}

document.onkeydown=look; 

function noKeyPress(){
  return false;
}
document.oncontextmenu = nocontextmenu; // for IE5+
document.onmousedown = norightclick; // for all others
document.onKeyPress = noKeyPress;

//onMouseUp="disstatus()" onKeyDown="disstatus()" onMouseOver="disstatus()" onMouseMove="disstatus()"


//Disable select-text script (IE4+, NS6+)- By Small
function disableselect(e){
return false
}

function reEnable(){
return true
}

//if IE4+
document.onselectstart=new Function ("return false")

//if NS6
if (window.sidebar){
document.onmousedown=disableselect
  document.onclick=reEnable
}
</script>