<!--#include file="inc_const.asp"-->
<%response.expires=0
Response.CacheControl = "Private"
application.lock

set cschat=server.createobject("ffcschat.cssbchat")

my_level=cschat.getLevel(Session,Application(ConstStr & "_user_list"),Application(ConstStr & "_room_list"))

if my_level=0 then
  set cschat=nothing
  application.unlock
  response.end
end if
myname=cschat.myname
votes=application(ConstStr & "_votes")
all_user_array=split(Application(ConstStr & "_user_list"),"$><$")
user_num=(UBound(all_user_array)+1)\2%>
<META content="text/html; charset=gb2312" http-equiv=content-type>
<meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
<link rel="stylesheet" type="text/css" href="chat.css">
<body  style="background-color:EAF2FF;color:112233;scrollbar-Base-Color: #b0d8ff;SCROLLBAR-DARKSHADOW-COLOR:#b0d8ff;SCROLLBAR-arrow-COLOR:#336699;SCROLLBAR-TRACK-COLOR: EAF2FF;SCROLLBAR-3DLIGHT-COLOR: #b0d8ff;SCROLLBAR-SHADOW-COLOR: #336699;SCROLLBAR-HIGHLIGHT-COLOR: #b0d8ff;" leftmargin=3 topmargin=20>
<table width=400 height=50% align=center cellspacing=0 cellpadding=0 border=1 BORDERCOLORLIGHT=#000000 BORDERCOLORDARK=#ffffff>
<%if user_num<5 and votes(0)=0 then%>
  <tr><td><div><center style="color:990000">目前人太少了，不能有任何提议!<br><br><input class=navy1 type=submit value="关闭窗口" onclick="javascript:parent.window.close()"></div></center>
<%elseif votes(0)=3 then
  if cschat.getListvalue(Application( ConstStr & "_user_list"),myname,7)="0" then
    errText="<li>正在提议踢"&votes(1)&"出去<li>总人数："&votes(4)&"<li>赞成人数："&votes(2)&"<li>反对人数："&votes(3)%>
    <tr><td style="color:990000"><center><ul>
    <%=errText%><br><br>
    <li>你已经投过票了或是没有投票权力!<br></ul><input class=navy1 type=submit value="关闭窗口" onclick="javascript:parent.window.close()"><br>&nbsp;</center></td></tr>
  <%else%>
    <table width=400 align=center cellspacing=0 cellpadding=0 border=1 BORDERCOLORLIGHT=#000000 BORDERCOLORDARK=#ffffff>
    <tr><td class=navy1>有人提议把<font color=red><%=votes(1)%></font>踢出去！</td>
    <tr><td height=90 style="color:990000">无论你同意与否，都希望你能投出神圣一票<br>让坏人得到惩罚，让好人不被冤枉！<br><input type="button" name="cmdCancel" value="同意" class=navy1 onClick="javascript:window.open('voteput.asp?agree=1','newsay');window.close()">
    <input type="button" name="cmdCancel" value="不同意" class=navy1 onClick="javascript:window.open('voteput.asp?agree=0','newsay');window.close()">
  <%end if
elseif votes(9)=myname or my_level-Application(ConstStr & "_l_voteonline")<0 then%>
  <tr><td><div><center style="color:990000">你暂时没有提议的资格!<br><br><input class=navy1 type=submit value="关闭窗口" onclick="javascript:parent.window.close()"></div></center>
<%elseif datediff("s",votes(5),now())-Application(ConstStr & "_votewaittime")*60<0 then%>
  <tr><td><div><center style="color:990000">系统暂时不允许提议!<br><br><input class=navy1 type=submit value="关闭窗口" onclick="javascript:parent.window.close()"></div></center>
<%elseif Application(ConstStr & "_disablevotekick")-1=0 then%>
  <tr><td><div><center style="color:990000">管理员禁止提议!<br><br><input class=navy1 type=submit value="关闭窗口" onclick="javascript:parent.window.close()"></div></center>
<%elseif votes(0)=0 then%>
    <tr><td class=navy1 colspan=2>☆你可以提出如下提议〖先写理由再点击人名〗☆</td>
    <tr><td nowrap>踢人<td style="text-align:left">&nbsp;<script>
    function sm(t,n){if (document.forms[0].forwhat.value==""){alert("请先输入理由");document.forms[0].forwhat.focus;return false;}else{window.open("voteinit.asp?type="+t+"&who="+n+"&forwhat="+document.forms[0].forwhat.value,"newsay");window.close();}}
    function k(y){document.write("<a href='#' onClick=\"sm(3,'"+y+"');\">"+y+"</a>\n")};
    <%t_str=""
    for i=0 to UBound(all_user_array) step 2
      all_user_array2=split(all_user_array(i),"$>")
      user_name=replace(all_user_array2(0),"<$","")
      if user_name<>myname and user_name<>votes(1) and all_user_array2(4)-application(ConstStr & "_superlevel")<>0 then
        response.write "k('"&user_name&"');"
      end if
    next%></script>
    <tr><td height=30 colspan=2><br><form><select name=list style="background-color:3399FF;color:FFFFFF"
    onchange="javascript:document.forms[0].forwhat.value=document.forms[0].list.value;document.forms[0].forwhat.focus();"><script>function x(y,z){document.write("<option value=\""+y+"\">"+z+"</option>")}
    x("","理由");x("讲脏话、怪话","脏话");x("乱发和重发一些毫无意义的言论","捣乱");
    x("使用HTML干扰他人聊天","HTML");x("名字不雅","名字");x("自己申请","申请");</script></select>　
    <input name=forwhat type=text maxlength=40  size=30>
    <input type="button" name="cmdCancel" value="放弃" class=navy1 onClick="javascript:window.close()"></form>
<%end if
set cschat=nothing
application.unlock%>










































