<!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" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<base href="{{$DIRCMS['site_url']}}" />
<link href="template/{{$DIRCMS['tpl_name']}}/css/share.css" rel="stylesheet" type="text/css" />
<link href="template/{{$DIRCMS['tpl_name']}}/css/post.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="images/js/jquery.min.js" type="text/javascript"></script>
<title>游客投稿</title>
</head>

<body>
<!-- 头部 -->
	{{code $tcatid=$catid;}}
	{{tlp head}}
	{{code $catid=$tcatid;}}
<!-- 正文 -->
	<div class="ads_960"><script language="javascript" src="{{$DIRCMS[site_url]}}ads.js.php?id=14"></script></div>
	<div class="position">{{$dir_postion}}</div>
	<div class="div_tips">{{if !$catid}}选择栏目{{else}}发布信息{{/if}}</div>
	{{if !$catid}}
	{{loop $t $_t}}
	<div class="div_list">
		<div class="div_list_bigcat">{{$_t['categoryname']}}</div>
		<ul>
			{{code $r=cache_read('parent'.$_t['id'].'.cache.php',DIRCMS_ROOT.'data/cache_category/');}}
			{{loop $r $_r}}
			{{code $postpriv=explode(',',$_r['postpriv']);}}
			{{if $_r['isshow'] && !$_r['ispage'] && in_array($_groupid,$postpriv)}}
			<li><a href="post/index.php?catid={{$_r['id']}}">{{$_r['categoryname']}}</a></li>
			{{/if}}
			{{/loop}}
		</ul>
	</div>
	{{/loop}}
	{{else}}
	<div class="div_list">
		<form action="post/index.php" method="post" name="myform" enctype="multipart/form-data">
		<input type="hidden" name="do_submit" value="1" />
		<input type="hidden" name="info[catid]" value="{{$catid}}" />
		<input type="hidden" name="info[inputtime]" value="{{time()}}" />
		<table width="100%" class="form_table">
		<?php if($base_r)foreach($base_r as $val){ ?>
		<tr><td width="25%" align="left"><strong>{{$val['name']}}</strong>：<br /><label style="font-weight:normal"><?php echo $val['tips'];?></label></td><td align="left" valign="top" style="padding-left:10px">{{$val['form']}}  <?php echo $val['danwei']?$val['danwei']:'';?></td></tr>
		<?php }?>
		<tr><td width="25%" align="left" valign="top"><strong>信息内容</strong>：</td><td align="left" valign="top" style="padding-left:10px"><?php echo $f->editor('content','','','','',0,50,650,350);?></td></tr>
		<tr><td width="25%" align="left"><strong>验证码</strong>：</td><td align="left" valign="top" style="padding-left:10px"><input type="text" name="chkcode" class='text_15x35'/> <img src="{{$DIRCMS[site_url]}}checkcode.php" onclick="this.src='{{$DIRCMS[site_url]}}checkcode.php?id='+Math.random()*5;" style="cursor:pointer;" alt="验证码,看不清楚?请点击刷新验证码"/></td></tr>
		 {{if $DIRCMS['chk_ask']}}<tr><td width="25%" align="left"><strong>验证问题</strong>：</td><td align="left" valign="top" style="padding-left:10px">{{$DIRCMS['chk_ask']}}  答案：<input type="text" name="chk_req" class="text_15x55" /></td></tr>{{end if}}
		<tr><td align="center" colspan="2"><input type="submit" value="添 加" name="dosubmit" class="input_bt" />
				&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value="清 除" name="doreset" class="input_bt" /></td></tr>&nbsp;&nbsp;&nbsp;&nbsp;
		</table>
		</form>
	</div>
	{{/if}}	
<!-- 底部 -->
	{{tlp footer}}
</body>
</html>
