<td width="102">分类</td>
    <td width="251">粉丝数</td>	
    <td width="145">单图文报价</td>
    <td width="145">多图文报价</td>
    <td width="149">备注</td>
  </tr>
</table>
<form action="add_weixin.php" method="post">
<table class="table_weibo_list"  border="0" cellspacing="0" cellpadding="0" >
   <?php

       $so=$_GET['so'];//关键词
	   
       $numq=mysql_query("select id from tb_weixin where weixinname like '%$so%' or weixinhao like '%$so%'");	   
	   require_once 'page.php';	  
	   $list=listquery("select * from tb_weixin where weixinname like '%$so%' or weixinhao like '%$so%' order by id desc limit ".$num.",20");
	   foreach ($list as $v){
	   ?> 
	     <tr>
			<td width="124" ><input name="numid[]" type="checkbox" value="<?=$v['id']?>" class="checkbox" style="margin-top:5px;" onclick="check();"/>选中发布</td>
			<td width="105"><?=$v['weixinname']?></td>   
			<td width="143"><?=$v['weixinhao']?></td> 
			<td width="102"><?=$v['fenlei']?></td>   
			<td width="251"><?=$v['fensi']?></td>	
			<td width="145"><?=$v['dantuwen']?> 元</td>
			<td width="145"><?=$v['duotuwen']?> 元</td>
			<td width="149"><?=$v['beizhu']?></td>
		  </tr>
			
		   <?
		   }
				<option value="手机">手机</option>
				<option value="教育">教育</option>			 		 
				</select> 
			</td>
			<td></td>
		  </tr>
		  <select name="area">
		          <option value="<?php 
echo $row[area];
?>
"><?php 
echo $row[area];
?>
</option>
				  <?php 
$area = listquery("select * from city order by id asc");
foreach ($area as $v) {
    ?>
				  <option value="<?php 
    echo $v['cityname'];
    ?>
"><?php 
    echo $v['cityname'];
    ?>
</option>
				  <?php 
}
?>
				</select>
		  <tr>
			<td>板块地址</td>
<div class="footline"></div>
<div class="foot">
  <div class="foots">
    <?php 
$link = listquery("select * from link order by paixu asc");
foreach ($link as $v) {
    ?>
    <a href="<?php 
    echo $v['url'];
    ?>
      " target="_blank">
      <?php 
    echo $v['title'];
    ?>
</a>
    <?php 
}
?>
</div>
  <div class="foots">
    <?php 
echo $sg['content'];
?>
</div>

</div>

<!--foot end-->
include 'left.php';
?>
	</div>
  <!--left-->
  <!--right-->
	<div class="admin_right">
	<table width="776" height="53" border="0" cellpadding="1" cellspacing="1" style="border: #CCCCCC 1px solid; text-align:center;">
	  <tr height="30">
		<td width="112">会员级别</td>
		<td width="109">充值金额</td>
		<td width="104">消费折扣</td>
		<td width="104">修改</td>
		<td width="114">删除</td>
	  </tr>	
	  <?php 
