<?php 

if (!defined('IN_SAESPOT')) exit('error: 403 Access Denied'); 

echo '
<form  action="',$_SERVER["REQUEST_URI"],'" method="post">
<input type="hidden" name="formhash" value="',$formhash,'" />
<div class="title">
    <a href="/">',$options['name'],'</a> &raquo; ';
if($options['main_nodes']){
    echo '<select name="select_cid">';
    foreach($main_nodes_arr as $n_id=>$n_name){
        if($cid == $n_id){
            $sl_str = ' selected="selected"';
        }else{
            $sl_str = '';
        }
        echo '<option value="',$n_id,'"',$sl_str,'>',$n_name,'</option>';
    }
    echo '</select>';
}else{
    echo '    <a href="/n-',$c_obj['id'],'">',$c_obj['name'],'</a> (',$c_obj['articles'],')';
}
echo '
     - 发新帖

</div>

<div class="main-box">';
if($tip){
    echo '<p class="red">',$tip,'</p>';
}
echo '

<p>
<input type="text" name="title" value="',htmlspecialchars($p_title),'" class="sll" id="id-post-title" />
</p>

<div class="float-right" id="id-post-autosave">自动保存正在初始化...</div>
<p><textarea   id="id-content" name="content" class="mll tall">',htmlspecialchars($p_content),'</textarea></p>';
if(!$options['close_upload']){
    include(dirname(__FILE__) . '/upload.php');
}
echo '
<p><div class="float-left"><input type="submit" value=" 发 表 " id="submit"  name="submit" class="textbtn" id="id-post-submit" /></div><div class="c"></div></p>


</form>

<script src="/static/js/postsave.js" type="text/javascript"></script>
</div>';


?>
