前边讲了一些基础的操作,如何从本地服务器迁移至万网等FTP空间中遇到的若干问题,下边是链接,可以关注下;
将文件你的服务器根目录(一般是www下)\general\ERP\Interface\JXC\customer_newai.php 找到
if($_GET['action']=="view_default") {
然后将sql语句替换为
$sql = "SELECT a.*,b.`name` as state,c.`name` as enterstype,a.style,z.USER_NAME as chuangjianren,e.USER_NAME,f.`name` as origin,g.`name` as salemode,h.`name` as property,a.yuchuzhi,a.createdate,a.integral,a.explainStr FROM customer a
LEFT JOIN customerlever b on a.state=b.ROWID LEFT JOIN unitprop c on a.enterstype=c.ROWID LEFT JOIN `user` ee on a.user_id=ee.USER_ID LEFT JOIN `user` z on a.user_id=z.user_id left join `user` e on a.sysuser=e.USER_ID LEFT JOIN customerorigin f on a.origin=f.ROWID LEFT JOIN salemode g on a.salemode=g.ROWID LEFT JOIN property h on a.property=h.ROWID WHERE a.ROWID=".$billid;
创建者:
后边替换为
还是\general\ERP\Interface\JXC\customer_newai.php 这个文件 68行将打印的input替换为
');">
还是\general\ERP\Interface\JXC\customer_newai.php 这个文件,找到//跟踪记录 这整个模块,将其整体替换(注意:因为我调用了不同的字段,复制的时候需要修改成自己需要的信息)
//跟踪记录
$sql = "SELECT a.chance,a.linkmanid,a.id,a.contacttime,a.user_id,a.describes,a.nextcontacttime,a.nextissue,b.`阶段`,c.`名称`,d.linkmanname FROM crm_contact a LEFT JOIN crm_jieduan b on a.stage=b.`编号` left join crm_dict_servicesources c on a.contact=c.`编号` left join linkman d on a.linkmanid=d.ROWID WHERE a.customerid=".$billid." ORDER BY a.contacttime DESC";
$rs = $db->Execute($sql);
$rs_a = $rs->GetArray();
print("
跟踪记录
");
print("
我方联系人
南北地区
联系内容
联系时间
下次联系时间
是否联系
是否成交
编辑
删除
");
if(empty($rs_a)){
print("暂无 ");
print(" ");
print(" ");
print(" ");
print(" ");
print(" ");
print(" ");
print(" ");
print(" ");
}else{
$sqla = "SELECT count(distinct id) FROM crm_contact WHERE customerid=".$billid."";
$rsa = $db->Execute($sqla);
$rs_aa = $rsa->GetArray();
$ida = $rs_aa[0]['count(distinct id)'];
for($i=0;$i<$ida;$i++){
if(!isset($rs_a[$i])){
print(" ");
continue;
}
$zhuti=returntablefield("crm_chance", "编号", $rs_a[$i]['chance'], '机会主题,客户需求');
print("
".str_replace(array('admin','snn','liuyongling','mafeng','xiexiaoping','xuqiaoling','huangzhenjack','hzl','ssjfpx001'),array('系统管理员','用户1','用户2','用户3','用户4','用户5','用户6','用户7'),$rs_a[$i]['user_id'])."
".$rs_a[$i]['名称']."
".$rs_a[$i]['describes']."
".$rs_a[$i]['contacttime']."
".$rs_a[$i]['nextcontacttime']."
".str_replace(array('1','2'),array('是','否'),$rs_a[$i]['nextissue'])."
".str_replace(array('1','11','12'),array('需要跟踪联系','不是目标客户','成交客户'),$rs_a[$i]['阶段'])."
编辑
删除
");
}
}
print("
");
print(" ");