chore: 添加多个图片和资源文件

添加了管理后台所需的图片资源、Excel文件、安装程序以及设计相关的图片文件
This commit is contained in:
2025-06-15 13:04:37 +08:00
parent 1e61dc3970
commit 7e47ce238b
13220 changed files with 1377028 additions and 0 deletions
+106
View File
@@ -0,0 +1,106 @@
<?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
$msg="";
$db=new DB_Sql;
$db->connect($dbhost,$dbuser,$dbpw,$dbname,"p");
$is_submit=$_POST["is_submit"];
$col_name=$_POST["col_name"];
if($is_submit=="y"){
if($col_name){
$content=$_POST["content"];
$arr=explode("\n",$content);
for($i=0;$i<count($arr);$i++){
//$str1=str_replace("","|",$arr[$i]);
//$str1=str_replace(",","|",$arr[$i]);
$str1=trim($arr[$i]);
$arr1=explode("|",$str1);
$no=trim($arr1[0]);
$col_value=trim($arr1[1]);
$check=get_db_msg("select * from ".$table_pre."kh where no='".$no."' limit 0,1");
if($check["id"]>0){
$q="update ".$table_pre."kh set ".$col_name."='".$col_value."' where id='".$check["id"]."'";
$db->query($q);
$msg.=$no.":".$col_value."-设置成功!<br>";
}else{
//款号有误
$msg.="<span class=\"wrong\">".$no."-款号有误!</span><br>";
}
}
}else{
$msg.="<span class=\"wrong\">请选择字段名!</span><br>";
}
}
$arr_column_kh["xh"]="序号";
$arr_column_kh["title"]="款式名";
$arr_column_kh["price"]="吊牌价";
$arr_column_kh["dhbs"]="订货倍数";
$zk_type=get_set("zk_type");
$arr_column_kh["remark"]="备注";
$arr_column_kh["size_group"]="尺码组";
$arr_column_kh["size"]="尺码";
$arr_column_kh["dpk"]="搭配款";
//
$q="select * from ".$table_pre."keyword where cate='arr_select' and flag_ka='y' and no<>'jgd' and no<>'sx' order by ord";
$r=$db->query($q);
while($m=$db->fetch_array($r)){
$arr_column_kh[$m["no"]]=$m["title"];
}
?>
<!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">
<form name="form1" action="" method="post">
<input type="hidden" name="is_submit" value="y">
<tr>
<td align="center" bgcolor="#f0f0f0"><b>批量设置款号表字段值</b></td>
</tr>
<tr>
<td align="left" bgcolor="#ffffff" style="line-height:25px;"><select name="col_name"><option value=''>-请选择字段名-</option><?php echo get_main_op($arr_column_kh,$col_name); ?></select></td>
</tr>
<tr>
<td align="left" bgcolor="#ffffff" style="line-height:25px;">格式说明:同行之间用|分隔,如:款号|字段值;多条记录请回车。<Br>
<textarea name="content" style="width:100%;" rows="20"><?php echo $content; ?></textarea></td>
</tr>
<tr>
<td align="center" bgcolor="#f0f0f0"><input type="submit" value=" 提 交 "></td>
</tr>
<?php
if($msg){
echo "<tr><td align=\"left\" bgcolor=\"#ffffff\" valign=\"top\" style=\"line-height:150%;\">".$msg."</td></tr>";
}
?>
</form>
</table>
</body>
</html>