Location: PHPKode > projects > MythPHP > MythPHPv1.0/www/admin/dtayrinti.php
<?php include 'header.php'; ?>
<div align="center">
<?php 

include '../ayar.php'; 

$idcek = $_GET['dtid']+0;

$listeisl = mysql_query("SELECT baslik, kimden, aciliyet, tarih, icerik FROM ticket WHERE id='$idcek'");
while($listele = mysql_fetch_array($listeisl))
{
$dtad = $listele['baslik'];
$dtkimden = $listele['kimden'];
$dtacil = $listele['aciliyet'];
$dttarih = $listele['tarih'];
$dtileti = $listele['icerik'];

echo "<p class=\"info\"><b>Destek Talebi Baþlýðý:</b> $dtad  -  <b>Müþteri:</b> $dtkimden  -  <b>Aciliyet:</b> $dtacil  -  <b><a href=\"dtsil.php?dtid=$idcek\">Destek Talebini Sil</a></b></p><br />";

echo "
<fieldset>
<legend><b>Müþteri Mesajý:</b></legend>
<div align=\"left\">$dtileti</div><br />
<div align=\"right\"><b>Tarih - Saat:</b> $dttarih</div>
</fieldset>";

}

$listeisl2 = mysql_query("SELECT tarih, cevap, cevapsahibi FROM ticketre WHERE ticketid='$idcek'");
while($listele2 = mysql_fetch_array($listeisl2))
{
$dtctar = $listele2['tarih'];
$dtcre = $listele2['cevap'];
$dtkim = $listele2['cevapsahibi'];

echo "<fieldset><legend><b>"; 
if($dtkim == 'musteri'){ echo "Müþteri Cevabý:"; }else{ echo "Yetkili Cevabý:"; } 
echo "</b></legend>";
echo"
<div align=\"left\">$dtcre</div><br />
<div align=\"right\"><b>Tarih - Saat:</b> $dtctar</div>
</fieldset>";
}


echo "
<fieldset><legend><b>Cevapla:</b></legend>
<form method=\"post\" action=\"dtcevapla.php\">
<input name=\"ticketid\" type=\"hidden\" class=\"text\" size=\"60\" value=\"$idcek\" /><br />
<input name=\"cvpkimden\" type=\"hidden\" class=\"text\" size=\"60\" value=\"yonetim\" /><br />
<textarea name=\"destekcvpicerik\" cols=\"50\" rows=\"6\"></textarea><br />
<input type=\"submit\" value=\"Cevapla\" />
</form>
</fieldset>";

?>
</div>
<?php include 'footer.php'; ?>
Return current item: MythPHP