Initial commit
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
|
||||
<form action="__SELF__" method="post" class="form-horizontal" onsubmit="return save_form(this);" >
|
||||
<input type="hidden" name="pubid" value="{$pubid}">
|
||||
<input type="hidden" name="modelid" value="{$modelid}">
|
||||
<!--模型字段开始-->
|
||||
<div class="sub-nav-tab" style="display:block">
|
||||
<?php
|
||||
include_once($modelform);
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<!--模型字段结束-->
|
||||
|
||||
|
||||
<button type="submit" class="btn btn-success form_submit">提交</button>
|
||||
<button type="button" class="btn btn-danger" onclick="cancel()">返回</button>
|
||||
|
||||
</form>
|
||||
<script src="/Public/Admin/js/jquery.min.js"></script>
|
||||
<script src="/Public/Admin/layer/layer.js"></script>
|
||||
<script src="/Public/Admin/js/globals.js"></script>
|
||||
<!--编辑器-->
|
||||
<link href="/Public/umeditor/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
|
||||
<script type="text/javascript" charset="utf-8" src="/Public/umeditor/umeditor.config.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="/Public/umeditor/umeditor.min.js"></script>
|
||||
<script type="text/javascript" src="/Public/umeditor/lang/zh-cn/zh-cn.js"></script>
|
||||
<!--编辑器end-->
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
//循环实例化编辑器
|
||||
$(".news_editor").each(function(){
|
||||
var editor_name=$(this).attr("editor_name");
|
||||
var editor_width=$(this).attr("editor_width");
|
||||
var editor_height=$(this).attr("editor_height");
|
||||
var um = UM.getEditor(editor_name, {
|
||||
initialFrameHeight: editor_height>0?editor_height:"400",
|
||||
initialFrameWidth: editor_width>0?editor_width:'90%',
|
||||
});
|
||||
})
|
||||
|
||||
})
|
||||
</script>
|
||||
<!--编辑器结束-->
|
||||
<!--图片上传-->
|
||||
<script type="text/javascript" src="/Public/js/ajaxupload.js"></script>
|
||||
<script>
|
||||
function imgcall(url){
|
||||
$(".thumb").val(url);
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,3 @@
|
||||
<foreach name="data" item="v">
|
||||
<li><a href="{:U('add',array('modelid'=>$v['modelid']))}">{$v.name}</a></li>
|
||||
</foreach>
|
||||
Reference in New Issue
Block a user