Initial commit

This commit is contained in:
易焱
2021-04-18 18:51:51 +08:00
commit ec705f2fa8
3240 changed files with 623103 additions and 0 deletions
+156
View File
@@ -0,0 +1,156 @@
<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('add')}" method="post" class="form-horizontal" onsubmit="return save_form(this);" >
<!--基本信息开始-->
<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" autocomplete="off"/>
</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}">{$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}" {$admin_lang==$key?'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" autocomplete="off"/>
</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">静态页:/pages/index.html</option>
<option value="rewrite">伪静态:/pages_1/index.html</option>
<option value="dynamic">动态页: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="/pages/"/>
</div>
</div>
<div class="control-group">
<label class="control-label">网页关键词</label>
<div class="controls">
<input type="text" name="pagekey" autocomplete="off"/>
</div>
</div>
<div class="control-group">
<label class="control-label">网页描述</label>
<div class="controls">
<input type="text" name="pagedes" autocomplete="off"/>
</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"/> <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="select count(*) as total from __CMS_NEWS__ where catid=1 and checked=1"/><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="select * from __CMS_NEWS__ where catid=1 and checked=1"/><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="0"/> 条信息(0为不限制)
</div>
</div>
<div class="control-group">
<label class="control-label">每页显示</label>
<div class="controls">
<input type="text" name="lencord" value="20"/> 条信息
</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>
+157
View File
@@ -0,0 +1,157 @@
<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>
+70
View File
@@ -0,0 +1,70 @@
<include file="Inc:header"/>
<style>
.table-bordered .icon-ok{ color:#468847}
.table-bordered .icon-remove{ color:#ff0000}
</style>
<div class="container-fluid">
<div class="main_head">
<div class="main_h1"><h1>{$pagetitle}</h1></div>
<div class="main_add">
<a class="btn btn-inverse" href="{:U("add")}">添加列表</a>
</div>
</div>
<div style="text-align:right; float:right"></div>
<div class="row-fluid">
<div class="span12">
<div class="widget-box">
<div class="widget-content nopadding">
<form method="post" action="__SELF__" onsubmit="return save_form2(this);" class="modelIndex">
<table class="table table-bordered table-striped">
<thead>
<tr>
<th width="5%">ID</th>
<th width="40%">页面名称</th>
<?php
if(C('LANG_SWITCH_ON')){
?>
<th width="10%">语言</th>
<?php
}
?>
<th width="10%">模板调用URL</th>
<th width="10%">预览</th>
<th width="15%">操作</th>
</tr>
</thead>
<tbody>
<foreach name="data" item="v" >
<tr>
<td style="text-align: center;">{$v.pages_id}</td>
<td class="center tab-title"><a href="{:pagesurl($v[pages_id])}" target="_blank">{$v.name}</a></td>
<?php
if(C('LANG_SWITCH_ON')){
?>
<td class="center">{:$LANG_OPT[$v[lang]]?$LANG_OPT[$v[lang]]:'-'}</td>
<?php
}
?>
<td style="text-align: center;"><literal>{:pagesurl(</literal>{$v.pages_id}<literal>)}</literal></td>
<td class="center tab-title"><a href="{:pagesurl($v[pages_id])}" target="_blank">查看</a></td>
<td class="center">
<a href="{:U("editor",array("pages_id"=>$v[pages_id]))}" class="btn btn-primary btn-mini">修改</a>
<a href="{:U('delete',array("pages_id"=>$v[pages_id]))}" class="btn btn-danger btn-mini ajax_del">删除</a>
</td>
</tr>
</foreach>
</tbody>
</table>
</form>
</div>
</div>
</div>
</div>
</div>
<include file="Inc/footer"/>