⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 edit.php

📁 开源的 库存管理系统 www.minierp.cn php+ mysql
💻 PHP
字号:
<?php include ("../inc/db.php"); include ("../inc/phpmkrfn.php"); include ('../inc/xtpl.php'); include ("../inc/nocache.php"); include ("../basicset/userlist.php");	 //用户列表 include ("../basicset/fupaylist.php");	 //付款方式 $t_JHMID=$_GET['JHMID']; $t_AUTOID=$_GET['AUTOID']; if (empty($t_AUTOID)){$t_AUTOID=0;}; $xtpl=new XTemplate ("edit.html");	$conn = phpmkr_db_connect(HOST, USER, PASS, DB, PORT);    $sSql ="select jhdmast.*,gongyins.ACC01 from jhdmast LEFT JOIN gongyins ON jhdmast.JHM02 = gongyins.ID where jhdmast.AUTOID= $t_AUTOID or jhdmast.JHMID= '$t_JHMID' ";	//echo $sSql;	$rs  = phpmkr_query($sSql,$conn) or die("Failed to execute query: " . phpmkr_error() . '<br>SQL: ' . $sSql);    $row = mysql_fetch_array($rs, MYSQL_ASSOC);		$deltid=$row[JHMID];   //送货明细编号		$xtpl->assign("MAST",$row);		/* assign array data */		$xtpl->assign("pshm05USERINFO",getuserlist('pshm05',$row[JHM05])); //进货人		$xtpl->assign("pshm10USERINFO",getfupaylist('pshm10',$row[JHM10])); //传款方式	    $sSql ="select * from jhddelt where jhdid='".$deltid."'";	$rs  = phpmkr_query($sSql,$conn) or die("Failed to execute query: " . phpmkr_error() . '<br>SQL: ' . $sSql);	$i=1; //ROWNUM 行数    while($row = mysql_fetch_array($rs, MYSQL_ASSOC)){	$xtpl->assign("ROWNUM",$i);	$xtpl->assign("DATA",$row);	$xtpl->parse("main.row");	$i=$i+1;	};	$xtpl->assign("ROWTOTAL",$i-1);	$xtpl->parse("main");	$xtpl->out("main");?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -