mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
新增模版引擎文件
This commit is contained in:
parent
65196b72a1
commit
a0c554194d
@ -3,6 +3,7 @@ namespace app\admin\controller;
|
||||
|
||||
class Index extends Base {
|
||||
public function index() {
|
||||
return (new PublicShow())->show_404();
|
||||
$this->assign('title', '首页');
|
||||
return $this->fetch();
|
||||
}
|
||||
}
|
||||
|
@ -1 +1,6 @@
|
||||
Hello
|
||||
{extend name="public/base" /}
|
||||
{block name="main"}
|
||||
|
||||
{/block}
|
||||
{block name="myScript"}
|
||||
{/block}
|
@ -3,24 +3,13 @@
|
||||
<div class="error-page">
|
||||
<h2 class="headline text-yellow"> 404</h2>
|
||||
<div class="error-content">
|
||||
<h3><i class="fa fa-warning text-yellow"></i> Oops! Page not found.</h3>
|
||||
|
||||
<h3><i class="fa fa-warning text-yellow"></i> 糟糕,页面没找到! </h3>
|
||||
<p>
|
||||
We could not find the page you were looking for.
|
||||
Meanwhile, you may <a href="../../index.html">return to dashboard</a> or try using the search form.
|
||||
您想要访问的页面没有找到。
|
||||
您可以选择访问 <a href="{:url('Index/index')}">管理后台首页</a> 或者可以通过 <a href="{:config('WEBSITE_DOMAIN')}">官网</a> 寻求帮助!
|
||||
</p>
|
||||
|
||||
<form class="search-form">
|
||||
<div class="input-group">
|
||||
<input type="text" name="search" class="form-control" placeholder="Search">
|
||||
|
||||
<div class="input-group-btn">
|
||||
<button type="submit" name="submit" class="btn btn-warning btn-flat"><i class="fa fa-search"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.input-group -->
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
{block name="myScript"}
|
||||
{/block}
|
@ -357,7 +357,7 @@
|
||||
<div class="content-wrapper">
|
||||
<!-- 头部(面包屑导航) -->
|
||||
<section class="content-header">
|
||||
<h1>404 Error Page</h1>
|
||||
<h1>{$title}</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
|
||||
<li><a href="#">Examples</a></li>
|
||||
|
48
public/static/admin/dist/js/template.js
vendored
48
public/static/admin/dist/js/template.js
vendored
@ -4,13 +4,30 @@
|
||||
* You should not use this file in production.
|
||||
* This file is for demo purposes only.
|
||||
*/
|
||||
(function ($) {
|
||||
$.AdminTemplate = {};
|
||||
/**
|
||||
* 格式化时间戳(为了和PHP的date函数统一,这里的时间戳都是10位,不包含毫秒)
|
||||
* @param timestamp
|
||||
* @returns {string}
|
||||
*/
|
||||
var formatDate = function ( timestamp ) {
|
||||
timestamp *= 1000;
|
||||
var date = new Date(timestamp);
|
||||
var Y = date.getFullYear() + '-';
|
||||
var M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1) + '-';
|
||||
var D = (date.getDate()+1 < 10 ? '0'+(date.getDate()+1) : date.getDate()+1) + ' ';
|
||||
var h = date.getHours() + ':';
|
||||
var m = date.getMinutes() + ':';
|
||||
var s = date.getSeconds();
|
||||
return Y+M+D+h+m+s;
|
||||
};
|
||||
(function ($, AdminTemplate) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function create( jsonStr ) {
|
||||
AdminTemplate.buildDom = function ( jsonStr ) {
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
function emptyList() {
|
||||
|
||||
@ -28,7 +45,7 @@
|
||||
|
||||
}
|
||||
|
||||
function easyForm() {
|
||||
function easyForm( formObj ) {
|
||||
|
||||
}
|
||||
|
||||
@ -44,21 +61,12 @@
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 格式化时间戳(为了和PHP的date函数统一,这里的时间戳都是10位,不包含毫秒)
|
||||
* @param timestamp
|
||||
* @returns {string}
|
||||
*/
|
||||
function formatDate( timestamp ) {
|
||||
timestamp *= 1000;
|
||||
var date = new Date(timestamp);
|
||||
var Y = date.getFullYear() + '-';
|
||||
var M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1) + '-';
|
||||
var D = (date.getDate()+1 < 10 ? '0'+(date.getDate()+1) : date.getDate()+1) + ' ';
|
||||
var h = date.getHours() + ':';
|
||||
var m = date.getMinutes() + ':';
|
||||
var s = date.getSeconds();
|
||||
return Y+M+D+h+m+s;
|
||||
function breadcrumb( ) {
|
||||
|
||||
}
|
||||
|
||||
})(jQuery);
|
||||
AdminTemplate.a = function () {
|
||||
|
||||
}
|
||||
|
||||
})(jQuery, $.AdminTemplate);
|
||||
|
Loading…
x
Reference in New Issue
Block a user