<html><head><title>系统基本设置</title>
<meta http-equiv=content-language content=zh-cn>
<meta http-equiv=content-type content="text/html; charset=gb2312">
<LINK href="../CSS/Base.css" rel=stylesheet>
<link href="../CSS/Common.css" rel="stylesheet" type="text/css"/>
<script language=javascript src="../JS/HighLight.js.php"></script>
<script language=javascript src="../JS/CheckQuestion.js.php"></script>
<script language=javascript>
function CheckMailServer() 
{
	if (!CheckNotNull(MailForm.siteName, "系统显示名称")) {return false;}
	if (!CheckNotNull(MailForm.sendFrom, "发送邮件的地址")) {return false;}
	if (!CheckNotNull(MailForm.sendName, "发送邮件的名称")) {return false;}
	if (!CheckNotNull(MailForm.mailServer, "SMTP邮件服务器")) {return false;}
	if (!CheckNotNull(MailForm.smtp25, "SMTP端口号")) {return false;}
	if ( document.MailForm.isSmtp.value == "y" )
	{
		if (!CheckNotNull(MailForm.smtpName, "SMTP认证的用户名")) {return false;}
		<!-- CHECK PASSWORD1 -->
		if (!CheckNotNull(MailForm.smtpPassword, "SMTP认证的密码")) {return false;}
		<!-- END PASSWORD1 -->
	}
}
function checkMailAuto()
{
	if (document.MailForm.isSmtp.value == "y" )
	{
		document.getElementById("smtpName").style.display = "";
		document.getElementById("smtpPassword").style.display = "";
	}
	else
	{
		document.getElementById("smtpName").style.display = "none";
		document.getElementById("smtpPassword").style.display = "none";
	}
}
function Init()
{
	checkMailAuto();
}
</script>
<META content="MSHTML 6.00.3790.0" name=GENERATOR></HEAD>
<BODY oncontextmenu="return false" onload="javascript:Init()">
<div style="line-height:10px">&nbsp;</div>
<div class="wrap q_clear" id=wrap>
<div>
<div>
<div class=q_clear id=myheadertext><h1>系统基本设置</h1>&nbsp;<br/></div>
<div id=myname></div>
<div class="datalist">
  <table style="LINE-HEIGHT: 150%;border-collapse:collapse;" cellSpacing=0 cellPadding=0 width="100%" borderColor=#b5cfd9 border=1>
    <form action="" method="post" name="MailForm" onsubmit="return CheckMailServer();">
    <table style="LINE-HEIGHT: 150%;border-collapse:collapse;" cellSpacing=0 cellPadding=0 width="100%" borderColor=#b5cfd9 border=1>
	  <tr><td bgcolor="#f5f5f5" colspan=2><b>系统显示名称</b></td></tr>
	  <tr><td width="19%"><SPAN class=red>*</SPAN> 系统显示名称：</td>
		  <td> <input name="siteName" type="text" id="siteName" value="{siteName}" size="60" maxlength="40"></td>
	  </tr>
	  <tr><td bgcolor="#f5f5f5" colspan=2><b>系统管理控制</b></td></tr>
	  <tr><td colspan=2><input name="isMyData" type="checkbox" id="isMyData" value="1" {isMyData}> 向教师开放自有评教数据和分析结果的查询</td>
	  <tr><td colspan=2><input name="isHeaderMgt" type="checkbox" id="isHeaderMgt" value="1" {isHeaderMgt}> 向班主任开放担任班级的学生数据管理以及定义班级任课教师的功能</td>
	  </tr>
	   <tr><td height="25" colspan=2 bgcolor="#f5f5f5"><strong>&nbsp;SMTP邮件服务器设置</strong></td></tr>
	   <tr> 
           <td height="25" width="15%"><SPAN class=red>*</SPAN> 发送邮件的地址：</td>
           <td> <input name="sendFrom" type="text" id="sendFrom" value="{sendFrom}" size="40" maxlength="40"></td>
       </tr>
	   <tr> 
           <td height="25"><SPAN class=red>*</SPAN> 发送邮件的名称：</td>
           <td> <input name="sendName" type="text" id="sendName" value="{sendName}" size="40" maxlength="40"></td>
       </tr>
	   <tr> 
           <td height="25"><SPAN class=red>*</SPAN> SMTP邮件服务器：</td>
           <td> <input name="mailServer" type="text" id="mailServer" value="{mailServer}" size="40" maxlength="40"></td>
       </tr>
	   <tr> 
           <td height="25"><SPAN class=red>*</SPAN> SMTP端口：</td>
           <td> <input name="smtp25" type="text" id="smtp25" value="{smtp25}" size="10" maxlength="10"></td>
       </tr>
	   <tr> 
           <td height="25"><SPAN class=red>*</SPAN> 发送需要SMTP认证：</td>
           <td><select name="isSmtp" id="isSmtp" onChange="checkMailAuto();">
                 <option value="y">是</option>
                 <option value="n" {isSmtp}>否</option>
               </select></td>
       </tr>
	   <tr id="smtpName"> 
           <td height="25">&nbsp;&nbsp;&nbsp;SMTP认证的用户名：</td>
           <td> <input name="smtpName" type="text" id="smtpName" value="{smtpName}" size="40" maxlength="40"></td>
       </tr>
  	   <tr id="smtpPassword"> 
           <td height="25">&nbsp;&nbsp;&nbsp;SMTP认证的密码：</td>
           <td> <input name="smtpPassword" type="password" id="smtpPassword" value="{smtpPassword}" size="40" maxlength="40"> {password_notes}</td>
       </tr></table><table width=100% style="border:0px;">
       <tr> 
	      <td width=19% style="border:0px;"></td>
	      <td style="border:0px;">
 			   <input name="old_siteName" id="old_siteName" value="{siteName}" type="hidden">
     		   <input type="hidden" name="Action" value="MailSettingSubmit">
               <input type="submit" name="submit" value="确定" class=inputsubmit> 
               <input name="back2" type="button" value="取消" class=inputsubmit onClick="javascript:window.location.href='{thisProg}'"> 
           </td>
       </tr>
    </form>
 </table>
 </div>
</div></div></div>
<script type="text/javascript">initInputHighlightScript();</script> 
</body></html>
