Changeset 12413

Show
Ignore:
Timestamp:
08/17/11 08:23:04 (2 years ago)
Author:
mickecarlsson
Message:

Re #1426, added more selections for call graphs, updated from main stream

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.10/cdr/page.cdr.php

    r12403 r12413  
    306306<option <?php if (isset($_POST['group']) && $_POST['group'] == 'src') { echo 'selected="selected"'; } ?> value="src"><?php echo _("Source Number")?></option> 
    307307<option <?php if (isset($_POST['group']) && $_POST['group'] == 'dst') { echo 'selected="selected"'; } ?> value="dst"><?php echo _("Destination Number")?></option> 
     308</optgroup> 
     309<optgroup label="<?php echo _("Tech info")?>"> 
     310<option <?php if (isset($_POST['group']) && $_POST['group'] == 'disposition') { echo 'selected="selected"'; } ?> value="disposition">Disposition</option> 
     311<option <?php if (isset($_POST['group']) && $_POST['group'] == 'disposition_by_day') { echo 'selected="selected"'; } ?> value="disposition_by_day">Disposition by Day</option> 
     312<option <?php if (isset($_POST['group']) && $_POST['group'] == 'disposition_by_hour') { echo 'selected="selected"'; } ?> value="disposition_by_hour">Disposition by Hour</option> 
     313<option <?php if (isset($_POST['group']) && $_POST['group'] == 'dcontext') { echo 'selected="selected"'; } ?> value="dcontext">Destination context</option> 
    308314</optgroup> 
    309315</select></td><td align="left" width="40%"> 
     
    539545 
    540546switch ($group) { 
     547  case "disposition_by_day": 
     548      $graph_col_title = 'Disposition by day'; 
     549      $group_by_field_php = array('%Y-%m-%d / ',17,''); 
     550      $group_by_field = "CONCAT(DATE_FORMAT(calldate, '$group_by_field_php[0]'),disposition)"; 
     551  break; 
     552  case "disposition_by_hour": 
     553      $graph_col_title = 'Disposition by hour'; 
     554      $group_by_field_php = array( '%Y-%m-%d %H / ', 20, '' ); 
     555      $group_by_field = "CONCAT(DATE_FORMAT(calldate, '$group_by_field_php[0]'),disposition)"; 
     556  break; 
     557  case "disposition": 
     558      $graph_col_title = 'Disposition'; 
     559  break; 
     560  case "dcontext": 
     561      $graph_col_title = 'Destination context'; 
     562  break; 
    541563  case "accountcode": 
    542564    $graph_col_title = _("Account Code");