Exemplo n.º 1
0
<?php

session_start();
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/common.class.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/helpdesk.class.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/user.class.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/config.class.php";
/*
echo session_id();
echo "<pre>";
print_r($_SESSION);
echo "</pre>";
echo "<pre>";
print_r($_POST);
echo "</pre>";
*/
if (is_array($_POST)) {
    $helpdesk = new helpdesk();
    if ($_GET['helpdesk_id']) {
        $send = $helpdesk->add_entry($_POST['description'], $_GET['helpdesk_id']);
    } else {
        $send = $helpdesk->send_message($_POST['subject'], $_POST['description']);
    }
    if ($_POST['status_change'] == "reopen") {
        $change = $helpdesk->reopen_request($_GET['helpdesk_id']);
        echo "script:messageBox('Message Sent and Request is Re-Open');closePage();";
    } else {
        echo "script:messageBox('Message Sent');closePage();";
    }
}
Exemplo n.º 2
0
<?php

include "header.php";
require_once "../common/class/user.class.php";
$user = new user();
require_once "../common/class/helpdesk.class.php";
$helpdesk = new helpdesk();
$result = $helpdesk->get_message_by_id($_GET['helpdesk_id']);
$userid = $helpdesk->get_userid_by_id($_GET['helpdesk_id']);
$subject = $helpdesk->get_subject_by_id($_GET['helpdesk_id']);
?>
<table  width="100%">
<tr align="center">
<td align="center" bgcolor="#66CCFF">Helpdesk Message</td>
</tr>
</table>
<form name="frmaddcategory" action="helpdesk_management.php?wtdo=send_message&helpdesk_id=<?php 
echo $_GET['helpdesk_id'];
?>
" method="post" onSubmit="if(validateForm(this)) { if(check_amount()) return true; } else return false; ">
<table>
    

	
	 <tr>
		 <td><label for="tags"><strong>From Username:</strong></label>
		 
		 <span id="plus_amount" style="display:none;">+</span><span id="minus_amount" style="display:none;">-</span>
		 <?php 
echo $user->getUserNameFromUserId($userid);
?>
Exemplo n.º 3
0
<?php

session_start();
include "header.php";
include "subheader.php";
require_once "common/class/helpdesk.class.php";
require_once "common/class/user.class.php";
$user = new user();
$helpdesk = new helpdesk();
$type = "all";
$result = $helpdesk->get_all_request($type);
?>
<div  style="width: 580px; margin-left: 50px;">
<center>
  <h3><u>Support Help Desk</u></h3>
</center>

  <div class="formRowBig"><span class="fieldNamewithheader heading">
  <table width="100%">
  <tr>
  <td align="left">
  <a href="javascript: loadPage('/ajax/helpdesk_new_request.php')">Open New Request</a>
  </td>
  <td align="center">
   <a href="helpdesk.php">Open Request </a>
   </td>
   <td align="right">
   <a href="helpdesk_all.php">View All Request</a>
   </td>
  </tr>
  </table>
Exemplo n.º 4
0
<?php

include "header.php";
require_once "../common/class/helpdesk.class.php";
$delete_page = new helpdesk();
if ($_POST['type'] == "delete") {
    $midarray = explode(",", $_POST['selectcheck']);
    foreach ($midarray as $w) {
        $delete_page->delete_request($w);
    }
    //disconnect_db($cn);
    if ($_GET['type'] == "all") {
        echo "<script>alert('Request Deleted ...'); window.location='helpdesk_management.php?type=" . $_GET['type'] . "';</script>";
    } else {
        echo "<script>alert('Request Deleted ...'); window.location='helpdesk_management.php';</script>";
    }
} elseif ($_POST['type'] == "open") {
    $midarray = explode(",", $_POST['selectcheck']);
    foreach ($midarray as $w) {
        $delete_page->open_request($w);
    }
    //disconnect_db($cn);
    if ($_GET['type'] == "all") {
        echo "<script>alert('Request is now: Open !..'); window.location='helpdesk_management.php?type=" . $_GET['type'] . "';</script>";
    } else {
        echo "<script>alert('Request is now: Open !..'); window.location='helpdesk_management.php';</script>";
    }
} elseif ($_POST['type'] == "close") {
    $midarray = explode(",", $_POST['selectcheck']);
    foreach ($midarray as $w) {
        $delete_page->close_request($w);
Exemplo n.º 5
0
	 return false;
	 }
	var arv = checkBoxArr.toString();
	document.getElementById('selectcheck').value=arv;
	document.getElementById('type').value="reopen";
		return confirm("Are You Sure ?");
}

</script>


<?php 
$mysql = new mysql();
//$common = new common();
$user = new user();
$helpdesk = new helpdesk();
if ($_GET['wtdo'] == 'send_message') {
    $reply = $helpdesk->reply_entry_admin($_POST['description'], $_GET['helpdesk_id'], $_POST['from']);
}
?>

<table align="left" width="100%" style="font-family:Arial, Helvetica, sans-serif; font-weight:bold; color:#FFFFFF; font-size:16px;">
	
	
	<tr><td colspan="6" align="center" valign="middle">
    <table align="center" >
    <tr>
    <td><img src="images/listmain.png" /></td>
    <td style="color:#003399; font-family:Arial, Helvetica, sans-serif; font-weight:bold; font-size:18px;" align="center" valign="middle">
    &nbsp;&nbsp;List of Requests</td>
    </tr>