<?php namespace Phpcmf\Controllers\Admin;

// 操作指南
class Help extends \Phpcmf\Common {

    public function index() {

        $page = max(0, (int)\Phpcmf\Service::L('input')->get('page'));

        \Phpcmf\Service::V()->assign([
            'menu' => \Phpcmf\Service::M('auth')->_admin_menu([
                '基础操作' => [APP_DIR.'/help/index', 'fa fa-book'],
            ]),
            'title' => dr_lang('建站系统 - 基础操作'),
            'page' => $page,
        ]);
        \Phpcmf\Service::V()->display('help_index.html');
    }

    public function template() {

        $page = max(0, (int)\Phpcmf\Service::L('input')->get('page'));

        \Phpcmf\Service::V()->assign([
            'menu' => \Phpcmf\Service::M('auth')->_admin_menu([
                '模板制作' => [APP_DIR.'/help/template', 'fa fa-code'],
            ]),
            'title' => dr_lang('建站系统 - 模板制作'),
            'page' => $page,
        ]);
        \Phpcmf\Service::V()->display('help_template.html');
    }

    public function seo() {

        $page = max(0, (int)\Phpcmf\Service::L('input')->get('page'));

        \Phpcmf\Service::V()->assign([
            'menu' => \Phpcmf\Service::M('auth')->_admin_menu([
                'SEO用法' => [APP_DIR.'/help/seo', 'fa fa-internet-explorer'],
            ]),
            'title' => dr_lang('建站系统 - SEO用法'),
            'page' => $page,
        ]);
        \Phpcmf\Service::V()->display('help_seo.html');
    }

    public function url() {

        $page = max(0, (int)\Phpcmf\Service::L('input')->get('page'));

        \Phpcmf\Service::V()->assign([
            'menu' => \Phpcmf\Service::M('auth')->_admin_menu([
                '自定义URL用法' => [APP_DIR.'/help/url', 'fa fa-link'],
            ]),
            'title' => dr_lang('建站系统 - 自定义URL用法'),
            'page' => $page,
        ]);
        \Phpcmf\Service::V()->display('help_url.html');
    }

}
