<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Hait windows 后台管理</title>
<link rel="stylesheet" type="text/css" href="images/hait_admin.css" />
</head><?php require ("Hait_login_ask.php");?>
<?php
if($wz_gl==null or $wz_gl<>1 )
{
   echo "<script>alert('Hait windows 提醒你，非法操作！！你没有该权限！');location.href='Hait_right.php'</script>";
   exit;
}
require("../config.php");
$sql="select * from hait_wz where id=1";
$okis=mysql_query($sql,$conn);
$word=mysql_fetch_array($okis);
?>
<body>
<div id="hait_class">
<form method="post" action="hait_do_app.php" name="Hait_form"><input name="appname" type="text"  style="display:none" value="admin_wz"/>
       <table align="left" width="100%" cellpadding="4" cellspacing="1"  bgcolor="#C0C0C0" >
     <tr bgcolor="#DFEFFF">
       <td height="18" colspan="2" align="left" valign="middle"  background="images/bg2.gif" bgcolor="#DFEFFF" class="STYLE6" > <table border="0">
         <tr>
           <td valign="bottom"><img src="images/cog.png" /></td>
           <td valign="bottom" >您现在的位置：网站信息管理</td>
         </tr>
       </table>
        </td>
      </tr>
     <tr bgcolor="#DFEFFF" >
    <td   align="right" bgcolor="#FFFFFF">网站名称:</td>
    <td width="92%" bgcolor="#FFFFFF"><input  name="wzname" size="50" value="<?php echo $word['wzname'];?>" type="text" /></td>
    </tr>
     <tr bgcolor="#DFEFFF" align="left">
       <td align="right" bgcolor="#FFFFFF">网站介绍:</td>
       <td bgcolor="#FFFFFF"><input name="wzjs" type="text" size="50" value="<?php echo $word['wzjs'];?>"/>       </td>
     </tr>
     <tr bgcolor="#DFEFFF" align="left">
       <td align="right" bgcolor="#FFFFFF">网站域名:</td>
       <td bgcolor="#FFFFFF"><label>
       <input name="wzurl" type="text" size="50" value="<?php echo $word['wzurl'];?>"/>
       </label></td>
     </tr>
     <tr bgcolor="#DFEFFF">
       <td align="right" bgcolor="#FFFFFF">关&nbsp;&nbsp;键&nbsp;&nbsp;词:</td>
       <td bgcolor="#FFFFFF"><input name="wzgjc" type="text" size="50" value="<?php echo $word['wzgjc'];?>"/></td>
     </tr>
     <tr bgcolor="#DFEFFF">
       <td align="right" bgcolor="#FFFFFF">网站背景:</td>
       <td bgcolor="#FFFFFF"><table border="0">
           <tr>
             <td  align="center"><img  src="<?php if(strstr($word['wzbj'],"http://")=="" ){echo "../";echo $word['wzbj'];}
		  else{echo $word['wzbj']; } ?>" onMouseOver="document.getElementById('bigPic').style.display=''" onMouseOut="document.getElementById('bigPic').style.display='none'" onerror="this.src='../hait_images/emptybook.gif'"name="scpic" width="60" height="60" border="0" id="scpic" /></td>
             <td  align="left"><table width="100%" border="0">
                 <tr>
                   <td><input name="pic" size="47"value="<?php echo $word['wzbj'];?>" /></td>
                   <td>注：这里可以直接输入图片地址</td>
                 </tr>
               </table>
                 <table  border="0">
                   <tr>
                     <td><select name="picuu" id="picuu"   onchange="this.form.scpic.src='../'+this.value;this.form.pic.value=this.value;this.form.bigbj.src='../'+this.value;">
                         <option value="Hait_images/emptybook.gif">选择图片</option>
                         <option value="Hait_images/wind/1.jpg">图片001</option>
                         <option value="Hait_images/wind/2.jpg">图片002</option>
                         <option value="Hait_images/wind/3.jpg">图片003</option>
                         <option value="Hait_images/wind/4.jpg">图片004</option>
                         <option value="Hait_images/wind/5.jpg">图片005</option>
                         <option value="Hait_images/wind/6.jpg">图片006</option>
                         <option value="Hait_images/wind/7.jpg">图片007</option>
                         <option value="Hait_images/wind/8.jpg">图片008</option>                
                     </select></td>
                     <td><iframe style="top:2px" id="UploadFiles" src="hait_upload.php" frameborder="0" scrolling="No" width="240" height="22" name="I1" marginwidth="1" marginheight="1"></iframe></td>
                   </tr>
               </table></td>
           </tr>
         </table>
        <div id="bigPic" style="display:none; position:absolute;border:3px solid #999; "><img name="bigbj" id="bigbj" src="<?php if(strstr($word['wzbj'],"http://")=="" ){echo "../";echo $word['wzbj'];}
		  else{echo $word['wzbj']; } ?>" width="300" height="250"></div>
		</td>
     </tr>
     
     <tr bgcolor="#DFEFFF">
       <td align="right" bgcolor="#FFFFFF">功能选项:</td>
       <td bgcolor="#FFFFFF"><table  border="0">
         <tr>
           <td><?php if ($word['kqzm']==1){echo'<input type="checkbox" name="kqzm" checked="checked" value="1" />';}else {echo'<input name="kqzm" type="checkbox" value="2"/>';};?>前台使用桌面</td>
           <td><?php if ($word['zmht']==1){echo'<input type="checkbox" name="zmht" checked="checked" value="1" />';}else {echo'<input name="zmht" type="checkbox" value="2"/>';};?>             允许桌面登陆后台</td>
           <td><?php if ($word['kqlt']==1){echo'<input type="checkbox" name="kqlt" checked="checked" value="1" />';}else {echo'<input name="kqlt" type="checkbox" value="2"/>';};?>             开启论坛功能</td>
           <td>注：2.0未开通</td>
         </tr>
       </table></td>
     </tr>
     <tr bgcolor="#DFEFFF">
       <td align="right" bgcolor="#FFFFFF">统计代码:</td>
       <td bgcolor="#FFFFFF"><textarea name="wztj" cols="50" rows="4"><?php echo $word['wztj'];?></textarea></td>
     </tr>
     <tr bgcolor="#DFEFFF">
       <td align="right" bgcolor="#FFFFFF">首页广告:</td>
       <td bgcolor="#FFFFFF"><textarea name="wzby" cols="50" rows="8"><?php echo $word['wzby'];?></textarea>
       注：还没有开通</td>
     </tr>
     <tr bgcolor="#DFEFFF">
       <td bgcolor="#FFFFFF">&nbsp;</td>
       <td bgcolor="#FFFFFF"><input name="submit" type="submit" class="submit" value="&nbsp;修改网站信息&nbsp;" /><input name="submit3" type="button" class="submit"  onclick="window.location.href='hait_windows.php';" value=" 生成桌面 " /></td>
	   		 
     </tr>
 </table>
</form>

</div>
</body>
</html>
