<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ include file="../language.jsp" %>

<script src="../scripts/itsm/security/company.js?random=<%=new java.util.Date().getTime()%>"></script>
<script src="../scripts/itsm/config/mailServer/mailServer.js?random=<%=new java.util.Date().getTime()%>"></script>
<script src="../scripts/itsm/tools/smsAccount.js?random=<%=new java.util.Date().getTime()%>"></script>

<script>
$(document).ready(function(){
	 $("#company_loading").hide();
	 $("#company_content").show();
}); 



</script>


<style>
<!--
.required{
color:#ff0000;padding-left:5px
}



-->
</style>

<div style="padding:10px;color:#555555" id="company_loading"><img src="../images/icons/loading.gif" /></div>




<div id="company_content" class="easyui-panel" style="padding:3px;display:none" border="none">


<div class="easyui-layout" fit="true" fitColumns="true">
	
<!-- 树形主面板开始-->



        <div region="west" style="width:320px" title="<fmt:message key="common.basicInfo"/>" split="true">
        
        
		
			<table width="100%" >
  <tr>
    <td style="width:100%" valign="top">
    
    
     		  <!-- 新增开始 -->
    
    
    
      
      
      <!-- 扩展信息 start -->
      
    <!-- 新增开始 -->  
    
     
     	<div class="lineTableBgDiv" id="companyInfoDiv">
     	 <form id="companyInfoForm">
       		<table style="width:100%" class="lineTable" cellspacing="1">
                


				<tr>
                <td colspan="2"><a id="import_company_btn" target="_bank"><fmt:message key="label.dc.import"/></a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="company!exportCompanyInfo.action" target="_bank"><fmt:message key="label.dc.export"/></a></td>
                </tr>
				
                <tr>
                <td style="width:25%"><fmt:message key="label.basicSettings.companyName"/></td>
                <td style="width:75%"><input id="init_orgName" name="organizationDto.orgName" class="easyui-validatebox input" required="true" /></td>
                </tr>
                
                <tr>
                <td><fmt:message key="label.basicSettings.companyTel"/></td>
                <td><input id="init_officePhone" name="organizationDto.officePhone" class="easyui-validatebox input" validType="phone" /></td>
                </tr>
                
                <tr>
                <td><fmt:message key="label.basicSettings.companyFax"/></td>
                <td><input id="init_officeFax" name="organizationDto.officeFax" class="easyui-validatebox input" validType="phone"  /></td>
                </tr>
                
              
                
                <tr>
                <td><fmt:message key="label.basicSettings.companyEmail"/></td>
                <td><input id="init_email" name="organizationDto.email" class="easyui-validatebox input" validType="email" /></td>
                </tr>
               
                <tr>
                <td><fmt:message key="label.basicSettings.companyAddress"/></td>
                <td><input id="init_address" name="organizationDto.address" class="input"/></td>
                </tr>
                
                
                
                <tr id="homepage">
                <td><fmt:message key="label.basicSettings.companyWebsite"/></td>
                <td><input id="init_homePage" name="organizationDto.homePage" class="easyui-validatebox input" validType="url" /></td>
                </tr>
               
                <tr id="logo">
                <td style="height:32px"><fmt:message key="label.basicSettings.companyLOGO"/></td>
                <td>
                
                
                <input type="hidden" id="init_logo" name="organizationDto.logo" />
                
                <div id="showCompanyCompanyLogo" class="showicon"></div>

					<input id="uploadCompanyLogo" type="file" size="16" name="myFile" onchange="return commonUploadFile('uploadCompanyLogo','init_logo','showCompanyCompanyLogo')"/>
                </td>
                </tr>
                
                
               <tr>
                <td colspan="2" style="height:35px;text-align:left">
                <input type="hidden" id="init_OrgNo" name="organizationDto.orgNo" value="1"/>
                	<sec:authorize url="/pages/organization!mergeCompany.action">
                	<a id="saveCompanyInfo"  class="easyui-linkbutton" onclick="saveCompanyInfo()" icon="icon-save" ><fmt:message key="common.save"/></a>
                	</sec:authorize>
                </td>
                </tr>
                
                </table>
                
         </form>
         
         
         </div>
    			<!-- 新增结束 -->
    
    </td>
    
  </tr>
</table>
					

	</div>

	
	

	<div region="center" style="background:#eee;" id="companyCenter">
	
	
	<div class="easyui-tabs" fit="true" id="companyMainTab" border="false">
	
	
	<div title="<fmt:message key="title.basicSettings.emailAccount"/>">



