123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta charset="utf-8">
- <title>页面设计器</title>
- <!-- Le styles -->
- <link href="${ctx}/assets/lib/design/bootstrap.css" rel="stylesheet">
- <link href="${ctx}/assets/lib/design/layoutit.css" rel="stylesheet">
- <link href="${ctx}/assets/lib/design/mine.css" rel="stylesheet">
- <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
- <!--[if lt IE 9]>
- <script src="${ctx}/assets/lib/design/html5shiv.js"></script>
- <![endif]-->
- <!-- Fav and touch icons -->
- <link rel="apple-touch-icon-precomposed" sizes="144x144" href="${ctx}/assets/lib/design/apple-touch-icon-144-precomposed.png">
- <link rel="apple-touch-icon-precomposed" sizes="114x114" href="${ctx}/assets/lib/design/apple-touch-icon-114-precomposed.png">
- <link rel="apple-touch-icon-precomposed" sizes="72x72" href="${ctx}/assets/lib/design/apple-touch-icon-72-precomposed.png">
- <link rel="apple-touch-icon-precomposed" href="${ctx}/assets/lib/design/apple-touch-icon-57-precomposed.png">
- <link rel="shortcut icon" href="${ctx}/assets/lib/design/favicon.png">
- <link href="${ctx}//assets/lib/jqueryui/jquery-ui.theme.css" rel="stylesheet">
- <script type="text/javascript" src="${ctx}/assets/lib/design/jquery.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/design/jquery-ui.min.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/design/jquery.ui.touch-punch.min.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/design/bootstrap.min.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/design/jquery.htmlclean.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/design/scripts.min.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/design/myscripts.js"></script>
-
- <link rel='stylesheet' href='${ctx}/assets/lib/colorpicker/evol-colorpicker.css' />
- <script src='${ctx}/assets/lib/colorpicker/evol-colorpicker.js'></script>
-
- <link href="${ctx}/assets/lib/design/css/style.css" rel="stylesheet">
-
- </head>
- <body class="edit">
- <div class="navbar navbar-inverse navbar-fixed-top navbar-layoutit">
- <div class="navbar-header">
- <button data-target="navbar-collapse" data-toggle="collapse" class="navbar-toggle" type="button">
- <span class="glyphicon-bar"></span>
- <span class="glyphicon-bar"></span>
- <span class="glyphicon-bar"></span>
- </button>
- <a class="navbar-brand" href="index.html">
- <img src="${ctx}/assets/lib/design/favicon.png" />
- 页面设计器
- <span class="label label-default">4.0</span>
- </a>
- </div>
- <div class="collapse navbar-collapse">
- <ul class="nav" id="menu-layoutit">
- <li>
- <div class="btn-group" data-toggle="buttons-radio">
- <button type="button" id="edit" class="active btn btn-xs btn-primary"> <i class="glyphicon glyphicon-edit "></i>
- 编辑
- </button>
- <button type="button" class="btn btn-xs btn-primary" id="devpreview">
- <i class="glyphicon-eye-close glyphicon"></i>
- 开发
- </button>
- <button type="button" class="btn btn-xs btn-primary" id="sourcepreview">
- <i class="glyphicon-eye-open glyphicon"></i>
- 预览
- </button>
- </div>
- <div class="btn-group">
- <button type="button" class="btn btn-xs btn-primary" id="button-download-modal" data-target="#downloadModal" role="button" data-toggle="modal"> <i class="glyphicon-chevron-down glyphicon"></i>
- 下载
- </button>
- <button class="btn btn-xs btn-primary" id="button-save-modal" onclick="saveHtmlLayout('${tmpFile}')" role="button" data-toggle="modal" data-target="#saveModal"> <i class="glyphicon-share glyphicon"></i>
- 保存
- </button>
- <button class="btn btn-xs btn-primary" href="#clear" id="clear" >
- <i class="glyphicon-trash glyphicon"></i>
- 清空
- </button>
- <button class="btn btn-xs btn-primary" href="#" rel="myconfig1" >
- <i class="glyphicon glyphicon-edit "></i>
- 页面属性
- </button>
- <div style="display:none">
- <input class="prop colorpicker" ref="background-color" style="width:120px;">
- </div>
- </div>
- </li>
- </ul>
- </div>
- <!--/.navbar-collapse -->
- </div>
- <!--/.navbar-fixed-top -->
- <div class="container">
- <div class="row">
- <div class="">
- <div class="sidebar-nav">
- <ul class="nav nav-list accordion-group">
- <li class="nav-header">
- <div class="pull-right popover-info">
- <i class="glyphicon glyphicon-question-sign"></i>
- <div class="popover fade right">
- <div class="arrow"></div>
- <h3 class="popover-title">帮助</h3>
- <div class="popover-content">
- 在这里设置你的栅格布局, 栅格总数默认为12, 用空格分割每列的栅格值, 如果您需要了解更多信息,请访问
- <a href="http://v3.bootcss.com/css/#grid">BOOTSTRAP栅格系统.</a>
- </div>
- </div>
- </div>
- <i class="glyphicon-plus glyphicon"></i>
- 布局设置
- </li>
- <li class="rows" id="estRows">
- <div class="lyrow">
- <a href="#close" class="remove label label-danger">
- <i class="glyphicon-remove glyphicon"></i>
- 删除
- </a>
- <span class="drag label label-default">
- <i class="glyphicon glyphicon-move"></i>
- 拖动
- </span>
- <div class="preview">
- <input type="text" value="12" class="form-control"></div>
- <div class="view">
- <div class="row clearfix">
- <div class="col-md-12 column"></div>
- </div>
- </div>
- </div>
- <div class="lyrow">
- <a href="#close" class="remove label label-danger">
- <i class="glyphicon-remove glyphicon"></i>
- 删除
- </a>
- <span class="drag label label-default">
- <i class="glyphicon glyphicon-move"></i>
- 拖动
- </span>
- <div class="preview">
- <input type="text" value="6 6" class="form-control"></div>
- <div class="view">
- <div class="row clearfix">
- <div class="col-md-6 column"></div>
- <div class="col-md-6 column"></div>
- </div>
- </div>
- </div>
-
- <div class="lyrow">
- <a href="#close" class="remove label label-danger">
- <i class="glyphicon-remove glyphicon"></i>
- 删除
- </a>
- <span class="drag label label-default">
- <i class="glyphicon glyphicon-move"></i>
- 拖动
- </span>
- <div class="preview">
- <input type="text" value="4 8" class="form-control"></div>
- <div class="view">
- <div class="row clearfix">
- <div class="col-md-4 column"></div>
- <div class="col-md-8 column"></div>
- </div>
- </div>
- </div>
-
- <div class="lyrow">
- <a href="#close" class="remove label label-danger">
- <i class="glyphicon-remove glyphicon"></i>
- 删除
- </a>
- <span class="drag label label-default">
- <i class="glyphicon glyphicon-move"></i>
- 拖动
- </span>
- <div class="preview">
- <input type="text" value="2 4 4 2" class="form-control"></div>
- <div class="view">
- <div class="row clearfix">
- <div class="col-md-2 column"></div>
- <div class="col-md-4 column"></div>
- <div class="col-md-4 column"></div>
- <div class="col-md-2 column"></div>
- </div>
- </div>
- </div>
-
- <div class="lyrow">
- <a href="#close" class="remove label label-danger">
- <i class="glyphicon-remove glyphicon"></i>
- 删除
- </a>
- <span class="drag label label-default">
- <i class="glyphicon glyphicon-move"></i>
- 拖动
- </span>
- <div class="preview">
- <input type="text" value="8 4" class="form-control"></div>
- <div class="view">
- <div class="row clearfix">
- <div class="col-md-8 column"></div>
- <div class="col-md-4 column"></div>
- </div>
- </div>
- </div>
- <div class="lyrow">
- <a href="#close" class="remove label label-danger">
- <i class="glyphicon-remove glyphicon"></i>
- 删除
- </a>
- <span class="drag label label-default">
- <i class="glyphicon glyphicon-move"></i>
- 拖动
- </span>
- <div class="preview">
- <input type="text" value="4 4 4" class="form-control"></div>
- <div class="view">
- <div class="row clearfix">
- <div class="col-md-4 column"></div>
- <div class="col-md-4 column"></div>
- <div class="col-md-4 column"></div>
- </div>
- </div>
- </div>
- <div class="lyrow">
- <a href="#close" class="remove label label-danger">
- <i class="glyphicon-remove glyphicon"></i>
- 删除
- </a>
- <span class="drag label label-default">
- <i class="glyphicon glyphicon-move"></i>
- 拖动
- </span>
- <div class="preview">
- <input type="text" value="2 6 4" class="form-control"></div>
- <div class="view">
- <div class="row clearfix">
- <div class="col-md-2 column"></div>
- <div class="col-md-6 column"></div>
- <div class="col-md-4 column"></div>
- </div>
- </div>
- </div>
- </li>
- </ul>
- <#list widgetTypes as widgetType>
- <ul class="nav nav-list accordion-group">
- <li class="nav-header">
- <i class="glyphicon glyphicon-plus"></i>
- ${widgetType.dictvalue}
- <div class="pull-right popover-info">
- <i class="glyphicon glyphicon-question-sign "></i>
- <div class="popover fade right">
- <div class="arrow"></div>
- <h3 class="popover-title">帮助</h3>
- <div class="popover-content">
- 将组件元素拖放入你需要放入的栅格列中。之后,你可以设置该组件的样式
- </div>
- </div>
- </div>
- </li>
- <li class="boxes mute">
- <#list widgets as widget>
- <#if widget.WidgetType==widgetType.keyid>
- <div class="box box-element">
- <a href="#close" class="remove label label-danger">
- <i class="glyphicon glyphicon-remove"></i>
- 删除
- </a>
- <span class="drag label label-default">
- <i class="glyphicon glyphicon-move"></i>
- 拖动
- </span>
- <div class="configuration">
- <a class="btn btn-xs btn-default " href="#" rel="myconfig">属性</a>
- <div style="display:none">
- ${widget.WidgetConfig!}
- </div>
- </div>
- <div class="preview">${widget.widgetname!}</div>
- <div class="view">
- ${widget.WidgetCode!}
- </div>
- </div>
- </#if>
- </#list>
- </li>
- </ul>
- </#list>
- </div>
- </div>
- <!--/span-->
- <div class="demo">
- ${layout}
- </div>
- <!--/span-->
- <div id="download-layout">
- <div class="container"></div>
- </div>
- </div>
- <!--/row-->
- </div>
- <!--/.fluid-container-->
- <script type="text/javascript">
- function saveLayout(){
- return;
- $.ajax({
- type: "POST",
- url: "/build_v3/saveLayout",
- data: { 'layout-v3': $('.demo').html() },
- success: function(data) {
- //updateButtonsVisibility();
- }
- });
- }
-
- //下载代码
- function downloadLayout(){
- $.ajax({
- type: "POST",
- url: "/build_v3/downloadLayout",
- data: { 'layout-v3': $('#download-layout').html() },
- success: function(data) { window.location.href = 'download.html'; }
- });
- }
-
- function downloadHtmlLayout(){
- $.ajax({
- type: "POST",
- url: "/build_v3/downloadLayout",
- data: { 'layout-v3': $('#download-layout').html() },
- success: function(data) { window.location.href = 'downloadhtml.html'; }
- });
- }
- function undoLayout() {
-
- $.ajax({
- type: "POST",
- url: "/build_v3/getPreviousLayout",
- data: { },
- success: function(data) {
- undoOperation(data);
- }
- });
- }
- function redoLayout() {
-
- $.ajax({
- type: "POST",
- url: "/build_v3/getPreviousLayout",
- data: { },
- success: function(data) {
- redoOperation(data);
- }
- });
- }
- $(document).on('hidden.bs.modal', function (e) {
- $(e.target).removeData('bs.modal');
- });
- $('body').on('click', '#continue-share-non-logged', function () {
- $('#share-not-logged').hide();
- $('#share-logged').removeClass('hide');
- $('#share-logged').show();
- });
- $('body').on('click', '#continue-download-non-logged', function () {
- $('#download-not-logged').hide();
- $('#download').removeClass('hide');
- $('#download').show();
- $('#downloadhtml').removeClass('hide');
- $('#downloadhtml').show();
- $('#download-logged').removeClass('hide');
- $('#download-logged').show();
- });
- $(function(){
- $.each(${columns},function(i, item){
- $(".bindColumn").append("<option value='"+item.id+"'>"+item.name+"</option>");
- })
- })
- </script>
- <div class="modal fade" id="downloadModal" tabindex="-1" role="dialog" aria-labelledby="downloadModalLabel" aria-hidden="true">
- <div class="modal-dialog">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
- <h4 class="modal-title">下载</h4>
- </div>
- <div class="modal-body">
- <div id="download-logged" class="" >
- <p>
- <textarea></textarea>
- </p>
- </div>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
- </div>
- </div>
- <!-- /.modal-content -->
- </div>
- <!-- /.modal-dialog -->
- <script type="text/javascript">
- downloadLayoutSrc();
- $('#modal-download-sign-in-button').click(function(event){
- $('.help-inline').hide();
- var form = $('#boxDownloadLoginForm');
- var ajaxLoginUrl = 'ajaxlogin.html';
- jQuery.ajax({
- type : "post",
- dataType : "json",
- url : ajaxLoginUrl,
- data : form.serialize(),
- success: function(response) {
- if(response.success){
- $('#download-not-logged').hide();
- $('#download').removeClass('hide');
- $('#download').show();
- $('#downloadhtml').removeClass('hide');
- $('#downloadhtml').show();
- $('#download-logged').removeClass('hide');
- $('#download-logged').show();
- }else {
- if(response.errors && response.errors.length > 0){
- $.each(response.errors, function(i, item) {
- $('#'+item.field+'-download-error').html(item.error);
- $('#'+item.field+'-download-error').show();
- });
- }
- }
- },
- error: function(response) {
-
- }
- });
-
- return false;
- });
- </script>
- </div>
- <!-- 属性对话框 -->
- <div class="modal fade" id="myconfigModal" tabindex="-1" role="dialog" aria-labelledby="myconfigModalLabel" aria-hidden="true">
- <div class="modal-dialog">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
- <h4 class="modal-title">属性</h4>
- </div>
- <div class="modal-body">
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
- </div>
- </div>
- <!-- /.modal-content -->
- </div>
- <!-- /.modal-dialog -->
- <script type="text/javascript">
- </script>
- </div>
- <div class="modal fade" id="shareModal" tabindex="-1" role="dialog" aria-labelledby="shareModalLabel" aria-hidden="true"></div>
- <div class="modal fade" id="feedbackModal" tabindex="-1" role="dialog" aria-labelledby="feedbackModalLabel" aria-hidden="true">
- <div class="modal-dialog">
- <div class="modal-content">
- <div class="modal-body">
- <div id="download-logged" class="" >
- <div class="alert alert-info">
- 有任何问题,可邮件联系
- <a href="mailto:admin@ibootstrap.cn">admin@ibootstrap.cn</a>
- </div>
- </div>
- </div>
- </div>
- <!-- /.modal-content -->
- </div>
- <!-- /.modal-dialog -->
- </div>
- <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
- <div class="modal-dialog">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
- <h4 class="modal-title" id="myModal1">修改相关信息</h4>
- </div>
- <div class="modal-body">
- <form class="form-horizontal">
- <div class="row">
- <div class="form-group">
- <label class="col-sm-4 control-label">填写相关内容</label>
- <div class="col-sm-8">
- <input type="text" class="form-control"/>
- </div>
- </div>
- </div>
- </form>
-
- </div>
- <div class="modal-footer" style="text-align:center">
- <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
- <button type="button" class="btn btn-primary" id="save">保存</button>
- </div>
- </div>
- <!-- /.modal-content -->
- </div>
- <!-- /.modal-dialog -->
- </div>
- </body>
- </html>
|