<?php
    $table = "videos";

    $_POST['status'] = 1;
    $fields['link'] = 'string';
    $fields['title'] = 'string';
    $fields['width'] = "int";
    $fields['height'] = "int";
    $fields['status'] = "bool";
    $fields['date'] = 'int';
    $_POST['date'] = time();
    $_POST['width'] = 300;
    $_POST['height'] = 190;

    if (!DEMO) {
        $report = form_create($table, $fields);
    }
?>

<div id="page-wrapper">
  <?php include ROOT."/adg/pages/show_report.php"; ?>
    <div class="container-fluid">
        <!-- Flot Charts -->
        <div class="row">
            <div class="col-lg-12">
                <h2 class="page-header"><?php echo $page_title; ?></h2>
            </div>
        </div>
        <!-- /.row -->

        <div class="row">
            <div class="col-lg-12">
                <div class="panel panel-primary">
                    <div class="panel-heading">
                        <h3 class="panel-title">
                            <i class="fa fa-bar-chart-o"></i>
                            <?php echo T('Добавить'); ?>
                        </h3>
                    </div>
                    <div class="panel-body">
                        <div class="flot-chart">
                            <div class="flot-chart-content" id="flot-line-chart">
                                <div>
                                    <form enctype="multipart/form-data" action = "" method = "POST">
                                        <?php echo form_init(); ?>
                                        <?php input("link", "Ссылка youtube"); ?>
                                        <br>
                                        <?php input("title", "Заголовок"); ?>
                                        <br>
                                        <?php input("width", "Ширина"); ?>
                                        <br>
                                        <?php input("height", "Высота"); ?>
                                        <br>
                                        <?php input("status", "", "hidden"); ?>
                                        <br>
                                        <?php button_create(); ?>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- /.container-fluid -->

</div>
<!-- /#page-wrapper -->
