[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/layouts/vlayout/modules/HelpDesk/dashboards/ -> OpenTickets.tpl (source)

   1  {*<!--
   2  /*********************************************************************************

   3    ** The contents of this file are subject to the vtiger CRM Public License Version 1.0

   4     * ("License"); You may not use this file except in compliance with the License

   5     * The Original Code is:  vtiger CRM Open Source

   6     * The Initial Developer of the Original Code is vtiger.

   7     * Portions created by vtiger are Copyright (C) vtiger.

   8     * All Rights Reserved.

   9    *

  10   ********************************************************************************/
  11  -->*}
  12  <div class="dashboardWidgetHeader">
  13      {include file="dashboards/WidgetHeader.tpl"|@vtemplate_path:$MODULE_NAME}
  14  </div>
  15  <div class="dashboardWidgetContent">
  16      {include file="dashboards/DashBoardWidgetContents.tpl"|@vtemplate_path:$MODULE_NAME}
  17  </div>
  18  
  19  <script type="text/javascript">
  20      Vtiger_Pie_Widget_Js('Vtiger_Opentickets_Widget_Js',{},{
  21          /**

  22           * Function which will give chart related Data

  23           */
  24          generateData : function() {
  25              var container = this.getContainer();
  26              var jData = container.find('.widgetData').val();
  27              var data = JSON.parse(jData);
  28              var chartData = [];
  29              for(var index in data) {
  30                  var row = data[index];
  31                  var rowData = [row.name, parseInt(row.count), row.id];
  32                  chartData.push(rowData);
  33              }
  34              return {literal}{'chartData':chartData}{/literal};
  35          }
  36      });
  37  </script>


Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1