<?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">
        <div class="block-header block-header-default">
            <h3 class="block-title"><?php echo empty($this->id) ? '添加' : '修改'; ?>收藏夹</h3>
        </div>
        <div class="block-content">
            <form action="<?php echo APP_URL; ?>&action=save" method="POST" id="<?php echo APP_FORMID; ?>" target="iPHP_FRAME">
                <input name="id" type="hidden" value="<?php echo $this->id; ?>" />
                <div class="tab-content">
                    <div id="-add-base" class="tab-pane active">
                        <div class="form-group row">
                            <label class="col-sm-1 col-form-label" for="">标题</label>
                            <div class="col-sm-8">
                                <input type="text" name="title" class="form-control" id="title" value="<?php echo $rs['title']; ?>" />
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-1 col-form-label" for="">创建者</label>
                            <div class="input-group col-sm-8">
                                <input type="text" name="uid" class="form-control" id="uid" value="<?php echo $rs['uid']; ?>" />
                                <input type="text" name="nickname" class="form-control" id="nickname" value="<?php echo $rs['nickname']; ?>" />
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-1 col-form-label" for="">follow</label>
                            <div class="col-sm-8">
                                <input type="text" name="follow" class="form-control" id="follow" value="<?php echo $rs['follow']; ?>" />
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-1 col-form-label" for="">count</label>
                            <div class="col-sm-8">
                                <input type="text" name="count" class="form-control" id="count" value="<?php echo $rs['count']; ?>" />
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-1 col-form-label" for="">介绍</label>
                            <div class="col-sm-8">
                                <textarea name="description" id="description" class="form-control" style="height: 150px;"><?php echo $rs['description']; ?></textarea>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-1 col-form-label" for="">mode</label>
                            <div class="col-sm-8">
                                <input type="text" name="mode" class="form-control" id="mode" value="<?php echo $rs['mode']; ?>" />
                            </div>
                        </div>
                    </div>
                    <?php self::formSubmit(); ?>
                </div>
            </form>
        </div>
    </div>
</div>

<?php self::foot(); ?>