mybaoxiu.php

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php
session_start();
include("./conn.php");
if($act=="del")
{
	$sql="delete from baoxiu where id=$id";
	$result=mysql_query($sql);
	if($result)
	{
		echo "<script>alert('删除成功');location.href='mybaoxiu.php?s=未受理';</script>";
		exit;
	}
	else
	{
	exit("删除失败了");

	}
}
?>

<table width="96%"  border="0" align="center" cellpadding="4" cellspacing="1" class="table_big">

 <tr align="center" bgcolor="#BAE87C">
          <td colspan="18"  class="optiontitle">设备保修管理  </td>
        </tr>

<tr align="center" bgcolor="#F2FDFF"><td class="optiontitle">报修名称</td>
	<td class="optiontitle">报修类型</td>
	<td class="optiontitle">报修用户</td>
	<td class="optiontitle">图片</td>
	<td class="optiontitle">报修地点</td>
	<td class="optiontitle">状态</td>
	<td class="optiontitle">报修时间</td>
	<?php
	if($s=="未受理")

{
	echo '	<td class="optiontitle">操作</td>';
}
	?>
	
	</tr><?php
	$where=" where s='$s' and uname='$_SESSION[username]'";
	$sql="select * from baoxiu $where order by id DESC";
	//echo $sql;
 $result=mysql_query($sql);
 $count = mysql_num_rows($result);
$size =5;

$pager = get_pager('mybaoxiu.php',array(),$count,$page,$size);
$sql="select * from baoxiu $where order by id DESC limit $pager[start],$pager[size]";
$result=mysql_query($sql);
while($data=mysql_fetch_array($result))
{
?><tr align="center" class="tdbg">
<td height="25"><?php echo $data["name"]?></td>
<td height="25"><?php echo $data["ptype"]?></td>
<td height="25"><?php echo $data["uname"]?></td>
<td height="25"><img src="./upload/<?php echo $data["pic"]?>" width=50 height=50></td>
<td height="25"><?php echo $data["addr"]?></td>
后面还有 20 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。