<!DOCTYPE html>
<html>

<head>

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="renderer" content="webkit">
<title>全局参数管理</title>
<meta name="keywords" content="">
<meta name="description" content="">

<link href="{dede:global.cfg_cmsurl/}/templates/admin/css/bootstrap.min.css?v=3.4.0" rel="stylesheet">
<link href="{dede:global.cfg_cmsurl/}/templates/admin/font-awesome/css/font-awesome.css?v=4.3.0" rel="stylesheet">

<!-- Data Tables -->
<link href="{dede:global.cfg_cmsurl/}/templates/admin/css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">

<link href="{dede:global.cfg_cmsurl/}/templates/admin/css/animate.css" rel="stylesheet">
<link href="{dede:global.cfg_cmsurl/}/templates/admin/css/style.css?v=2.2.0" rel="stylesheet">
<link href="{dede:global.cfg_cmsurl/}/templates/admin/js/plugins/layer/skin/layer.css" rel="stylesheet">
<script>
var jsui={
    uri: '{dede:global.cfg_cmsurl/}'
};
</script>
<script src="{dede:global.cfg_cmsurl/}/templates/admin/js/jquery-2.1.1.min.js"></script>
<script src="{dede:global.cfg_cmsurl/}/templates/admin/js/bootstrap.min.js?v=3.4.0"></script>
<!-- Data Tables -->
<script src="{dede:global.cfg_cmsurl/}/templates/admin/js/plugins/dataTables/jquery.dataTables.js"></script>
<script src="{dede:global.cfg_cmsurl/}/templates/admin/js/plugins/dataTables/dataTables.bootstrap.js"></script>
<script src="{dede:global.cfg_cmsurl/}/templates/admin/js/plugins/layer/layer.min.js"></script>
</head>

<body>
<div id="page-wrapper" class="gray-bg dashbard-1">
            <div class="row border-bottom">
                <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
                    <div class="navbar-header">
                        <a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="{dede:global.cfg_cmsurl/}/admin/index#"><i class="fa fa-bars"></i> </a>
                        <form role="search" class="navbar-form-custom" method="post" action="search_results.html">
                            <div class="form-group">
                                <input type="text" placeholder="请输入您需要查找的内容 …" class="form-control" name="top-search" id="top-search">
                            </div>
                        </form>
                    </div>
                    <ul class="nav navbar-top-links navbar-right">
                        <li>
                            <span class="m-r-sm text-muted welcome-message"><a href="{dede:global.cfg_cmsurl/}/admin/index" title="返回首页"><i class="fa fa-home"></i></a>欢迎使用内容管理系统</span>
                        </li>
                        <li class="dropdown">
                            <a class="dropdown-toggle count-info" data-toggle="dropdown" href="index.html#">
                                <i class="fa fa-envelope"></i> <span class="label label-warning">16</span>
                            </a>
                            <ul class="dropdown-menu dropdown-messages">
                                <li>
                                    <div class="dropdown-messages-box">
                                        <a href="profile.html" class="pull-left">
                                            <img alt="image" class="img-circle" src="{dede:global.cfg_cmsurl/}/templates/admin/img/a7.jpg">
                                        </a>
                                        <div class="media-body">
                                            <small class="pull-right">46小时前</small>
                                            <strong>小四</strong> 项目已处理完结
                                            <br>
                                            <small class="text-muted">3天前 2014.11.8</small>
                                        </div>
                                    </div>
                                </li>
                                <li class="divider"></li>
                                <li>
                                    <div class="dropdown-messages-box">
                                        <a href="profile.html" class="pull-left">
                                            <img alt="image" class="img-circle" src="{dede:global.cfg_cmsurl/}/templates/admin/img/a4.jpg">
                                        </a>
                                        <div class="media-body ">
                                            <small class="pull-right text-navy">25小时前</small>
                                            <strong>国民岳父</strong> 这是一条测试信息
                                            <br>
                                            <small class="text-muted">昨天</small>
                                        </div>
                                    </div>
                                </li>
                                <li class="divider"></li>
                                <li>
                                    <div class="text-center link-block">
                                        <a href="mailbox.html">
                                            <i class="fa fa-envelope"></i> <strong> 查看所有消息</strong>
                                        </a>
                                    </div>
                                </li>
                            </ul>
                        </li>
                        <li class="dropdown">
                            <a class="dropdown-toggle count-info" data-toggle="dropdown" href="index.html#">
                                <i class="fa fa-bell"></i> <span class="label label-primary">8</span>
                            </a>
                            <ul class="dropdown-menu dropdown-alerts">
                                <li>
                                    <a href="mailbox.html">
                                        <div>
                                            <i class="fa fa-envelope fa-fw"></i> 您有16条未读消息
                                            <span class="pull-right text-muted small">4分钟前</span>
                                        </div>
                                    </a>
                                </li>
                                <li class="divider"></li>
                                <li>
                                    <a href="profile.html">
                                        <div>
                                            <i class="fa fa-qq fa-fw"></i> 3条新回复
                                            <span class="pull-right text-muted small">12分钟钱</span>
                                        </div>
                                    </a>
                                </li>
                                <li class="divider"></li>
                                <li>
                                    <div class="text-center link-block">
                                        <a href="notifications.html">
                                            <strong>查看所有 </strong>
                                            <i class="fa fa-angle-right"></i>
                                        </a>
                                    </div>
                                </li>
                            </ul>
                        </li>
                        <li>
                            <a href="{dede:global.cfg_cmsurl/}/admin/login" target="_top">
                                <i class="fa fa-sign-out"></i> 退出
                            </a>
                        </li>
                    </ul>

                </nav>
            </div>
            <div class="row wrapper border-bottom white-bg page-heading">
                <div class="col-sm-4">
                    <h2>全局参数管理</h2>
                    <ol class="breadcrumb">
                        <li>
                            <a href="{dede:global.cfg_cmsurl/}/admin/index">主页</a>
                        </li>
                        <li>
                            <a>参数</a>
                        </li>
                        <li>
                            <strong>参数列表</strong>
                        </li>
                    </ol>
                </div>
                <div class="col-sm-8">
                    <div class="title-action">
					<a  href="{dede:global.cfg_cmsurl/}/admin/cache?method=form" target="body" class="btn btn-primary ">添加参数</a>
                    <a  onclick="reflash()" class="btn btn-primary ">刷新缓存</a>
                	</div>
                </div>
            </div>
            <div class="wrapper wrapper-content animated fadeInRight">
                <div class="row">
                    <div class="col-lg-12">
                        <div class="ibox float-e-margins">
                            
                            <div class="ibox-content">
                                
                                <table class="table table-striped table-bordered table-hover " id="editable">
                                    <thead>
                                        <tr>
                                            <th>参数ID</th>
                                            <th>变量名</th>
                                            <th width="40%">变量值</th>
                                            <th>变量说明</th>
                                            <th>操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                       
                                    </tbody>    
                                </table>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
