157 lines
8.6 KiB
HTML
157 lines
8.6 KiB
HTML
<include file="Inc:header"/>
|
||
<style>
|
||
.div-li{ width: 25%; float: left; height: 40px; line-height 40px;}
|
||
</style>
|
||
<div class="container-fluid">
|
||
<div class="main_head">
|
||
|
||
</div>
|
||
|
||
<div style="text-align:right; float:right"></div>
|
||
|
||
<div class="row-fluid">
|
||
<div class="span12">
|
||
<div class="widget-box">
|
||
<div class="widget-title"> <span class="icon"> <i class=" icon-align-justify"></i> </span>
|
||
|
||
<ul class="sub-nav">
|
||
<li>{$pagetitle}</li>
|
||
</ul>
|
||
|
||
</div>
|
||
<div class="widget-content nopadding">
|
||
<form action="{:U('editor')}" method="post" class="form-horizontal" onsubmit="return save_form(this);" >
|
||
<input type="hidden" name="pages_id" value="{$r.pages_id}">
|
||
<input type="hidden" name="pubid" value="{$r.pubid}">
|
||
<!--基本信息开始-->
|
||
<div class="sub-nav-tab" style="display:block">
|
||
<div class="control-group">
|
||
<label class="control-label">页面名称</label>
|
||
<div class="controls">
|
||
<input type="text" name="name" value="{$r.name}"/>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">使用的模板</label>
|
||
<div class="controls">
|
||
<select name="template_id">
|
||
<foreach name="pagetemplate" item="v">
|
||
<option value="{$v.template_id}" {$r[template_id]==$v[template_id]?"selected":""}>{$v.name}</option>
|
||
</foreach>
|
||
</select>
|
||
</div>
|
||
</div>
|
||
<?php
|
||
if(C('LANG_SWITCH_ON')){
|
||
?>
|
||
<div class="control-group">
|
||
<label class="control-label">语言</label>
|
||
<div class="controls">
|
||
<select name="lang">
|
||
<option value="">请选择语言</option>
|
||
<foreach name="LANG_OPT" item="v">
|
||
<option value="{$key}" {$key==$r[lang]?"selected":""}>{$v}</option>
|
||
</foreach>
|
||
</select>
|
||
</div>
|
||
</div>
|
||
<?php
|
||
}
|
||
?>
|
||
<div class="control-group">
|
||
<label class="control-label">网页标题</label>
|
||
<div class="controls">
|
||
<input type="text" name="pagetitle" value="{$r.pagetitle}"/>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">URL<span></span></label>
|
||
<div class="controls">
|
||
<select name="path_type" class="path_type" onchange="checkpath_type()">
|
||
<option value="static" {$r[path_type]=="static"?"selected":""}>静态页:/pages/index.html</option>
|
||
<option value="rewrite" {$r[path_type]=="rewrite"?"selected":""}>伪静态:/pages_1/index.html</option>
|
||
<option value="dynamic" {$r[path_type]=="dynamic"?"selected":""}>动态页:index.php?m=home&c=pages&a=index&pages_id=1</option>
|
||
</select>
|
||
</div>
|
||
</div>
|
||
<div class="control-group control-classpath">
|
||
<label class="control-label">保存路径<span>仅支持:英文,字母,下划线</span></label>
|
||
<div class="controls">
|
||
<input type="text" placeholder="" name="classpath" value="{$r.classpath}"/>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">网页关键词</label>
|
||
<div class="controls">
|
||
<input type="text" name="pagekey" value="{$r.pagekey}"/>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">网页描述</label>
|
||
<div class="controls">
|
||
<input type="text" name="pagedes" value="{$r.pagedes}"/>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">缩略图</label>
|
||
<div class="controls">
|
||
<input type="text" name="thumb" id="thumb" class="span6 modelform_thumb" value="{$r.thumb}"/> <button type="button" onClick="selectfile('thumb','','img')">选择图片</button>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">统计sql语句</label>
|
||
<div class="controls">
|
||
<input type="text" name="count_sql" class='span11' value="{$r.count_sql}"/><br>
|
||
(如:select count(*)as total from __CMS_NEWS__ where catid=1 and checked=1) [表名请使用大写前后分别加两个下划线,如:__CMS_NEWS__ 不需要加前缀]
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">查询sql语句</label>
|
||
<div class="controls">
|
||
<input type="text" name="select_sql" class='span11' value="{$r.select_sql}"/><br>
|
||
(如:select * from __CMS_NEWS__ where catid=1 and checked=1) [表名请使用大写前后分别加两个下划线,如:__CMS_NEWS__ 不需要加前缀]
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">查询总条数</label>
|
||
<div class="controls">
|
||
<input type="text" name="num_limit" value="{$r.num_limit}"/> 条信息(0为不限制)
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">每页显示</label>
|
||
<div class="controls">
|
||
<input type="text" name="lencord" value="{$r.lencord}"/> 条信息
|
||
</div>
|
||
</div>
|
||
|
||
|
||
</div>
|
||
<!--基本信息结束-->
|
||
<div class="form-actions">
|
||
<button type="submit" class="btn btn-success form_submit">提交</button>
|
||
<button type="button" class="btn btn-danger" onclick="cancel()">返回</button>
|
||
</div>
|
||
|
||
</form>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<include file="Inc/footer"/>
|
||
<script>
|
||
function checkpath_type(){
|
||
var path_type=$(".path_type").val();
|
||
if(path_type=="static"){
|
||
$(".control-classpath").show();
|
||
}else{
|
||
$(".control-classpath").hide();
|
||
$("input[name='classpath']").val("");
|
||
}
|
||
}
|
||
checkpath_type();
|
||
</script> |