<div id="MailServerDiv" style="overflow: hidden; padding:3px">
<form id="MailServerForm"> 

		<!-- 设置服务邮箱开始 -->
		
		<div class="lineTableBgDiv">
			<table style="width:100%" class="lineTable" cellspacing="1">
				<tr>
					<td width="120"><fmt:message key="label.basicSettings.serviceLoginName"/></td>
					<td>
						<input name="emailServerDTO.userName" id="userName"  style="width:60%" class="easyui-validatebox" validType="email" required="true" />
					</td>
				</tr>
				<tr>
					<td width="120"><fmt:message key="label.basicSettings.serviceLoginPassword"/></td>
					<td>
						<input type="password" name="emailServerDTO.password" id="password" style="width:60%" class="easyui-validatebox input"  required="true"  />
					</td>
				</tr>
				<tr>
					<td colspan="2"><fmt:message key="title.basicSettings.serviceEmail"/></td>
		
				</tr>
	
				<tr>
					<td style="width:20%"><fmt:message key="label.basicSettings.serverAddress"/></td>
					<td style="width:80%">
						<input name="emailServerDTO.pop3ServerAddress" id="pop3_serverAddress" style="width:60%" class="easyui-validatebox input" required="true"/>
					</td>
				</tr>
				<tr>
					<td><fmt:message key="label.basicSettings.serverPort"/></td>
					<td>
						<input name="emailServerDTO.pop3ServerPort" id="pop3_serverPort" style="width:30px" class="easyui-numberbox" required="true" />
					</td>
				</tr>
				
				<tr>
					<td colspan="2" ><fmt:message key="title.basicSettings.sendServiceEmail"/></td>
				</tr>
				
				<tr>
					<td style="width:20%"><fmt:message key="label.basicSettings.serverAddress"/></td>
					<td style="width:80%">
						<input name="emailServerDTO.smtpServerAddress" id="smtp_serverAddress" style="width:60%" class="easyui-validatebox" required="true"/>
					</td>
				</tr>
				<tr>
					<td><fmt:message key="label.basicSettings.serverPort"/></td>
					<td>
						<input name="emailServerDTO.smtpServerPort" id="smtp_serverPort" style="width:30px" class="easyui-numberbox" required="true" />
					</td>
				</tr>
			
				<tr>
					<td colspan="2" style="padding-top:15px">
						<sec:authorize url="/pages/mailServer!saveOrUpdateEmailServer.action">
							<input type="hidden" name="emailServerDTO.emailServerId" id="emailServerId" value="1" /> 
							<input type="hidden" name="emailServerDTO.attestation" id="attestation"/>
							<a onclick="emailConnTest()" class="easyui-linkbutton" icon="icon-ok" style="margin-right:8px"><fmt:message key="label.basicSettings.connectionTest"/></a>
							<a id="company_mailserver_save" class="easyui-linkbutton" icon="icon-save" style="margin-right:8px"><fmt:message key="common.save"/></a>
							<a onclick="scanEmailServer()" class="easyui-linkbutton" icon="icon-save"><fmt:message key="common.scan"/></a>
						</sec:authorize>	
					</td>
				</tr>
				
			</table>
		</div>
		<!-- 设置结束 -->
</form>
</div>


</div>
	
	
	

	
	
	
		<div title="<fmt:message key="title.basicSettings.smsAccount"/>">
	
	
	
	
<div id="SMSAccountDiv" style="overflow: hidden; padding:3px">
<form id="SMSAccountForm">

		<!-- 短信账户 -->
	
			<div class="lineTableBgDiv">
				<table style="width:100%" class="lineTable" cellspacing="1">
				<tr>
					<td style="width:20%;height:32px"><fmt:message key="label.basicSettings.smsLoginName"/></td>
					<td style="width:80%">
						<input name="smsAccountDTO.uid" id="smsAccountDTO_uid" style="width:60%" class="easyui-validatebox" required="true"/>
					</td>
				</tr>
				<tr>
					<td style="height:32px"><fmt:message key="label.basicSettings.smsLoginPassword"/></td>
					<td>
						<input type="password" name="smsAccountDTO.pwd" id="smsAccountDTO_pwd" style="width:60%" class="easyui-validatebox" required="true"/>
					</td>
				</tr>
				
				<tr>
					<td colspan="2" style="padding-top:15px">
						<input type="hidden" name="smsAccountDTO.sendUrl" id="smsAccountDTO_sendUrl" value="http://service.winic.org/sys_port/gateway/?"/>
						<input type="hidden" name="smsAccountDTO.queryUrl" id="smsAccountDTO_queryUrl" value="http://service.winic.org:8009/webservice/public/remoney.asp?" style="width:100%"/>
						<input type="hidden" name="smsAccountDTO.smsLength" id="smsAccountDTO_smsLength" value="70" style="width:100%"/>
						<input type="hidden" name="smsAccountDTO.moblieCount" id="smsAccountDTO_moblieCount" value="99"/>
						<input type="hidden" name="smsAccountDTO.said" id="smsAccountDTO_said">
						<sec:authorize url="/pages/sms!saveOrUpdateSMSAccount.action">
						<a id="testSMSAccountBtn" class="easyui-linkbutton" icon="icon-ok" style="margin-right:10px"><fmt:message key="label.basicSettings.smsAccountTest"/></a>
						<a id="saveSMSAccountBtn" class="easyui-linkbutton" icon="icon-save"><fmt:message key="common.save"/></a>
						</sec:authorize>
					</td>
				</tr>
	
			</table>
		</div>
		<!-- 设置结束 -->
</form>
</div>

	
	

	
	
	</div>

	
	

	
	
	</div>
	
	
	
	</div>
            
   <!-- 树形主面板结束-->         
		
</div>

</div>