<div class="row">
                
                <div class="footer">
                    <div class="pull-right">
                        <a href="http://www.mbzj.net" target="_blank">模板建站</a>
                    </div>
                    <div>
                        <strong>Copyright</strong> mbzj.net &copy; 2015
                    </div>
                </div>
            </div>
    

    <!-- Page-Level Scripts -->
<script>
  $(document).ready(function() {
	    $("#editable").dataTable({
	      "processing": true,
	      "serverSide": true,
	      "pageLength":15,
	      "bLengthChange":false,
	      "ajax" : "{dede:global.cfg_cmsurl/}/admin/cache?method=table",
	      "columns": [
	        {"data": "id", "id": false},
	        {"data": "name"},
	        {"data": "typename"},
	        {"data": "time"}
	      ],
	      "columnDefs": [
	        {
	          "targets": [4],
	          "data": "id",
	          "render": function(data, type, full) {
	            return "<a class='btn btn-primary btn-xs' href='{dede:global.cfg_cmsurl/}/admin/cache?method=form&varid=" + data + "'>修改</a>&nbsp;&nbsp;&nbsp;&nbsp;<a class='btn btn-primary btn-xs' href='#' onclick=del(" + data + ")>删除</a>";
	          }
	        }
	      ]
	    });
  });
  
  
  function del(obj){
  
  $.layer({
  
    shade: [0],
    area: ['auto','auto'],
    dialog: {
        msg: '您是要删除参数？',
        btns: 2,                    
        type: 4,
        btn: ['确定','取消'],
        yes: function(){
            window.location.href="{dede:global.cfg_cmsurl/}/admin/cache?method=del&varid="+obj;
        }, no: function(){
          
        }
    }
});
  }
  
   
  function reflash(){
  
  $.layer({
  
    shade: [0],
    area: ['auto','auto'],
    dialog: {
        msg: '您是要刷新缓存？',
        btns: 2,                    
        type: 4,
        btn: ['确定','取消'],
        yes: function(){
            window.location.href="{dede:global.cfg_cmsurl/}/admin/cache?method=reflash";
        }, no: function(){
          
        }
    }
});
  }
        
    </script>

</body>

</html>
