chore: 添加多个图片和资源文件
添加了管理后台所需的图片资源、Excel文件、安装程序以及设计相关的图片文件
This commit is contained in:
@@ -0,0 +1,140 @@
|
||||
<!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;
|
||||
}
|
||||
.border1{
|
||||
border-bottom:1px solid #cccccc;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<br />
|
||||
<form name="form1" action="<?php echo $_SERVER["PHP_SELF"]; ?>" method="post">
|
||||
<table width="98%" 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
|
||||
//--------------------------------------------------------款号明细单
|
||||
function get_kh_picture_dhd($no,$main_pic,$color){
|
||||
$pic="";
|
||||
if(trim($main_pic)){
|
||||
$pic="../../attachments/design/mini/".$no."_".$main_pic.".jpg";
|
||||
}
|
||||
if(!is_file($pic)){
|
||||
$pic="../../attachments/design/mini/".$no.".jpg";
|
||||
}
|
||||
if(!is_file($pic)){
|
||||
$tmp=explode(",",$color);
|
||||
for($j=0;$j<count($tmp);$j++){
|
||||
$pic="../../attachments/design/mini/".$no."_".$tmp[$j].".jpg";
|
||||
if(is_file($pic))
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(!is_file($pic)){
|
||||
$pic="../images/no_pic_80.gif";
|
||||
}
|
||||
return $pic;
|
||||
}
|
||||
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
|
||||
$s_zd=$_POST["s_zd"]?$_POST["s_zd"]:array("category","bc");
|
||||
$s_px=$_POST["s_px"]?$_POST["s_px"]:"category,bc";
|
||||
$msg="";
|
||||
$db=new DB_Sql;
|
||||
$db->connect($dbhost,$dbuser,$dbpw,$dbname,"p");
|
||||
$sys_size_num=get_max_size_num();
|
||||
//杯型参数
|
||||
if($bx_sizegroup_title){
|
||||
$tmp=get_db_msg("select id from ".$table_pre."keyword where cate='size' and title='".$bx_sizegroup_title."' limit 0,1");
|
||||
$bx_sizegroup_id=$tmp["id"];
|
||||
}else{
|
||||
$bx_sizegroup_id=0;
|
||||
}
|
||||
//取得选项
|
||||
$arr_select_no=array();
|
||||
$arr_select_title=array();
|
||||
$q="select no,title 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";
|
||||
$r=$db->query($q);
|
||||
while($m=$db->fetch_array($r)){
|
||||
$arr_select_no[]=$m["no"];
|
||||
$arr_select_title[]=$m["title"];
|
||||
}
|
||||
//可选择字段
|
||||
$arr_zd["xh"]="序号";
|
||||
$arr_zd["price"]="零售价";
|
||||
$arr_zd["price_zk"]="折扣价";
|
||||
$arr_zd["title"]="款式名";
|
||||
for($i=0;$i<count($arr_select_no);$i++){
|
||||
if(check_arr_select_show($arr_select_no[$i]))
|
||||
$arr_zd[$arr_select_no[$i]]=$arr_select_title[$i];
|
||||
}
|
||||
$arr_px=array(
|
||||
"category,num desc"=>get_cate_title_no("arr_select","category"),
|
||||
"category,bc,num desc"=>get_cate_title_no("arr_select","category").",".get_cate_title_no("arr_select","bc"),
|
||||
"category,series,num desc"=>get_cate_title_no("arr_select","category").",".get_cate_title_no("arr_select","series"),
|
||||
"category,theme,num desc"=>get_cate_title_no("arr_select","category").",".get_cate_title_no("arr_select","theme"),
|
||||
"no,num desc"=>"款号"
|
||||
);
|
||||
//字段
|
||||
$zd="";
|
||||
$i=0;
|
||||
foreach($arr_zd as $k1 => $v1){
|
||||
$zd.="<input type=\"checkbox\" name=\"s_zd[]\" value=\"".$k1."\" id=\"zd_".$k1."\"";
|
||||
if(in_array($k1,$s_zd))
|
||||
$zd.=" checked";
|
||||
$zd.="><label for=\"zd_".$k1."\">".$v1."</label>";
|
||||
}
|
||||
echo "显示列:".$zd;
|
||||
echo " 排序:<select name=\"s_px\">".get_main_op($arr_px,$s_px)."</select>";
|
||||
echo " <input type=submit value=\" 生 成 \" class=\"button_act\"></td><tr>";
|
||||
//-----------------------/search
|
||||
$th_zd="";
|
||||
for($i=0;$i<count($s_zd);$i++){
|
||||
$th_zd.="<td align=\"center\" bgcolor=\"#dddddd\">".get_main_value($arr_zd,$s_zd[$i])."</td>";
|
||||
}
|
||||
echo "<tr><td bgcolor=\"#ffffff\"><table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"3\" bgcolor=\"#cccccc\"><tr><td align=\"center\" bgcolor=\"#dddddd\" width=\"40\">序号</td><td align=\"center\" bgcolor=\"#dddddd\" width=\"100\">图片</td><td align=\"center\" bgcolor=\"#dddddd\">款号</td><td align=\"center\" bgcolor=\"#dddddd\" width=\"40\">件数</td></tr>";
|
||||
$query="select a.no 'no',a.color 'color',a.main_pic 'main_pic',a.category 'category',sum(b.num) 'num' from ".$table_pre."kh a left join ".$table_pre."order b on a.id=b.iid group by a.id order by num desc";
|
||||
//echo $query."<br>";
|
||||
$res=$db->query($query);
|
||||
$count=0;
|
||||
$l=0;
|
||||
$_tcontent=array();
|
||||
while($m=$db->fetch_array($res)){
|
||||
$list=$count+1;
|
||||
//图片
|
||||
$pic=get_kh_picture_dhd($m["no"],$m["main_pic"],$m["color"]);
|
||||
echo "<tr bgcolor=\"#ffffff\" height=\"100\"><td>".$list."</td><td>".out_good_pic($pic,90,90)."</td><td>".$m["no"]."</td><td>".$m["num"]."</td></tr>";
|
||||
$count++;
|
||||
$l++;
|
||||
}
|
||||
?></table></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user