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
+43
View File
@@ -0,0 +1,43 @@
<include file="Inc:head"/>
<div class="widget-box2" style="margin:0px;">
<div class="widget-content nopadding">
<form action="__SELF__" method="post" class="form-horizontal" onsubmit="return save_form2(this)">
<input type="hidden" name="pubid" value="{$pubid}">
<div class="control-group">
<label class="control-label">名称</label>
<div class="controls"><input type="text" name="name" value=""></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}">{$v}</option>
</foreach>
</select>
</div>
</div>
<?php
}
?>
<div class="control-group">
<label class="control-label">缩略图<span></span></label>
<div class="controls">
<input type="text" name="thumb" id="info_thumb" value="<?=$r?$r['thumb']:''?>" style="width:280px;"/><button type="button" class="choose_file" onClick="selectfile('info_thumb','','img')">选择图片</button>
</div>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-success form_submit">确定</button>
<button type="button" class="btn btn-danger" id="closeIframe">关闭</button>
</div>
</form>
</div>
</div>
<include file="Inc/foot" noiframeauto="true" noautotitle="true"/>
@@ -0,0 +1,51 @@
<include file="Inc:head"/>
<div class="widget-box2" style="margin:0px;">
<div class="widget-content nopadding">
<form action="__SELF__" method="post" class="form-horizontal" onsubmit="return save_form2(this)">
<input type="hidden" name="catid" value="{$r.catid}">
<input type="hidden" name="pubid" value="{$r.pubid}">
<div class="control-group">
<label class="control-label">名称</label>
<div class="controls"><input type="text" name="name" value="{$r.name}" class="input-big span11"></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">缩略图<span></span></label>
<div class="controls">
<input type="text" name="thumb" id="info_thumb" value="<?=$r?$r['thumb']:''?>" style="width:280px;"/> <button type="button" class="choose_file" onClick="selectfile('info_thumb','','img')">选择图片</button>
</div>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-success form_submit">确定</button>
<button type="button" class="btn btn-danger" id="closeIframe">关闭</button>
</div>
</form>
</div>
</div>
<include file="Inc/foot" noiframeauto="true" noautotitle="true"/>
<script language="javascript">
$(function(){
//修改的时候上级栏目不能选择自己,否则就看不到自己了
$("select[name='pid'] option[value='{$r.catid}']").attr('disabled','true');
})
</script>
+67
View File
@@ -0,0 +1,67 @@
<include file="Inc:head"/>
<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 iframe" href="{:U("add",array("pid"=>$pid,"modelid"=>$modelid))}">添加分类</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_form(this,function(){window.history.go(0)});" class="modelIndex">
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>排序</th>
<th>catid</th>
<th>名称</th>
<?php
if(C('LANG_SWITCH_ON')){
?>
<th>语言</th>
<?php
}
?>
<th>操作</th>
</tr>
</thead>
<tbody>
<foreach name="data" item="v" >
<tr>
<td style="text-align: center;"><input type='text' value="{$v.sort}" name="sort[]" class="" style="width:30px;height:10px; margin:0px;"><input type='hidden' value="{$v.catid}" name="ids[]"></td>
<td style="text-align: center;">{$v.catid}</td>
<?php
if(C('LANG_SWITCH_ON')){
?>
<td class="center">{:$LANG_OPT[$v[lang]]?$LANG_OPT[$v[lang]]:'-'}</td>
<?php
}
?>
<td class="center">{$v[name]}</td>
<td class="center">
<a href="{:U("editor",array("catid"=>$v[catid]))}" class="btn btn-primary btn-mini iframe">修改</a>
<a href="{:U('delete',array("catid"=>$v[catid]))}" class="btn btn-danger btn-mini ajax_del">删除</a>
</td>
</tr>
</foreach>
</tbody>
</table>
</form>
</div>
</div>
<div class="widget-bottom">
<button class="btn btn-success" onclick="$('.modelIndex').attr('action','{:U('sort')}');$('.modelIndex').submit();" type="button">修改顺序</button>
</div>
</div>
</div>
</div>
<include file="Inc/foot" noiframeauto="true" noautotitle="true"/>