2 Star 4 Fork 0

Belong / shopPHP

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.php 1.20 KB
一键复制 编辑 原始数据 按行查看 历史
Belong 提交于 2021-07-11 09:49 . php
<?php
session_start();
header("content-type:text/html;charset=utf-8");
require("system/system.inc.php"); //包含配置文件
if(isset($_GET["page_type"])){
$page_type=$_GET["page_type"];
}
else{
$page_type="";
}
//.....
include_once("login.php");
include_once("public.php");
include_once("links.php");
switch($page_type){ //将PHP脚本文件对应的模板文件名称赋给模板变量
//会员中心
case 'hyzx':
include_once('member.php');
$smarty->assign('admin_phtml','member.tpl');
break;
//查看购物车
case 'shopcar':
include_once('myshopcar.php');
$smarty->assign('admin_phtml','myshopcar.tpl');
break;
case 'new':
include_once('allnew.php');
$smarty->assign('admin_phtml','allnew.tpl');
break;
case 'nom':
include_once('allnom.php');
$smarty->assign('admin_phtml','allnom.tpl');
break;
case 'hot':
include_once('allhot.php');
$smarty->assign('admin_phtml','allhot.tpl');
break;
case 'queryform':
include_once('queryform.php');
$smarty->assign('admin_phtml','queryform.tpl');
break;
default:
include_once('newhot.php');
$smarty->assign('admin_phtml','newhot.tpl');
break;
}
$smarty->display("index.tpl");
?>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Belong123/shop-php.git
git@gitee.com:Belong123/shop-php.git
Belong123
shop-php
shopPHP
master

搜索帮助

Bbcd6f05 5694891 0cc6727d 5694891