<?php

/**
 * iCMS - i Content Management System
 * Copyright (c) 2007-2017 iCMSdev.com. All rights reserved.
 *
 * @author icmsdev <master@icmsdev.com>
 * @site https://www.icmsdev.com
 * @licence https://www.icmsdev.com/LICENSE.html
 */
defined('iPHP') or exit('What are you doing?');
self::head();
?>

<div class="content" id="<?php echo APP_MAINID; ?>">
    <div class="block">
        <ul class="nav nav-tabs nav-tabs-block align-items-center" data-toggle="tabs" role="tablist">
            <li class="nav-item"><a class="nav-link js-tabs-link" href="<?php echo APP_URL; ?>&do=index">首页</a></li>
            <li class="nav-item"><a class="nav-link active" href="javascript:;">栏目</a></li>
            <li class="nav-item"><a class="nav-link js-tabs-link" href="<?php echo APP_URL; ?>&do=article">文章</a></li>
        </ul>
        <div class="block-content">
            <form action="<?php echo APP_URL; ?>&action=createNode" method="POST" id="<?php echo APP_FORMID; ?>" target="iPHP_FRAME">
                <div id="html-add" class="tab-content">
                    <div class="form-group row">
                        <label class="col-sm-1 col-form-label" for="rootid">选择栏目</label>
                        <div class="col-sm-8">
                            <select name="cid[]" multiple="multiple" class="form-control" size="15">
                                <option value="all">所 有 栏 目</option>
                                <optgroup label="======================================"></optgroup>
                                <?php echo Node::setAccess('cm')->select(array('url'=>false,'where'=>array("mode" => '1'))); ?>
                            </select>
                            <small class="form-text text-muted">请先设置栏目 访问模式 为静态模式</small>
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-sm-1 col-form-label" for="rootid">生成页数</label>
                        <div class="col-sm-8">
                            <input type="text" name="cpn" class="form-control" id="cpn" value="10000" />
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-sm-1 col-form-label" for="rootid">间隔时间</label>
                        <div class="col-sm-8">
                            <div class="input-group">
                                <input type="text" name="time" class="form-control" id="time" value="1" />
                                <div class="input-group-append">
                                    <div class="input-group-text">秒</div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <?php self::formSubmit(); ?>
            </form>
        </div>
    </div>
</div>
<?php self::foot(); ?>