www.gusucode.com > 典当行电子商务网站php网站源码程序 > code/tools/admin/dd_yuyue.php
<?php define("ROOTPATH", "../../"); include(ROOTPATH."includes/admin.inc.php"); include(ROOTPATH."includes/pages.inc.php"); include("language/".$sLan.".php"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link href="css/style.css" type="text/css" rel="stylesheet"> <title><?php echo $strAdminTitle; ?></title> </head> <body> <?php $step=$_REQUEST["step"]; if($step=="del"){ $id=$_GET["id"]; //删除表单 $msql->query("delete from {P}_tools_code where id='$id'"); } ?> <div class="searchzone"> <table width="100%" border="0" cellspacing="0" cellpadding="3" align="center"> <tr> <td > <form method="get" action="dd_yuyue.php"> <input type="text" name="key" size="30" class="input" /> <input type="submit" name="Submit2" value="<?php echo $strSearchTitle; ?>" class="button"> </form> </td> <td align="right" > <div id="notice" class="noticediv"></div> </td> </tr> </table> </div> <?php $scl=" id!='0' and groupname='dd_yuyue'"; $key=$_REQUEST["key"]; if($key!=""){ $scl.=" and (name regexp '$key' or phone regexp '$key' or tel regexp '$key' or code regexp '$key')"; } $totalnums=TblCount("_tools_code","id",$scl); $pages = new pages; $pages->setvar(array("key" => $key)); $pages->set(15,$totalnums); $pagelimit=$pages->limit(); ?> <div class="listzone"> <table width="100%" border="0" cellspacing="0" cellpadding="5" align="center"> <tr> <td class="biaoti" width="30" align="center"><?php echo $strNumber; ?></td> <td class="biaoti" width="50"><?php echo $strName; ?></td> <td width="50" align="center" class="biaoti"><?php echo $strLook; ?></td> <td width="50" align="center" class="biaoti"><?php echo $strDelete; ?></td> </tr> <?php //得到表单组列表 $msql->query("select * from {P}_tools_code where $scl order by xuhao limit $pagelimit"); while($msql->next_record()){ $id=$msql->f("id"); $name=$msql->f("name"); ?> <tr class=list> <td width="30" align="center"><?php echo $id; ?></td> <td width="50"><?php echo $name; ?></td> <td width="50" align="center"><a href="dd_yuyue_look.php?id=<?php echo $id;?>"><img src="images/look.png" border="0" /></a></td> <td width="50" align="center" > <img src="images/delete.png" style="cursor:pointer" onclick="self.location='dd_yuyue.php?step=del&id=<?php echo $id; ?>'" /> </td> </tr> <?php } ?> </table> </div> <?php $pagesinfo=$pages->ShowNow(); ?> <div id="showpages"> <div id="pagesinfo"><?php echo $strPagesTotalStart.$totalnums.$strPagesTotalEnd; ?> <?php echo $strPagesMeiye.$pagesinfo["shownum"].$strPagesTotalEnd; ?> <?php echo $strPagesYeci; ?> <?php echo $pagesinfo["now"]."/".$pagesinfo["total"]; ?></div> <div id="pages"><?php echo $pages->output(1); ?></div> </div> </body> </html>