Esempio n. 1
0
        $f->find_values($id);
        $TicketNo = $id;
        echo "&nbsp<a href=\"" . $sess->url("/SupportComments.php") . $sess->add_query(array("cmd" => "Add", "TicketNo" => $TicketNo)) . "\">Add Comment</a>&nbsp\n";
        echo "&nbsp;<a href=SupportTickets.php>Back to Support Tickets List</a>";
        $SrchLocation = $Location;
    }
}
include 'phplib/locations.inc';
$id = $TicketNo;
echo "<h2>{$cmd} Support Ticket {$id} </h2> ";
$origcmd = $cmd;
switch ($cmd) {
    case "View":
        if ($UID = UserID($UserName)) {
            echo "<h3>User Information</h3>\n";
            $mf = new my_userinfoform();
            $mf->find_values($UID);
            $mf->freeze();
            $mf->display();
        }
        echo "</td><td valign=top>";
        echo "<h3>Ticket Details</h3>\n";
        $cmd = $origcmd;
    case "Delete":
    case "Close":
        $f->freeze();
    case "Add":
    case "Edit":
        if (!isset($Location) and isset($SrchLocation)) {
            $Location = $SrchLocation;
        }
Esempio n. 2
0
     /* looked up user */
     if (!$perm->have_perm("admin") and !$perm->have_perm("support")) {
         if ($ContID != $ContactID and $EnteredBy != $auth->auth["uname"]) {
             $str1 = "SupportComments: Access Denied ";
             $str2 = "{$auth->auth}[uname] {$EnteredBy} {$UserName}";
             Eventlog($str1, $str2, "Warning");
             echo $str1 . $str2;
             break;
         }
     }
 case "Edit":
     echo "<font class=bigTextBold>{$cmd} Support Comments <a href=SupportTickets.php>Back to Support Tickets List</a></font>\n";
     echo "<table cellspacing=10><tr><td valign=top>";
     $cmd = "View";
     if ($ContactID) {
         $mf = new my_userinfoform();
         $mf->find_values($ContactID);
         $mf->freeze();
         $mf->display();
     }
     echo "</td><td>\n";
     $cmd = "View";
     $st->freeze();
     $st->display();
     echo "</td></tr></table>";
     $cmd = $origcmd;
     printf("<table>\n");
     $db->query("select * from SupportComments where TicketNo='" . $TicketNo . "'");
     while ($db->next_record()) {
         $send = " <a href=" . $sess->url("/SupportComments.php") . $sess->add_query(array("cmd" => "Send", "id" => $db->f(0))) . ">send</a>";
         if (empty($Mobile) and empty($Mail)) {