Posted by
Cylon on 02 October 2009, 11:31
#1
Ik heb een ticket systeem maar vind het niet mooi staan
Om elke antwoord/reactie kom een tekst box om heen te staan
Is dat ook in een tabel te zetten?
Met wie er reactie geef en dan wat hun schrijven er naast
Sorry voor mijn spelling fouten/zins op bouw dyslectisch
Dit is de code
Naam bestand ticket.php
Type mod http://www.phpfusion-nederlands.info/infusions/pro_download_panel/download.php?did=245
Code
if (ini_get('register_globals') != 1) {
if ((isset($_POST) == true) && (is_array($_POST) == true)) extract($_POST, EXTR_OVERWRITE);
if ((isset($_GET) == true) && (is_array($_GET) == true)) extract($_GET, EXTR_OVERWRITE);
}
require_once "../../maincore.php";
require_once THEMES."templates/header.php";
if (file_exists(INFUSIONS."ticket_system/locale/".$settings['locale'].".php")) {
include INFUSIONS."ticket_system/locale/".$settings['locale'].".php";
} else { include INFUSIONS."ticket_system/locale/English.php"; }
include INFUSIONS."ticket_system/infusion_db.php";
error_reporting(E_ALL ^ E_NOTICE);
if (iMEMBER){
if (!isset($stype) || !in_array($stype, array("uvt","uvtl","ust"))) redirect("index.php");
if ($stype == "uvt") {
opentable(" ");
$tic = dbquery("SELECT * FROM ".DB_TICKETSYSTEM." WHERE id = '".$_POST['id']."'");
while($test21 = mysql_fetch_assoc($tic)){
echo "
".$test21['subject']."
";
$tic1 = dbquery("SELECT * FROM ".DB_TICKETSYSTEM." WHERE addition = '".$_POST['id']."' Order BY date ASC");
while($test2 = mysql_fetch_assoc($tic1)){
echo"
";
}
if ( $test21['closed'] == "0"){
echo "
";
}else{
echo "
".$locale['tick_018']."
";
}
echo "
";
}
closetable();
}
if ($stype == "uvtl") {
if (isset($_POST['addition1'])) {
$addition = $_POST['addition1']
$message = stripinput($_POST['message']);
$result = dbquery("INSERT INTO ".DB_TICKETSYSTEM." (addition, date, message) VALUES ('".$addition."', '".time()."', '".$message."')");
$result1 = dbquery("UPDATE ".DB_TICKETSYSTEM." SET active = '1' WHERE id = '".$_POST['addition1']."'");
}
opentable(" ");
echo "
";
closetable();
}
if ($stype == "ust") {
if (isset($_POST['subject'])) {
$addition = "0";
$closed = "0";
$active = "1";
$username = $userdata['user_name']
$subject = stripinput($_POST['subject']);
$name = stripinput($_POST['name']);
$message = stripinput($_POST['message']);
$priority = stripinput($_POST['priority']);
$result = dbquery("INSERT INTO ".DB_TICKETSYSTEM." (addition, username, name, subject, priority, message, closed, active, date) VALUES ('".$addition."', '".$username."', '".$name."', '".$subject."', '".$priority."', '".$message."', '".$closed."', '".$active."', '".time()."')");
}
opentable(" ");
echo "
".$locale['tick_040']."
";
$rule=$locale['tick_049']
echo "\n";
closetable();
}
}
require_once THEMES."templates/footer.php";
?>