<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>添加产品-号卡推广管理平台</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="//at.alicdn.com/t/font_1658828_vud4w73neg.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body class="bg-light">
<?php
session_start();
if (isset($_SESSION["username"])) {
?>
<nav class="navbar navbar-expand-sm navbar-dark bg-dark">
<a class="navbar-brand" href="#">
<img src="other/avatar.jpg" width="30" height="30" alt="">
号卡推广管理平台
</a>
<ul class="navbar-nav ml-auto">
<li class="nav-item dropdown">
<a class="nav-link" href="user.php" id="navbarDropdown" data-toggle="dropdown">
个人中心
</a>
</li>
</ul>
</nav>
<div class="container-fluid vh-100">
<div class="row h-100">
<div class="col-2 bg-white border-right nav-left p-0">
<div class="row text-center mt-3 px-5">
<a href="add.php" class="btn btn-primary rounded-0 col">添加产品</a>
</div>
<div class="list-group list-group-flush border-top border-bottom mt-3 text-center">
<li class="list-group-item list-group-item-action">
<a href="index.php" class="text-decoration-none text-secondary">
<i class="iconfont icon-home pr-1"></i>管理首页
</a>
</li>
<li class="list-group-item list-group-item-action">
<a href="list.php" class="text-decoration-none text-secondary">
<i class="iconfont icon-neirongguanli pr-1"></i>产品管理
</a>
</li>
<li class="list-group-item list-group-item-action">
<a href="system.php" class="text-decoration-none text-secondary">
<i class="iconfont icon-zhanghuguanli pr-1"></i>系统管理
</a>
</li>
</div>
</div>
<div class="col-10">
<div class="p-3 border mb-3 bg-white d-flex justify-content-between">
<h4>号卡产品管理
</h4>
<a href="loginout.php" class="text-dark text-decoration-none"><i class="iconfont icon-tuichu pr-1"></i>退出</a>
</div>
<div class="row mt-3">
<div class="col">
<div class="card">
<div class="card-header bg-primary text-white d-flex justify-content-between">
<h6 class="mb-0 align-self-center">产品列表</h6>
</div>
<div class="card-body">
<form name="form1" id="form1" method="post" action="deleteall.php">
<table class="table table-striped text-center ">
<?php
include_once("../untils/conn.php");
mysqli_query($con, "set names utf8");
if ($con) {
if ($db) {
//获取数据总行数
$sql = "select * from list";
$data = mysqli_query($con, $sql);
$maxrows = mysqli_num_rows($data);
//计算总页数
$page_size = 10; //每页显示数
if ($maxrows % $page_size == 0) {
$maxpage = (int)($maxrows / $page_size);
} else {
$maxpage = (int)($maxrows / $page_size) + 1;
}
//获取当前页
if (isset($_GET['curpage'])) {
$page = $_GET['curpage'];
} else {
$page = 1;
}
//分段取出数据
$start = $page_size * ($page - 1);
$get_sql = "select * from list limit $start,$page_size";
//得到数据显示
$data = mysqli_query($con, $get_sql);
?>
<thead>
<tr>
<th colspan="2">ID</th>
<th>名称</th>
<th>介绍</th>
<th>主图</th>
<th>运营商</th>
<th>时长</th>
<th>下单地址</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<?php
while ($row = mysqli_fetch_array($data)) {
?>
<tr>
<td style="width:50px;">
<input type="checkbox" name="chk[]" id="chk" value="<?php echo $row["id"]; ?>" /> <?php echo $row["id"] ?>
</td>
<td>
</td>
<td><?php echo $row["name"] ?>
</td>
<td><?php echo $row["jieshao"] ?>
</td>
<td><img src="<?php echo $row["zhutu"] ?>" alt="" style="width:60px;">
</td>
<td style="width:100px;"><?php echo $row["yys"] ?>
</td>
<td><?php echo $row["ltime"] ?>
</td>
<td><?php echo $row["link"] ?></td>
<td style="width:150px;">
<a href=update.php?id=<?php echo $row['id'] ?> class="btn btn-success btn-sm">修改</a>
<a href="delete.php?id=<?php echo $row['id'] ?>" onclick=" return del()" class="btn btn-danger btn-sm">删除</a>
</td>
</tr>
<?php
}
?>
</tbody>
<tfoot>
<tr>
<td colspan="5"><a href="" class="btn btn-info btn-sm" onclick="return chek()">全选/取消</a> <input type="submit" onclick="return del();" class="btn btn-warning btn-sm" value="删除选择" /></td>
<td colspan="3">
<?php
echo "<p>共 $maxpage 页 ";
echo "每页 $page_size 项 ";
//设置上一页
if ($page > 1) {
$prepage = $page - 1;
echo "<a href='?curpage=$prepage'>上一页</a> ";
}
//设置下一页
if ($page < $maxpage) {
$nextpage = $page + 1;
echo "<a href='?curpage=$nextpage'>下一页</a> ";
}
echo " 第 $page 页</p>";
}
}
?></td>
</tr>
</tfoot>
</table>
没有合适的资源?快使用搜索试试~ 我知道了~
新版PHP号卡推广管理系统源码 手机卡流量卡推广网站源码自带后台版本 亲测源码.zip
![preview](https://csdnimg.cn/release/downloadcmsfe/public/img/white-bg.ca8570fa.png)
共45个文件
php:18个
css:9个
png:8个
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 195 浏览量
2024-04-05
14:15:25
上传
评论
收藏 1.98MB ZIP 举报
温馨提示
号卡推广管理系统源码,手机卡流量卡推广网站源码带后台版本 宝塔将所有文件上传到根目 创建数据库并导入haoka.sql 修改untils/conn.php文件内的3、4、5行为自己创建的数据库账号密码 后台地址:你的域名/haoka/login.php 账号密码:admin admin
资源推荐
资源详情
资源评论
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![txt](https://img-home.csdnimg.cn/images/20210720083642.png)
![txt](https://img-home.csdnimg.cn/images/20210720083642.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![txt](https://img-home.csdnimg.cn/images/20210720083642.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
收起资源包目录
![package](https://csdnimg.cn/release/downloadcmsfe/public/img/package.f3fc750b.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
共 45 条
- 1
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/default.jpg!1)
百创科技
- 粉丝: 1714
- 资源: 247
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)