This repository has been archived on 2026-06-20. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
wsh5485 7e47ce238b chore: 添加多个图片和资源文件
添加了管理后台所需的图片资源、Excel文件、安装程序以及设计相关的图片文件
2025-06-15 13:04:37 +08:00

25 lines
1.2 KiB
PHP

<?php
//我的文字评价
//by hehe 2018-12-3
//----------------------------------------------------------插件参数设置
$use_layui_datatable="y";//使用标准layui datatable格式数据
//-------------------------------------------layui 数据表格格式
//--------------------------------表头
//支持参数field,title,width,rowspan,colspan,style(样式),sort(true|false),fixed(left,right)
$thead0="";
$thead0.="{\"field\":\"ord\",\"title\":\"次序\",\"width\":80,\"sort\":true,\"fixed\":\"left\"},";
$thead0.="{\"field\":\"kh\",\"title\":\"款号\",\"width\":150},";
$thead0.="{\"field\":\"content\",\"title\":\"评价内容\",\"style\":\"text-align:left\"}";
$thead="\"thead\":[{\"index\":0,\"content\":[".$thead0."]}],";
$json_data.=$thead;
//--------------------------------内容
$tbody="";
$q="select a.khid,a.remark,k.no from ".$table_pre."client_pj a,".$table_pre."kh k where a.khid=k.id and a.cid='".$uid."' and a.remark<>'' order by k.no";
$r=$db->query($q);
$list=1;
while($m=$db->fetch_array($r)){
$tbody.="{\"ord\":\"".$list."\",\"kh\":\"".$m["no"]."\",\"content\":\"".$m["remark"]."\"},";
$list++;
}
$json_data.="\"tbody\":[".deel_end($tbody)."],";
?>