iframe.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Administrator
  5. * Date: 2017/3/16
  6. * Time: 15:58
  7. */
  8. use yii\widgets\Breadcrumbs;
  9. \company\assets\IframeAsset::register($this);
  10. ?>
  11. <?php $this->beginPage() ?>
  12. <!DOCTYPE html>
  13. <html>
  14. <head>
  15. <meta charset="utf-8">
  16. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  17. <title></title>
  18. <?php $this->head() ?>
  19. </head>
  20. <body class="gray-bg">
  21. <?php $this->beginBody() ?>
  22. <?php if(Yii::$app->getSession()->hasFlash('success')): ?>
  23. <script>
  24. // Zepto.alert('<?//=Yii::$app->session->getFlash('success');?>//');
  25. swal("", "<?=Yii::$app->session->getFlash('success');?>", "success");
  26. </script>
  27. <?php endif;?>
  28. <?php if(Yii::$app->getSession()->hasFlash('error')): ?>
  29. <script>
  30. swal("警告", "<?=Yii::$app->session->getFlash('error');?>", "error");
  31. </script>
  32. <?php endif;?>
  33. <div class="wrapper wrapper-content animated fadeInRight">
  34. <div class="row">
  35. <div style="background-color:#f3f3f4;margin: 10px">
  36. <?= Breadcrumbs::widget([
  37. 'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
  38. ]) ?>
  39. </div>
  40. <?=$content;?>
  41. </div>
  42. </div>
  43. <?php $this->endBody();?>
  44. </body>
  45. </html>
  46. <?php $this->endPage() ?>