<%@ page contentType="text/html; charset=GBK"  errorPage="../error.jsp" session="true"  %>
<%@ page import = "zr.zrpower.ejb.sys.UserService" %>
<%@ page import = "zr.zrpower.common.util.SysPreperty" %>
<%@ page import = "zr.zrpower.entity.sys.BPIP_USER" %>
<%@ page import = "zr.zrpower.ejb.sys.UIService" %>
<%@ page import = "zr.zrpower.entity.sys.SessionUser"%>


<html>
<head>
<%
  SessionUser user = (SessionUser)session.getAttribute("userinfo");
  UIService userUI =new UIService();
%>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title><%=SysPreperty.getProperty().SystemName%><%=SysPreperty.getProperty().Versoin%></title>
<link REL="stylesheet" type="text/css" href="../zrsysmanage/css/<%=user.getUserCSS()%>">
<SCRIPT LANGUAGE="JavaScript" src="../zrsysmanage/script/Public.js"></SCRIPT>
<%if("6".equals(user.getUserWINDOWTYPE())){ %>
<link rel="stylesheet" type="text/css" href="../zrsysmanage/html5/tabs/css/style2.css" />
<script type="text/javascript" src="../zrsysmanage/html5/tabs/js/modernizr.custom.04022.js"></script>
<SCRIPT LANGUAGE="JavaScript" src="../zrsysmanage/html5/script/jquery-2.0.3.min.js"></SCRIPT>
<%}else{ %>
<script type="text/javascript" src="../ZrwebGui/tab/tab.js"></script>
<link rel="stylesheet" type="text/css" href="../ZrwebGui/tab/tab.css">
<STYLE type=text/css>
#con { FONT-SIZE: 12px; MARGIN: 0px auto; WIDTH: 98% }
#tags { PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px 0px 0px 10px; WIDTH: 98% ; PADDING-TOP: 0px; HEIGHT: 23px }
#tags LI { BACKGROUND: url(../ZrwebGui/tab/skin/<%=user.getUserImage()%>/tagleft.gif) no-repeat left bottom; FLOAT: left; MARGIN-RIGHT: 1px; LIST-STYLE-TYPE: none; HEIGHT: 23px }
#tags LI A { PADDING-RIGHT: 10px; PADDING-LEFT: 10px; BACKGROUND: url(../ZrwebGui/tab/skin/<%=user.getUserImage()%>/tagright.gif) no-repeat right bottom; FLOAT: left; PADDING-BOTTOM: 0px; COLOR: #999;
LINE-HEIGHT: 23px; PADDING-TOP: 0px; HEIGHT: 23px; TEXT-DECORATION: none }
.tagContent { PADDING-RIGHT: 10px; DISPLAY: none; PADDING-LEFT: 10px; BACKGROUND: url(../ZrwebGui/tab/skin/<%=user.getUserImage()%>/bg.gif) repeat-x; PADDING-BOTTOM: 10px; WIDTH: 100%; COLOR: #474747;
PADDING-TOP: 10px; HEIGHT: 400 }
</STYLE>
<%} %>

</HEAD>
<BODY class="BodyMain">
<FORM name="RegForm" method="post" Action=""  onsubmit="return Check(this);">
<!--HTML Head表单头显示[显示内容,图标文件,用户肤色的图片文件夹]-->
<%=userUI.ShowHeadHtml("单位用户回收站管理","IcoTitle.gif",user.getUserImage())%>
<!--HTML Body Start显示表单开始部分-->
<%=userUI.ShowBodyStartHtml()%>

<br>

<%if("6".equals(user.getUserWINDOWTYPE())){ %>
<section class="tabs">
	            <input id="tab-1" type="radio" name="radio-set" class="tab-selector-1" checked="checked" />
		        <label for="tab-1" >单位</label>

	            <input id="tab-2" type="radio" name="radio-set" class="tab-selector-2" />
		        <label for="tab-2" >用户</label>
<div class="clear-shadow"></div>

		        <div id="content" class="content">
			        <div class="content-1">
						<iframe style="margin-left: -30px" id="Unit60" name="Unit60" src="UnitRecovery.jsp" border=0 frameborder=0 width=99% height=99% ></iframe>
				    </div>
			        <div class="content-2">
						<iframe style="margin-left: -30px" id="Unit61" name="Unit61" src="UserRecovery.jsp" border=0 frameborder=0 width=99% height=99% ></iframe>
				    </div>
</div>
</section>

<%}else{ %>
<DIV id="con">
<UL id="tags">
    <LI class="selectTag">
      <A onClick="selectTag('tagContent0',this)"  href="javascript:void(0)">
      <IMG src="../ZrwebGui/tab/skin/<%=user.getUserImage()%>/page.gif" align='absmiddle' border=0>
      清空单位
      </A>
    </LI>
     <LI>
       <A onClick="selectTag('tagContent1',this)" href="javascript:void(0)">
       <IMG src="../ZrwebGui/tab/skin/<%=user.getUserImage()%>/page.gif" align='absmiddle' border=0>
         清空用户
       </A>
     </LI>
  </UL>
  <DIV id="tagContent">
    <DIV class="tagContent selectTag" id="tagContent0">
      <iframe id="Unit" name="Unit" src="UnitRecovery.jsp" border=0 frameborder=0 width=100% height=100% ></iframe>
    </DIV>
    <DIV class="tagContent" id="tagContent1">
      <iframe id="User" name="User" src="" border=0 frameborder=0 width=100% height=100% ></iframe>
    </DIV>
  </DIV>
  </DIV>
<%} %>



<br>

<%if("6".equals(user.getUserWINDOWTYPE())){ %>
</td></tr></TABLE>
<%}else{%>
  <%=userUI.ShowFootHtml()%>
<%}%>
 </FORM>

<script language="JavaScript" type="text/JavaScript">
<%if("6".equals(user.getUserWINDOWTYPE())){%>
//宽、高
			var k=$(document.body).width();
			var h=$(document.body).height();//浏览器当前窗口文档body的高度
			h=h*1-100;
			//k=k*1-200;

			$('#content').css('height',h);
			$('#content').css('width',k);
			$("#Unit60").attr("width", k);
			$("#Unit60").attr("height", h);
			$("#Unit61").attr("width", k);
			$("#Unit61").attr("height", h);
<%}%>

function selectTag(showContent,selfObj){

	// 操作标签
	var tag = document.getElementById("tags").getElementsByTagName("li");
	var taglength = tag.length;
	for(i=0; i<taglength; i++){
		tag[i].className = "";
	}
	selfObj.parentNode.className = "selectTag";
	// 操作内容
	for(i=0; j=document.getElementById("tagContent"+i); i++){
		j.style.display = "none";
	}
	document.getElementById(showContent).style.display = "block";

	if (showContent=="tagContent1")
        {
          document.getElementById("User").src="UserRecovery.jsp";

        }
}

</script>
</BODY>
</HTML>
<%
user = null;
userUI = null;
%>
