www.gusucode.com > 软件公司网站源码程序 > 软件公司网站源码程序/tools/admin/mark_look.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> <script type="text/javascript" src="../../base/js/base.js"></script> <script type="text/javascript" src="../../base/js/form.js"></script> <script type="text/javascript" src="../../base/js/blockui.js"></script> <script type="text/javascript" src="js/mark_detail.js"></script> </head> <body> <?php $step=$_REQUEST["step"]; if($step=="del"){ $id=$_GET["id"]; //删除表单 $msql->query("delete from {P}_tools_markcon where id='$id'"); } ?> <div class="searchzone"> <table width="100%" border="0" cellspacing="0" cellpadding="3" align="center"> <tr> <td > <form method="get" action="mark_look.php"> <input type="text" name="key" size="30" class="input" /> <input type="submit" name="Submit2" value="<?php echo $strSearchTitle; ?>" class="button"> </form> </td> <td width="20%" align="right"> <input type="button" class="button" style="cursor:pointer;" value="<?php echo $strMarkType; ?>" onClick="markType();" /></td> <td align="right" > <div id="notice" class="noticediv"></div> </td> </tr> </table> </div> <?php $scl=" id!='0'"; $key=$_REQUEST["key"]; if($key!=""){ $scl.=" and (markname regexp '$key' or markcontact regexp '$key')"; } $totalnums=TblCount("_tools_markcon","id",$scl); $pages = new pages; $pages->setvar(array("key" => $key)); $pages->set(10,$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="60"><?php echo $strMarkName; ?></td> <td class="biaoti" width="60"><?php echo $strMarkPerson; ?></td> <td class="biaoti" width="60"><?php echo $strMarkNumber; ?></td> <td class="biaoti" width="80"><?php echo $strMarkStartTime; ?></td> <td class="biaoti" width="60"><?php echo $strMarkContact; ?></td> <td width="50" align="center" class="biaoti"><?php echo $strDetail; ?></td> <td width="50" align="center" class="biaoti"><?php echo $strDelete; ?></td> </tr> <?php //得到表单组列表 $msql->query("select * from {P}_tools_markcon where $scl order by id limit $pagelimit"); while($msql->next_record()){ $id=$msql->f("id"); $markname=$msql->f("markname"); $markperson=$msql->f("markperson"); $marknumber=$msql->f("marknumber"); $starttime=$msql->f("starttime"); $markcontact=$msql->f("markcontact"); ?> <tr class=list id="tr_mark_<?php echo $id ?>"> <td width="30" align="center"><?php echo $id; ?></td> <td width="60"><?php echo $markname; ?></td> <td width="60"><?php echo $markperson; ?></td> <td width="60"><?php echo $marknumber; ?></td> <td width="80"><?php echo $starttime; ?></td> <td width="60"><?php echo $markcontact; ?></td> <td width="50" align="center" style="cursor:pointer;" > <img src="images/look.png" style="cursor:pointer" onclick="self.location='mark_detail.php?id=<?php echo $id; ?>'" /> </td> <td width="50" align="center" style="cursor:pointer;" > <img src="images/delete.png" style="cursor:pointer" onclick="self.location='mark_look.php?step=del&id=<?php echo $id; ?>'" /> </td> </tr> <tr class=trdetail style="display:none;" id="tr_detail_<?php echo $id ?>"><td colspan="7"> <div> <table> <tr> <td class="biaoti" width="90" align="right"><?php echo $strMarkHotel; ?>:</td> <td class="content"><?php echo $markhotel ?></td> </tr> <tr> <td class="biaoti" width="90" align="right"><?php echo $strMarkTime; ?>:</td> <td class="content"><?php echo $marktime ?></td> </tr> <tr> <td class="biaoti" width="90" align="right"><?php echo $strMarkNumber; ?>:</td> <td class="content"><?php echo $marknumber ?></td> </tr> <tr> <td class="biaoti" width="90" align="right"><?php echo $strMarkRoom; ?>:</td> <td class="content"><?php echo $markroom ?></td> </tr> <tr> <td class="biaoti" width="90" align="right"><?php echo $strMarkDelay; ?>:</td> <td class="content"><?php echo $markdelay ?></td> </tr> <tr> <td class="biaoti" width="90" align="right"><?php echo $strMarkSmoke; ?>:</td> <td class="content"><?php echo $marksmoke ?></td> </tr> <tr> <td class="biaoti" width="90" align="right"><?php echo $strMarkName; ?>:</td> <td class="content"><?php echo $markname ?></td> </tr> <tr> <td class="biaoti" width="90" align="right"><?php echo $strMarkEatName; ?>:</td> <td class="content"><?php echo $markeatname ?></td> </tr> <tr> <td class="biaoti" width="90" align="right"><?php echo $strMarkMobile; ?>:</td> <td class="content"><?php echo $markmobile ?></td> </tr> <tr> <td class="biaoti" width="90" align="right"><?php echo $strMarkTel; ?>:</td> <td class="content"><?php echo $marktel ?></td> </tr> <tr> <td class="biaoti" width="90" align="right"><?php echo $strMarkMail; ?>:</td> <td class="content"><?php echo $markmail ?></td> </tr> <tr> <td class="biaoti" width="90" align="right"><?php echo $strMarkOther; ?>:</td> <td class="content"><?php echo $markother ?></td> </tr> </table> </div> </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>