public function contributeBox()
{
$cid = intval($_GET['cid']);
$this->assign('cid', $cid);
// 获取投稿分类信息
$info = model('CategoryTree')->setTable('channel_category')->getCategoryInfo($cid);
$title = '投稿到:[' . $info['title'] . ']';
$this->assign('title', $title);
// 发布框类型
$type = array('at', 'topic', 'contribute');
$actions = array();
foreach ($type as $value) {
$actions[$value] = false;
}
$this->assign('actions', $actions);
// 获取后台配置数据 -- 提示语
$channelConf = model('Xdata')->get('channel_Admin:index');
$prompt = '';
if ($channelConf['is_audit'] == 1) {
$prompt = '投稿成功';
} else {
$prompt = '投稿正在审核中';
}
$this->assign('prompt', $prompt);
$this->display();
}