📄 inc.php
字号:
<?php
if ($_SESSION['web']=="system")
{
//二级会员
?>
<table width="700" border="0" cellpadding="3" cellspacing="2">
<tr>
<td>
会员列表
<a href="home.php?id=2"><strong>添加会员</strong></a></td>
</tr>
</table>
<table width="700" border="0" cellpadding="2" cellspacing="1" bgcolor="#000066">
<tr>
<td align="center" bgcolor="#375d9e"><font color="#FFFFFF">号码</font></td>
<td align="center" bgcolor="#375d9e"><font color="#FFFFFF">会员</font></td>
<td align="center" bgcolor="#375d9e"><font color="#FFFFFF">名称</font></td>
<td align="center" bgcolor="#375d9e"><font color="#FFFFFF">代理商</font></td>
<td align="center" bgcolor="#375d9e"><font color="#FFFFFF">信用/现金</font></td>
<td align="center" bgcolor="#375d9e"><font color="#FFFFFF">货币代码</font></td>
<td align="center" bgcolor="#375d9e"><font color="#FFFFFF">信用额度</font></td>
<td align="center" bgcolor="#375d9e"><font color="#FFFFFF">添加日期</font></td>
<td align="center" bgcolor="#375d9e"><font color="#FFFFFF">状态</font></td>
<td align="center" bgcolor="#375d9e"><font color="#FFFFFF">功能</font></td>
</tr>
<?php
$exec="SELECT * from hy2 order by id";
mysql_query("set names gbk");
$resu=mysql_query($exec);
$i=1;
while($rs=mysql_fetch_object($resu))
{
?>
<tr>
<td align="center" bgcolor="#FFFFFF"><?php Echo $i;?></td>
<td align="center" bgcolor="#FFFFFF"><?php Echo $rs->name;?></td>
<td align="center" bgcolor="#FFFFFF"><?php Echo $rs->mc;?></td>
<td align="center" bgcolor="#FFFFFF"><?php Echo $rs->hy;?></td>
<td align="center" bgcolor="#FFFFFF">信用</td>
<td align="center" bgcolor="#FFFFFF">CNY</td>
<?php
$exec2="SELECT * from edu where name='".$rs->name."'";
mysql_query("set names gbk");
$resu2=mysql_query($exec2);
$rs2=mysql_fetch_object($resu2);
?>
<td align="center" bgcolor="#FFFFFF"><?php Echo $rs2->edu;?></td>
<td align="center" bgcolor="#FFFFFF"><?php Echo $rs->sj;?></td>
<td align="center" bgcolor="#FFFFFF"><?php Echo $rs->yx;?></td>
<td align="center" bgcolor="#FFFFFF">
<a href="yx2.php?name=<?php Echo $rs->name;?>&yx=<?php Echo $rs->yx;?>">启(停)</a> /
<a href="home.php?id=25&name=<?php Echo $rs->name;?>">详细</a> /
<a href="home.php?id=26&name=<?php Echo $rs->name;?>">密码</a> /
<a href="home.php?id=20&name=<?php Echo $rs->name;?>">设定</a> /
<a href="ude2.php?id=<?php Echo $rs->id;?>&name=<?php Echo $rs->name;?>" onClick="return confirm('确定要撤除吗?');">撤除</a></td>
</tr>
<?php
$i=$i+1;
}
mysql_close();
?>
</table>
<?php
}
ELSE
{
//三级会员
?>
<table width="700" border="0" cellpadding="3" cellspacing="2">
<tr>
<td>
会员列表
<a href="home.php?id=2"><strong>添加会员</strong></a></td>
</tr>
</table>
<table width="700" border="0" cellpadding="2" cellspacing="1" bgcolor="#000066">
<tr>
<td align="center" bgcolor="#375d9e"><font color="#FFFFFF">号码</font></td>
<td align="center" bgcolor="#375d9e"><font color="#FFFFFF">会员</font></td>
<td align="center" bgcolor="#375d9e"><font color="#FFFFFF">名称</font></td>
<td align="center" bgcolor="#375d9e"><font color="#FFFFFF">代理商</font></td>
<td align="center" bgcolor="#375d9e"><font color="#FFFFFF">信用/现金</font></td>
<td align="center" bgcolor="#375d9e"><font color="#FFFFFF">货币代码</font></td>
<td align="center" bgcolor="#375d9e"><font color="#FFFFFF">信用额度</font></td>
<td align="center" bgcolor="#375d9e"><font color="#FFFFFF">添加日期</font></td>
<td align="center" bgcolor="#375d9e"><font color="#FFFFFF">状态</font></td>
<td align="center" bgcolor="#375d9e"><font color="#FFFFFF">功能</font></td>
</tr>
<?php
$exec="SELECT * from hy3 where hy2='".$_SESSION['web']."' order by id";
mysql_query("set names gbk");
$resu=mysql_query($exec);
$i=1;
while($rs=mysql_fetch_object($resu))
{
?>
<tr>
<td align="center" bgcolor="#FFFFFF"><?php Echo $i;?></td>
<td align="center" bgcolor="#FFFFFF"><?php Echo $rs->name;?></td>
<td align="center" bgcolor="#FFFFFF"><?php Echo $rs->mc;?></td>
<td align="center" bgcolor="#FFFFFF"><?php Echo $rs->hy2;?></td>
<td align="center" bgcolor="#FFFFFF">信用</td>
<td align="center" bgcolor="#FFFFFF">CNY</td>
<?php
$exec2="SELECT * from edu where name='".$rs->name."'";
mysql_query("set names gbk");
$resu2=mysql_query($exec2);
$rs2=mysql_fetch_object($resu2);
?>
<td align="center" bgcolor="#FFFFFF"><?php Echo $rs2->edu;?></td>
<td align="center" bgcolor="#FFFFFF"><?php Echo $rs->sj;?></td>
<td align="center" bgcolor="#FFFFFF"><?php Echo $rs->yx;?></td>
<td align="center" bgcolor="#FFFFFF">
<a href="yx.php?id=<?php Echo $rs->id;?>&yx=<?php Echo $rs->yx;?>">启(停)</a> /
<a href="home.php?id=25&name=<?php Echo $rs->name;?>">详细</a> /
<a href="home.php?id=26&name=<?php Echo $rs->name;?>">密码</a> /
<a href="home.php?id=20&name=<?php Echo $rs->name;?>">设定</a> /
<a href="ude.php?id=<?php Echo $rs->id;?>&name=<?php Echo $rs->name;?>" onClick="return confirm('确定要撤除吗?');">撤除</a></td>
</tr>
<?php
$i=$i+1;
}
mysql_close();
?>
</table>
<?php
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -