include/typelist.php
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
session_start();
require('../conn.php');
require('../functions.php');
require('admin.php');
//删除分类
$del_id=guolv($_GET['del_id']);
if(is_numeric($del_id)){
$mysql->execute("delete from `typedata` where `id`='{$del_id}'");
echo "<script>alert('删除成功');location.href='typelist.php'</script>";
exit;
}
//增加
if($_POST){
$type_name=guolv($_POST['type_name']);
$type_pp=guolv($_POST['type_pp']);
$type_vippp=guolv($_POST['type_vippp']);
$type_author=guolv($_POST['type_author']);
if($type_name!==''){
$mysql->query("insert into `typedata` values(null,'{$type_name}','{$type_pp}','{$type_vippp}','{$type_author}')");
$id=mysql_insert_id();
if($id!==0){
echo "<script>alert('增加成功');location.href='typelist.php'</script>";
exit;
}
}
}
?>
<?php include('head.php')?>
<div class="container-fluid">
<div class="row-fluid">
<?php
include('left.php');
?>
<div class="span9">
<h1 class="page-title">分类管理</h1>
<div class="well">
<div id="myTabContent" class="tab-content">
<div class="tab-pane active in" id="home">
<div class="well">
<form id="tab" action="typelist.php" method="post">
<label>增加分类</label>
<input type="text" value="" style="width:200px" name="type_name">
<label>普通分类单价</label>
<input type="text" style="width:200px" name="type_pp" value="0.05">
<label>VIP分类单价</label>
<input type="text" style="width:200px" name="type_vippp" value="0.05">
<label>公众号广告位(支持UBB)</label>
<input type="text" style="width:500px" name="type_author" value=""> [author=http://www.baidu.com]公众号[/author]
<label></label>
<button class="btn btn-primary"><i class="icon-save"></i> 提交</button>
</form>
</div>
<div class="well">
<table class="table">
后面还有 66 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
