<%@page contentType="text/html;charset=GBK" %>
<script>
	function submitForm() {
		if(document.all['bean.creator'].value == "") {
			alert("请填写发布人。");
			return;
		}
		
		if(document.all['bean.productName'].value == "") {
			alert("请填写留言主题");
			return;
		}
		
		
		if(document.all['bean.note'].value.length > 120) {
			alert("内容长度不能超过255个字符。")
		}
		fgOOSForm.submit();
	}
	
	<%
		if("true".equals(request.getAttribute("save_success"))) {
	%>
		alert("留言添加成功。")
	<%
		}
	%>
</script>
<table border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="10" height="10"><img src="<%=CONTEXT%>/img/QQ/i01.gif" width="10" height="10"></td>
    <td  background="<%=CONTEXT%>/img/QQ/i03.gif"></td>
    <td width="10" height="10"><img src="<%=CONTEXT%>/img/QQ/i02.gif" width="10" height="10"></td>
  </tr>
  <tr>
    <td  background="<%=CONTEXT%>/img/QQ/i04.gif">&nbsp;</td>
    <td>
			<html:form  method="post" action="/fg/order/OOS">
			<html:hidden property="channelId" value="<%=currentChannel.getId()%>"/>
			<input type="hidden" name="actionType" value="fgsave"/>
			<html:hidden property="pageType"/>
			<table width="640" border="0" cellpadding="0" cellspacing="0">
			  <tr > 
			    <td height="43" colspan="2">
			    	<table width="100%" height="41" border="0" cellpadding="0" cellspacing="0" >
			        <tr>
			          <td>&nbsp;&nbsp;<span class="type01"><b>供求信息</b></span></td>
			        </tr>
			      </table>
			    </td>
			  </tr>
			</table>
			<TABLE width="640" height="200" border=0 cellPadding=0 cellSpacing=0 >
			  <TR> 
			    <TD width=163 height=30 align=right>发布人：</TD>
			    <TD align=left width="477">
			    	<html:text property="bean.creator" styleClass="i03" size="16" maxlength="32"/>
			    </TD>
			  </TR>
			  <TR> 
			    <TD align=right height=40>留言主体：</TD>
			    <TD align=left>
			    	<html:text property="bean.productName" styleClass="i03" size="26" maxlength="32"/> 
			    </TD>
			  </TR>
			  <TR> 
			    <TD align=right height=40>联系方式：</TD>
			    <TD align=left>
			    	<html:text property="bean.contact" styleClass="i03" size="26"/> 
			    </TD>
			  </TR>
			  <TR> 
			    <TD align=right height=40>留言内容：</TD>
			    <TD align=left><html:textarea property="bean.note" styleClass="i03"  cols="50" rows="10"/> </TD>
			  </TR>
			  <TR align=middle> 
			    <TD colSpan=2>
			    	<INPUT class=cssboard04 onclick=javascript:submitForm() type=button value=提交 name=Submit3> 
			      <INPUT class=cssboard04 type=reset value=取消 name=Submit32> 
			    </TD>
			  </TR>
			</TABLE>
			<table width="640" height="43" border="0" cellpadding="0" cellspacing="0" >
			  <tr>
			    <td>&nbsp;</td>
			  </tr>
			</table>
			</html:form>
    </td>
    <td background="<%=CONTEXT%>/img/QQ/i05.gif"></td>
  </tr>
  <tr>
    <td width="10" height="10"><img src="<%=CONTEXT%>/img/QQ/i06.gif" width="10" height="10"></td>
    <td background="<%=CONTEXT%>/img/QQ/i08.gif"></td>
    <td width="10" height="10"><img src="<%=CONTEXT%>/img/QQ/i07.gif" width="10" height="10"></td>
  </tr>
</table>

