<%@ page language="C#" autoeventwireup="true" inherits="WebAdmin_HelpCenter, LebiMall" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >

<head id="Head1" runat="server">
    <title>帮助中心</title>
    <link href="css/css.css" rel="stylesheet" type="text/css" />
    <link href="css/tipswindown.css" type="text/css" rel="stylesheet" />
    <script type="text/javascript" language="javascript" src="js/topHead.js"></script>
    <script type="text/javascript" src="js/checked.js"></script>
    <script src="js/jquery.js" type="text/javascript"></script>
    <script src="js/tipswindown.js" type="text/javascript"></script>
    <script type="text/javascript" src="js/My97DatePicker/WdatePicker.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <script>header(5,4,"images/");</script>
        <div class="blank clearfix">
        </div>
        <div class="tabmenus mainwidth">
            <ul>
                <li><a href="NoticeList.aspx"><span>信息管理</span></a></li>
                <li class="current"><a href="HelpCenter.aspx"><span>信息添加</span></a></li>
                <li><a href="NoticeTypeList.aspx"><span>类别管理</span></a></li>
            </ul>
        </div>
        <div class="tab-mainbody">
            <div class="tab-mainbody2">
                <div class="functionHandleArea clearfix">
                    <input type="image" title=" 返回 " onclick="history.back();return false;" src="images/bt_bak.gif"
                        align="absmiddle" />
             </div>
                <div id="datalist">
                <table cellspacing="0" width="100%" cellpadding="0" id="list">
                    <tr class="row">
                        <th colspan="5">选择类别</th>
                    </tr>
                    <%for (int i = 0; i < count; i++)
                      {%>
                    <%if (i % 5 == 0)
                      { %>
                    <tr class="row">
                        <%} %>
                        <%if (i + 1 == count)
                          { %>
                        <td class="row" colspan="<%=col %>">
                            <%}
                              else
                              { %>
                            <td class="row">
                                <%} %>
                                <%=i+1 %>
                                <%if (dstype.Tables[0].Rows[i]["showtype"].ToString() == "1")
                                  { %>
                                <a href="AddNotice.aspx?id=<%=dstype.Tables[0].Rows[i]["id"] %>">
                                    <%=dstype.Tables[0].Rows[i]["Tname"]%>
                                </a>
                                <%}
                                  else
                                  {
                                      int num=getNoticeByTypeId(dstype.Tables[0].Rows[i]["id"].ToString());
                                      if (num==1){
                                %>
                                <a href="NoticeListInfo.aspx?id=<%=dstype.Tables[0].Rows[i]["id"] %>">
                                    <%=dstype.Tables[0].Rows[i]["Tname"]%>
                                </a>
                                <%}else{%>
                                <a href="AddNotice.aspx?id=<%=dstype.Tables[0].Rows[i]["id"] %>">
                                    <%=dstype.Tables[0].Rows[i]["Tname"]%>
                                </a>
                                <%
                                      }           
                                  }%>
                            </td>
                        <%if ((i + 1) % 5 == 0)
                          {%>
                    </tr>
                    <%}%>
                    <%}%>
                </table>

                <script type="text/javascript">tdshowm("list");</script>

            </div>
        </div>
        </div>
    </form>
</body>
</html>
