<%@ page language="C#" autoeventwireup="true" inherits="passport_feedback, s1.chapk.com" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="../control/passport_left.ascx" TagName="passport_left" TagPrefix="uc3" %>
<%@ Register Src="../control/header.ascx" TagName="header" TagPrefix="uc1" %>
<%@ Register Src="../control/footer.ascx" TagName="footer" TagPrefix="uc2" %>

<!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 runat="server">
    <title>建议反馈</title>
   <link rel="stylesheet" type="text/css" href="../css/public.css" />
    <link rel="stylesheet" type="text/css" href="../css/reg.css" />
    <script src="../js/jquery-1.2.6.pack.js" type="text/javascript"></script>
    <script src="../js/index.lib.js" type="text/javascript"></script>
    <script src="../js/nav.js" type="text/javascript"></script>     
</head>
<body>
<uc1:header ID="Header1" runat="server" />
<div class="zuipin">
    <div class="column">
  <div class="user_left">
     <uc3:passport_left ID="Passport_left1" runat="server" />
  </div>
  <div class="user_right">
      <div class="user_mod">
          <div class="zuipin_mod_t">
              <div class="zuipin_mod_t_l">
                  我要反馈</div>
              <div class="zuipin_mod_t_r">
              </div>
              <div class="clear">
              </div>
          </div>
          <div class="zuipin_mod_c">

    <form id="form1" runat="server">
<script type="text/javascript">
  var XmlHttp;
  
  function createXMLHttpRequest() {
   if (window.ActiveXObject) {
    XmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
   } 
   else if (window.XMLHttpRequest) {
    XmlHttp = new XMLHttpRequest();
   }
  }    
function filedel(str)
{
    var i=confirm("你确定要删除吗?");
    if(i)
    {
        createXMLHttpRequest();
        XmlHttp.onreadystatechange=file_d_process;
        XmlHttp.Open("POST","../tool/AjaxTradeDel.aspx"+str,true);
        XmlHttp.send(null);
    }
}
  function file_d_process()
  {
  
   if(XmlHttp.readyState == 4) {
    if(XmlHttp.status == 200) {
    var str=XmlHttp.responsetext;
    if(str=="1")
        location.href='feedback.aspx';
    }
   }
  }
    </script>    
    
<table width="756" cellpadding="0" cellspacing="20">
    <tr>
        <td>标题：</td>
        <td><asp:TextBox ID="title" runat="server" Width="350px" CssClass="text"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*" ControlToValidate="title"></asp:RequiredFieldValidator></td>
    </tr>
    <tr>
        <td>类型：</td>
        <td>
            <asp:RadioButtonList ID="stype" runat="server" RepeatDirection="Horizontal">
             <asp:ListItem Selected="True">建议反馈</asp:ListItem>
            <asp:ListItem>评论与咨询</asp:ListItem>
            <asp:ListItem>申请售后服务</asp:ListItem>
            </asp:RadioButtonList>
        
        
        </td></tr>
    <tr>
        <td>内容：</td>
        <td><asp:TextBox ID="details" runat="server" Width="550px" Rows="10" TextMode="MultiLine" CssClass="text"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*" ControlToValidate="details"></asp:RequiredFieldValidator></td>
    </tr>
    <tr>
        <td>我的电子邮件：</td>
        <td><asp:TextBox ID="email" runat="server" Width="350px" CssClass="text"></asp:TextBox>
        </td>
    </tr>     
		<tr>
			<td width="15%" align="right"></td>
			<td>
			<asp:Button ID="btn_state1" runat="server" CssClass="button" OnClick="btn_state1_Click" Text="提交反馈" /></td>
		</tr>
</table>  
<div class="user_table">
          <table width="766" cellpadding="0" cellspacing="0">
              <thead>
                  <tr>
                      <td colspan="6">
                          <b>已经反馈的信息</b>
                      </td>
                  </tr>
              </thead>
                  <tr>
                      <td>
                          标题
                      </td>
                      <td>
                          反馈时间
                      </td>
                      <td>
                          操作
                      </td>
                      <td>
                          状态
                      </td>
                  </tr>
    
     <asp:Repeater ID="Data1" runat="server">
    <ItemTemplate>
    <tr>
    <td style="text-align:left;text-indent:10px">
    <a><%# Eval("s_mc") %></a>
    [<%# Eval("state").ToString() == "1" ? "<span class='text_ok'>已回复</span>" : "<span class='text_no'>待审</span>"%>]</td>
    <td><%# Eval("time1") %></td>
    <td><a href="javascript:void(0)" onclick="Javascript:filedel('<%# ReturnDel(Eval("id").ToString()) %>');">删除</a></td>
    <td><%# Eval("state").ToString() == "1" ? "<a href='feedbackview.aspx?Id=" + Eval("id").ToString() + "'>查看</a>" : "待审"%></td>
    </tr>
    </ItemTemplate>
    </asp:Repeater>
    </table>
    </div>
    <div>
        <webdiyer:AspNetPager ID="Pager1" runat="server" CustomInfoHTML="第%CurrentPageIndex%页，共%PageCount%页，每页显示%PageSize%条，共%RecordCount%条信息"
            CustomInfoStyle="" FirstPageText="[首页]" LastPageText="[末页]" NextPageText="[下一页]"
            OnPageChanging="Pager1_PageChanging" PrevPageText="[上一页]" ShowCustomInfoSection="Left" PageSize="15">
        </webdiyer:AspNetPager>
        
    </div>
    </form>
        
          
          </div>
      </div>
  </div>
  <div class="clear"></div>
</div>
</div>

<uc2:footer ID="Footer1" runat="server" />
</body>
</html>
