- <%@ page language="java" pageEncoding="GB2312" contentType="text/html;charset=GB2312"%>
- <%@ include file="/common/taglibs.jsp"%>
- <%@ include file="/common/meta.jsp"%>
- <html>
- <head>
- <title>各领导信息</title>
- <link rel="stylesheet" type="text/css" href="../include/style.css"><SCRIPT LANGUAGE="JavaScript" src='<c:url value="/scripts/_js.js"/>'></SCRIPT>
- <META NAME="Author" CONTENT="xunuo">
- <META NAME="Keywords" CONTENT="xunuo">
- <META NAME="Description" CONTENT="自动生成">
- <script language="javascript">
- <!--
- function checkForm(form){
- name_returnStr = XN_CheckNull(form.name.value) ;
- if (name_returnStr != Validationstr){ //不能为空
- XN_alert(er+"姓名"+name_returnStr);
- form.name.focus();
- return false;
- }
- duty_returnStr = XN_CheckNull(form.duty.value);
- if (duty_returnStr != Validationstr){ //最大长度
- XN_alert(er+"职称" + duty_returnStr);
- form.duty.focus();
- return false ;
- }
- email_returnStr = XN_CheckEmail(form.email.value) ;
- if (email_returnStr != Validationstr){ //不能为空
- XN_alert(er+"邮箱"+email_returnStr);
- form.email.focus();
- return false;
- }
- var isSubmit = false ;
- if(form.uploadFile.value != "") {
- form.havefile.value = "1" ;
- }
- if(!isSubmit) {
- isSubmit = true ;
- return true ;
- }
- }
- -->
- </script>
- </head>
- <body>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td colspan="2" bgcolor="#f6f6f6" align="right" style="cursor:hand" onClick="if(HelpTab.style.display=='none'){HelpTab.style.display='';window.scrollTo(window.pageXOffset,0);}else{HelpTab.style.display='none'}"> <img src='<c:url value="/sys/images/why.gif"/>' width="14" height="14">
- ::Help::</td>
- </tr>
- <tr Id="HelpTab" style="display:none">
- <td width="2%"> </td>
- <td width="98%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td height="10" width="10"></td>
- <td></td>
- </tr>
- <tr>
- <td>·</td>
- <td><b>名词说明:职称</b></td>
- </tr>
- <tr>
- <td></td>
- <td>表示本政府领导的职称,如:某某市副市长、某某市委书记等等<p></td>
- </tr>
- <tr>
- <td>·</td>
- <td><b>名词说明:工作</b></td>
- </tr>
- <tr>
- <td></td>
- <td>表示本政府领导的具体工作,不用长篇大论。<p></td>
- </tr>
- <tr>
- <td>·</td>
- <td><b>名词说明:是否在首页显示</b></td>
- </tr>
- <tr>
- <td></td>
- <td>标志某一领导照片在首页显示<p></td>
- </tr>
- <tr>
- <td>·</td>
- <td><b>名词说明:简历</b></td>
- </tr>
- <tr>
- <td></td>
- <td>简短介绍<p></td>
- </tr>
- <tr>
- <td>·</td>
- <td><b>注明</b></td>
- </tr>
- <tr>
- <td></td>
- <td>只有一位领导照片在首页显示,条件为最上面一位、有照片、并且状态为“显示”的领导照片才能在首页显示。<br></td>
- </tr>
- </table>
- <a name="Help"></a></td>
- </tr>
- </table>
- <br>
- <table border="0" cellpadding="4" cellspacing="1" class=table width="100%">
- <html:form action="/sys/lead/saveLead.html" enctype="multipart/form-data" onsubmit="return checkForm(this);">
- <input type="hidden" name="from" value='<c:out value="${from}"/>'>
- <html:hidden property="id"/>
- <html:hidden property="serialnumber" />
- <html:hidden property = "parentid" />
- <html:hidden property = "havefile" />
- <!--没有编辑的字段都需要在此添加-->
- <html:hidden property = "photo" />
- <tr>
- <th width="100%" align="center" colspan="2">各领导信息</th>
- </tr>
- <tr class="td">
- <td align="left" width="40%" nowrap>姓名:(√)(最多50字符)</td>
- <td align="left" width="60%">
- <html:text property="name" size="40" maxlength = "50"/></td>
- </tr>
- <tr class="td">
- <td align="left" width="40%" nowrap>职称:(√)(最多50字符)</td>
- <td align="left" width="60%">
- <html:text property="duty" size="40" maxlength = "50"/></td>
- </tr>
- <tr class="td">
- <td align="left" width="40%" nowrap>工作:</td>
- <td align="left" width="60%">
- <html:textarea property="job" cols="39" rows="4"><c:out value="${job}"/></html:textarea></td>
- </tr>
- <tr class="td">
- <td width="10%" align="center" colspan="2" nowrap>简介:<br>
- <html:textarea property="resume" styleClass="input_text" style="display: none"/>
- <c:if test="${isGuest}"><br><c:out value="${leadForm.resume}" escapeXml="false"/><br>
- </c:if>
- <c:if test="${!isGuest}">
- <iframe ID="eWebEditor1" src='<c:url value="/sys/editor/index.jsp"/>?id=resume&style=s_newssystem&originalfilename=d_originalfilename&savefilename=d_savefilename&savepathfilename=d_savepathfilename' frameborder="0" scrolling="no" width="100%" HEIGHT="300"></iframe>
- </c:if>
- </td>
- </tr>
- <tr class="td">
- <td align="left" width="40%" nowrap>照片:(最多50字符)</td>
- <td align="left" width="60%">
- <html:file property="uploadFile" size="20"/>
- <c:if test="${leadForm.havefile != null && leadForm.havefile != 0 &&leadForm.id != null && leadForm.id != '' && leadForm.photo != '' && leadForm.photo != null}">
- <a href='<c:url value="${photo}"/>' target="_blank"><img src='<c:url value="${photo}"/>' border="0" width="50" height="50"></a><input type="button" value="删除图片" onclick="havefile.value=0;alert('按确定后才生效!')"/>
- </c:if>
- </td>
- </tr>
- <tr class="td">
- <td align="left" width="40%" nowrap>信箱:(√)(最多200字符)</td>
- <td align="left" width="60%">
- <html:text property="email" size="40" maxlength = "200"/></td>
- </tr>
- <tr class="td">
- <td align="left" width="40%" nowrap>状态:(最多50字符)</td>
- <td align="left" width="60%">
- <select name="status"><option value="1" <c:if test="${leadForm.status==1}"><c:out value="selected" /></c:if> >发布</option><option value="0" <c:if test="${leadForm.status==0}"><c:out value="selected" /></c:if>>不发布</option></select>
- </td>
- </tr>
- <tr class="td">
- <td align="left" width="40%" nowrap>是否在首页显示:(最多50字符)</td>
- <td align="left" width="60%">
- <select name="isindex"><option value="0" <c:if test="${leadForm.isindex==0}"><c:out value="selected" /></c:if>>不显示</option><option value="1" <c:if test="${leadForm.isindex==1}"><c:out value="selected" /></c:if> >显示</option></select>
- </td>
- </tr>
- <tr class="td"><td colspan="2" align=center><input type="submit" Class="button" value="确定" <c:if test="${isGuest}">disabled</c:if>/></td></tr>
- </html:form>
- </table>
- </body>
- </html>