Beispiel #1
0
                        <table class="table">
                                    <thead>
                                        <tr>
                                            <th>No</th>
                                            <th>tanggal Order</th>
                                            <th>Tanggal Pengiriman</th>
                                            <th>Tujuan</th>
                                            <th>status pengiriman</th>
                                            <th>Ongkos Kirm</th>
                                            <th>Action</th>
                                        </tr>
                                    </thead>
                                    <tbody>

                                        <?php 
if ($a->findPenjadwalan() != null) {
    $i = 1;
    foreach ($a->findPenjadwalan() as $key => $value) {
        ?>

                                        <tr>
                                            <td><?php 
        echo $i;
        ?>
</td>
                                            <td><?php 
        echo $value['date_order_placed'];
        ?>
</td>
                                            <td><?php 
        echo $value['tgl_pengiriman'];
Beispiel #2
0
<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use app\models\logistic\LgPenjadwalan;
use app\models\logistic\LgKendaraan;
use app\models\logistic\LgPegawai;
/* @var $this yii\web\View */
/* @var $model app\models\logistic\LgPengiriman */
/* @var $form yii\widgets\ActiveForm */
$model = new LgPenjadwalan();
foreach ($model->findPenjadwalan() as $key => $value) {
}
$kode = $value['kode'];
$tgl1 = $value['date_order_placed'];
$tgl2 = date('Y-m-d', strtotime('+3 days', strtotime($tgl1)));
?>

    <?php 
$form = ActiveForm::begin();
?>
   
    <?php 
echo $form->field($model, 'tgl_pengiriman')->textInput(['readonly' => true, 'value' => $tgl2]);
?>

    <?php 
echo $form->field($model, 'kendaraan')->dropdownList(LgKendaraan::find()->select(['nomor_polisi', 'kode'])->indexBy('kode')->column(), ['prompt' => 'Select Kendaraan']);
?>

    <?php