コード例 #1
0
ファイル: seo.php プロジェクト: ut8ia/proBase
$back_names[] = "cl_call3";
$back_names[] = "cl_call4";
$back_names[] = "cl_call5";
$back_names[] = "cl_call6";
$back_names[] = "cl_call7";
$seo = new seo();
$seo->mysqli = $this->mysqli;
$seo->request = $this->request;
$seo->user = $this->user;
$js_include[] = "js/seo.js";
$post_id = (int) $this->request['id'];
$string_out .= "\n<div id='action_buttons' class='divactionbuttons'>\n        <button onclick=\"document.location.href ='seo&sect=new_post'\" ><img class='menu_img' src='/img/site/document_add.png'>Новый пост</button>\n        <button onclick=\"document.location.href ='seo&sect=all_posts'\" ><img class='menu_img' src='/img/site/document-library.png'>Все посты</button>\n        <button onclick=\"document.location.href ='seo&sect=tag_editor'\" ><img class='menu_img' src='/img/site/lightbulb.png'>Редактор Тегов</button>\n        <button onclick=\"document.location.href ='seo&sect=seo_statistics'\" ><img class='menu_img' src='/img/site/statistics.png'>Статистика</button>\n</div>";
if ($this->request['sect'] == 'new_post') {
    $js_include[] = "js/tinymce/tinymce.min.js";
    $js_onload = 'init_mce();';
    $out = $seo->edit_post_form();
}
if ($this->request['sect'] == 'all_posts' or !isset($this->request['sect'])) {
    $out = $seo->show_all_posts();
}
if ($this->request['sect'] == 'edit_post' & (int) $this->request['id'] > 0) {
    $out = $seo->edit_post_form($post_id);
    $out .= $seo->edit_post_tag_form($post_id);
    $js_include[] = "js/tinymce/tinymce.min.js";
    $js_onload = 'init_mce();';
}
if ($this->request['sect'] == 'tag_editor') {
    $out = $seo->tag_editor();
}
if ($this->request['sect'] == 'seo_statistics') {
    $out = $seo->seo_statistics();