<?php include_once tpl('header');?>
<card title="编辑日记 - <?php echo setting('webname');?>">
<p align="left">
标题:<input type="text" name="subject" maxlength="30" emptyok="true" value="<?php echo $diary['subject'];?>" />
<br/>
摘要:<input type="text" name="abstract" value="<?php echo $diary['abstract'];?>" />(小于200个字，不填默认截取内容的前面50个字)
<br/>
内容:<input type="text" name="content" emptyok="true" value="<?php echo $diary['content'];?>" />
<br/>
分类:<select name="type" value="<?php echo $diary['type'];?>"><option value="0">选择分类</option><?php if (!empty($typeList)):?><?php foreach ($typeList as $type):?><option value="<?php echo $type['id'];?>"><?php echo $this->filter($type['name']);?></option><?php endforeach;?><?php endif;?></select>
<br/>
隐私设置:
<select name="privacy" value="<?php echo $diary['privacy'];?>">
	<option value="0">公开日志(任何人都可以访问)</option>
	<option value="1">只有我的好友能访问</option>
	<option value="2">私人日志(只有我自己能访问)</option>
</select>
<br/>
评论设置:<select name="comment" value="<?php echo $diary['iscomment'];?>">
	<option value="2">所有人均可评论</option>
	<option value="1">我的好友能评论</option>
	<option value="0">禁止评论</option>
</select>
<br/>
访问密码:<input type="text" name="password" maxlength="10" value="<?php echo $diary['password'];?>" />
<br/>最长10个字，设置后其他人阅读需要输入密码，不用密码请留空
<br/>
置顶:<select name="toped" value="<?php echo $diary['istoped'];?>"><option value="0">否</option><option value="1">是</option></select>
<br/>
<anchor>发表日志
	<go method="post" href="<?php url('system',array('s'=>'member','c'=>'diary','a'=>'edit', 'id'=>$diary['id']));?>" accept-charset="UTF-8">
	<postfield name="subject" value="$(subject)"/>
	<postfield name="content" value="$(content)"/>
	<postfield name="abstract" value="$(abstract)"/>
	<postfield name="type" value="$(type)"/>
	<postfield name="comment" value="$(comment)"/>
	<postfield name="toped" value="$(toped)"/>
	<postfield name="privacy" value="$(privacy)"/>
	<postfield name="password" value="$(password)"/>
</go></anchor>
<br/>
<?php include_once tpl('footer');?>