$row = listquery("select * from level order by id asc");
foreach ($row as $v) {
    ?>
	    <tr height="30">
		<td width="112"><?php 
    echo $v[level];
    ?>
</td>
		<td width="109"><?php 
    echo $v[price];
    ?>
 元 <input name="" id="chongzhi<?php 
    echo $v[id];
    ?>
" type="text" style="width:40px;" /></td>
		<td width="104"><?php 
		<td width="138">订单编号</td>		
		<td width="100">用户名</td>	
		<td width="70">单图文价格</td>
		<td width="70">多图文价格</td>	
		<td width="67">订单状态</td>		
		<td width="122">备注说明</td>
		<td width="122">操作</td>
		<td width="109">订单时间</td>		
		<td width="109">查看详情</td>
		<td width="80">发布报表</td>
	  </tr>
	  
	  <?php 
$numq = mysql_query("select * from order_weixin {$sql}");
include 'page.php';
$row = listquery("select * from order_weixin {$sql} order by id desc  limit " . $num . ",10");
foreach ($row as $v) {
    ?>
	  <tr>
		<td width="86"><input  name="del_id[]" type="checkbox" id="del_id[]" value="<?php 
    echo $v['id'];
    ?>
" /><input  name="id" type="text" id="<?php 
    echo $v['id'];
    ?>
" value="<?php 
    echo $v['id'];
    ?>
" style="display:none;" /></td>
		<td width="138"><?php 
    echo $v['orderID'];
        $shang = 1;
        $next = 2;
        $now = 1;
    } else {
        $next = $page + 1;
        $now = $page;
        $shang = $page - 1;
    }
}
if ($totle == 1) {
    $next = 1;
}
if ($next > $totle) {
    $next = $totle;
}
$row = listquery("select * from user order by id desc  limit " . $num . ",10");
foreach ($row as $v) {
    ?>
	   <tr>
		<td width="106" height="33"><input  name="del_id[]" type="checkbox" id="del_id[]" value="<?php 
    echo $v['user'];
    ?>
" /></td><input  name="user[]" type="text" id="user[]" value="<?php 
    echo $v['user'];
    ?>
" style="display:none;" />
		<td width="121"><a href="souser.php?username=<?php 
    echo $v[user];
    ?>
"><font color="blue"><?php 
    echo $v[user];
?>
	  <!--head end-->

	  <div class="addbox">
		 <!--核心代码-->

		 <table width="1018" height="79"  border="0" cellpadding="0" cellspacing="0" style="margin-left:20px; margin-top:10px;">
			<tr>
			   <td width="243" height="45" style="color:blue; font-size:18px;">发布论坛水军顶贴文章</td>
			   <td width="642"></td>
			</tr>
			<tr>
			   <td width="243" height="34">所选产品</td>
			   <td width="642">
				  <?php 
$numid = listquery("select * from ordertop where user='******' and tb='tb_bbsdingtie'");
//查询ordertop 产品ID系列表
foreach ($numid as $v) {
    $a = query("select * from tb_bbsdingtie where id='{$v['cpID']}'");
    $cpID .= $v[cpID] . ',';
    //产品ID
    $price[] = $a['price'];
    //产品价格
    echo $a['bbs'];
    echo ' <font color=red> ' . $a['price'] . '元</font>';
    echo '<a href="?del_id=' . $v[id] . '"><font color=blue> 点击删除</font></a>' . '<br>';
}
$hbprice = array_sum($price);
echo '总计<font color=red> ' . $hbprice . '元</font>' . '<br>';
//查询用户 余额 权限 折扣
$cha = query("select * from user where user='******'");
			</div>
			<div class="uright">
			   <table width="953" height="38" border="0" cellpadding="0" cellspacing="0" class="order3">
				  <tr>
					 <td width="96">项目名称</td>
					 <td width="154">订单编号</td>
					 <td width="277">支付宝交易号</td>
					 <td width="117">充值金额</td>
					 <td width="108">充值方式</td>
					 <td width="201">时间</td>
				  </tr>

				  <?php 
$numq = mysql_query("select id from alipay where user='******' and type>0");
require_once 'page.php';
$list = listquery("select * from alipay where user='******' and type>0 order by id desc  limit " . $num . ",20");
foreach ($list as $v) {
    $xrmb += $v['rmb'];
    ?>
					 <tr>
						<td width="96"><?php 
    echo $v['title'];
    ?>
</td>
						<td width="154"><?php 
    echo $v['orderID'];
    ?>
</td>
						<td width="277"><?php 
    echo $v['alipayID'];
    ?>
    <td width="105">媒体</td>
	<td width="105">媒体名称</td>
    <td width="102">分类</td>   
    <td width="251" style="text-align:center;">链接</td>
	<td width="143">会员价</td>
    <td width="145">可否带链接</td>
    <td width="145">是否收录</td>
    <td width="149">备注</td>
  </tr>
</table>
<form action="add_news.php" method="post">
<table class="table_weibo_list"  border="0" cellspacing="0" cellpadding="0" >
 <?php 
$numq = mysql_query("select id from tb_news {$m}");
include 'page.php';
$row = listquery("select * from tb_news {$m} order by id desc limit " . $num . ",20");
foreach ($row as $v) {
    ?>
  <tr>
    <td width="124" ><input name="numid[]" type="checkbox" value="<?php 
    echo $v['id'];
    ?>
" class="checkbox" style="margin-top:5px;" onclick="check();"/>选中发布</td>
    <td width="105"><?php 
    echo $v['meiti'];
    ?>
</td>
	<td width="105"><?php 
    echo $v['mtname'];
    ?>
</td>
						<a href="" style="float:right; border:0px;">资源总数<?php 
echo $tongji;
?>
条</a>

					 </div>
				  </div>

				  <!--page end-->
				  <?php 
$sex = query("select count(id) from ordertop where user='******' and tb='tb_bbszhiding'");
$xge = $sex['count(id)'];
if ($xge == 0) {
    $xge = 0;
}
$sexd = listquery("select * from ordertop  where user='******' and tb='tb_bbszhiding' order by id desc");
foreach ($sexd as $ve) {
    $vid = $ve[cpID];
    $sexdd = query("select * from tb_bbszhiding  where id='{$vid}'");
    $showxuan .= '<a>' . $sexdd['bbs'] . '<a>' . '<a href="?del_id=' . $ve[id] . '"><font color=blue>点击删除</font></a>';
}
$del_id = $_GET['del_id'];
if ($del_id) {
    mysql_query("delete from ordertop where id='{$del_id}'");
    exit("<script>window.location.href='list_bbszhiding.php?caozuoid=pt7';</script>");
}
?>
						<?php 
include 'foot.php';
?>
					 </form>
    <td width="108">论坛</td>  
	<td width="283">论坛地址</td>
    <td width="158">条数</td>	
    <td width="110">周期</td>
    <td width="109">会员价</td>
    <td width="156">备注</td>
  </tr>
</table>
<form action="add_bbsdingtie.php" method="post">
<table class="table_weibo_list"  border="0" cellspacing="0" cellpadding="0" >
   <?php
       $so=$_GET['so'];//关键词
	   
       $numq=mysql_query("select id from tb_bbsdingtie where bbs like '%$so%' or bbsadress like '%$so%'");	   
	   require_once 'page.php';	  
	   $list=listquery("select * from tb_bbsdingtie where bbs like '%$so%' or bbsadress like '%$so%' order by id desc limit ".$num.",20");
	   foreach ($list as $v){
	   ?> 
	      <tr>
			<td width="127" ><input name="numid[]" type="checkbox" value="<?=$v['id']?>" class="checkbox" style="margin-top:5px;" onclick="check();"/>选中发布</td>
			<td width="108"><?=$v['bbs']?></td> 
			<td width="283"><a href="<?=$v['bbsadress']?>" target="_blank"><?=$v['bbsadress']?></a></td>   
			<td width="158"><?=$v['num']?></td>	
			<td width="110"><?=$v['zhouqi']?></td>
			<td width="109"><?=$v['price']?> 元</td>
			<td width="156"><?=$v['beizhu']?></td>
		  </tr>
		   <?
		   }

   ?>
				  <a href="" style="float:right; border:0px;">资源总数<?php 
echo $tongji;
?>
条</a>

			   </div>
			</div>

			<!--page end-->
			<?php 
$sex = query("select count(id) from ordertop where user='******' and tb='tb_dxwenzhang'");
$xge = $sex['count(id)'];
if ($xge == 0) {
    $xge = 0;
}
$sexd = listquery("select * from ordertop  where user='******' and tb='tb_dxwenzhang' order by id desc");
foreach ($sexd as $ve) {
    $vid = $ve[cpID];
    $sexdd = query("select * from tb_dxwenzhang  where id='{$vid}'");
    $showxuan .= '<a>' . $sexdd['zishu'] . '字<a>' . '<a href="?del_id=' . $ve[id] . '"><font color=blue>点击删除</font></a>';
}
$del_id = $_GET['del_id'];
if ($del_id) {
    mysql_query("delete from ordertop where id='{$del_id}'");
    exit("<script>window.location.href='list_dxwenzhang.php?caozuoid=pt2';</script>");
}
?>
				  <?php 
include 'foot.php';
?>
			   </form>
        $shang = 1;
        $next = 2;
        $now = 1;
    } else {
        $next = $page + 1;
        $now = $page;
        $shang = $page - 1;
    }
}
if ($totle == 1) {
    $next = 1;
}
if ($next > $totle) {
    $next = $totle;
}
$row = listquery("select * from tb_dxwenzhang order by id desc limit " . $num . "," . $pageso . "");
foreach ($row as $v) {
    ?>
	  <tr>
		<td width="90"><input name="del_id[]" type="checkbox" id="del_id[]" value="<?php 
    echo $v['id'];
    ?>
" /></td>
		<td width="108"><?php 
    echo $v[zishu];
    ?>
</td>	
		
		<td width="78"><?php 
    echo $v[zhouqi];
    ?>
			  </div>
			  <div class="uright">
				<table width="953" height="38" border="0" cellpadding="0" cellspacing="0" class="order3">
				  <tr>
					<td width="96">下线用户名</td>
					<td width="96">订单编号</td>	
					<td width="96">消费名称</td>	
					<td width="96">实际付款</td>	
					<td width="96">给我提成金额</td>	
					<td width="96">日期</td>
							
				  </tr>
				  <?php 
$numq = mysql_query("select * from ticheng_b where tuijie='{$user}' and type=1");
include 'page.php';
$row = listquery("select * from ticheng_b where tuijie='{$user}' and type=1 order by id desc");
foreach ($row as $v) {
    ?>
				   <tr>
					<td width="96"><?php 
    echo $v['user'];
    ?>
</td>	
					<td width="96"><?php 
    echo $v['orderID'];
    ?>
</td>		
					<td width="96"><?php 
    echo $v['cpname'];
    ?>
</td>		
			   <form name="del_form" action="<?php 
echo htmlspecialchars($_SERVER["PHP_SELF"]);
?>
" method="post">
				  <table width="953" height="38" border="0" cellpadding="0" cellspacing="0" class="order3">
					 <tr>
						<td > 时间</td>
						<td > 标题</td>				
						<td > 内容</td>				
					 </tr>

					 <?php 
$sqle = "select * from gonggao ";
$numq = mysql_query($sqle);
require_once 'page.php';
$list = listquery("select * from gonggao order by id desc limit " . $num . ",20");
//echo '<script>alert('.$list.');</script>' ;
foreach ($list as $v) {
    ?>

						<tr>
						   <td width="150"> <input  name="del_id[]" type="checkbox" id="del_id[]" value="<?php 
    echo $v['id'];
    ?>
" /> <?php 
    echo $v['time'];
    ?>
 </td>
						   <td width="96"> <?php 
    echo $v['title'];
    ?>
    <td width="251" style="text-align:center;">链接</td>	
    <td width="145">粉丝数</td>
    <td width="145">直发报价</td>
    <td width="149">转发报价</td>
  </tr>
</table>
<form action="add_weibo.php" method="post">
<table class="table_weibo_list"  border="0" cellspacing="0" cellpadding="0" >
   <?php


       $so=$_GET['so'];//关键词
	   
       $numq=mysql_query("select id from tb_weibo  where weiboname like '%$so%' or link like '%$so%'");	   
	   require_once 'page.php';	  
	   $list=listquery("select * from tb_weibo where weiboname like '%$so%' or link like '%$so%' order by id desc limit ".$num.",20");
	   foreach ($list as $v){
	   ?> 
	     <tr>
			<td width="124" ><input name="numid[]" type="checkbox" value="<?=$v['id']?>" class="checkbox" style="margin-top:5px;" onclick="check();"/>选中发布</td>
			<td width="105"><?=$v['weibo']?></td>      
			<td width="143"><?=$v['weiboname']?></td> 
			<td width="102"><?=$v['fenlei']?></td> 
			<td width="251" style="text-align:center;"><a href="<?=$v['link']?>" target="_blank"><?=$v['link']?></a></td>	
			<td width="145"><?=$v['fensi']?></td>
			<td width="145"><?=$v['zhifa']?> 元</td>
			<td width="149"><?=$v['zhuanfa']?> 元</td>
		  </tr>
			
		   <?
		   }
  
	<table width="1182" border="0" cellspacing="0" cellpadding="0" class="order2">
	  <tr style="background-color: #006666; color:white;">
		
		<td width="138">用户名</td>
		<td width="122">订单号</td>
		<td width="115">产品价格</td>	
		<td width="67">订单状态</td>
		<td width="109">订单时间</td>
		<td width="109">查看详情</td>
	  </tr>
	  
	  <?php 
$numq = mysql_query("select * from order_bbsdingtie {$sql}");
include 'page.php';
$row = listquery("select * from order_bbsdingtie {$sql} order by id desc  limit " . $num . ",10");
foreach ($row as $v) {
    ?>
	  <tr>
		
		<td width="138"><?php 
    echo $v['user'];
    ?>
</td>
		<td width="122"><?php 
    echo $v['orderID'];
    ?>
</td>
		<td width="115"><?php 
    echo $v['price'];
    ?>
?>
	  <!--head end-->

	  <div class="addbox">
		 <!--核心代码-->

		 <table width="1018" height="79"  border="0" cellpadding="0" cellspacing="0" style="margin-left:20px; margin-top:10px;">
			<tr>
			   <td width="243" height="45" style="color:blue; font-size:18px;">发布代写文章</td>
			   <td width="642"></td>
			</tr>
			<tr>
			   <td width="243" height="34">所选产品</td>
			   <td width="642">
				  <?php 
$numid = listquery("select * from ordertop where user='******' and tb='tb_dxwenzhang'");
//查询ordertop 产品ID系列表
foreach ($numid as $v) {
    $a = query("select * from tb_dxwenzhang where id='{$v['cpID']}'");
    $cpID .= $v[cpID] . ',';
    //产品ID
    $price[] = $a['price'];
    //产品价格
    echo $a['zishu'];
    echo ' <font color=red>字' . $a['price'] . '元</font>';
    echo '<a href="?del_id=' . $v[id] . '"><font color=blue> 点击删除</font></a>' . '<br>';
}
$hbprice = array_sum($price);
echo '单篇总计<font color=red> ' . $hbprice . '元</font>' . '<br>';
//查询用户 余额 权限 折扣
$cha = query("select * from user where user='******'");
?>
	  <!--head end-->

	  <div class="addbox">
		 <!--核心代码-->

		 <table width="1018" height="79"  border="0" cellpadding="0" cellspacing="0" style="margin-left:20px; margin-top:10px;">
			<tr>
			   <td width="243" height="45" style="color:blue; font-size:18px;">发布微信资源文章</td>
			   <td width="642"></td>
			</tr>
			<tr>
			   <td width="243" height="34">所选产品</td>
			   <td width="642">
				  <?php 
$numid = listquery("select * from ordertop where user='******' and tb='tb_weixin'");
//查询ordertop 产品ID系列表
foreach ($numid as $v) {
    $a = query("select * from tb_weixin where id='{$v['cpID']}'");
    $cpID .= $v[cpID] . ',';
    //产品ID
    $dantuwen[] = $a['dantuwen'];
    //产品直发价格
    $duotuwen[] = $a['duotuwen'];
    //产品转发价格
    echo $a['weixinname'];
    echo ' 单图文价格<font color=red> ' . $a['dantuwen'] . '元</font>';
    echo ' 多图文价格<font color=red> ' . $a['duotuwen'] . '元</font>';
    echo '<a href="?del_id=' . $v[id] . '"><font color=blue> 点击删除</font></a>' . '<br>';
}
$hbdantuwen = array_sum($dantuwen);
				  <a href="" style="float:right; border:0px;">资源总数<?php 
echo $tongji;
?>
条</a>

			   </div>
			</div>

			<!--page end-->
			<?php 
$sex = query("select count(id) from ordertop where user='******' and tb='tb_zonghe'");
$xge = $sex['count(id)'];
if ($xge == 0) {
    $xge = 0;
}
$sexd = listquery("select * from ordertop  where user='******' and tb='tb_zonghe' order by id desc");
foreach ($sexd as $ve) {
    $vid = $ve[cpID];
    $sexdd = query("select * from tb_zonghe  where id='{$vid}'");
    $showxuan .= '<a>' . $sexdd['leixing'] . '<a>' . '<a href="?del_id=' . $ve[id] . '"><font color=blue>点击删除</font></a>';
}
$del_id = $_GET['del_id'];
if ($del_id) {
    mysql_query("delete from ordertop where id='{$del_id}'");
    exit("<script>window.location.href='list_zonghe.php?caozuoid=pt5';</script>");
}
?>
				  <?php 
include 'foot.php';
?>
			   </form>
        $shang = 1;
        $next = 2;
        $now = 1;
    } else {
        $next = $page + 1;
        $now = $page;
        $shang = $page - 1;
    }
}
if ($totle == 1) {
    $next = 1;
}
if ($next > $totle) {
    $next = $totle;
}
$row = listquery("select * from tb_news order by id desc limit " . $num . "," . $pageso . "");
foreach ($row as $v) {
    ?>
	  <tr>
		<td width="90"><input name="del_id[]" type="checkbox" id="del_id[]" value="<?php 
    echo $v['id'];
    ?>
" /></td>
		<td width="108"><?php 
    echo $v[meiti];
    ?>
</td>
		<td width="108"><?php 
    echo $v[mtname];
    ?>
</td>
         //调试用,写文本函数记录程序运行情况是否正常
         //logResult("这里写入想要调试的代码变量值,或其他运行的结果记录");
     }
 }
 include '../function.php';
 $row = query("select * from alipay where orderID='{$out_trade_no}' and type=0");
 //查询订单
 $user = $row['user'];
 //订单用户名
 $rmb = $row['rmb'];
 //订单RMB
 $a = query("select * from user where user='******'");
 $urmb = $a[rmb];
 //用户余额
 $newRMB = $urmb + $rmb;
 $mli = listquery("select * from level order by id desc");
 foreach ($mli as $v) {
     if ($rmb >= $v['price']) {
         $le = $v['level'];
         mysql_query("update user set level='{$le}' where user='******'");
         //更新用户级别
         break;
     }
 }
 mysql_query("update user set rmb='{$newRMB}' where user='******'");
 //更新用户余额
 mysql_query("update alipay set alipayID='{$trade_no}',type='1' where orderID='{$out_trade_no}' and type=0");
 //更新订单表
 echo '充值成功';
 echo '<hr>';
 echo '<a href=/user/main.php>去查看</a>';
$riqi = $_GET['riqi'];
$riqi2 = $_GET['riqi2'];
$yue = $_GET['yue'];
if ($_GET['alipayID']) {
    $sql = " and alipayID='{$alipayID}'";
}
if ($_GET['riqi'] || $_GET['riqi2']) {
    $sql = " and time<'{$riqi2}' and time>'{$riqi}'";
}
if ($_GET['yue'] && $_GET['yue'] != 100) {
    $sql = " and time like '%{$yue}%'";
}
$sqle = "select * from alipay where type>0 {$sql}";
$numq = mysql_query($sqle);
require_once 'page.php';
$list = listquery("select * from alipay where type>0 {$sql} order by id desc  limit " . $num . ",20");
foreach ($list as $v) {
    ?>
				   <tr>
					<td width="96"><?php 
    echo $v['title'];
    ?>
</td>
					<td width="96"><?php 
    echo $v['user'];
    ?>
</td>
					<td width="154"><?php 
    echo $v['orderID'];
    ?>
</td>
?>
			  </div>
			  <div class="uright">
				<table width="953" height="38" border="0" cellpadding="0" cellspacing="0" class="order3">
				  <tr>
					
					<td width="154">订单编号</td>
					<td width="277">产品名称</td>
					<td width="117">产品价格</td>					
					<td width="201">时间</td>
				  </tr>
				  
				 <?php 
$numq = mysql_query("select * from tuidan where user='******'");
require_once 'page.php';
$list = listquery("select * from tuidan where user='******' order by id desc  limit " . $num . ",20");
foreach ($list as $v) {
    $xrmb += $v['price'];
    ?>
				   <tr>					
					<td width="154"><?php 
    echo $v['orderID'];
    ?>
</td>
					<td width="277"><?php 
    echo $v['cpname'];
    ?>
</td>
					<td width="117"><?php 
    echo $v['price'];
    ?>
echo $v['content'];
?>
</td>
	  </tr>	  
	  <tr>
		<td>留言</td>
		<td><?php 
echo $v['liuyan'];
?>
</td>
	  </tr>
	  <tr>
		<td>上传文件</td>
		<td>
		<?php 
$up = listquery("select * from user_file where orderID='{$v['orderID']}' and user='******'user']}'");
foreach ($up as $upv) {
    echo '<a href=/' . $upv[fileadress] . '>' . $upv[fileadress] . '</a>';
}
?>
		</td>
	  </tr>
	  <tr>
		<td>订单类型</td>
		<td><?php 
echo $v['leixing'];
?>
</td>
	  </tr>
	  <tr>
		<td>订单状态</td>
        $shang = 1;
        $next = 2;
        $now = 1;
    } else {
        $next = $page + 1;
        $now = $page;
        $shang = $page - 1;
    }
}
if ($totle == 1) {
    $next = 1;
}
if ($next > $totle) {
    $next = $totle;
}
$row = listquery("select * from type_pt order by paixu asc limit " . $num . ",10");
foreach ($row as $v) {
    ?>
   
	  <tr><input name="goodid[]" type="text"  value="<?php 
    echo $v['id'];
    ?>
" style="display:none;" />
		<td width="67" class="td"><input name="del_id[]" type="checkbox" id="del_id[]" value="<?php 
    echo $v['id'];
    ?>
" /></td>
		<td width="149" class="td"><input name="typename[]" id="typename<?php 
    echo $v[id];
    ?>
" type="text" style="width:140px; text-align:center;" value="<?php 
        $shang = 1;
        $next = 2;
        $now = 1;
    } else {
        $next = $page + 1;
        $now = $page;
        $shang = $page - 1;
    }
}
if ($totle == 1) {
    $next = 1;
}
if ($next > $totle) {
    $next = $totle;
}
$row = listquery("select * from link order by paixu asc limit " . $num . ",10");
foreach ($row as $v) {
    ?>
   
	  <tr>
		<td width="67" class="td"><input name="del_id[]" type="checkbox" id="del_id[]" value="<?php 
    echo $v['id'];
    ?>
" /><input name="goodid[]" type="text"  value="<?php 
    echo $v['id'];
    ?>
" style="display:none;" /></td>
		<td width="149" class="td"><input name="title[]" id="title<?php 
    echo $v[id];
    ?>
" type="text" style="width:140px; text-align:center;" value="<?php 
include 'yanzheng.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
	  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	  <title>管理中心_易推网络</title>
	  <link rel="stylesheet" type="text/css" href="../css/css.css" />
	  <link rel="stylesheet" type="text/css" href="css.css" />
   </head>

   <body>
	  <?php 
include 'head.php';
$rmbli = listquery("select * from user where rmb>0 ");
foreach ($rmbli as $vv) {
    $xrmb += $vv['rmb'];
    //总计
}
?>
	  <div class="ureg">
		 <div class="uregnav"> <span style="color:#0066CC; margin-right:10px;"><a href="main.php">管理中心</a></span>  <?php 
echo $user;
?>
 您好<a href="out.php" style="margin-left:20px;">退出登录</a></div>


		 <div class="uregbox">
			<!--left-->
			<div class="admin_left">
		<td width="86" height="17">选择</td>
		<td width="138">订单编号</td>		
		<td width="80">用户名</td>			
		<td width="115">产品价格</td>	
		<td width="67">订单状态</td>		
		<td width="122">备注说明</td>
		<td width="122">操作</td>
		<td width="109">订单时间</td>		
		<td width="109">查看详情</td>
		<td width="80">发布报表</td>
	  </tr>
	  
	  <?php 
$numq = mysql_query("select * from order_dxwenzhang {$sql}");
include 'page.php';
$row = listquery("select * from order_dxwenzhang {$sql} order by id desc  limit " . $num . ",10");
foreach ($row as $v) {
    ?>
	  <tr>
		<td width="86"><input  name="del_id[]" type="checkbox" id="del_id[]" value="<?php 
    echo $v['id'];
    ?>
" /><input  name="id" type="text" id="<?php 
    echo $v['id'];
    ?>
" value="<?php 
    echo $v['id'];
    ?>
" style="display:none;" /></td>
		<td width="138"><?php 
    echo $v['orderID'];
        $shang = 1;
        $next = 2;
        $now = 1;
    } else {
        $next = $page + 1;
        $now = $page;
        $shang = $page - 1;
    }
}
if ($totle == 1) {
    $next = 1;
}
if ($next > $totle) {
    $next = $totle;
}
$row = listquery("select * from tb_bbsdingtie order by id desc limit " . $num . "," . $pageso . "");
foreach ($row as $v) {
    ?>
	  <tr>
		<td width="90"><input name="del_id[]" type="checkbox" id="del_id[]" value="<?php 
    echo $v['id'];
    ?>
" /></td>
		<td width="108"><?php 
    echo $v[bbs];
    ?>
</td>	
		<td width="165"><?php 
    echo $v[bbsadress];
    ?>
</td>