選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 
 

59 行
2.8 KiB

  1. <?php
  2. use yii\helpers\Html;
  3. use common\components\zActiveForm;
  4. use common\models\BaseResource;
  5. use backend\modules\motorcade\models\BusDocLog;
  6. use backend\modules\motorcade\models\BusOilDoc;
  7. /* @var $this yii\web\View */
  8. /* @var $form yii\widgets\ActiveForm */
  9. /* @var $type string */
  10. /* @var $data array */
  11. $log = $data['log'];
  12. $this->title = $data['type'] . '充值';
  13. ?>
  14. <div class="modal-dialog modal-lg">
  15. <div class="bus-oil-doc-charge">
  16. <?php \yii\widgets\Pjax::begin(['id' => 'pjax-modal', 'timeout' => false, 'enablePushState' => false, 'options' => ['data-pjax-container' => 'doc-container']]) ?>
  17. <?php $form = zActiveForm::begin(['options' => ['class' => 'form-horizontal', 'data-pjax' => true]]); ?>
  18. <div class="panel panel-default" id="panel-div">
  19. <div class="panel-heading"><?= $this->title ?>
  20. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  21. <span aria-hidden="true">&times;</span>
  22. </button>
  23. </div>
  24. <div class="panel-body">
  25. <div class="myBody">
  26. <?= $form->field($log, 'VALUE', ['template' => '{label}<div class="col-sm-8" style="display: inline-flex"><div class="input-group form-inline input-group-with-addon" >' .
  27. '{input}' .
  28. '<div class="input-group-addon " style="width: auto">元</div>' .
  29. '</div>{hint}{error}</div>'])->textInput(['maxlength' => true])->label('充值金额') ?>
  30. <?= $form->field($log, 'OPERATION_DATE', ['template' => '{label}<div class="col-sm-8" style="display: inline-flex"><div class="input-group form-inline input-group-with-addon date form_date">' .
  31. '{input}<span class="input-group-addon" style="width: auto"><span class="glyphicon glyphicon-calendar"></span></span>' .
  32. '</div>{hint}{error}</div>'])->textInput(['maxlength' => true, 'readonly' => true])->label('充值日期') ?>
  33. <?= $form->field($log, 'CARD_ID')->hiddenInput()->label(false) ?>
  34. <div class="form-group" style="clear: both"></div>
  35. <div class="form-group">
  36. <label class="control-label">&nbsp;</label>
  37. <div class="col-sm-5">
  38. <?= Html::submitButton('保存', ['class' => 'btn btn-primary']) ?>
  39. <?= Html::submitButton('取消', ['class' => 'btn btn-default', 'data-dismiss'=> 'modal', 'style'=> 'margin-left: 5px;']) ?>
  40. </div>
  41. </div>
  42. </div>
  43. <!--mybody end-->
  44. </div>
  45. </div>
  46. <?php zActiveForm::end(); ?>
  47. <?php \yii\widgets\Pjax::end() ?>
  48. </div>
  49. </div>