<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>发布分类信息</title>
<link href="base.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>
</head>
<body>
<form name="form1" action="cominfoadd.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">
<input type="hidden" name="typeid" value="<?=$typeid?>">
<br><br>

选择小分类：<select name="smalltypeid">
<option value="0">-不限-</option>
<?php echo $smalltypes;?>
</select>

<br><br>
选择地区：

<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>


<br><br>
选择行业：
<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>


<br><br>
文章排序：
<select name="sortup" id="sortup" style="width:150">
	<option value="0" selected>默认排序</option>
	<option value="7">置顶一周</option>
	<option value="30">置顶一个月</option>
	<option value="90">置顶三个月</option>
	<option value="180">置顶半年</option>
	<option value="360">置顶一年</option>
</select>
<br><br>
发布时间：
<?php
$nowtime = GetDateTimeMk(mytime());
echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" style=\"width:200\">";
?>
<br><br>


有效期：<input type=text name=endtime value="" />天
<br><br>
标题：<input type=text name=title value="" /><br>
<input name="iscommend" type="checkbox" id="iscommend" value="11" class="np">
推荐
<input name="isbold" type="checkbox" id="isbold" value="5" class="np">
加粗
<br>
自定义属性：
<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>
<br>
缩略图：
<table id="pictable" width="800" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="28" align="center" bgcolor="#FFFFFF">缩略图：</td>
                  <td bgcolor="#FFFFFF">
<input name="litpic" type="file" id="litpic" style="width:300" onChange="SeePic($Obj('picview'),$Obj('litpic'),$Obj('picarea'));"></td>
                </tr>
                <tr id="picarea" style="display:none">
                  <td colspan="2" align="center" bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="18%" height="110">&nbsp;</td>
                        <td width="82%"><img src="img/pview.gif" id="picview" width="150" height="120"></td>
                      </tr>
                    </table>                  </td>
                </tr>
</table>
<br>
关键词：<input type=text name=keywords value="" />
<br><br>
文章摘要：
<textarea name="description" rows="3" id="description" style="width:200"></textarea>
<br><br>

联系人：<input type=text name=contact value="" />
<br><br>
电话：<input type=text name=phone value="" />
<br><br>
传真：<input type=text name=fax value="" />
<br><br>
email：<input type=text name=email value="" />
<br><br>
qq：<input type=text name=qq value="" />
<br><br>
msn：<input type=text name=msn value="" />
<br><br>
地址：<input type=text name=address value="" />
<br><br>
内容:
<input name="remote" type="checkbox" class="np" id="remote" value="1" checked>
下载远程图片和资源
<input name="autolitpic" type="checkbox" class="np" id="autolitpic" value="1" checked>
提取第一个图片为缩略图
<?php
	GetEditor("body",'',450,"MemberLit");
	?>

<input name="imageField" type="image" src="img/button_ok.gif" width="60" height="22" border="0">
<img src="img/button_reset.gif" width="60" height="22" border="0" onClick="location.reload();" style="cursor:hand">
</form>
<?php
$dsql->Close();
?>
</body>
</html>