<!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=gb2312">
<title>发布分类信息</title>
<link href="css_body.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../include/dedeajax.js"></script>
<script language='javascript' src='main.js'></script>
<script language="javascript">
<!--
<?php
echo $areacache;
echo $sectorcache;
?>
function checkSubmit()
{
   if(document.form1.title.value==""){
	 alert("标题不能为空！");
	 document.form1.title.focus();
	 return false;
  }

}

-->
</script>
<script language='javascript' src='/include/common.js'></script>
<style type="text/css">
<!--
.STYLE1 {color: #FFFFFF}
-->
</style>
</head>
<body topmargin="8">
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="	background:#E2F5BC;">
    <tr>
      <td height="30"><a href="catalog_do.php?cid=<?php echo $info['typeid']?>&channelid=<?php echo $channelid?>&dopost=listArchives"><u>信息列表</u></a>&gt;&gt;发布信息</td>
      <td width="10%">&nbsp; <a href="catalog_main.php">[<u>栏目管理</u>]</a> </td>
      <td width="1%">&nbsp;</td>
    </tr>
  </table>
<form name="form1" action="info_add.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();">
<input type="hidden" name="channelid" value="<?php echo $channelid?>">
<input type="hidden" name="step" value="2">
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="	background:#E2F5BC;">
  <tr>
    <td align="left" bgcolor="#FFFFFF"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#E2F5BC" class="htable" id="head1">
      <tr>
        <td><table width="84" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="84" height="24" align="center" bgcolor="#FFFFFF">&nbsp;常规参数&nbsp;</td>
            </tr>
        </table></td>
      </tr>
    </table>
        <table width="650" border="0" cellpadding="0" cellspacing="1">
          <tr>
            <td width="100" height="25" align="right">标题：</td>
            <td colspan="3" height="25"><input type="text" size="50" name="title" value="" />
                <input name="iscommend" type="checkbox" id="iscommend" value="11"  />
              推荐
              <input name="isbold" type="checkbox" id="isbold" value="5"  />
              加粗</td>
          </tr>
          <tr>
            <td width="100" height="25" align="right">排序：</td>
            <td width="200" height="25"><select name="sortup" id="sortup" style="width:150">
                <option value="0" selected="selected">默认排序</option>
                <option value="7">置顶一周</option>
                <option value="30">置顶一个月</option>
                <option value="90">置顶三个月</option>
                <option value="180">置顶半年</option>
                <option value="360">置顶一年</option>
            </select></td>
            <td width="100" height="25" align="right">有效期：</td>
            <td height="25"><input type="text" name="endtime" value="30" />
              天</td>
          </tr>
          <tr>
            <td colspan="4"><table id="pictable2" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="100" height="80" align="right">缩 略 图：</td>
                  <td width="340"><input name="picname" type="text" id="picname" style="width:220" value="" />
                      <input type="button" name="Submit" value="浏览..." style="width:60" onclick="SelectImage('form1.picname','');" class="inputbut" />                  </td>
                  <td align="center"><img src="<?php if($info["litpic"]!="") echo $info["litpic"]; else echo "img/pview.gif";?>" width="150" height="100" id="picview2" name="picview" /> </td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td width="100" height="25" align="right">关键词：</td>
            <td width="200" height="25"><input type="text" name="keywords" value="" /></td>
            <td width="100" height="25" align="right">摘要：</td>
            <td height="25"><textarea name="description" rows="3" id="description" style="width:200px"></textarea></td>
          </tr>
          <tr>
            <td width="100" height="25" align="right">选择小分类：</td>
            <td width="200" height="25"><select name="smalltypeid">
                    <option value="0">-不限-</option>
                    <?php echo $smalltypes;?>
                </select></td>
            <td width="100" height="25" align="right">自定义属性：</td>
            <td height="25"><select name='arcatt' style='width:150'>
                <option value='0'>普通文档</option>
                <?php
$dsql->SetQuery("Select * From #@__arcatt order by att asc");
$dsql->Execute();
while($trow = $dsql->GetObject())
{
	echo "<option value='{$trow->att}'>{$trow->attname}(att={$trow->att})</option>";
}
?>
              </select></td>
          </tr>
          <tr>
            <td width="100" height="25" align="right">选择地区：</td>
            <td width="200" height="25"><select name="areaid" id="areaid" onchange="javascript:selNext(this.document.form1.areaid2,this.value,'subareas')">
                  <option value="0">--不限--</option>
                  <?php
$dsql->SetQuery("Select * From #@__area where reid=0");
$dsql->Execute();
while($area = $dsql->GetArray())
{
	echo "<option value='".$area['id']."'>".$area['name']."</option>\r\n";
}
?>
                </select>
                  <select name="areaid2" id="areaid2">
                    <option value="0">--不限--</option>
                  </select></td>
            <td width="100" height="25" align="right">选择行业：</td>
            <td height="25"><select name="sectorid" id="sectorid" onchange="javascript:selNext(this.document.form1.sectorid2,this.value,'subsectors')">
                    <option value="0">--不限--</option>
                    <?php
$dsql->SetQuery("Select * From #@__sectors where reid=0");
$dsql->Execute();
while($sector = $dsql->GetArray())
{
	echo "<option value='".$sector['id']."'>".$sector['name']."</option>\r\n";
}
?>
                  </select>
                    <select name="sectorid2" id="sectorid2">
                      <option value="0">--不限--</option>
                  </select></td>
          </tr>

          <tr>
            <td width="100" height="25" align="right" bgcolor="#FFFFFF">联系人：</td>
            <td width="200" height="25" bgcolor="#FFFFFF"><input type="text" name="contact" value="" /></td>
            <td width="100" height="25" align="right" bgcolor="#FFFFFF">传真：</td>
            <td height="25" bgcolor="#FFFFFF"><input type="text" name="fax" value="" /></td>
          </tr>
          <tr>
            <td width="100" height="25" align="right" bgcolor="#FFFFFF">电话：</td>
            <td width="200" height="25" bgcolor="#FFFFFF"><input type="text" name="phone" value="" /></td>
            <td width="100" height="25" align="right" bgcolor="#FFFFFF">地址：</td>
            <td height="25" bgcolor="#FFFFFF"><input type="text" name="address" value="" /></td>
          </tr>
          <tr>
            <td width="100" height="25" align="right" bgcolor="#FFFFFF">email：</td>
            <td width="200" height="25" bgcolor="#FFFFFF"><input type="text" name="email" value="" /></td>
            <td width="100" height="25" align="right" bgcolor="#FFFFFF">qq：</td>
            <td height="25" bgcolor="#FFFFFF"><input type="text" name="qq" value="" /></td>
          </tr>
          <tr>
            <td width="100" height="25" align="right" bgcolor="#FFFFFF">msn：</td>
            <td width="200" height="25" bgcolor="#FFFFFF"><input type="text" name="msn" value="" /></td>
            <td width="100" height="25" align="right">;发布时间：</td>
            <td height="25"><?php
$nowtime = GetDateTimeMk(mytime());
echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" style=\"width:200px\">";
?></td>
          </tr>

          <tr>
            <td width="100" height="25" align="right">选择栏目：</td>
            <td width="200" height="25"><?php
$dsql = new DedeSql(false);
$seltypeids = $dsql->GetOne("Select ID,typename From #@__arctype where ID='".$typeid."' ");

if(is_array($seltypeids))
{
	echo GetTypeidSel('form1','typeid','selbt1','-2', $typeid, $typeinfo[typename]);
}
?></td>
            <td width="100" height="25"></td>
            <td height="25"></td>
          </tr>
          <tr>
            <td height="25" colspan="4">&nbsp;</td>
          </tr>
        </table>
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#E2F5BC" id="head2" style="border-top:1px solid #E2F5BC;">
          <tr>
            <td colspan="2"><table width="168" height="24" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="84" align="center" bgcolor="#FFFFFF">文章内容</td>
                  <td width="84" align="center">&nbsp;</td>
                </tr>
            </table></td>
          </tr>
      </table>
      <table width="98%" border="0">
        <tr>
          <td>内容:</td>
          </tr>
        <tr>
          <td><?php
	GetEditor("body",'',450);
	?></td>
          </tr>
        <tr>
          <td height="35" align="center"><input name="imageField" type="submit" class="inputbut" value="确定" />
              <input name="button" type="reset" class="inputbut" id="button" value="重置"/></td>
          </tr>
      </table></td>
  </tr>
</table>
</form>
<?php
$dsql->Close();
?>
</body>
</html>