コード例 #1
0
ファイル: ticket.php プロジェクト: Shadowss/gnuworld-website
                 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";
     echo "<!--\n";
     $comc = "";
     $coml = "";
コード例 #2
0
ファイル: admin.php プロジェクト: Shadowss/gnuworld-website
            if ($o->status < 3) {
                echo "<input type=button onClick=\"post_reply()\" value=\"Post Reply\">&nbsp;&nbsp;";
            }
            if ($o->status < 3) {
                echo "<input type=button onClick=\"to_resolved()\" value=\"Mark as RESOLVED\">&nbsp;&nbsp;";
            }
            if ($o->status < 3) {
                echo "<input type=button onClick=\"to_abandonned()\" value=\"Mark as ABANDONNED\">&nbsp;&nbsp;";
            }
            if ($admin >= 800 && $o->status != 99) {
                echo "<input type=button onClick=\"to_deleted()\" value=\"Mark as DELETED\">";
            }
        }
        if ($o->reviewed_by_id > 0) {
            echo "<br><br>";
            $lastid_RT = show_ticket_events($o->id);
        } else {
            $lastid_RT = 0;
        }
        if (acl(XCOMPLAINTS_ADM_REPLY) && COMPLAINTS_DO_FOLLOWUP == 0 || acl(XCOMPLAINTS_ADM_REPLY) && COMPLAINTS_DO_FOLLOWUP && ($o->reviewed_by_id == $user_id || $o->current_owner == $user_id)) {
            $RT = (int) $lastid_RT;
            ?>
<script language="JavaScript1.2">
<!--
<?php 
            if ($o->status < 3) {
                ?>
function switch_owner() {
	if (document.forms[0].newowner.options[document.forms[0].newowner.selectedIndex].value > 0) {
		if (confirm('Are you sure you want to tranfer/change ownership of this ticket/complaint ?')) {
			document.forms[0].submit();