Example #1
0
function dispatcher()
{
    $action = 'none';
    if (isset($_POST['action'])) {
        $action = $_POST['action'];
    }
    if ($action == 'insert') {
        $result = post_insertHandler();
    }
    $html = buildDocumentHead() . '
	<div style="width: 600px; margin: 16px auto; background : #fff; padding: 24px;">';
    if (isset($result)) {
        if ($result) {
            $html .= '<p class="notice" style="color:#f00">Your comment has been received; thank you for your feedback.</p>';
        } else {
            $html .= '<p class="notice" style="color:#f00">An error occurred while recording your comment; please try again. If the problem persists, please contact the IT department directly.</p>';
        }
    }
    $html .= '
		<h1>About the alpha version</h1>
		<p>This system is currently in active development. The interface is not final, and there may be occasional software bugs or missing core features. We thank you in advance for your understanding.</p>
		<h2>Features currently in development</h2>
		<ul>
			<li>Ability to edit existing content and durations</li>
			<li>More polished and user-friendly UI
				<ul>
					<li>Modal scheduling dialogs</li>
					<li>Consistent professional theming</li>
				</ul>
			</li>
		</ul>
		<h2>Feedback</h2>
		<p>If you would like to report a bug or request a feature not currently present on the planned features list, you may do so using the form below.</p>
		<form id="form_feedback" action="index.php" method="post">
			<input type="hidden" name="action" value="insert" />
			<textarea style="max-width: 100%; width: 100%; height: 150px;" name="comment" form="form_feedback">Type your comment here</textarea>
			<p class="center"><input type="submit" value="Submit Feedback" /></p>
		</form>
	</div>';
    print $html;
}
Example #2
0
function buildIndex($auth)
{
    //TODO: yoink that debug when you're done with it
    //print_r_html($auth);
    $html = buildDocumentHead();
    $html .= '<div id="pane_topbar">' . 'CC Signage Management Tool <strong>Alpha</strong> <a id="info_alpha">[more info]</a> | ' . 'Logged in as ' . $auth['upn'] . ' | <a id="logout">Logout</a>' . '</div>';
    $html .= buildLibraryPane($auth);
    $html .= buildScheduleViewPane($auth);
    $html .= '</body>
</html>';
    return $html;
}