Beispiel #1
0
    return false;
}	
</script>
  
<?php 
$path = $_SERVER['DOCUMENT_ROOT'];
$apiPath = $path . "/api.php";
$headerPath = $path . "/header.php";
include $apiPath;
include $headerPath;
$formid = $_GET["id"];
if ($formid == "") {
    header("Location: /index.php");
}
//get form data
$getForm = new formStackAPI();
$result = $getForm->getFormData($formid);
//set variables from array
$name = $result[0];
$email = $result[1];
$dateTime = $result[2];
$problem = $result[3];
$urlPic = $result[4];
$status = $result[5];
$comments = $result[6];
?>

	
    <p align="center"><b>Trouble Ticket ID - </b><?php 
echo $formid;
?>
Beispiel #2
0
$mail->Host = 'smtp.office365.com';
// Specify main and backup server
$mail->Port = '587';
$mail->SMTPSecure = 'tls';
$mail->SMTPAuth = true;
// Enable SMTP authentication
$mail->Username = '******';
// SMTP username
$mail->Password = '';
// SMTP password
$mail->From = '*****@*****.**';
$mail->FromName = 'Help Desk Support';
$mail->addAddress($email, $name);
// Add a recipient
$mail->WordWrap = 50;
// Set word wrap to 50 characters
$mail->isHTML(true);
// Set email format to HTML
$mail->Subject = $subject;
$mail->Body = $body;
$mail->send();
//put data to formstack api
$putData = new formStackAPI();
$result = $putData->putFormData($formid, $status, $comments);
if ($result == 1) {
    session_start();
    $_SESSION["id"] = $formid;
    header("Location: /index.php");
} else {
    echo "Error createing Put Request";
}
Beispiel #3
0
<?php 
include 'header.php';
include 'api.php';
include 'session.php';
?>

<center><b>Select to edit status, resolution comments, and add to Trello Board.</b></center>
<br />
 
<table>

<tr><th>Edit</th></th><th>Status</th><th>Ticket ID</th><th>Name</th><th>Detected</th><th>Problem Description</th></tr>

<?php 
$get = new formStackAPI();
$get->getSubmissionsTable();
?>

</table>
</body>
</html>








Beispiel #4
0
<?php

$path = $_SERVER['DOCUMENT_ROOT'];
$apiPath = $path . "/api.php";
include $apiPath;
$formid = $_GET['id'];
if ($formid == "") {
    header("Location: /index.php");
}
$delete = new formStackAPI();
$result = $delete->deleteSubmission($formid);
if ($result == 1) {
    session_start();
    $_SESSION["deleteID"] = $formid;
    header("Location: /index.php");
} else {
    echo "Error deleting ticket...";
}