//         echo show_links('tasks', $task->id, 0, '', 'rl');
        //
        //         echo "</div>";
        //
        //         echo show_create_links('tasks', $task->id);
        //
        echo "</div>";
        // Notes
        echo "<div style='width: 48%; float: right; border: 1px solid #CCCCFF;'>";
        echo add_note_form(NOTE_TASK, $taskid);
        echo show_notes(NOTE_TASK, $taskid);
        echo "</div>";
    } elseif ($mode == 'incident') {
        echo "<div style='width: 48%; margin-left: auto; margin-right: auto;border: 1px solid #CCCCFF;'>";
        echo add_note_form(NOTE_TASK, $taskid);
        echo show_notes(NOTE_TASK, $taskid, FALSE);
        echo "</div>";
    }
} else {
    echo user_alert($strNoMatchingTask, E_USER_WARNING);
}
if ($mode != 'incident') {
    echo "</div>";
}
echo "<div style='clear:both; padding-top: 20px;'>";
if ($mode != 'incident') {
    echo "<p align='center'><a href='tasks.php'>{$strTaskList}</a></p>";
} else {
    echo "<p align='center'><a href=task_edit.php?id={$taskid}&amp;action=markcomplete&amp;incident={$incidentid}>{$strMarkComplete}</a> | <a href='tasks.php?incident={$id}'>{$strActivityList}</a></p>";
}
echo "</div>";
Beispiel #2
0
                        echo "No Notes logged</br>";
                        ?>
							<form name = "infoform"
									action = "Assignment2.php"
									method = "POST">
								<input type="submit" value ="Back to Student Info">
							</form>
						<?php 
                        $_SESSION['option'] = "studentinfo";
                    } else {
                        ?>
							<form name = "infoform"
							action = "Assignment2.php"
							method = "POST">
						<?php 
                        $found = show_notes(1, $student, $db);
                        //show all sessions with radio buttons
                        ?>
							<input type="submit" value ="Review Note">
						</form>
						<?php 
                        $_SESSION['option'] = "reviewnotes";
                        //go to review notes
                    }
                } else {
                    echo "Error occured try again<br/>";
                    advisor_action();
                    //error, prompt again
                }
                if ($actionvalue == 1 || $actionvalue == 2) {
                    //nothing else to do here, go back to studentinfo for another action
<?php

require "settings.php";
if (isset($_POST["key"])) {
    switch ($_POST["key"]) {
        case "confirm":
            $OUTPUT = show_notes($_POST);
            break;
        default:
            $OUTPUT = get_filter($_POST);
    }
} else {
    $OUTPUT = get_filter($_POST);
}
$OUTPUT .= "<br>" . mkQuickLinks(ql("general-creditnote.php", "Generate General Credit Note"), ql("credit-notes-view.php", "View Credit Notes"), ql("cust-credit-stockinv.php", "New Stock Invoice"), ql("invoices-view.php", "View Invoices"));
require "template.php";
function get_filter($_POST, $err = "")
{
    extract($_POST);
    $display = "\n\t\t<h2>View Credit Notes</h2>\n\t\t<table " . TMPL_tblDflts . ">\n\t\t<form action='" . SELF . "' method='POST'>\n\t\t\t{$err}\n\t\t\t<input type='hidden' name='key' value='confirm'>\n\t\t\t<tr>\n\t\t\t\t<th colspan='2'>Select Date Range</th>\n\t\t\t</tr>\n\t\t\t<tr class='" . bg_class() . "'>\n\t\t\t\t<td>\n\t\t\t\t\t" . mkDateSelect("from", date("Y"), date("m"), "01") . "\n\t\t\t\t\t&nbsp To &nbsp\n\t\t\t\t\t" . mkDateSelect("to") . "\n\t\t\t\t</td>\n\t\t\t\t<td><input type='submit' value='View'></td>\n\t\t\t</tr>\n\t\t</form>\n\t\t</table>";
    return $display;
}
function show_notes($_POST)
{
    extract($_POST);
    # validate input
    require_lib("validate");
    $v = new validate();
    $v->isOk($from_day, "num", 1, 2, "Invalid Invoice From Date day.");
    $v->isOk($from_month, "num", 1, 2, "Invalid Invoice From Date month.");
    $v->isOk($from_year, "num", 1, 5, "Invalid Invoice From Date year.");