Beispiel #1
0
<?php

/* @var $this yii\web\View */
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use app\models\ecommerceDataPesan;
$dataPesanModel = new ecommerceDataPesan();
$this->title = 'Data Pemesanan';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="col-md-12">
    <div class="widget widget-green">
        <div class="widget-title">
            <div class="widget-controls">
				<a href="#" class="widget-control widget-control-full-screen" data-toggle="tooltip" data-placement="top" title="" data-original-title="Full Screen"><i class="fa fa-expand"></i></a>
				<a href="#" class="widget-control widget-control-full-screen widget-control-show-when-full" data-toggle="tooltip" data-placement="left" title="" data-original-title="Exit Full Screen"><i class="fa fa-expand"></i></a>
				<a href="#" class="widget-control widget-control-refresh" data-toggle="tooltip" data-placement="top" title="" data-original-title="Refresh"><i class="fa fa-refresh"></i></a>
				<a href="#" class="widget-control widget-control-minimize" data-toggle="tooltip" data-placement="top" title="" data-original-title="Minimize"><i class="fa fa-minus-circle"></i></a>
			</div>
            <h3><i class="fa fa-ok-circle"></i><?php 
echo Html::encode($this->title);
?>
</h3>
        </div>
			<div class="widget-content">
				<div class="row">
					<div class="col-md-12">
						<table class="table">
							<thead>
								<tr>
Beispiel #2
0
<?php

/* @var $this yii\web\View */
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use app\models\ecommerceDataPesan;
$dataPesanModel = new ecommerceDataPesan();
$id = Yii::$app->request->get()['id'];
$detailOrder = $dataPesanModel->findDetailOrder($id);
$itemOrder = $dataPesanModel->findItemOrder($id);
$this->title = 'Detail Order #' . $id;
$this->params['breadcrumbs'][] = $this->title;
?>
    <ol class="breadcrumb">
  <li><a href="#">Home</a></li>
  <li><a href="#">Bread</a></li>
  <li class="active">Detail Oreder #<?php 
echo $id;
?>
</li>
</ol>
    <div class="order-details">
      <div class="row">
        <div class="col-sm-8">
          <h1 class="page-title page-title-hard-bordered">
            <i class="fa fa-file-text-o"></i>
            Order #<?php 
echo $id;
?>
			
 protected function findModel_order($id)
 {
     if (($model = ecommerceDataPesan::findOne($id)) !== null) {
         return $model;
     } else {
         throw new NotFoundHttpException('The requested page does not exist.');
     }
 }