<!--#include file="head.asp"-->
<style>body{background-color: #fff;}</style>


<%
act=SafeRequest("act")
cact=SafeRequest("cact")
page=SafeRequest("page")
link="gongdan?ct="

if cact="cha" then
link="gongdan?cact=cha"


end if


%>


<main>
<div  class="container">
<div class="ui-lrctnei">
<%call userleft()%>
<div class="r"> 
<div class="ui-content">
                        
					
                            
<div class="neiye">

                   
                                                     
            <!-------------------------------------- 开始 -------------------------------------->									
            <div class="neibiaoti"></div>
            <div class="neibiaoti2">我的工单</div>
            <div class="gexian20"></div>
                	<div class="neitable">
					<table>
                        <tr class="hd">
                            <td>工单ID</td>
                            <td>工单类别</td>
                            <td>工单标题</td>
                            <td>工单状态</td>
                            <td>工单时间</td>
                        </tr>
						<%
                        sql="select * from aygongdan where aygduid="&clng(request.Cookies("aynameid"))&" and aygdshangid=0 order by aygdid desc" 
                        rs.open sql,conn,1,1
                        rs.pagesize=20
                        pagecount=rs.pagecount 
                        if request("page")="" then 
                        page=1
                        else
                        page=int(request("page")) 
                        end if
                        if page<=0 then page=1 
                        if request("page")="" then page=1
                        if not(rs.bof and rs.eof) then
                        rs.absolutepage=page
                        do while not rs.eof%>
                  		<tr onmouseover=this.bgColor='#FAFAFA' onmouseout=this.bgColor='#ffffff'>
                            <td><%=rs("aygdid")%></td>
                            <td><a href="gongdan_c?id=<%=rs("aygdid")%>"><%=trim(rs("aygdleibie"))%></a></td>
                            <td><a href="gongdan_c?id=<%=rs("aygdid")%>"><%=trim(rs("aygdbiao"))%></a></td>
                            <td>
							<%
                            if cint(rs("aygdzt"))=0 then response.Write("处理中")
                            if cint(rs("aygdzt"))=2 then response.Write("待查看")
                            if cint(rs("aygdzt"))=1 then response.Write("完结")
                            %>
                            </td>
                            <td><%=rs("aygddate")%></td>
                        </tr>
						<%
                        n=n+1
                        rs.movenext 
                        if n>=rs.pagesize then exit do  
                        loop
                        end if
                        zongshu=rs.RecordCount
                        rs.close%>
                        
                 		<tr><td colspan="5" style="text-align:left">&nbsp;&nbsp;&nbsp;<%call pageye()%></td></tr>
                        
                    </table>
            		</div>
            <!-------------------------------------- 结束 -------------------------------------->


        <div class="clearfix"></div>
        


</div>








</div>
</div>
</div>
</div>
</main>


<footer>
<div class="container">
</div>
</footer>

</body>
</html>