diff --git a/application/admin/controller/Base.php b/application/admin/controller/Base.php index 125b5e5..8fe98e2 100644 --- a/application/admin/controller/Base.php +++ b/application/admin/controller/Base.php @@ -44,6 +44,6 @@ abstract class Base extends Controller */ protected function start() { - return (int)$this->limit * (int)$this->page; + return (int)$this->limit * ((int)$this->page - 1) + 1; } } diff --git a/application/admin/controller/Index.php b/application/admin/controller/Index.php index 22feb70..3e79451 100644 --- a/application/admin/controller/Index.php +++ b/application/admin/controller/Index.php @@ -30,8 +30,14 @@ class Index extends Base return $this->fetch(); } + /** + * main + * + * @time at 2018年11月16日 + * @return mixed|string + */ public function main() { - return "this is main"; + return $this->fetch(); } } \ No newline at end of file diff --git a/views/admin/index/main.html b/views/admin/index/main.html new file mode 100644 index 0000000..9964138 --- /dev/null +++ b/views/admin/index/main.html @@ -0,0 +1,121 @@ + + +
+ + +欢迎使用管理后台。由 THINKING 设计
+PHP 版本 | +{$Think.PHP_VERSION} | +|
---|---|---|
MYSQL 版本 | +{:mysqli_get_client_version()} | +|
WEB 服务器 | +{$_SERVER['SERVER_SOFTWARE']} | +|
操作系统 | +{$Think.PHP_OS} | +|
opcache (建议开启) | + {if condition="function_exists('opcache_get_configuration')"} +{:opcache_get_configuration()['directives']['opcache.enable'] ? '开启' : '关闭' } | + {else/} +未开启 | + {/if} +
脚本最大执行时间(s) | +{:get_cfg_var("max_execution_time")} | +|
上传限制大小(M) | +{:get_cfg_var ("upload_max_filesize")} | +|
当前时间 | +{:date("Y-m-d H:i:s")} | +|
后台框架搭建
+