<!-- #include file="common.asp" -->
<!-- #include file="admcomm.asp"-->
<!-- #include file="isadm.asp" -->
<!-- #include file="zsbs_editor.asp" -->
<%
	Dim zsb_auth, hasAuth
	hasAuth = False
	zsb_auth = Split( Trim( session("zsb_auth") ), ",", -1, 1 )
	For Each auth In zsb_auth
		If ( auth = "news" ) Then
				hasAuth = True
			Exit For
		End If
	Next
	
	If hasAuth = false Then
		Response.Write("<script language=javascript>alert('对不起，你没有权限，请联系超级管理员！');history.back(-1);</script>")
	End If
%>
<%
 dim d
 set rs=server.createobject("ADODB.recordset")
 strsql="select * from news"
 rs.open strsql,conn,1,3
 if not rs.eof then
 'while not rs.eof
 'if Trim(rs("timeflag"))=Trim(request.querystring("timflg")) then
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<%=Char_Set%>">
<title>公告管理</title>
<link href="<%=GBCss%>/common.css" rel="stylesheet" type="text/css">
<link href="commcss.css" rel="stylesheet" type="text/css">
<script src="common.js" language="javascript" type="text/javascript"></script>
<!--<script src="http://www.zhisi.net/gstat.asp?stat=lguest"></script>-->
</head>
<body>
<%Call AdmPageTop()%>
<div style="margin:auto;width:100%;background-image:url(<%=GBSkin%>/guest_bg.gif);">
  <div style="padding:8px 0 0 30px;background-image:url(<%=GBSkin%>/guest_top.gif);" class="text_header">
    <li style="height:22px;font-weight:bold;">公告管理</li>
  </div>
  <div class="bline" style="height:10px;"></div>
  <form action="news_save.asp?pn=<%=Trim(Request("pn"))%>" method="post" style="margin:0;padding:0;border:0;">
    <div style="padding:0 20px 0 20px;text-align:left;">
      <div style="float:left;width:250px;">
			<ul style="margin:0;padding:0;">
        <li>昵称：
          <input name="name" type="text" class="input_common" style="width:160px; height:18px;" id="name" value="<% =rs("name") %>">
        </li>
        <li>性别：
          <% sex=rs("sex") %>
          <% if sex="帅哥" then %>
          &nbsp;帅哥:
          <input name="sex" type="radio" value="帅哥" checked>
          靓女:
          <input type="radio" name="sex" value="靓女">
          <% else %>
          &nbsp;帅哥:
          <input name="sex" type="radio" value="帅哥">
          靓女:
          <input type="radio" name="sex" value="靓女" checked>
          <% end if %>
        </li>
        <li>来自：
          <input name="address" type="text" id="address2" class="input_common" style="width: 160px; height:18px;"  value="<% =rs("address") %>" maxlength="4">
        </li>
        <li>邮箱：
          <input name="email" type="text" class="input_common" style="width: 160px; height:18px;" id="email"  value="<% =rs("email") %>">
        </li>
        <li>主页：
          <input name="homepage" type="text" class="input_common" style="width: 160px; height:18px;" id="homepage"  value="<% =rs("homepage") %>">
        </li>
        <li>&nbsp;QQ：
          <input name="oicq" type="text" class="input_common" style="width: 160px; height:18px;" id="oicq" value="<% =rs("Oicq") %>" >
        </li>
        <li>时间：
          <input name="timflg" class="input_common" style="width: 160px; height:18px;" type="text" id="timflg" value="<% =rs("Date") +"&nbsp;"+rs("Time") %>" size="30">
        </li>
				</ul>
      </div>
      <div style="float:left;width:120px">
	    <li>头像</li>
        <li><img border="0" src="images/<% =rs("headpic") %>.gif" alt="" id="faceid"></li>
        <li>
          <select name="headpic" id="headpic" onChange="document.images['faceid'].src='images/'+options[selectedIndex].value+'.gif';">
            <option value="<% =rs("headpic") %>" selected>
            <% =rs("headpic") %>
            </option>
            <option value="pic1">pic1</option>
            <option value="pic2">pic2</option>
            <option value="pic3">pic3</option>
            <option value="pic4">pic4</option>
            <option value="pic5">pic5</option>
            <option value="pic6">pic6</option>
            <option value="pic7">pic7</option>
            <option value="pic8">pic8</option>
            <option value="pic9">pic9</option>
            <option value="pic10">pic10</option>
            <option value="pic11">pic11</option>
            <option value="pic12">pic12</option>
            <option value="pic13">pic13</option>
            <option value="pic14">pic14</option>
            <option value="pic15">pic15</option>
            <option value="pic16">pic16</option>
            <option value="pic17">pic17</option>
            <option value="pic18">pic18</option>
            <option value="pic19">pic19</option>
            <option value="pic20">pic20</option>
          </select>
        </li>
      </div>
	  <div style="float:right;"></div>
    </div>
    <div class="bline"></div>
    <div style="padding:0 20px 0 20px;text-align:left;">
		<ul style="margin:0;padding:0;">
      <li>主题：
        <input name="headline" class="input_common" style="width: 350px; height:18px;" type="text" id="headline"  value="<% =rs("Title") %>" size="51">
      </li>
      <li>内容：
        <%Call Editor( "content", HEncode(rs("content")) )%>
      </li>
			</ul>
    </div>
	<div class="bline" style="height:10px;"></div>
    <div style="padding:5px 0 0 0;background-image:url(<%=GBSkin%>/guest_top.gif);">
      <li style="text-align:center;height:25px;">
        <input type="button" value="返&nbsp;&nbsp;&nbsp;&nbsp;回" onClick="javascript:history.back(-1);" class="button_common" style="width: 80px; height:18px;">
        &nbsp;
        <input name="reset" type="reset" class="button_common" style="width: 80px; height:18px;" id="reset" value="重新填写">
        &nbsp;&nbsp;
        <input name="Submit" type="submit" class="button_common" style="width: 80px; height:18px;" id="Submit" value="保存修改">
      </li>
    </div>
  </form>
<%Call CopyRight()%>
</div>
<%
 end if
%>
<%
 rs.close
 set rs=nothing
 conn.close
 set conn=nothing
%>
</body>
</html>