display.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. echo "<?php\n";
  3. ?>
  4. use yii\widgets\ActiveForm;
  5. use common\widgets\webuploader\Files;
  6. use common\helpers\Url;
  7. $this->title = '参数设置';
  8. $this->params['breadcrumbs'][] = ['label' => $this->title];
  9. ?>
  10. <?php $html = '
  11. <div class="row">
  12. <div class="col-lg-12">
  13. <div class="box">
  14. <div class="box-header with-border">
  15. <h3 class="box-title">微信分享设置</h3>
  16. </div>
  17. <?php $form = ActiveForm::begin([]); ?>
  18. <div class="box-body">
  19. <div class="col-sm-12">
  20. <?= $form->field($model, \'share_title\')->textInput(); ?>
  21. <?= $form->field($model, \'share_cover\')->widget(Files::class, [
  22. \'type\' => \'images\',
  23. \'theme\' => \'default\',
  24. \'themeConfig\' => [],
  25. \'config\' => [
  26. \'pick\' => [
  27. \'multiple\' => false,
  28. ],
  29. ]
  30. ]); ?>
  31. <?= $form->field($model, \'share_desc\')->textarea(); ?>
  32. <?= $form->field($model, \'share_link\')->textInput(); ?>
  33. </div>
  34. </div>
  35. <div class="box-footer text-center">
  36. <button class="btn btn-primary" type="submit">保存</button>
  37. <span class="btn btn-white" onclick="history.go(-1)">返回</span>
  38. </div>
  39. <?php ActiveForm::end(); ?>
  40. </div>
  41. </div>
  42. </div>
  43. ';
  44. echo $html;
  45. ?>
粤ICP备19079148号