?> <div class="container"> <h1>All Weekly Updates <small>for user <?php echo $user_requested; ?> </small></h1> <div class="row"> <div class="span9"> <?php $updates = getGenericWeeklyReportsForUser($user_requested); if (!$updates) { echo insertNotify("error", "This user doesn't appear to have any weekly updates!"); } else { foreach ($updates as $update) { $pretty_time = getPrettyTime($update['timestamp']); $ending_date = date("l jS F Y", $update['range_end']); echo "<h3>Week ending {$ending_date} <small>written {$pretty_time}</small></h3>"; echo "<div class='well well-small'><p>{$update['report']}</p></div>"; } } ?> </div> <div class="span3"> <h4>Choose person</h3> <form id="setperson" action="<?php echo $ROOT_URL; ?> /user_updates.php" method="post"> <select name="username" onchange="this.form.submit()"><option></option>
function formatWeeklyReportForPrint(array $data) { $pretty_time = getPrettyTime($data['timestamp']); $html = "<h3>{$data['user']}<small> written {$pretty_time}</small></h3>"; $html .= "<div class='well well-small'><p>{$data['report']}</p></div>"; return $html; }
return TRUE; } include "path.php"; include pathrel . "client-ps/config/config.php"; include pathprivate . "includes/clientLIB.php"; $_SESSION = initSession($_SESSION); $_SESSION = agentSession($_SESSION, $_SERVER['HTTP_USER_AGENT']); if (!isset($_SESSION['securethis'])) { $itx['securethis'] = md5(uniqid(rand(), true)); $_SESSION['securethis'] = $itx['securethis']; } define("securethis", $_SESSION['securethis']); $itx['get'] = safeGet($_GET); define("unixtime", time()); define("ip", $_SERVER["REMOTE_ADDR"]); define("prettytime", getPrettyTime(unixtime, "GMT")); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title><?php echo siteNAME . " - " . siteMOTTO; ?> </title> <meta name="keywords" content="<?php echo siteKEYWORDS; ?> "> <meta name="description" content="<?php echo siteMETADESC; ?>