Example #1
0
 public function actionLoad_repair()
 {
     $truck = new \app\models\Truck();
     $truck_license = Yii::$app->request->post('truck_licenses');
     $year = Yii::$app->request->post('year');
     $month = Yii::$app->request->post('month');
     $repair = $truck->get_repair_in_order($truck_license, $year, $month);
     return $this->renderPartial('load_repair', ["truck_license" => $truck_license, "repair" => $repair]);
 }
Example #2
0
<style type="text/css">
    body{color: #666666; font-size: 12px;}
    table tr td{ border-left: #000000 solid 1px; border-bottom: #000000 solid 1px; padding: 5px;}
    table tr th{ border-left: #000000 solid 1px; border-bottom: #000000 solid 1px; border-top: #000000 solid 1px; padding: 5px; text-align: left; font-weight: normal;}
    table{ border-right: #000000 solid 1px;}
    table tr th p{ margin-bottom: 10px;}
</style>
<?php 
use yii\helpers\Url;
$truck_model = new \app\models\Truck();
$config = new \app\models\Config_system();
$driver = new app\models\Driver();
$customer_model = new \app\models\Customer();
$changwat_model = new app\models\Changwat();
$producttype_model = new app\models\ProductType();
?>
<!--
    #ข้อมูลใบปฏิบัติงาน
    Comment By Kimniyom
-->
<div style=" width: 100%; position: relative;">
    <div style="width: 80px; float: left;">
        <img src="<?php 
echo Url::to('@web/web/images/logo.jpg');
?>
"/>
    </div>
    <div style="float: left; padding-top: 5px;">
       
    </div>
</div>