Location: PHPKode > projects > MythPHP > MythPHPv1.0/www/siparislerim.php
<?php include 'header.php'; ?>
		<div id="tabledata" class="section">
			<h2 class="ico_mug">Hosting Sipariþlerim</h2>
		<table id="table">
			<thead>
			<tr>
				<th>Sipariþ No.</th>
				<th>Müþteri Ad Soyad</th>
				<th>Almak Ýstediði Paket</th>
				<th>Alan Adý</th>
				<th>Sipariþ Tarihi - Saati</th>
				<th></th>
			</tr>
			</thead>
			<tbody>
<?php
include 'ayar.php';

$madsoyad = $_SESSION['adsoyad'];

$listeisl = mysql_query("SELECT * FROM siparisler WHERE musteriadisoyadi='$madsoyad'");
while($listele = mysql_fetch_array($listeisl))
{
$sid = $listele['id'];
$mpaket = $listele['almakistedigipaket'];
$malanadi = $listele['alanadi'];
$mnot = $listele['musterinotu'];
$siptar = $listele['tarih'];
			echo "<tr>
				<td class=\"table_date\">$sid</td>
				<td class=\"table_title\"><span class=\"approved\">$madsoyad</span></td>
				<td>$mpaket</td> 
				<td><span class=\"approved\">$malanadi</span></td>
				<td>$siptar</td>
				<td><span class=\"approved\"><a href=\"siparisiptal.php?sid=$sid\">Ýptal Et</a></span></td>
				</tr>";
}
?>
			</tbody>
		</table>
		</div> 

<div id="tabledata" class="section">
			<h2 class="ico_mug">Alan Adý Sipariþlerim</h2>
		<table id="table">
			<thead>
			<tr>
    				<th>Sipariþ No.</th>
				<th>Müþteri Ad Soyad</th>
				<th>Alan Adý</th>
				<th>Uzantý</th>
				<th>Sipariþ Tarihi - Saati</th>
				<th></th>
			</tr>
			</thead>
			<tbody>
<?php

$listeisl = mysql_query("SELECT * FROM asiparisler WHERE musteribil='$madsoyad'");
while($listele = mysql_fetch_array($listeisl))
{
$asid = $listele['id'];
$asadsoyad = $listele['musteribil'];
$asaad1 = $listele['alanadi1'];
$asaad2 = $listele['alanadi2'];
$mnot = $listele['nots'];
$astarih = $listele['tarih'];

			echo "<tr>
				<td class=\"table_date\">$asid</td>
				<td class=\"table_title\"><span class=\"approved\">$asadsoyad</span></td>
				<td>$asaad1.$asaad2</td> 
				<td><span class=\"approved\">$asaad2</span></td>
				<td>$astarih</td>
				<td><span class=\"approved\"><a href=\"asiparisiptal.php?asid=$asid\">Ýptal Et</a></span></td>
				</tr>";
}
?>
			</tbody>
		</table>
		</div> 
		
<?php include 'footer.php'; ?>
Return current item: MythPHP