"> <input type="hidden" name="range_end" value="<?php echo $end_ts; ?> "> <button class="btn btn-primary" type="submit">Save Meeting Notes</button> </form> <?php if (getTeamConfig('oncall')) { ?> <h2>On Call Report <?php if ($results = getOnCallReportForWeek($oncall_start, $oncall_end)) { echo "<small> for week " . date("l jS F Y", $oncall_start) . " - " . date("l jS F Y", $oncall_end); echo " compiled by " . guessPersonOnCall($oncall_start, $oncall_end) . "</small></h2>"; ?> <table class="table table-striped table-bordered table-hover" id="oncall-table" style='font-size: 90%'> <thead> <tr> <th>Date/Time</th><th>Host</th><th>Service</th><th>Output</th><th>State</th> </tr> </thead> <tbody> <?php foreach ($results as $n) { echo formatOnCallRowForPrint($n); } echo "</tbody></table>"; } else {
</h2> <div class="row"> <div class="span12"> <?php if (getTeamConfig('oncall')) { ?> <h2>On call report</h2> <?php if (isset($_GET['oncall_succ'])) { echo insertNotify("success", "Your on call update has been saved successfully"); } ?> <div id="on-call-question"> <?php // See if a report was already submitted for this week. Doesn't matter, just a heads up. if ($oncall_user = guessPersonOnCall($oncall_start, $oncall_end)) { if ($oncall_user == $my_username) { echo "<p>You have already submitted a report this week, but you can update or add to it by clicking the button below</p>"; } else { echo "<p>An on call report has already been submitted by someone else this week, but you can update or add to it by clicking the button below</p>"; } } else { echo "<p>Were you on call this week? Click button to load notification report</p>"; } ?> <button type="button" class="btn btn-danger" data-loading-text="Generating On Call Summary..." onclick="$(this).button('loading'); $('.notifications').load('generate_oncall_survey.php?date=<?php echo urlencode($time_requested); ?> ', function() { $('#on-call-question').fadeOut('fast') });">I was on call</button> </div>