<?php require_once '_main.php'; $Users = new Ss\User\User(); $ko = new Kotori(); ?> <div class="content-wrapper"> <section class="content-header"> <h1 style="font-family:Microsoft Yahei;">MoeFQ 付款码 <small>MoeFQ PayCode List</small></h1> </section> <section class="content"> <div class="box box-success"> <div class="box-body"> <p>在这里可以看到已经生成的付款码。</p> <table class="table"> <thead> <th>序号</th> <th>付款码</th> <th>面值</th> </thead> <tbody> <?php $id = 1; $data = $ko->db()->query("SELECT * FROM moefq_code"); while ($payCode = mysqli_fetch_array($data, MYSQLI_ASSOC)) { echo '<tr>'; echo '<td>' . $id . '</td>'; $id = $id + 1; echo '<td>' . $payCode['code'] . '</td>'; echo '<td>' . $payCode['size'] . '</td>';
<?php require_once '_main.php'; $Users = new Ss\User\User(); $ko = new Kotori(); ?> <div class="content-wrapper"> <section class="content-header"> <h1 style="font-family:Microsoft Yahei;">MoeFQ 后台设置 <small>MoeFQ Options</small></h1> </section> <section class="content"> <div class="row"> <div class="col-md-12"> <div class="box box-primary"> <div class="box-header"> <h3 class="box-title">首页公告修改</h3> </div> <div class="box-body"> <p>在这里可以修改首页的两条公告。</p> <div class="input-group"> <span class="input-group-addon">公告1</span> <input type="text" name="notice-1" class="form-control" id="notice-1" aria-describedby="notice-1" value="<?php echo $ko->getOption('notice'); ?> "> </div> <div class="input-group"> <span class="input-group-addon">公告2</span> <input type="text" name="notice-2" class="form-control" id="notice-2" aria-describedby="notice-2" value="<?php echo $ko->getOption('notice', 'subvalue');
<?php require './Kotori.php'; Kotori::run(array('APP_PATH' => './App/', 'DB_HOST' => '127.0.0.1', 'DB_USER' => 'root', 'DB_PWD' => 'root', 'DB_NAME' => 'test', 'URL_ROUTE' => array('news/([0-9])' => 'Index/showNews/$1')));
function __autoload($className) { Kotori::autoload($className); }