📄 list.php
字号:
<?php$t_QIAN=$_GET["QIAN"];if (empty($t_QIAN)){$t_QIAN=0;}; include ("../inc/db.php"); include ("../inc/phpmkrfn.php"); include ('../inc/xtpl.php'); include ("../inc/pageft.php"); include ("../userset/userlist.php"); //用户列表 include ("../basicset/fupaylist.php"); //付款方式 include ("../inc/nocache.php"); $xtpl=new XTemplate ("listview.html"); $conn = phpmkr_db_connect(HOST, USER, PASS, DB, PORT);//总页数$sSql ="select AUTOID from jhdmast WHERE JHM11=$t_QIAN ";$result=phpmkr_query($sSql,$conn);$total=phpmkr_num_rows($result);//调用pageft(),每页显示10条信息(使用默认的20时,可以省略此参数),使用本页URL(默认,所以省略掉)。pageft($total,15); $sSql ="select jhdmast.*,gongyins.ACC01 from jhdmast LEFT JOIN gongyins ON jhdmast.JHM02 = gongyins.ID WHERE JHM11=$t_QIAN ORDER BY JHMID limit $firstcount,$displaypg"; $rs = phpmkr_query($sSql,$conn) or die("Failed to execute query: " . phpmkr_error() . '<br>SQL: ' . $sSql); while ($row = mysql_fetch_array($rs, MYSQL_ASSOC)) { $row[JHM05]=getusername($row[JHM05]); //进货人 $row[JHM10]=getfupayname($row[JHM10]); //付款方式 $xtpl->assign("DATA",$row); /* assign array data */ $xtpl->parse("main.table.row"); /* parse a row */ } $xtpl->parse("main.table"); /* parse the table */ $xtpl->assign("PAGEINFO",$pagenav); //分页 $xtpl->parse("main"); $xtpl->out("main");?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -