chore: 添加多个图片和资源文件
添加了管理后台所需的图片资源、Excel文件、安装程序以及设计相关的图片文件
This commit is contained in:
@@ -0,0 +1,96 @@
|
||||
<?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"];
|
||||
if($is_submit=="y"){
|
||||
//初始化
|
||||
$table=$table_pre."client_pj";
|
||||
$db->query("truncate table ".$table.";");
|
||||
$content=$_POST["content"];
|
||||
$arr=explode("\n",$content);
|
||||
$num=0;
|
||||
for($i=0;$i<count($arr);$i++){
|
||||
$arr1=explode(" ",$arr[$i]);
|
||||
//
|
||||
$dpdm=trim($arr1[0]);
|
||||
$kh=trim($arr1[1]);
|
||||
$race=trim($arr1[2]);
|
||||
$remark=trim($arr1[3]);
|
||||
|
||||
|
||||
$check=get_db_msg("select id from ".$table_pre."client where username='".$dpdm."' limit 0,1");
|
||||
$check_kh=get_db_msg("select id from ".$table_pre."kh where no='".$kh."' limit 0,1");
|
||||
if($check["id"]>0 && $check_kh["id"]>0){
|
||||
$sql_value.="('".$check["id"]."','".$check_kh["id"]."','".$race."','".$remark."','".time()."'),";
|
||||
$num++;
|
||||
}else{
|
||||
//客户名称有误
|
||||
$msg.="<span class=\"wrong\">".$dpdm."-".$kh."客户编码或款号有误!</span><br>";
|
||||
}
|
||||
}
|
||||
if($num>0){
|
||||
$sql_value=substr($sql_value,0,-1);
|
||||
$q1="insert into ".$table." (cid,khid,race,remark,add_date) values ".$sql_value;
|
||||
//echo $q1."<br>";
|
||||
$db->query($q1);
|
||||
$msg.="<span class=\"right\">导入成功!</span><br>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
<!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;">格式说明:同行之间用|分隔,如:登陆代码,款号,评分1-5,备注;多条记录请回车。<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>
|
||||
Reference in New Issue
Block a user