<%@page contentType="text/html;charset=GBK" %>
<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/content/messageBoard">
			<table width="699" border="0" cellspacing="0" cellpadding="0">
			  <tr>
			    <td width="246" height="43" background="<%=CONTEXT%>/img/pic123.gif">
			    	<table width="200" border="0" cellspacing="0" cellpadding="0">
				      <tr>
				        <td width="46">&nbsp;</td>
				        <td width="154"><font color=white ><b>留言板</b></font></td>
				      </tr>
			      </table>
			    </td>
			    <td width="439" background="<%=CONTEXT%>/img/pic124.gif">
			    	<input type="hidden" name="actionType" value="add"/>
			      <html:hidden property="pageType"/>
			      <!--用Bean标签得到一个Bean 对象，范围为request, id为pager-->
			      <jsp:useBean id="pager" class="com.keyshop.pub.util.Pager" scope="request"/>
			      <!--与分页有关的参数-->
			      <input type="hidden" name="maxRecNoPerPage" value="<%=pager.getRowsPerPage()%>"/>
			      <input type="hidden" name="recordNumber" value="<%=pager.getTotalRow()%>"/>
			      <html:hidden property="currentPageNo"/>
			      <%if(pager.getTotalRow()>0){%>
			      <table width="480"  align="center" border="0" cellspacing="0" cellpadding="0">
			        <tr>
			          <td  align="center"> 
			          	<!--<%=pager.getTotalRow()%>&nbsp;&nbsp;分<%=pager.getTotalPage()%>页显示&nbsp;-->
			          	
			          	<a  class="cbsIndex_Title" href="javascript:jump('1')">首页</a>
			              <% if(pager.getCurrentPage()>1){%>
			              <a  class="cbsIndex_Title" href="javascript:select('prev')">上一页</a>
			              <%} else {%>
			              上一页
			              <%} %> 
			              <% if(pager.getTotalPage()>pager.getCurrentPage()){%>
			              <a  class="cbsIndex_Title" href="javascript:select('next')">下一页</a>
			              <%} else {%>
			              下一页
			             <%} %>
							      <a  class="cbsIndex_Title" href="javascript:jump('<%=pager.getTotalPage()%>')">末页</a>
							      <% if(pager.getTotalPage()>pager.getCurrentPage()){%>
							      <a class="cbsIndex_Title" href="javascript:select('next')">下一页</a>
							      <%}%>
							      <select name="toPage" onchange="javascript:select('jump')">
							        <%int i;
												for(i=1;i<=pager.getTotalPage();i++){
												  if(i==pager.getCurrentPage()){
											%>
							        <option value="<%=Integer.toString(i)%>" selected><%=Integer.toString(i)%> </option>
							        <%  
							        }else{
							        	%>
							        <option value="<%=Integer.toString(i)%>" ><%=Integer.toString(i)%> </option>
							        <% 
							          }
							        }
							      %>
								      </select>
								      <span class="ListMiddleText">页</span> </td>
			              </tr>
			            </table>
			            <%
			            }
			            %>
			          </td>			         
			        </tr>
			      </table>
			      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
			        <tr>
			          <td height=4></td>
			        </tr>
			      </table>      
			      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
			        <tr>
			          <td background="<%=CONTEXT%>/img/pic105.gif">
							   <%
									java.util.List list = fgmessageBoardForm.getMessageList();
									if(list != null && list.size() > 0 ) {
										java.util.Iterator iter = list.iterator();
										while(iter.hasNext()) {
											MessageBoard result = (MessageBoard)iter.next(); 
											MessageBoard remessageBoard = result.getReMessageBoard();
					    	 %>
									<table width="96%" border="0" align="center" cellpadding="0" cellspacing="1">
					          <tr align="left" bgcolor="#E6C8A8">
					            <td colspan="4" bgcolor="#E6C8A8">&nbsp;&nbsp;问题：<%=result.getSubject()%></td>
					          </tr>
					          <tr>
					            <td colspan="4" height=10></td>
					          </tr>
					          <%
			          		if(remessageBoard != null) {
			          			String reContent = remessageBoard.getContent();
					          %>
					          <tr align="center">
						          <td colspan="4">
						          	<table width="96%"  border="0" cellspacing="0" cellpadding="4">
						              <tr>
						                <td align="left"><font color="red">回复：</font>         
									          <%=reContent%>
									          </td>
							            </tr>
							          </table>
						          </td>
					        	</tr>
					        <%
					        }
					        %>
					        </table>
							<%
										
									}
							  }
							%>
							<br>
				      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
				        <tr>
				          <td height="40" align="center"><font color=white>
							      <%if(pager.getTotalRow()>0){%>
							      <table width="480"  align="center" border="0" cellspacing="0" cellpadding="0">
							        <tr>
							          <td  align="center"> 
							          	<!--共<%=pager.getTotalRow()%>条&nbsp;&nbsp;分<%=pager.getTotalPage()%>页显示&nbsp;-->
							          	
							          	<a  class="cbsIndex_Title" href="javascript:jump('1')">首页</a>
							          <% if(pager.getCurrentPage()>1){%>
							            <a  class="cbsIndex_Title" href="javascript:select('prev')">上一页</a>
							              <%} else {%>
							              上一页
							              <%} %>
							              <% if(pager.getTotalPage()>pager.getCurrentPage()){%>
							              <a  class="cbsIndex_Title" href="javascript:select('next')">下一页</a>
											              <%} else {%>
											      下 一 页
											      <%} %> <a  class="cbsIndex_Title" href="javascript:jump('<%=pager.getTotalPage()%>')">末页</a>
											      <% if(pager.getTotalPage()>pager.getCurrentPage()){%>
											      <a class="cbsIndex_Title" href="javascript:select('next')">下一页</a>
											      <%}%>
											      <select name="toPage" onchange="javascript:select('jump')">
											        <%int i;
																for(i=1;i<=pager.getTotalPage();i++){
																  if(i==pager.getCurrentPage()){
													      %>
												        <option value="<%=Integer.toString(i)%>" selected><%=Integer.toString(i)%> </option>
												        <%  }else{%>
												        <option value="<%=Integer.toString(i)%>" ><%=Integer.toString(i)%> </option>
												        <%  }
														        }
														    %>
										        </select>
										      <span class="ListMiddleText">页</span> 
										    </td>
				              </tr>
				            </table>
				            <%}%>
				            <table width="90%" border="0" cellpadding="0" cellspacing="0">
				              <tr> 
				                <td width="100%" align="center" valign="top"> 
				                	<table width="100%" height="16" border="0" cellpadding="0" cellspacing="1" bordercolorlight="#BAC939" bordercolordark="#E6C8A8">
				                    <tr > 
				                      <td width="100%" height="12" align="center" valign="top">
				                      	<TABLE width="100%" border=0 align="center" cellPadding=0 cellSpacing=1>
				                          <TBODY>
				                            <TR bgcolor="#E6C8A8" class="gq02Index_bg"> 
													            <td align="right" bgcolor="#E6C8A8">昵称：</td>
													            <td colspan="3">
													            	<html:text property="bean.author" styleClass="1t" maxlength="32" size="12"/>
													            </td>
								                    </tr>
														          <TR bgcolor="#E6C8A8" class="gq02Index_bg"> 
														            <td align="right">我的问题：</td>
														            <td colspan="3">
														            	<html:text property="bean.subject" maxlength="127" size="52"/>
														            </td>
														        </tr>
														        <TR bgcolor="#E6C8A8" class="gq02Index_bg"> 
								                    </tr>
													          <TR bgcolor="#E6C8A8" class="gq02Index_bg"> 
													            <td align="right" valign="top"><br>
													            内容：</td>
													            <td colspan="3">
													            	<html:textarea property="bean.content" cols="51" rows="4"/>
													            </td>
													          </tr>
													          <TR bgcolor="#E6C8A8" class="gq02Index_bg"> 
													            <td colspan="4" align="center">
													            <input type="button" onclick="return MessageBoard_Submit_Add()" 
													            name="Submit" value="发布">
													            &nbsp;&nbsp;
													            <input type=reset  value="取消"></td>
													          </tr>
				                        </TBODY>
				                      </TABLE>
				                    </td>
				                  </tr>
				                </table>
				              </td>
				            </tr>
				          </table>
							  </td>
						  </tr>
						</table>
					</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>
