<%@include file="/auth.jsp"%>
<%@page import="java.util.Date"%>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@page language="java" pageEncoding="utf-8" %>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
HashFmlBuf buf = (HashFmlBuf) request.getAttribute("indentureBuf");
%>
<html>
<head>
<title>维修单位管理详情</title>
<link href="../../css/font.css" rel="stylesheet" type="text/css">
<script src="../../js/date.js"></script>
<script src="../../js/check.js"></script>
<style type="text/css">
.aselect
{
   width:155px;
}
</style>

<style type="text/css">
	
	.td1{
		width: 30%;
	}
table#csstable{
	border-top:#D8E9FE 1px solid;
	border-left:#D8E9FE 1px solid;
}
table#csstable td{
	border-bottom:#D8E9FE 1px solid;
	border-right:#D8E9FE 1px solid;
}

table#csstable #bottomcss td{

	border-bottom:#D8E9FE 0px solid;
}
</style>
</head>
<body onload="setValue();">
<form name="form1" method="post" action="/servlet/IndentureManage">
<input type="hidden" name="operate" value=""/>
<table width="100%"  border="0" align="center" cellpadding="0" cellspacing="1" class="box">
  <tr>
    <td valign="top"><table width="100%" height="23"  border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="25%" background="/images/tab_search_01.jpg"><table width="100%" height="23" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="6%" align="right"><img src="/images/little_red.jpg" width="12" height="12"></td>
                <td width="94%" class="font12b">&nbsp;<b>维修单位管理详细信息</b></td>
              </tr>
          </table></td>
          <td width="82%" background="/images/tab_search_03.jpg"><img src="/images/tab_search_02.jpg" width="12" height="23"></td>
        </tr>
      </table> 
      <table width="98%"  border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="d8e9fe" class="table02">
		<tr bgcolor="#FFFFFF">
		<td class="cell1"  style="line-height: 35px;" >维修单位编号</td>
		<td class="cell2">
		<%=buf.fget("indenture_id",0) %>
		</td>
		<td class="cell1">维修单位名称</td>
		<td class="cell2">
		<%=SM4.SM4Decrypt(Base64.decode(buf.fget("indenture_name", 0))) %>
		</td>
	</tr>
	<tr bgcolor="#FFFFFF">
		<td class="cell1" style="line-height: 35px;">维修单位地址</td>
		<td class="cell2">
		<%=buf.fget("indenture_address",0)%>
		</td>
		<td class="cell1">维修单位座机</td>
		<td class="cell2">
		<%=buf.fget("indenture_phone",0) %>
		</td>
	</tr>
	<tr bgcolor="#FFFFFF">
		<td class="cell1" style="line-height: 35px;">维修单位手机</td>
		<td class="cell2">
			<%=buf.fget("indenture_mobile",0) %>
		</td>
		<td class="cell1">联系人姓名</td>
		<td class="cell2">
	<%if(buf.fget("indenture_linkman",0).equals("")){ %>
   					未填写
   				<%}else{ %>
   					<%=buf.fget("indenture_linkman",0)%>
   				<%} %>
		</td>
	</tr>
	<tr bgcolor="#FFFFFF">
		<td class="cell1" style="line-height: 35px;">联系人座机</td>
		<td class="cell2">
		<%
   					if(buf.fget("linkman_phone",0).equals(""))
   					{
   				%>未填写<%} else{%>
   				<%=buf.fget("linkman_phone",0)%>
   				<%} %>
		</td>
		<td class="cell1">联系人手机</td>
		<td class="cell2">
			<%if(buf.fget("linkman_mobile",0).equals("")){%>
   			未填写<%}else{ %><%=buf.fget("linkman_mobile",0)%><%} %>
		</td>
	</tr>
	<tr bgcolor="#FFFFFF"  >
    			<td class="cell1" style="line-height: 35px;">
    				维修单位状态
    			</td>
    			<td class="cell2" style="width: 35%" colspan="3">
    			<%if(buf.fget("indenture_state",0).equals("1")){ %>
    				正常
    			<%}else{ %>
    			注销
    			<%} %>
    			</td>
    		</tr >
    		<tr bgcolor="#FFFFFF" >
    			<td class="cell1" style="line-height: 35px;">
    				备注
    			</td>
    			<td class="cell2" colspan="3">
    			<%if(buf.fget("remark",0).equals("")){ %>
    				未填写
    			<%}else{ %>
    				<%=buf.fget("remark",0) %>
    				<%} %>
    			</td>
    		</tr>
    </table>
	<table width="100%" align="center">
		<tr align="center">
		<td>
  <a href="javascript:history.go(-1)"><img src="../../images1/gb.png" alt="关闭" border="0" /></a>
		</td>
		</tr>
	</table>	
	 </td>
  </tr>
</table>
</form>
<%@include file="/foot.jsp"%>
</body>
</html>
<script>
function selectArea(frameworkid) {
	var url = "/servlet/SelectPara?select=area&frameworkid=" + frameworkid;
	var callback = changeArea;
	executeXhr(callback, url);
}

function changeArea() {

  if (req.readyState == 4) {

    if (req.status == 200) {
      document.getElementById("areaDiv").innerHTML = "<select class='aselect' name='areaid'>" + req.responseText + "</select> <font color='#FF0000'>*</font>";
    } else {
      alert("There was a problem retrieving the XML data:" +  req.statusText);
    }
  }
}
</script>
<script src="/js/ajaxUtils.js"></script>