{$Think.config.WEB_COMPANY_NAME}老板一张表

项目 本日{:date("Y-m-d",time())} 本月{:date("Y-m",time())} 本年{:date("Y",time())} 历史 {$_REQUEST['time1']}-{$_REQUEST['time2']}
潜在客户 echo M('cust')->where("addtime > '".date("Y-m-d",time())." 00:00:00' and addtime < '".date("Y-m-d",time())." 59:59:59'")->count('id'); echo M('cust')->where("addtime like '%".date("Y",time())."-%' and addtime like '%".date("m",time())."-%'")->count('id'); echo M('cust')->where("addtime like '%".date("Y",time())."-%' ")->count('id'); echo M('cust')->count('id'); echo M('cust')->where("addtime > '".$_REQUEST['time1']." 00:00:00' and addtime < '".$_REQUEST['time2']." 59:59:59'")->count('id');
客户联系人 echo M('custcon')->where("addtime > '".date("Y-m-d",time())." 00:00:00' and addtime < '".date("Y-m-d",time())." 59:59:59'")->count('id'); echo M('custcon')->where("addtime like '%".date("Y",time())."-%' and addtime like '%".date("m",time())."-%'")->count('id'); echo M('custcon')->where("addtime like '%".date("Y",time())."-%' ")->count('id'); echo M('custcon')->count('id'); echo M('custcon')->where("addtime > '".$_REQUEST['time1']." 00:00:00' and addtime < '".$_REQUEST['time2']." 59:59:59'")->count('id');
跟单记录 echo M('custgd')->where("addtime > '".date("Y-m-d",time())." 00:00:00' and addtime < '".date("Y-m-d",time())." 59:59:59'")->count('id'); echo M('custgd')->where("addtime like '%".date("Y",time())."-%' and addtime like '%".date("m",time())."-%'")->count('id'); echo M('custgd')->where("addtime like '%".date("Y",time())."-%' ")->count('id'); echo M('custgd')->count('id'); echo M('custgd')->where("addtime > '".$_REQUEST['time1']." 00:00:00' and addtime < '".$_REQUEST['time2']." 59:59:59'")->count('id');
入库记录 echo M('ruku')->where("addtime > '".date("Y-m-d",time())." 00:00:00' and addtime < '".date("Y-m-d",time())." 59:59:59'")->sum('shuliang'); echo M('ruku')->where("addtime like '%".date("Y",time())."-%' and addtime like '%".date("m",time())."-%'")->sum('shuliang'); echo M('ruku')->where("addtime like '%".date("Y",time())."-%' ")->sum('shuliang'); echo M('ruku')->sum('shuliang'); echo M('ruku')->where("addtime > '".$_REQUEST['time1']." 00:00:00' and addtime < '".$_REQUEST['time2']." 59:59:59'")->sum('shuliang');
出库记录 echo M('chuku')->where("addtime > '".date("Y-m-d",time())." 00:00:00' and addtime < '".date("Y-m-d",time())." 59:59:59'")->sum('shuliang'); echo M('chuku')->where("addtime like '%".date("Y",time())."-%' and addtime like '%".date("m",time())."-%'")->sum('shuliang'); echo M('chuku')->where("addtime like '%".date("Y",time())."-%' ")->sum('shuliang'); echo M('chuku')->sum('shuliang'); echo M('chuku')->where("addtime > '".$_REQUEST['time1']." 00:00:00' and addtime < '".$_REQUEST['time2']." 59:59:59'")->sum('shuliang');
新增合同 echo M('hetong')->where("addtime > '".date("Y-m-d",time())." 00:00:00' and addtime < '".date("Y-m-d",time())." 59:59:59'")->count('id'); echo M('hetong')->where("addtime like '%".date("Y",time())."-%' and addtime like '%".date("m",time())."-%'")->count('id'); echo M('hetong')->where("addtime like '%".date("Y",time())."-%' ")->count('id'); echo M('hetong')->count('id'); echo M('hetong')->where("addtime > '".$_REQUEST['time1']." 00:00:00' and addtime < '".$_REQUEST['time2']." 59:59:59'")->count('id');
收款记录 echo M('shou')->where("addtime > '".date("Y-m-d",time())." 00:00:00' and addtime < '".date("Y-m-d",time())." 59:59:59'")->sum('jine'); echo M('shou')->where("addtime like '%".date("Y",time())."-%' and addtime like '%".date("m",time())."-%'")->sum('jine'); echo M('shou')->where("addtime like '%".date("Y",time())."-%' ")->sum('jine'); echo M('shou')->sum('jine'); echo M('shou')->where("addtime > '".$_REQUEST['time1']." 00:00:00' and addtime < '".$_REQUEST['time2']." 59:59:59'")->sum('jine');
付款记录 echo M('fukuan')->where("addtime > '".date("Y-m-d",time())." 00:00:00' and addtime < '".date("Y-m-d",time())." 59:59:59'")->sum('jine'); echo M('fukuan')->where("addtime like '%".date("Y",time())."-%' and addtime like '%".date("m",time())."-%'")->sum('jine'); echo M('fukuan')->where("addtime like '%".date("Y",time())."-%' ")->sum('jine'); echo M('fukuan')->sum('jine'); echo M('fukuan')->where("addtime > '".$_REQUEST['time1']." 00:00:00' and addtime < '".$_REQUEST['time2']." 59:59:59'")->sum('jine');