zoukankan      html  css  js  c++  java
  • YII 后端管理界面 图片显示源代码了

    在视图层:

    <script src="http://maps.google.cn/maps/api/js?key=AIzaSyA384lAOGgKz0OQeFYFYL1OjiDphk3wESY"></script>
    <style>
    .form-group, .form-control[type='text'], .form-group textarea {
    100% !important;
    }
    .form-group textarea {
    min-height: 150px;
    }
    </style>

      <?php if (!empty($model->content)) { ?>

        <?php foreach ($model->content as $key => $items): ?>

       <div class="form-group field-approve-approve_material">
        <div style="min-height: 70px;">
    <div style=" 100px;display: inline-block;vertical-align: top" class="text-right">
    <label class="control-label" for="approve-approve_profession">文字内容</label>
    </div>
    <div style="margin-left: 20px; calc(100% - 125px);display: inline-block;vertical-align: top">
    <div style="min-height: 100% !important;height:100% !important;min-30px;margin: 5px;border: solid 1px #aaa" alt="">
    <textarea id="baidu<?= $key ?>" style="height: 100%; min-height: 300px"> <?= $items['text']; ?></textarea>
    </div>
    </div>
    </div>
    </div>
    <?php endforeach; ?>
    <?php } ?>


    //借用百度插件,还原副文本里面的图片

    $().ready(function(){  
    var step_ueditor = 0;
    $(".control-label").each(function () {

    var id = "baidu" + step_ueditor;

    util.getEditor(id, "dataData", {
    initialFrameHeight: 240,
    enableAutoSave: false,
    initialFrameWidth: 770,
    toolbars: [['link']]
    });
    step_ueditor++;
    });
    })
  • 相关阅读:
    第十一章 表单与验证
    第十章 日期与时间
    第九章 正则表达式
    第八章 字符串处理
    纯C实现面向对象之接口编程
    csharp 面向对象编程
    cpp面向对象编程
    javascriptMVC框架面向对象编程
    堆栈的区别
    Java堆栈简介
  • 原文地址:https://www.cnblogs.com/wangshuazi/p/9723845.html
Copyright © 2011-2022 走看看