7e47ce238b
添加了管理后台所需的图片资源、Excel文件、安装程序以及设计相关的图片文件
73 lines
2.2 KiB
PHP
73 lines
2.2 KiB
PHP
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<title>更新订单表的款号资料</title>
|
|
<style>
|
|
BODY{
|
|
font-family:宋体;FONT-SIZE:12px;margin:0px;padding:0px;
|
|
}
|
|
a,a:link,a:visited,a:active {
|
|
text-decoration:none;COLOR: #0000ff;FONT-SIZE:12px;
|
|
}
|
|
a:hover {
|
|
TEXT-DECORATION: underline;COLOR: #aaaa9f;FONT-SIZE:12px;
|
|
}
|
|
body,input,td,select,div,li,ul,textarea,form {
|
|
font-family:宋体;
|
|
FONT-SIZE:12px;
|
|
}
|
|
.wrong{
|
|
color:#ff0000;font-weight:bold;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<br />
|
|
<table width="80%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#cccccc">
|
|
<tr>
|
|
<td align="center" bgcolor="#f0f0f0"><b>更新订单表的款号资料</b></td>
|
|
</tr>
|
|
<tr><td align="left" bgcolor="#ffffff" valign="top" style="line-height:150%;">
|
|
<?php
|
|
//--------------------------------------------------------------更新订单表的款号资料缓存
|
|
require "../config.php";
|
|
include "../../tmpl/config.php";
|
|
require THIS_FILE_ROOT."/include/function.php";
|
|
require THIS_FILE_ROOT."/include/db_mysql.php";
|
|
//require THIS_FILE_ROOT."/include/page.class.php";
|
|
error_reporting(E_ERROR | E_WARNING | E_PARSE);
|
|
//-------------------------------mysql connect
|
|
$db=new DB_Sql;
|
|
$db->connect($dbhost,$dbuser,$dbpw,$dbname,"p");
|
|
//
|
|
$is_multi_price=get_set("is_multi_price");
|
|
//取得选项
|
|
$arr_select_no=array();
|
|
$q1="select no from ".$table_pre."keyword where cate='arr_select' and flag_ka='y' and no<>'jgd' and no<>'sx' and no<>'zd1' and no<>'zd2' and no<>'zd3' order by ord";
|
|
$r1=$db->query($q1);
|
|
$sql1="";
|
|
while($m1=$db->fetch_array($r1)){
|
|
$arr_select_no[]=$m1["no"];
|
|
$sql1.=$m1["no"].",";
|
|
}
|
|
//
|
|
$q="select * from ".$table_pre."kh";
|
|
$r=$db->query($q);
|
|
$i=1;
|
|
while($m1=$db->fetch_array($r)){
|
|
$sql1="";
|
|
for($i1=0;$i1<count($arr_select_no);$i1++){
|
|
$sql1.=$arr_select_no[$i1]."='".$m1[$arr_select_no[$i1]]."',";
|
|
}
|
|
$q1="update ".$table_pre."order set is_sp='".$m1["is_sp"]."',".$sql1.$sql_price."no='".$m1["no"]."' where iid='".$m1["id"]."'";
|
|
//echo $q1."<br>";
|
|
$db->query($q1);
|
|
echo ". ";
|
|
$i++;
|
|
}
|
|
echo "更新完成!";
|
|
?></td></tr>
|
|
</table>
|
|
</body>
|
|
</html>
|