<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="cm" uri="/commons-tags" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>系统授权信息</title>
<link href="../resources/style/base.css" rel="stylesheet" type="text/css"/>
<s:include value="../common/head.jsp" />
</head>

<body style="background-color:#FFF;">
<div class="body_form" style="width:90%;">
<s:include value="../common/body.jsp" />
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_line">
  <tr class="form_title">
    <td colspan="2">当前授权信息</td>
    </tr>
  <tr class="form_tr">
    <td width="32%" align="right" valign="top"><strong>系统版本：</strong></td>
    <td width="68%" valign="top">
		HrmEx_<s:property value="baseInfo.sysVer"/>
		&nbsp;&nbsp;
		SQL_<s:property value="baseInfo.sqlVer"/>
	</td>
  </tr>
  <tr class="form_tr">
    <td align="right" valign="top"><strong>授权员工：</strong></td>
    <td valign="top">共
      <s:property value="systemInfoDTO.emplCount"/>人 （已添加<s:property value="existEmplCount"/>人）</td>
    </tr>
  <tr class="form_tr">
    <td align="right" valign="top"><strong>授权用户：</strong></td>
    <td valign="top">共
      <s:property value="systemInfoDTO.userCount"/>人 （已添加<s:property value="existUserCount"/>人）</td>
    </tr>
  <tr class="form_tr">
    <td align="right" valign="top"><strong>授权模块：</strong></td>
    <td valign="top">
	<s:iterator value="systemInfoDTO.modules" status="st"><s:property value="name"/>；</s:iterator>	</td>
    </tr>
   <tr class="form_tr">
    <td align="right" valign="top"><strong>授权有效期：</strong></td>
    <td valign="top">
    	<s:if test="systemInfoDTO.isForever">
    		永久授权    	</s:if>
    	<s:else>
    		<s:property value="systemInfoDTO.availableDate"/>
      </s:else>    </td>
    </tr>     
  <tr class="form_tr">
    <td align="right" valign="top"><strong>系统授权码：</strong></td>
    <td valign="top">
		<div style="border:1px #CCCCCC solid; background-color:#F5F0FF; padding:3px; width:500px;">
		<s:property value="baseInfo.sysToken"/>
		</div>	</td>
    </tr>
</table>

	<s:form action="sysTokenUpdate" namespace="/system" onsubmit="return checkForm(this)">
	<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" 
		class="table_line" style="margin-top:15px;">
	  <tr class="form_title">
		<td colspan="2">更新授权码</td>
	  </tr>
  <tr class="form_tr">
    <td align="right" valign="top"><strong>您的系统序列号：</strong></td>
    <td valign="top"><s:property value="currentSysId"/></td>
    </tr>		  
	  <tr class="form_tr">
		<td width="32%" align="right"><strong>新的系统授权码：</strong></td>
		<td width="68%"><s:textarea name="baseInfo.sysToken" title="新系统授权码 为必填项。" value="" cssStyle="width:500px;height:50px;"/></td>
	  </tr>
	  <tr class="form_tr">
		<td align="right">&nbsp;</td>
		<td>
			<input type="submit" name="Submit" value="更 新" />    </td>
	  </tr>
	</table>
	</s:form>


</div>
</body>
</html>