<!--#include virtual="/show/adminhead.asp"-->
<!--#include file="adminleft.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />



<title><%=webname%>-最高权限-建议/BUG</title>
<%
call logquanxian("g3",1)
%>

<DIV>

<SCRIPT LANGUAGE="JavaScript">
var checkflag1 = "false";
function check1(field) {
if (checkflag1 == "false") {
for (i = 0; i < field.length; i++) {
field[i].checked = true;}
checkflag1 = "true";
return "false"; }
else {
for (i = 0; i < field.length; i++) {
field[i].checked = false; }
checkflag1 = "false";
return "true"; }
}

function unselectall1()
{
    if(document.myform.chkAll1.checked){
	document.myform.chkAll1.checked = document.myform.chkAll1.checked&0;
	checkflag1 = "false";
    } 	
}
</script>
<%

act=SafeRequest("act")



if act="del" then

id=SafeRequest("id")

if id="" then call PopErr("参数不完整")

sql="select * from ayjianyi where ayjianyiid="&id&"" 
rs.open sql,conn,1,3
if not(rs.bof and rs.eof) then
rs.delete
else
call PopErr("未找到该建议")
end if
rs.close
call PopErr2("删除成功","adminjianyi.asp")

end if




if act="yidu" then

id=SafeRequest("id")

if id="" then call PopErr("参数不完整")

sql="select * from ayjianyi where ayjianyiid="&id&"" 
rs.open sql,conn,1,3
if not(rs.bof and rs.eof) then
rs("ayjianyiisd")=1
rs.update
else
call PopErr("未找到该建议")
end if
rs.close
call PopErr2("设置成功","adminjianyi.asp")

end if




if act="qqingkong" then

sql="select * from ayjianyi" 
rs.open sql,conn,1,3

if not(rs.bof and rs.eof) then
do while not rs.eof
rs.delete
rs.movenext 
loop

else
call PopErr("未找到建议")
end if

rs.close
call PopErr2("设置成功","adminjianyi.asp")

end if




if act="qyidu" then

sql="select * from ayjianyi where ayjianyiisd=0" 
rs.open sql,conn,1,3

if not(rs.bof and rs.eof) then
do while not rs.eof
rs("ayjianyiisd")=1
rs.update
rs.movenext 
loop

else
call PopErr("未找到建议")
end if

rs.close
call PopErr2("设置成功","adminjianyi.asp")

end if
%>
<DIV id=main1200> 
<%call webleft()%>

<DIV id=main_right>
<DIV id=main_right_content>
<STYLE>.apply_style {
	POSITION: absolute
}
.right_title A {
	LINE-HEIGHT: 27px; WIDTH: 126px; DISPLAY: inline-block; BACKGROUND: url(<%=ossurl%>images/bg22.gif) no-repeat; HEIGHT: 27px
}
.right_title A.current {
	BACKGROUND: url(<%=ossurl%>images/main_right_title_bg.gif) no-repeat; COLOR: #fff; FONT-WEIGHT: bold
}
.table_style_1 TD {
	HEIGHT: 38px
}
.table_style_home_info TD {
	PADDING-BOTTOM: 0px; PADDING-LEFT: 10px; PADDING-RIGHT: 0px; HEIGHT: 30px; PADDING-TOP: 0px
}
</STYLE>

<DIV class=right_titleadmin>&nbsp;&nbsp;建议/BUG <a href="?act=qyidu">[全部已读]</a> <a href="?act=qqingkong">[全部清空]</a></DIV>
<DIV class=main><br>

  <table width="99%" border="0" cellpadding="0" cellspacing="0" class="table_style_a1">
     <form action="" method="post" name="myform" id="myform"> 
       


	  

      <tr>
        <th align="center" class="border_right border_bottom" style="font-weight: bold">联系方式</th>
        <th class="border_right border_bottom" style="font-weight: bold">建议/BUG内容</th>
        <th align="center" class="border_right border_bottom" style="font-weight: bold">添加时间</th>
        <th align="center" class="border_bottom" style="font-weight: bold">操作</th>
      </tr>
		
<%
sql="select * from ayjianyi order by ayjianyiid desc" 
rs.open sql,conn,1,1
if not(rs.bof and rs.eof) then
do while not rs.eof%>
      <tr>
        <td align="center" class="border_right border_bottom">
		
		<%
		if cint(rs("ayjianyiisd"))=0 then%>
		<span style="font-weight: bold"><%=server.HTMLEncode(trim(rs("ayjianyilx")))%></span>
		<%else
		response.Write server.HTMLEncode(trim(rs("ayjianyilx")))
		end if
		%>
		
		</td>
        <td width="800" class="border_right border_bottom"><%=server.HTMLEncode(trim(rs("ayjianyicon")))%></td>
        <td align="center" class="border_right border_bottom"><%=rs("ayjianyidate")%></td>
        <td align="center" class="border_bottom"><a href="?act=yidu&id=<%=rs("ayjianyiid")%>">已读</a> <a href="?act=del&id=<%=rs("ayjianyiid")%>">删除</a></td>
      </tr>
<%
rs.movenext
loop
end if
rs.close
%>
		
		
      <tr>
        <td colspan="4" align="center">&nbsp;</td>
        </tr>
     </form>
    </table>
</DIV>


</DIV></DIV>
<DIV class=clear></DIV></DIV>
</DIV>
<SCRIPT>
$(function(){
$('.left_title').each(function(){
   $(this).click(function(){
	   var index=$('.left_title').index(this);
	   if($(this).next().hasClass('hide_m')){
		   $(this).next().removeClass('hide_m');
           $(this).next().show();		 
		   $(this).find('img').attr('src','<%=ossurl%>images/expansion.gif');
		   $.cookie('m_index_'+index,'',{expires:0});
	   } else {
	       $(this).next().hide();
		   $(this).next().addClass('hide_m');
		   $(this).find('img').attr('src','<%=ossurl%>images/shrank.gif');		   
		   $.cookie('m_index_'+index,'none',{expires:365});
	   }
   })
})

$('.left_title').each(function(){
	var index=$('.left_title').index(this);
    $(this).next().css('display',$.cookie('m_index_'+index) ? $.cookie('m_index_'+index) : '');
	if($.cookie('m_index_'+index)){
	    $(this).next().addClass('hide_m');
	}
	$(this).find('img').attr('src',$.cookie('m_index_'+index) ? '<%=ossurl%>images/shrank.gif' : '<%=ossurl%>images/expansion.gif');
})
})

</SCRIPT>


<!--#include virtual="/show/footadmin.asp"-->

