7e47ce238b
添加了管理后台所需的图片资源、Excel文件、安装程序以及设计相关的图片文件
25 lines
1.2 KiB
PHP
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)."],";
|
|
?>
|