Perancangan Aplikasi Penjualan Sepatu Taufik Hidayat

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 9

1.

PERANCANGAN APLIKASI PENJUALAN SEPATU

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>

<div class="content_half float_r checkout">


E-MAIL
<input type="text" style="width:300px;" />
<br />
<br />
PHONE<br />
<span style="font-size:10px">Please, specify your
reachable phone number. YOU MAY BE GIVEN A CALL TO VERIFY AND COMPLETE
THE ORDER.</span>
<input type="text" style="width:300px;" />
</div>

<div class="cleaner h50"></div>


<h3>SHOPPING CART</h3>
<h4>TOTAL AMOUNT: <strong>$240</strong></h4>
<p><input type="checkbox" />
I accept the <a href="#">terms of use</a> of this
website.</p>
<table style="border:1px solid #CCCCCC;" width="100%">
<tr>
<td height="80px"> <img src="images/paypal.gif" alt="paypal"
/></td>
<td width="400px;" style="padding: 0px 20px;">Recommended if
you have a PayPal account. Fastest delivery time.
</td>
<td><a href="#" class="more">PAYPAL</a></td>
</tr>
<tr>
<td height="80px"><img src="images/2co.gif" alt="paypal" />
</td>
<td width="400px;" style="padding: 0px 20px;">2Checkout.com,
Inc. is an authorized retailer of goods and services. 2CheckOut accepts
customer orders via online checks, Visa, MasterCard, Discover, American
Express, Diners, JCB and debit cards with the Visa, Mastercard logo.
Validate <a href="http://validator.w3.org/check?uri=referer"
rel="nofollow">XHTML</a> &amp; <a href="http://jigsaw.w3.org/css-
validator/check/referer" rel="nofollow">CSS</a>.</td>
<td><a href="#" class="more">2CHECKOUT</a></td>
</tr>
</table>
CONTAK PHP
<h1>Contact Us</h1>
<div class="content_half float_l">
<p>If you have trouble or any question more about us, please
contact us</p>
<div id="contact_form">
<form method="post" name="contact" action="#">

<label for="author">Name:</label> <input type="text"


id="author" name="author" class="required input_field" />
<div class="cleaner h10"></div>
<label for="email">Email:</label> <input type="text"
id="email" name="email" class="validate-email required input_field" />
<div class="cleaner h10"></div>

<label for="phone">Phone:</label> <input type="text"


name="phone" id="phone" class="input_field" />
<div class="cleaner h10"></div>

<label for="text">Message:</label> <textarea id="text"


name="text" rows="0" cols="0" class="required"></textarea>
<div class="cleaner h10"></div>

<input type="submit" class="submit_btn" name="submit"


id="submit" value="Send" />

</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 />

Phone: 0856 9440 1415<br />


Email: <a
href="[email protected]">[email protected]</a><br/>
</div>

<div class="cleaner h40"></div>


<!--map pada peta-->
<iframe width="680" height="350" frameborder="0" scrolling="no"
marginheight="0" marginwidth="0" src="http://maps.google.com/maps?
f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=Central+Park,+New+York,
+NY,
+USA&amp;aq=0&amp;sll=14.093957,1.318359&amp;sspn=69.699334,135.263672&
amp;vpsrc=6&amp;ie=UTF8&amp;hq=Central+Park,+New+York,+NY,
+USA&amp;ll=40.778265,-
73.96988&amp;spn=0.033797,0.06403&amp;t=m&amp;output=embed"></iframe>

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
}
?>

<form method="POST" name="newproduct" action="process_newproduct.php">


<table align="left" cellpadding="10" width="400">
<thead>
<tr><th colspan ="2" align="left"><h1>New
Product</h1></th></tr>
</thead>
<tfoot>
<tr><th colspan ="2" align="left">

<?php
if(empty($idedit)){ //modus entry data baru
?>
<input class="button" type="submit" name="proses"
value="Save" />&nbsp;
<?php
}
else { //modus data lama
?>
<input class="button" type="submit" name="proses"
value="Edit" />&nbsp;
<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);

echo '<select name="categories">


<option value="">-- Select Category
--</option>';
foreach ($rd as $data){
//edit divisi
if($data ['id'] == $row['categories_id']) $c =
'selected';
else $c ='';
echo '<option value="'.$data['id'].'"'.
$c.'>'.$data['name'].'</option>';
}
?>
</select>
</td>
</tr>

<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> &amp; <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>

You might also like