
<!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($class_gl==null or $class_gl<>1 )
{
   echo "<script>alert('Hait windows 提醒你，非法操作！！你没有该权限！');location.href='Hait_right.php'</script>";
   exit;
}

require("../config.php");
$id=$_SERVER['QUERY_STRING'];
$sql="select * from hait_class where id='$id'";
$okis=mysql_query($sql,$conn);
$admin=mysql_fetch_array($okis);
if($admin['lmlx']==11){
echo "<script>alert('Hait windows 提醒你，快捷方式不能在此修改！');location.href='Hait_class_gl.php'</script>";
}
?>
<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="class_xg"/>
     <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">序&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号:</td>
    <td width="92%" bgcolor="#FFFFFF" ><input name="id" value="<?php echo $admin['id'];?>" class="text" type="hidden" /><?php echo $admin['id'];?></td>
    </tr>
     <tr bgcolor="#DFEFFF" align="left">
       <td align="right" bgcolor="#FFFFFF">分类名称:</td>
       <td bgcolor="#FFFFFF"><input name="classname" type="text" size="50" value="<?php echo $admin['classname'];?>"/>
        <input name="classnameyz"  style="display:none"type="text" size="50" value="<?php echo $admin['classname'];?>"/>       </td>
     </tr> 
     <tr bgcolor="#DFEFFF" align="left">
       <td align="right" bgcolor="#FFFFFF">分类类型:</td>
       <td bgcolor="#FFFFFF"><label><?php 
	  
           echo '<select name="lmlx" size="1">';
		   echo ' <option value='.$admin[lmlx].' >';
		     if ($admin['lmlx']==1){echo"文章";}elseif ($admin['lmlx']==2){echo"论坛";}elseif ($admin['lmlx']==3){echo"下载";}                     
		   echo ' </option>';
           echo '<option value="1">文章</option><option value="2">论坛</option><option value="3">下载</option></select>';
		   ?>
       </label></td>
     </tr>
     <tr bgcolor="#DFEFFF">
       <td align="right" bgcolor="#FFFFFF">桌面排序:</td>
       <td bgcolor="#FFFFFF"><input name="paixu" value="<?php echo $admin['paixu'];?>" size="1"  onkeyup="if(isNaN(value))execCommand('undo')" maxlength="3" onafterpaste="if(isNaN(value))execCommand('undo')" /></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($admin['pic'],"http://")=="" ){ echo'../';echo $admin['pic'];}
		  else{echo $admin['pic']; } ?>"  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 $admin['pic'];?>" /></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;">
                         <option value="Hait_images/emptybook.gif">选择图片</option>
                         <option value="Hait_images/ico/1.png">图片001</option>
                         <option value="Hait_images/ico/2.png">图片002</option>
                         <option value="Hait_images/ico/3.png">图片003</option>
                         <option value="Hait_images/ico/4.png">图片004</option>
                         <option value="Hait_images/ico/5.png">图片005</option>
                         <option value="Hait_images/ico/6.png">图片006</option>
                         <option value="Hait_images/ico/7.png">图片007</option>
                         <option value="Hait_images/ico/8.png">图片008</option>
                         <option value="Hait_images/ico/9.png">图片009</option>
                         <option value="Hait_images/ico/10.png">图片010</option>
                         <option value="Hait_images/ico/11.png">图片011</option>
                         <option value="Hait_images/ico/12.png">图片012</option>
                         <option value="Hait_images/ico/13.png">图片013</option>
                         <option value="Hait_images/ico/14.png">图片014</option>
                         <option value="Hait_images/ico/15.png">图片015</option>
                         <option value="Hait_images/ico/16.png">图片016</option>
                         <option value="Hait_images/ico/17.png">图片017</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></td>
     </tr>
     
     <tr bgcolor="#DFEFFF">
       <td align="right" bgcolor="#FFFFFF">跳转连接:</td>
       <td bgcolor="#FFFFFF"><input name="url" type="text" size="50" value="<?php echo $admin['url'];?>" />
        注：可以直接输入url，前台点击此标题后，将直接打开该地址</td>
     </tr>
     <tr bgcolor="#DFEFFF">
       <td align="right" bgcolor="#FFFFFF">窗口选项:</td>
       <td bgcolor="#FFFFFF"><label>窗体宽度
         <input name="width" type="text" value="<?php echo $admin['width'];?>" size="1"  onkeyup="if(isNaN(value))execCommand('undo')" maxlength="3" onafterpaste="if(isNaN(value))execCommand('undo')"  />
         px;窗体高度
         <input name="height" type="text"value="<?php echo $admin['height'];?>"  size="1"  onkeyup="if(isNaN(value))execCommand('undo')" maxlength="3" onafterpaste="if(isNaN(value))execCommand('undo')"  />
         px;
		 &nbsp;&nbsp;&nbsp;&nbsp;
		 <?php if ($admin['lashen']==1){echo'<input type="checkbox" name="lashen" checked="checked" value="1" />';}else {echo'<input name="lashen" type="checkbox" value="2"/>';};?>
        最大化&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        <?php if ($admin['value']==1){echo'<input type="checkbox" name="value" checked="checked" value="1" />';}else {echo'<input type="checkbox"  name="value"  value="2"/>';};?>桌面显示</label></td>
     </tr>
     <tr bgcolor="#DFEFFF">
       <td bgcolor="#FFFFFF">&nbsp;</td>
       <td bgcolor="#FFFFFF"><input name="submit" type="submit" class="submit" value="修改分类" />  <input name="button" type="button" class="submit" onclick="window.location.href='hait_class_gl.php'" value="&nbsp;&nbsp;取&nbsp;消&nbsp;&nbsp;"/></td>
     </tr>
 </table>
</form>

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