Ejemplo n.º 1
0
			<h1>Riwayat Pembelian</h1>
			<?php 
$i = 1;
foreach ($model->findUserOrder($id) as $key => $value) {
    ?>
			<div class="cart-header">
				
				<div class="cart-sec simpleCart_shelfItem">
					   <div class="cart-item-info">
						    <h3><a href="single.html">Pembelian tgl : <?php 
    echo $value['date_order_placed'];
    ?>
</a><span>Item yang dibeli</span></h3>
							<ul class="qty">
								<?php 
    foreach ($model->findItemOrder($value['order_id']) as $key => $item) {
        ?>
								<li><p><?php 
        echo $item['Nama_Barang'];
        ?>
 </p></li>
								<li><p>Qty : <?php 
        echo $item['order_item_quantity'];
        ?>
 <?php 
        echo $item['Nama'];
        ?>
</p></li><br>
								<?php 
    }
    ?>
Ejemplo n.º 2
0
<?php

use app\modules\front\models\placeOrderModel;
$dataPesanModel = new placeOrderModel();
$id = Yii::$app->request->get()['id'];
$detailOrder = $dataPesanModel->findDetailOrder($id);
$itemOrder = $dataPesanModel->findItemOrder($id);
$this->title = 'Invoice #' . $id;
?>
 <div class="invoice-w">
      <div class="white-paper">
        <div class="invoice-header">
          <div class="row">
            <div class="col-sm-6">
              <div class="invoice-logo">
                <i class="fa fa-rocket"></i>
              </div>
            </div>
            <div class="col-sm-6">
                <div class="invoice-date-w">
                  <div class="invoice-date">April 5th, 2013</div>
                  <div class="invoice-number">Invoice #<?php 
echo $id;
?>
</div>
                </div>
            </div>
          </div>
        </div>
        <div class="invoice-header">
        <div class="row">