| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 | @extends('layout')@section('header')    <style type="text/css" media="screen">        #editor {            position: absolute;            top: 0;            right: 0;            bottom: 0;            left: 0;        }    </style>@endsection@section('content')    <body class="gray-bg">    <div class="wrapper wrapper-content animated fadeInRight">        <div class="row">            <div class="col-sm-12">                <div class="ibox float-e-margins">                    <div class="ibox-title"></div>                    <div class="ibox-content">                        {{--<form class="row" id="searchForm">--}}                            {{--<div class="col-sm-3">--}}                                {{--<div class="input-group">--}}                                    {{--<input type="text" placeholder="请输入关键词" class="input-md form-control" name="keyWord"--}}                                           {{--id="keyWord">--}}                                    {{--<span--}}                                        {{--class="input-group-btn">--}}                                        {{--<button type="button" class="btn btn-md btn-primary"--}}                                                {{--onclick="refresh()"> 搜索</button>--}}                                {{--<button type="reset" class="btn btn-md btn-primary" style="margin-left: 10px"--}}                                        {{--name="resetBtn"> 重置</button> </span>--}}                                {{--</div>--}}                            {{--</div>--}}                            {{--<div class="col-sm-2 pull-right" style="text-align: right">--}}                                {{--<button type="button" class="btn btn-md btn-primary" id="addBtn"> 添加</button>--}}                            {{--</div>--}}                        {{--</form>--}}                        <div class="table-responsive">                            <div id="editor" style="height: 500px;"></div>                            {{--<table id="table" class="table table-striped" data-mobile-responsive="true"></table>--}}                        </div>                    </div>                </div>            </div>        </div>    </div>    </body>@endsection@section('footer')    <script src="{{asset('js/plugins/ace-builds-master/src-noconflict/ace.js')}}" type="text/javascript" charset="utf-8"></script>    <script>        document.getElementById('editor').style.fontSize='14px';        var editor = ace.edit("editor");        editor.setTheme("ace/theme/dracula");        editor.session.setMode("ace/mode/php");        editor.setOptions({            autoScrollEditorIntoView: true,            copyWithEmptySelection: true        });        editor.setHighlightActiveLine(true);        editor.insert('123');        console.log(editor.getValue());    </script>    {{--<script>--}}        {{--var config = {};--}}        {{--config.url = '/demo/table-list';--}}        {{--config.columns = [ //字段--}}            {{--{title: '序号', field: 'Id', align: 'center', valign: 'middle'},--}}            {{--{title: '订单号', field: 'rule', align: 'center', valign: 'middle'},--}}            {{--{title: '商品名', field: 'title', align: 'center', valign: 'middle'},--}}            {{--{title: '创建时间', field: 'CreatedAt', align: 'center', valign: 'middle'},--}}            {{--{--}}                {{--title: '操作', field: 'Id', align: 'center', valign: 'middle',--}}                {{--formatter: function (value) {--}}                    {{--return (--}}                        {{--'<a href="javascript: void(0);" onclick="units.modify(this,' + value + ')">详情</a>'--}}                    {{--);--}}                {{--}--}}            {{--}--}}        {{--];--}}        {{--tips.bootstrapTable(config);--}}        {{--var layerIndex;--}}        {{--$(document).on('click', '#addBtn', function () {--}}            {{--layerIndex = layer.open({--}}                {{--type: 2,--}}                {{--title: '添加商品分类',--}}                {{--area: ['90%', '90%'],--}}                {{--content: '/admin/product/edit'--}}            {{--});--}}        {{--});--}}        {{--var units = {--}}            {{--modify: function (_this, id) {--}}                {{--var temp = $(_this).parent().prev();--}}                {{--layerIndex = layer.open({--}}                    {{--type: 1,--}}                    {{--title: '修改商品分类',--}}                    {{--area: ['40%', '40%'],--}}                    {{--content: units.buildHtml(temp.prev().prev().text()),--}}                    {{--success: function () {--}}                        {{--var srcAddr = temp.prev().find('img').attr('src');--}}                        {{--if (srcAddr) {--}}                            {{--var imgView = $("#imgView");--}}                            {{--imgView.css('display', '');--}}                            {{--imgView.find("img").attr('src', srcAddr);--}}                        {{--}--}}                        {{--$("#addYes").data('id', id);--}}                    {{--}--}}                {{--});--}}            {{--}--}}        {{--};--}}    {{--</script>--}}@endsection
 |