qa-ifish7/web/Application/Runtime/Cache/Admin/394ab3bdccc39995705c722dbf0...

377 lines
21 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-cn">
<head>
<title>
<?php if($pagetitle): echo ($pagetitle); ?>-
<?php else: endif; ?>
<?php echo (C("CMS_NAME")); ?>
</title>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="stylesheet" href="/Public/Admin/css/bootstrap.min.css"/>
<link rel="stylesheet" href="/Public/Admin/css/bootstrap-responsive.min.css"/>
<link rel="stylesheet" href="/Public/Admin/css/uniform.css"/>
<link rel="stylesheet" href="/Public/Admin/css/colorpicker.css"/>
<link rel="stylesheet" href="/Public/Admin/css/datepicker.css"/>
<link rel="stylesheet" href="/Public/Admin/css/select2.css"/>
<link rel="stylesheet" href="/Public/Admin/css/matrix-style.css"/>
<link rel="stylesheet" href="/Public/Admin/css/matrix-media.css"/>
<link href="/Public/Admin/font-awesome/css/font-awesome.css" rel="stylesheet"/>
<link href="/Public/Admin/css/global.css" rel="stylesheet"/>
<link href="/Public/Admin/css/formSelects-v4.css" rel="stylesheet"/>
<script>
var uparr = new Array();
uparr[0] = "<?php echo U('Update/updateModel');?>";
uparr[1] = "<?php echo U('Update/updateTemplate');?>";
uparr[2] = "<?php echo U('Update/updatePageTemplate');?>";
uparr[3] = "<?php echo U('Update/updateCatCache');?>";
uparr[4] = "<?php echo U('Update/updateModelCache');?>";
uparr[5] = "<?php echo U('Update/updateFeedbackModel');?>";
uparr[6] = "<?php echo U('Update/del_runtime');?>";
function updateCache() {
//初始化
var progress = '<div class="bakeing"><div class="progress progress-striped active"><div class="bar" id="database_bar" style="width:1%;">1%</div></div></div>';
$("body").append(progress);
$(".bakeing").show();
$("body").css("overflow", "hidden");
window.onbeforeunload = function () {
return "正在更新缓存,请不要关闭!"
}
//初始化成功,下面开始备份数据
updateCache_ajax(0);
}
function updateCache_ajax(i) {
//更新完成
if (i == uparr.length) {
window.onbeforeunload = function () {
return null
}
setTimeout(function () {
$(".bakeing").remove();
}, 1000);
} else {
$.get(uparr[i], function () {
var progress_percent = (i + 1) / uparr.length;
progress_percent = progress_percent * 100;
progress_percent = progress_percent.toFixed(2);
$("#database_bar").html(progress_percent + "%");
$("#database_bar").css("width", progress_percent + "%");
updateCache_ajax(i + 1);
}, "json")
}
}
</script>
</head>
<body>
<div id="header">
<h1><a href="dashboard.html"><?php echo (C("setting.admin_site_name")); ?></a></h1>
</div>
<div id="user-nav" class="navbar navbar-inverse">
<ul class="nav">
<li class="dropdown" id="profile-messages"><a title="" href="#" data-toggle="dropdown"
data-target="#profile-messages" class="dropdown-toggle"><i
class="icon icon-user"></i> <span class="text">我的</span><b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="<?php echo U('Index/editorpass');?>" class="iframe"><i class="icon-user"></i> 密码修改</a></li>
<li class="divider"></li>
<li><a href="#" onclick="logout()"><i class="icon-key"></i>退出</a></li>
</ul>
</li>
<li class="dropdown" id="profile-messages1">
<a title="" href="<?php echo U('Update/index');?>" data-toggle="dropdown" data-target="#profile-messages1"
class="dropdown-toggle iframe" width="920px" height="660px"><i class="icon icon-file"></i> <span
class="text">更新</span></a>
</li>
<li class="dropdown" id="profile-messages2">
<a title="" href="#" data-toggle="dropdown" data-target="#profile-messages2" class="dropdown-toggle"><i
class="icon icon-file"></i> <span class="text">手册</span><b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="https://gitee.com/jijinsoft/dashboard/wikis/jijinsoft/PbfcAKgo/preview?doc_id=264834"
target="_blank"><i class=" icon-wrench"></i>开发手册</a></li>
<li class="divider"></li>
<li><a href="http://document.thinkphp.cn/manual_3_2.html" target="_blank"><i
class=" icon-screenshot"></i>TP3.2手册</a></li>
</ul>
</li>
<li class=""><a href="/" target="_blank"><i class="icon icon-home"></i> <span class="text">首页</span></a></li>
</ul>
</div>
<?php
if(C('LANG_SWITCH_ON')){ ?>
<div id="search">
<div class="btn-group" style="margin-top:9px;">
<button data-toggle="dropdown" class="btn btn-success dropdown-toggle">
语言切换<?php echo $LANG_OPT[$admin_lang]?''.$LANG_OPT[$admin_lang]:'';?> <span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="<?php echo U('Index/setAdminLang',array('admin_lang'=>''));?>">不限</a></li>
<li class="divider"></li>
<?php if(is_array($LANG_OPT)): foreach($LANG_OPT as $key=>$v): ?><li><a href="<?php echo U('Index/setAdminLang',array('admin_lang'=>$key));?>"><?php echo ($v); ?></a></li>
<li class="divider"></li><?php endforeach; endif; ?>
</ul>
</div>
</div>
<?php
} ?>
<div id="sidebar"><a href="#" class="visible-phone"><i class="icon icon-home"></i> Dashboard</a>
<ul class="menu_list">
<li><a href="/index.php/Admin"><i class="icon icon-home"></i> <span>控制面板</span> <span
class="label label-important"></span></a></li>
<li class="submenu <?=menu_current('Info/index')||menu_current('Info/add')||menu_current('Info/editor')?" open
":"" ?>"><a href="/index.php/Admin"><i class="icon icon-retweet"></i> <span>信息管理</span> <span
class="label label-important"></span></a>
<ul>
<?php if(is_array($modeldate)): foreach($modeldate as $key=>$v): ?><li class="<?=$v[catid]==$currentCatid?" active
":"" ?>"><a
href="<?php echo U('Info/index',array('catid'=>$v[catid],'modelid'=>$v[modelid]));?>"><?php echo ($v["name"]); ?></a></li><?php endforeach; endif; ?>
</ul>
</li>
<?php if(is_array($__MENU__)): foreach($__MENU__ as $key=>$v): ?><li class="<?=count($v[child])?" submenu
":"" ?> <?=menu_current($v)?"open ":"" ?>"><a href="<?=count($v[child])?" #":U($v[name]) ?>"><i
class="icon <?php echo ($v["icon"]); ?>"></i> <span><?php echo ($v["title"]); ?></span> <span class="label label-important"></span></a>
<ul>
<?php if(is_array($v["child"])): foreach($v["child"] as $key=>$vv): ?><li class="<?=menu_current($vv)?" active
":"" ?>"><a href="<?php echo (U($vv[name])); ?>"><?php echo ($vv["title"]); ?></a></li><?php endforeach; endif; ?>
</ul>
</li><?php endforeach; endif; ?>
</ul>
</div>
<div id="nav_content">
<div id="content-header">
<div id="breadcrumb"><?php echo admin_nav();?></div>
<div class="nav_notic" id="s1">
<ul><?php echo nav_notic();?></ul>
</div>
</div>
<div class="container-fluid">
<div class="main_head">
<div class="main_tab" style="width:40%; margin-top:10px;">
<label>
<select name="catid" class="select2" style="min-width:300px;" onchange="goLink(this)"><?php echo ($catOption); ?></select>
</label>
</div>
<div class="main_add" style="width:60%;">
<form action="/index.php/Admin/Info/index" method="get">
<a href="<?php echo U('index',array('modelid'=>$modelid,'catid'=>$catid));?>" class="btn <?=$_GET[checked]?"":"on"?>">所有信息</a>
<a href="<?php echo U('index',array('modelid'=>$modelid,'catid'=>$catid,'checked'=>1));?>" class="btn <?=$_GET[checked]=='1'?"on":""?>">已审核</a>
<a href="<?php echo U('index',array('modelid'=>$modelid,'catid'=>$catid,'checked'=>9));?>" class="btn <?=$_GET[checked]=='9'?"on":""?>">待审核</a>
<a href="<?php echo U('Info/import',array('modelid'=>$modelid));?>" class="btn iframe2 <?php echo check_user_node('Info/import')?'':'none';?>">数据导入</a>
<input type="hidden" name="modelid" value="<?php echo ($modelid); ?>">
<input type="hidden" name="catid" value="<?php echo ($catid); ?>">
<input type="hidden" name="checked" value="<?php echo ($_GET[checked]); ?>">
<label>关键词:<input name="keywords" value="<?php echo I('get.keywords');?>" class="span2"></label>
<button class="btn btn-inverse">搜索</button>
<a class="btn btn-inverse <?php echo check_user_node('info/add')?'':'none';?>" href="<?php echo U('add',array('modelid'=>$modelid,'catid'=>$catid));?>" style="margin-left:10px;">+增加信息</a>
</form>
</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="/index.php?m=Admin&amp;c=Info&amp;a=index&amp;catid=15&amp;modelid=6" onsubmit="return save_form(this,function(data){layer.msg(data,{time:500},function(){parent.location.reload();});});" class="modelIndex">
<input type="hidden" name="modelid" value="<?php echo ($modelid); ?>">
<input type="hidden" name="table_name" value="<?php echo ($modelinfo["table_name"]); ?>">
<input type="hidden" name="catid" value="<?php echo ($catid); ?>">
<table class="table table-striped">
<thead>
<tr>
<th width="1%"> <input type="checkbox" value="0" class="checkall" /></th>
<th width="3%">排序</th>
<th width="3%">ID</th>
<th width="8%">分类</th>
<th width="30%" style="text-align: left;">标题</th>
<th width="8%">用户</th>
<th width="3%">浏览</th>
<th width="3%">点赞</th>
<th width="8%">时间</th>
<th width="5%">状态</th>
<th width="15%">操作</th>
</tr>
</thead>
<tbody>
<?php if(is_array($data)): foreach($data as $key=>$v): ?><tr>
<td style="text-align: center;"><input type="checkbox" name="ids[]" class="chekboxs" value="<?php echo ($v["id"]); ?>"/></td>
<td style="text-align: center;"><input type='text' value="<?php echo ($v["sort"]); ?>" name="sort[]" autocomplete="off" class="" style="width:30px;height:10px; margin:0px;"><input type='hidden' value="<?php echo ($v["id"]); ?>" name="id[]"></td>
<td style="text-align: center;"><a href="<?php echo U('Home/Update/updateSomeDetai',array('ids[]'=>$v[id],'table_name'=>$v[cat][table_name]));?>" class="ajax_update"><?php echo ($v["id"]); ?></a></td>
<td class="center tab-title"><?php echo ($v["cat"]["name"]); ?></td>
<td style="text-align: left;">
<?php if($v["is_top"] > 0 ): ?><span class="label label-warning"><?php echo ($v["is_top"]); ?>级置顶</span><?php endif; ?>
<?php if($v["is_good"] > 0 ): ?><span class="label label-info "><?php echo ($v["is_good"]); ?>级推荐</span><?php endif; ?>
<a href="<?php echo titleurl($v);?>" target="_blank">
<?php echo ($v["title"]); ?>
<?php if($v[thumb]): ?><i class="small_pic_i">[缩略图]</i><?php endif; ?>
</a>
</td>
<td class="center"><?php echo ($v["username"]); ?></td>
<td class="center"><?php echo ($v["views"]); ?></td>
<td class="center"><?php echo ($v["goods"]); ?></td>
<td class="center"><?php echo date('m/d H:i:s',$v[newstime]);?></td>
<td class="center">
<?php if($v["checked"] == 1 ): ?><span class="label label-success">已审核</span>
<?php else: ?>
<span class="label">未审核</span><?php endif; ?>
</td>
<td class="center">
<a href="<?php echo U('editor',array('id'=>$v[id],'catid'=>$v[catid],'modelid'=>$modelid));?>" class="btn btn-primary btn-mini <?php echo check_user_node('info/editor')?'':'none';?>">修改</a>
<a href="<?php echo U('delete',array('ids'=>$v[id],'catid'=>$v[catid],'modelid'=>$modelid));?>" class="btn btn-danger btn-mini ajax_del <?php echo check_user_node('info/delete')?'':'none';?>">删除</a>
</td>
</tr><?php endforeach; endif; ?>
</tbody>
</table>
</form>
</div>
</div>
<div class="widget-bottom">
<button class="btn btn-success" onclick="$('.modelIndex').attr('action','<?php echo U('sort');?>');$('.modelIndex').submit();" type="button">排序</button>
<button class="btn btn-success" onclick="$('.modelIndex').attr('action','<?php echo U('Home/Update/updateSomeDetai');?>');$('.modelIndex').submit();" type="button">刷新</button>
<button class="btn btn-danger <?php echo check_user_node('info/delete')?'':'none';?>" onclick="this_delete()" type="button">删除</button>
<div class="btn-group <?php echo check_user_node('info/set_top')?'':'none';?>">
<button data-toggle="dropdown" class="btn btn-warning droptop-toggle">置顶<span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a onclick="$('.modelIndex').attr('action','<?php echo U('set_top',array('is_top'=>0));?>');$('.modelIndex').submit();">取消置顶</a></li>
<li><a onclick="$('.modelIndex').attr('action','<?php echo U('set_top',array('is_top'=>1));?>');$('.modelIndex').submit();">一级置顶</a></li>
<li><a onclick="$('.modelIndex').attr('action','<?php echo U('set_top',array('is_top'=>2));?>');$('.modelIndex').submit();">二级置顶</a></li>
<li><a onclick="$('.modelIndex').attr('action','<?php echo U('set_top',array('is_top'=>3));?>');$('.modelIndex').submit();">三级置顶</a></li>
<li><a onclick="$('.modelIndex').attr('action','<?php echo U('set_top',array('is_top'=>4));?>');$('.modelIndex').submit();">四级置顶</a></li>
<li><a onclick="$('.modelIndex').attr('action','<?php echo U('set_top',array('is_top'=>5));?>');$('.modelIndex').submit();">五级置顶</a></li>
</ul>
</div>
<div class="btn-group <?php echo check_user_node('info/set_good')?'':'none';?>">
<button data-toggle="dropdown" class="btn btn-primary dropdown-toggle">推荐<span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a onclick="$('.modelIndex').attr('action','<?php echo U('set_good',array('is_good'=>0));?>');$('.modelIndex').submit();">取消推荐</a></li>
<li><a onclick="$('.modelIndex').attr('action','<?php echo U('set_good',array('is_good'=>1));?>');$('.modelIndex').submit();">一级推荐</a></li>
<li><a onclick="$('.modelIndex').attr('action','<?php echo U('set_good',array('is_good'=>2));?>');$('.modelIndex').submit();">二级推荐</a></li>
<li><a onclick="$('.modelIndex').attr('action','<?php echo U('set_good',array('is_good'=>3));?>');$('.modelIndex').submit();">三级推荐</a></li>
<li><a onclick="$('.modelIndex').attr('action','<?php echo U('set_good',array('is_good'=>4));?>');$('.modelIndex').submit();">四级推荐</a></li>
<li><a onclick="$('.modelIndex').attr('action','<?php echo U('set_good',array('is_good'=>5));?>');$('.modelIndex').submit();">五级推荐</a></li>
</ul>
</div>
<div class="btn-group <?php echo check_user_node('info/checked')?'':'none';?>">
<button data-toggle="dropdown" class="btn btn-inverse dropdown-toggle">审核<span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a onclick="$('.modelIndex').attr('action','<?php echo U('checked',array('checked'=>1));?>');$('.modelIndex').submit();">审核通过</a></li>
<li><a onclick="$('.modelIndex').attr('action','<?php echo U('checked',array('checked'=>0));?>');$('.modelIndex').submit();">审核不通过</a></li>
</ul>
</div>
<button class="btn btn-inverse <?php echo check_user_node('info/copy')?'':'none';?>" onclick="copy_info()" type="button">复制</button>
<button class="btn btn-inverse <?php echo check_user_node('info/move')?'':'none';?>" onclick="move_info()" type="button">移动</button>
</div>
<div class="pagination alternate">
<ul><?php echo ($listpage); ?></ul>
</div>
</div>
</div>
</div>
</div>
<div class="row-fluid"><div id="footer" class="span12"><a href="#" target="_blank"><?php echo (C("CMS_NAME")); ?></a></div>
</div>
<script src="/Public/Admin/js/jquery.min.js"></script>
<script src="/Public/Admin/js/jquery.ui.custom.js"></script>
<script src="/Public/Admin/js/jquery.uniform.js"></script>
<script src="/Public/Admin/js/select2.js"></script>
<script src="/Public/Admin/js/jquery.validate.js"></script>
<script src="/Public/Admin/js/bootstrap.min.js"></script>
<script src="/Public/Admin/js/matrix.js"></script>
<script src="/Public/Admin/layer/layer.js"></script>
<script src="/Public/Admin/js/formSelects-v4.min.js"></script>
<script src="/Public/Admin/js/globals.js"></script>
<script src="/Public/Admin/My97DatePicker/WdatePicker.js"></script>
<!--编辑器-->
<script src="/Public/ueditor/ueditor.config.js"></script>
<script src="/Public/ueditor/ueditor.all.js"></script>
<!--编辑器end-->
<!--附件插件-->
<script type="text/javascript" src="/Public/webuploader/kinderfile.js"></script>
<script type="text/javascript" src="Public/webuploader/Sortable.js"></script>
<script type="text/javascript" src="Public/webuploader/morepic.js"></script>
<!--附件插件end-->
<script language="javascript">
//nav导航旁边提示插件
function AutoScroll(obj){
$(obj).find("ul:first").animate({
marginTop:"-25px"
},500,function(){
$(this).css({marginTop:"0px"}).find("li:first").appendTo(this);
});
}
$(document).ready(function(){
setInterval('AutoScroll("#s1")',6000);
});
function logout(){
layer.confirm("您确定要退出吗?",function(){
window.location.href="<?php echo U('Public/logout');?>";
})
}
</script>
</body>
</html>
<script>
$(function(){
//分类窗口
$(".iframe2").click(function(){
var url=$(this).attr("href");
var title=$(this).html();
var index=layer.open({
type: 2,
title: title,
area: ["70%","80%"],
fixed: false, //不固定
maxmin: true,
content: [url]
});
layer.full(index);
return false;
});
})
//栏目跳转
function goLink(obj){
var catid=$(obj).val();
var url="/index.php?m=Admin&c=Info&a=index&checked=<?php echo ($_GET[checked]); ?>&catid="+catid+"&keywords=<?php echo I('get.keywords');?>";
window.location.href=url;
}
//复制信息
function copy_info(){
var data=$(".modelIndex").serializeArray();
var chk_value =[];//定义一个数组
$('input[name="ids[]"]:checked').each(function(){
chk_value.push($(this).val());
});
open_iframe("<?php echo U('copy',array('modelid'=>$modelid,'catid'=>$catid));?>&ids="+chk_value);
}
//移动信息
function move_info(){
var data=$(".modelIndex").serializeArray();
var chk_value =[];//定义一个数组
$('input[name="ids[]"]:checked').each(function(){
chk_value.push($(this).val());
});
open_iframe("<?php echo U('move',array('modelid'=>$modelid,'catid'=>$catid));?>&ids="+chk_value);
}
//
function this_delete(){
layer.confirm("您确定要删除吗?",function(){
$('.modelIndex').attr('action','<?php echo U('delete');?>');
$('.modelIndex').submit();
},function(){layer.closeAll();return false;});
}
</script>