Beispiel #1
0
                 $mm = "";
                 $mm .= "Your complaint ticket number " . $_GET["ID"] . " has been marked as " . strtoupper($cmp_status[$_POST["newstatus"]]) . " by a CService Admin\n\n";
                 $mm .= "Thanks for using our Complaint System.\n\n";
                 mail($daobj->from_email, "[" . NETWORK_NAME . " CService Complaints] " . $_GET["ID"] . " - " . ucfirst($cmp_status[$_POST["newstatus"]]) . " by admin", $mm, "From: " . NETWORK_NAME . " Channel Service <" . OBJECT_EMAIL . ">\nReply-to: DO.NOT@REPLY.THANKS\nX-Mailer: " . NETWORK_NAME . " CService Complaint Module\n\n");
                 echo "<br><br><b>Additionally the complaint ticket is now '" . strtoupper($cmp_status[$_POST["newstatus"]]) . "', The user is being notified by e-mail.</b><br><br>";
             }
         } else {
             echo "<br><br><b>Your reply could not be recorded correctly ! Mail not sent, You might retry or contact the site administrator.<br><br>";
         }
     }
     echo "<a href=\"admin.php\">Back to Complaint Admin</a><br><br>\n";
 } else {
     echo "<form name=do_reply action=\"" . $_SERVER["REQUEST_URI"] . "\" method=post>\n";
     echo "<input type=hidden name=from_id value=\"" . $daobj->from_id . "\">\n";
     echo "<table width=100% border=1 cellpadding=5 cellspacing=0>";
     echo initial_complaint($_GET["ID"]);
     echo "</table>\n";
     if ($_GET["RT"] > 0) {
         show_ticket_events($da_id);
         echo "<br>";
     } else {
         echo "<b><u>You are replying to the initial complaint of this ticket :</u></b><br>";
         echo db2disp($daobj->complaint_text);
         if ($daobj->complaint_logs != "") {
             echo "<br><br><b><u>optional logs :</u></b><br>";
             echo db2disp($daobj->complaint_logs);
         }
         echo "<br><br>";
     }
     make_secure_form("do_reply_admin" . $_GET["ID"] . $_GET["RT"]);
     echo "<script language=\"JavaScript\">\n";
Beispiel #2
0
         if (check_secure_form("modifycomplaint" . $_GET["view"])) {
             echo "<a href=\"admin.php\"><b>&lt;&nbsp;back</b></a><br><br>\n";
         } else {
             echo "<a href=\"javascript:history.go(-1);\"><b>&lt;&nbsp;back</b></a><br><br>\n";
         }
     }
 }
 $idt = explode("-", $_GET["view"]);
 $r = pg_safe_exec("SELECT * FROM complaints WHERE id='" . (int) $idt[0] . "' AND ticket_number='" . $_GET["view"] . "'");
 if ($o = pg_fetch_object($r)) {
     echo "<h3>Details on TICKET #" . $_GET["view"] . " <font size=+0>(<b>" . $cmp_status[$o->status] . "</b>)</font></h3>";
     echo "<form name=modify method=post action=admin.php?view=" . $_GET["view"] . ">";
     echo "<input type=hidden name=compid value=" . $o->id . ">\n";
     make_secure_form("modifycomplaint" . $_GET["view"]);
     echo "<table width=100% border=1 cellpadding=5 cellspacing=0>";
     echo initial_complaint($_GET["view"], 0);
     /*
     		echo "<tr>";
     		echo "<td bgcolor=#990000 valign=top align=right><font color=#ffffff>";
     		echo "Status</font></td>";
     		echo "<td width=99% valign=top>";
     		echo $o->status . " (" . $cmp_status[$o->status] . ")";
     		echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
     		echo "Switch to : <select name=switchto><option value=0>---</option><option value=2>(2) being processed</option><option value=3>(3) resolved</option><option value=4>(4) abandonned</option><option value=99>(99) deleted</option></select>&nbsp;<input type=submit value=Go!>";
     		echo "</td></tr>\n";
     */
     echo "<tr>";
     echo "<td bgcolor=#990000 valign=top align=right><font color=#ffffff>";
     echo "Currently&nbsp;owned&nbsp;by</font></td>";
     echo "<td width=99% valign=top>";
     if ($o->current_owner == 0) {