sort($ids); $id_hash = crc32(implode('', $ids)); } $log->debug("ids is:"); $log->debug($ids); $cache_file_name = $id_hash . "_outcome_by_month_" . $current_language . "_" . crc32($date_start . $date_end) . ".png"; $log->debug("cache file name is: {$cache_file_name}"); if (isPermitted('Potentials', 'index') == "yes") { $draw_this = new jpgraph(); $width = 850; $height = 500; if (isset($_REQUEST['display_view']) && $_REQUEST['display_view'] == 'MATRIX') { $width = 350; $height = 250; } echo $draw_this->outcome_by_month($date_start, $date_end, $ids, $tmp_dir . $cache_file_name, $refresh, $width, $height); echo "<P><font size='1'><em>" . $current_module_strings['LBL_MONTH_BY_OUTCOME_DESC'] . "</em></font></P>"; if (isset($_REQUEST['obm_edit']) && $_REQUEST['obm_edit'] == 'true') { $cal_lang = "en"; $cal_dateformat = parse_calendardate($app_strings['NTC_DATE_FORMAT']); $cal_dateformat = '%Y-%m-%d'; // fix providedd by Jlee for date bug in Dashboard ?> <link rel="stylesheet" type="text/css" media="all" href="jscalendar/calendar-win2k-cold-1.css"> <script type="text/javascript" src="jscalendar/calendar.js"></script> <script type="text/javascript" src="jscalendar/lang/calendar-<?php echo $cal_lang; ?> .js"></script> <script type="text/javascript" src="jscalendar/calendar-setup.js"></script> <form name="outcome_by_month" action="index.php" method="post" >