2019年3月13日

PHP7实战开发简单CMS内容管理系统(7) 后台登录架构 用户登录校验

摘要: num_rows > 0){ header('Location:./index.php'); } else{ $GLOBALS['message'] = '用户名或密码错误'; }}//判断是否post提交if($_SERVER['REQUEST_METHOD'] == 'POST'){ login();}?> 阅读全文

posted @ 2019-03-13 19:53 朗宇 阅读(670) 评论(0) 推荐(0) 编辑

PHP7实战开发简单CMS内容管理系统(6) 简单的用户登录判断

摘要: //提交到当前页面的,form action可以不写 阅读全文

posted @ 2019-03-13 17:52 朗宇 阅读(318) 评论(0) 推荐(0) 编辑

PHP7实战开发简单CMS内容管理系统(5) 左侧菜单高亮展示

摘要: 1.定义一个变量 来标识所访问的页面 //category_add 标识 category_add.php页面 <?php $current_page = 'category_add';?><?php include('inc/left.php');?> 2.模板文件里li标签class="acti 阅读全文

posted @ 2019-03-13 16:31 朗宇 阅读(390) 评论(0) 推荐(0) 编辑

PHP7实战开发简单CMS内容管理系统(4) BeyondAdmin 小图标模板使用

摘要: /BeyondAdmin/font-awesome.html 选小图标 eg: 使用: <i class="menu-icon fa fa-cogs"></i> 菜单跳转到指定php页面 <li> <a href="../admin/category_list.php"><span class="m 阅读全文

posted @ 2019-03-13 16:05 朗宇 阅读(429) 评论(0) 推荐(0) 编辑

PHP7实战开发简单CMS内容管理系统(4) 抽离公共部分

摘要: 页面公用的html元素抽离出来,其他部分include引入。 eg: /inc top.php left.php include调用: <body><!-- 头部 --><?php include('inc/top.php');?><!-- /头部 --> 阅读全文

posted @ 2019-03-13 15:35 朗宇 阅读(220) 评论(0) 推荐(0) 编辑

PHP7实战开发简单CMS内容管理系统(3) 引入后台首页

摘要: css,js引入 /admin/index.php 相对路径: <link href="/static/assets/admin/css/bootstrap.css" rel="stylesheet"> 绝对路径: <link href="http://www.xxoo.com/static/ass 阅读全文

posted @ 2019-03-13 14:42 朗宇 阅读(251) 评论(0) 推荐(0) 编辑

PHP7实战开发简单CMS内容管理系统(2) 创建配置文件config.php

摘要: 网站根目录: /config.php 阅读全文

posted @ 2019-03-13 14:16 朗宇 阅读(452) 评论(0) 推荐(0) 编辑

PHP7实战开发简单CMS内容管理系统(1) 创建目录结构

摘要: 阅读全文

posted @ 2019-03-13 14:03 朗宇 阅读(438) 评论(0) 推荐(0) 编辑

导航