<!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_once'Hait_function.php';;?>
<?php
if($add_article==null or $add_article<>1 )
{
   echo "<script>alert('Hait windows 提醒你，非法操作！！你没有该权限！');location.href='Hait_right.php'</script>";
   exit;
}
         require '../config.php';
         $listsql = "select id from hait_class ";
         $listexe = mysql_query($listsql, $conn);
         $nums = mysql_num_rows($listexe);
		 if ($nums==0){echo "<script>alert('对不起，分类为空，请先添加分类！');location.href='hait_class.php';</script>";};
?>
<body>
<script charset="utf-8" src="../editor/kindeditor.js"></script>
<script charset="utf-8" src="Hait_li.js"></script>
<script>
KE.show({
    id : 'adminzu',
    filterMode : true,
    resizeMode : 0
    });
    </script>

<div id="hait_class">

<form method="post" action="hait_do_app.php" name="Hait_form" ><input name="appname" type="text"  style="display:none" value="article"/>
    <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" align="left">
    <td align="right" bgcolor="#FFFFFF"><span class="">标&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;题:</span></td>
    <td bgcolor="#FFFFFF"><input name="title" type="text"  value="标题不能超过80个字符" size="50"/>	</td>
    </tr>

    <tr bgcolor="#DFEFFF">
      <td align="right" bgcolor="#FFFFFF"><span class="">所属分类:</span></td>
      <td bgcolor="#FFFFFF"><select name="channel" size="1">
	  <option value="">请选择分类</option>
	    <?php Haitlist() ?>
        </select>      </td>
    </tr>
    <tr bgcolor="#DFEFFF">
      <td align="right" bgcolor="#FFFFFF"><span class="">图&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;标:</span></td>
      <td bgcolor="#FFFFFF"><table border="0">
        <tr>
          <td  align="center"><img  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" /></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"><span class="">跳转连接:</span></td>
      <td bgcolor="#FFFFFF"><input name="url" type="text" size="50" />
注：可以直接输入url，前台点击此标题后，将直接打开该地址</td>
    </tr>
    <tr bgcolor="#DFEFFF">
      <td align="right" bgcolor="#FFFFFF"><span class="">窗口选项:</span></td>
      <td bgcolor="#FFFFFF" class=""><label class="">窗体宽度
        <input name="width" type="text" size="1" value="700"   onkeyup="if(isNaN(value))execCommand('undo')" maxlength="3" onafterpaste="if(isNaN(value))execCommand('undo')" />
        px;窗体高度
        <input name="height" type="text"   size="1" value="500" onkeyup="if(isNaN(value))execCommand('undo')" maxlength="3" onafterpaste="if(isNaN(value))execCommand('undo')" />
        px;
        &nbsp;&nbsp;&nbsp;&nbsp;
		<input name="lashen" type="checkbox" value="1" />
        最大化&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        <input name="value" type="checkbox" value="1" />
        快捷方式</label></td>
    </tr>
    <tr bgcolor="#DFEFFF">
    <td align="right" bgcolor="#FFFFFF">信息简介:</td>
    <td bgcolor="#FFFFFF"><input name="description" type="text" value="描述不能超过200个字符"  size="50"/></td>
    </tr><tr bgcolor="#DFEFFF">
    <td align="right" bgcolor="#FFFFFF" >关&nbsp;&nbsp;&nbsp;键&nbsp;&nbsp;词:</td>
    <td width="92%" bgcolor="#FFFFFF"><input name="keywords" type="text"  value="关键词不能超过100个字符"  size="50"/></td>
    </tr>    
<tr bgcolor="#DFEFFF">
<td colspan="2" bgcolor="#FFFFFF">
<textarea id="adminzu" name="content" cols="100" rows="8" style="width:100%;height:400px;">
</textarea></td></tr>

<tr bgcolor="#DFEFFF">
  <td align="right" bgcolor="#FFFFFF">信息选项:</td>
  <td bgcolor="#FFFFFF"><table width="100%" border="0">
      <tr>
        <td><table width="307" border="0">
          <tr>
            <td><input name="shenhe" type="checkbox" value="1" checked="checked" />
              审核</td>
            <td><input name="tuijian" type="checkbox" value="1" />
              推荐 </td>
            <td><input name="zhiding" type="checkbox" value="1" />
              置顶</td>
            <td><input name="lunbo" type="checkbox" value="1" />
              图片轮播</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table  border="0">
          <tr>
            <td>作者:</td>
            <td><input name="editor"  type="text" value="<?php echo $guanliyuanzh;?>"  size="12" /></td>
            <td>来源:</td>
            <td><input name="source"  type="text" value="本站" /></td>
            <td>浏览量:</td>
            <td><input name="pv" type="text"   size="6" value="100" onkeyup="if(isNaN(value))execCommand('undo')"  onafterpaste="if(isNaN(value))execCommand('undo')" /></td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
        </table></td>
      </tr>
    </table></td>
</tr>
<tr bgcolor="#DFEFFF"><td width="100" bgcolor="#FFFFFF">&nbsp;</td>
  <td bgcolor="#FFFFFF"><input name="submit" type="submit" class="submit" value="添加并发布" /></td>
</tr>
 </table>
</form>
</div>
</body>
</html>