Perancangan Aplikasi Penjualan Sepatu Taufik Hidayat
Perancangan Aplikasi Penjualan Sepatu Taufik Hidayat
Perancangan Aplikasi Penjualan Sepatu Taufik Hidayat
2.
AR MENU PHP
<?php
$ar_menu['home'] = 'Home';
$ar_menu['products'] = 'Products';
$ar_menu['about'] = 'About';
$ar_menu['checkout'] = 'Checkout';
$ar_menu['contact'] = 'Contact';
//masukan hyperlink
$link['newproduct'] = 'newproduct.php';
$link['home'] = 'home.php';
$link['products'] = 'products.php';
$link['about'] = 'about.php';
$link['checkout'] = 'checkout.php';
$link['contact'] = 'contact.php';
?>
CHECKOUT PHP
<h1>Checkout</h1>
<h5><strong>BILLING INFORMATION</strong></h5>
<div class="content_half float_l checkout">
Full Name (must be same as on your credit card):
<input type="text" style="width:300px;" />
<br />
<br />
Address:
<input type="text" style="width:300px;" />
<br />
<br />
City:
<input type="text" style="width:300px;" />
<br />
<br />
Country:
<input type="text" style="width:300px;" />
</div>
</form>
</div>
</div>
<div class="content_half float_r">
<h5>Our Office</h5>
Graha Mitra Citra N2/12 <br />
Panongan, Kabupaten Tangerang<br />
Banten<br /><br />
NEW PRODUK
<?php
//proses
//tangkap request dari link edit (idedit)
$idedit = $_GET['idedit'];
$id[] = $idedit; //simpan data array
if(!empty($idedit))//modus mengedit data lama
{
$qe = "SELECT * FROM shoes WHERE id = ?";
//PDO
$ps = $dbh->prepare($qe);
$ps->execute($id);
$row = $ps->fetch(); //ambil satu baris data
}
else { //modus entry data baru from dalam keadaan kosong
$row = array(); //tidak ada data lama yang diedit
}
?>
<?php
if(empty($idedit)){ //modus entry data baru
?>
<input class="button" type="submit" name="proses"
value="Save" />
<?php
}
else { //modus data lama
?>
<input class="button" type="submit" name="proses"
value="Edit" />
<input class="button" type="submit" name="proses"
value="Remove"
onclick ="return confirm ('Anda Yakin Ingin
Menghapus Data ...??')"/>
<input type="hidden" name="idx" value="<?php echo
$idedit;?>" />
<?php
}
?>
<input class="button" type="submit" name="proses"
value="Cancel" />
</th></tr>
</tfoot>
<tbody>
<tr>
<td> Name </td>
<td>
<input type="text" value="<?php echo $row['name'];?
>" name="name" size="30" />
</td>
</tr>
<tr>
<td> Categories</td>
<td>
<?php
//tampilkan data katagori
$qd = "SELECT * FROM categories ORDER BY name";
//PDO mengeksekusi query dan mengambil seluruh baris hasil eksekusi
query
$rd = $dbh->query($qd);
<tr>
<td> Price </td>
<td>
<input type="text" value="<?php echo
$row['price'];?>" name="price" size="30" />
</td>
</tr>
<tr>
<td> Picture </td>
<td>
<input type="text" value="<?php echo
$row['picture'];?>" name="picture" size="30" />
</td>
</tr>
<tr>
<td> Size </td>
<td>
<input type="text" value="<?php echo $row['size'];?
>" name="size" size="30" />
</td>
</tr>
<tr>
<td> Stock </td>
<td>
<input type="text" value="<?php echo
$row['stock'];?>" name="stock" size="30" />
</td>
</tr>
<tr>
<td valign="top"> Comment </td>
<td>
<textarea name="comment" cols="30" row="7" ><?php
echo $row['comment'];?></textarea>
</td>
</tr>
</tbody>
</table>
</form>
ABOUT
<h1>About Us</h1>
<h2>Company Background</h2>
<p>Validate <a href="http://validator.w3.org/check?uri=referer"
rel="nofollow">XHTML</a> & <a href="http://jigsaw.w3.org/css-
validator/check/referer" rel="nofollow">CSS</a>. Donec sapien. Nam ac
nunc. Aliquam fermentum cursus risus. Aliquam erat volutpat. Morbi a
augue eget orci sodales blandit. Morbi et mi in mi eleifend adipiscing.
Nullam id quam a ligula semper feugiat. Sed ultricies. Nulla et pede eu
pede ultrices commodo. Nulla semper accumsan pede. Donec ut quam.
Quisque egestas felis in diam.</p>
<ul class="tmo_list">
<li>Lorem ipsum dolor sit amet, consectetur adipiscing
elit.</li>
<li>Pellentesque quis nulla id orci malesuada porta posuere quis
massa.</li>
<li>Nunc vitae purus non augue scelerisque ultricies vitae et velit
quis.</li>
<li>Aliquam fermentum cursus risus aliquam erat volutpat.</li>
<li>Morbi a augue eget orci sodales blandit morbiet mi in mi
eleifend adipiscing.</li>
</ul>
<div class="cleaner h20"></div>
<h3>Management Team</h3>
<p>Nam nec leo. Curabitur quis eros a arcu feugiat egestas.
Nunc sagittis, dui non porttitor tincidunt, mi tortor tincidunt sem, et
aliquet mi tortor eu turpis. Ut nisi ligula, viverra ac, placerat sed,
ultricies vitae, neque. Morbi feugiat neque non odio eleifend
pulvinar.</p>
<div class="cleaner"></div>
<blockquote>Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Pellentesque quis nulla id orci malesuada porta posuere quis massa.
Nunc vitae purus non augue scelerisque ultricies vitae et velit quis
nulla id orci malesua.
</blockquote>