当前位置: 首页>>代码示例>>PHP>>正文


PHP Info::getComplaintType方法代码示例

本文整理汇总了PHP中Info::getComplaintType方法的典型用法代码示例。如果您正苦于以下问题:PHP Info::getComplaintType方法的具体用法?PHP Info::getComplaintType怎么用?PHP Info::getComplaintType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Info的用法示例。


在下文中一共展示了Info::getComplaintType方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: foreach

    $proScore[] = $value['score'];
}
foreach ($data['complaints'] as $key => $value) {
    $comName[] = $value['name'];
    $comScore[] = $value['score'];
}
$data['provinces'] = implode(',', $proScore);
$data['complaints'] = implode(',', $comScore);
// foreach ($province as $key => $value) {
// 	$data['provinceMap'][$key] = $value['name'];
// }
$data['provinceString'] = '"' . implode('","', $proName) . '"';
$data['provinceString2'] = '"' . implode('","', $comName) . '"';
// }
$data['province'] = Info::getProvince(false);
$data['complaintType'] = Info::getComplaintType('complaint_type', false);
$data['questionType'][1] = Info::getQuestionType(1, 'question_type', true);
$data['questionType'][2] = Info::getQuestionType(2, 'question_type', true);
$data['questionType'][3] = Info::getQuestionType(3, 'question_type', true);
$data['complaintLevel'] = Info::getComplaintLevel('complaint_level', false);
$data['bussLine'] = Info::getBussLine('buss_type', false);
// var_dump($data['bussLine']);
//导出excel下载
if ($_GET['download'] == 1) {
    $downloadStr = array_to_string($data);
    //var_dump($data);exit;
    Common::exportExcel($downloadStr, 'black_list');
    exit;
}
$page_html = Pagination::showPager("custom_analyze.php?class_name={$class_name}&user_name={$user_name}&start_date={$start_date}&end_date={$end_date}", $page_no, PAGE_SIZE, $row_count);
$export_excel = "custom_analyze.php?download=1&class_name={$class_name}&user_name={$user_name}&start_date={$start_date}&end_date={$end_date}";
开发者ID:nantmpeter,项目名称:s-complaints,代码行数:31,代码来源:complaints_analyze.php

示例2: complaintsSearchCount

 public static function complaintsSearchCount($param)
 {
     $condition = array();
     $db = self::__instance();
     if ($param['start_date']) {
         $condition["AND"]['month[>=]'] = strtotime($param['start_date'] . '-01');
         $condition["AND"]['month[<]'] = strtotime($param['start_date'] . '-01 +1 month -1 day');
         unset($param['start_date'], $param['end_date']);
     }
     if (empty($param)) {
         $param = array();
     }
     foreach ($param as $key => $value) {
         if ($key == 'case_id' || $key == 'buss_name' || $key == 'sp_name' || $key == 'dispute_phone' || $key == 'complaint_time') {
             $condition["LIKE"]["AND"][$key] = $value;
         } elseif ($key == 'question_type') {
             $complaintType = Info::getComplaintType();
             $questionType = Info::getQuestionType($param['problem_type']);
             $condition['AND']['problem_type'] = $complaintType[$param['problem_type']];
             $condition['AND']['contact_element'] = $questionType[$param['question_type']];
         } elseif ($key == 'problem_type') {
         } else {
             $condition["AND"][$key] = $value;
         }
     }
     return $db->count('co_complaints', $condition);
 }
开发者ID:nantmpeter,项目名称:s-complaints,代码行数:27,代码来源:Complaint.class.php


注:本文中的Info::getComplaintType方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。