/** * This function sets up the view message frame. The content of the view message * frame is loaded dynamically, but the reply tools (initially hidden) are static * and setup below. * * @return int The draft ID for the compose file picker. * */ function display_view_message($courseid) { echo '<div id="viewmail"></div>'; // Reply field is beneath. echo '<div id="newreply" style="display:none">'; echo '<div class="compose_bar"><span class="label">' . get_string('addcclabel', BLOCK_CM_LANG_TABLE) . ':</span>'; echo '<input type="text" id="ccfromreply" placeholder="' . get_string('contactslabel', BLOCK_CM_LANG_TABLE) . '">'; echo '<div class="clear"></div></div>'; $replydraftid = display_add_attachment($courseid, 'reply'); display_body($courseid, 'reply'); echo '</div>'; return $replydraftid; }
if ($cfg['use_download_counter'] == 'yes') { $res_8 = mysql_query($sql_8) or die("Boo. " . mysql_error()); $year_hitrow_8 = mysql_num_rows($res_8); $array_8 = array(); while ($row = mysql_fetch_row($res_8)) { $count = $row[0]; $name = $row[1]; $array_8[$name] = $count; } $graph_8 = bar_graph_total($array_8, 300, $cfg['xml_lang']); } // Show the result page $yyyy = $_POST['y']; $mm = $_POST['m']; $dd = $_POST['d']; $contents_body = display_body($hitrow, $date_result); // show the flush button if ($cfg['enable_del_logs'] == 'yes') { $contents_body .= display_comp_form(); $contents_body .= display_del_form(); } // Compress the old data } elseif (isset($_POST['comp_year'], $_POST['comp_month']) && $_POST['comp_year'] != '' && $_POST['comp_month'] != '') { $yyyy = date("Y"); $dd = date("m"); $mm = date("d"); $comp_sql = 'UPDATE `' . $analyze_table . "` SET `ref` = '', `browser` = '', `re_host` = '' WHERE `date` LIKE '" . $_POST['comp_year'] . '-' . $_POST['comp_month'] . "%'"; mysql_query($comp_sql) or die("Boo. " . mysql_error()); // optimize table $optimize_sql = 'OPTIMIZE TABLE `' . $analyze_table . '`'; mysql_query($optimize_sql) or die("Boo. " . mysql_error());