You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

104 lines
3.5 KiB

{template nheader.html}
<script type="text/javascript">
function dr_get_code(cname, type) {
var body = '<div style="padding:20px;font-size:14px">';
if (type == 1) {
body+= '{'+'dr_var("'+cname+'")'+'}';
} else if (type == 0) {
body+= '{'+'if dr_var("'+cname+'")'+'}';
body+= ' {fc_lang("是")} ';
body+= '{'+'else'+'}';
body+= ' {fc_lang("否")} ';
body+= '{'+'/if'+'}';
}
body+= '</div>';
var throughBox = art.dialog.through;
throughBox({
content: body,
title: "{fc_lang('调用方式')}"
});
}
</script>
<div class="page-bar">
<ul class="page-breadcrumb mylink">
{$menu.link}
</ul>
<ul class="page-breadcrumb myname">
{$menu.name}
</ul>
<div class="page-toolbar">
<div class="btn-group pull-right">
<button type="button" class="btn green btn-sm btn-outline dropdown-toggle" data-toggle="dropdown" aria-expanded="false" data-hover="dropdown"> {fc_lang('操作菜单')}
<i class="fa fa-angle-down"></i>
</button>
<ul class="dropdown-menu pull-right" role="menu">
{loop $menu.quick $t}
<li>
<a href="{$t.url}">{$t.icon} {$t.name}</a>
</li>
{/loop}
<li class="divider"> </li>
<li>
<a href="javascript:window.location.reload();">
<i class="icon-refresh"></i> {fc_lang('刷新页面')}</a>
</li>
</ul>
</div>
</div>
</div>
<h3 class="page-title">
<small>{fc_lang('全局变量也就是自定义系统变量,比如设置功能开关等,可在全站点调用')}</small>
</h3>
<form action="" method="post" name="myform" id="myform">
<div class="portlet mylistbody">
<div class="portlet-body">
<div class="table-scrollable">
<table class="mytable table table-striped table-bordered table-hover table-checkable dataTable">
<thead>
<tr>
<th width="20" align="right"></th>
<th>{fc_lang('类型')}</th>
<th>{fc_lang('名称')}</th>
<th>{fc_lang('别名')}</th>
<th class="dr_option">{fc_lang('变量值')}</th>
</tr>
</thead>
<tbody>
{loop $list $t}
<tr>
<td align="right"><input name="ids[]" type="checkbox" class="dr_select toggle md-check" value="{$t['id']}" /></td>
<td>{$ci->type[$t['type']]}</td>
<td>{$t['name']}</td>
<td>{$t['cname']}</td>
<td class="dr_option">
{if $t.type == 0}
{if $t.value}
<a class="alist" href="{dr_dialog_url(dr_url('sysvar/edit',array('id'=>$t['id'])), 'edit')}">{fc_lang('是')}</a>
{else}
<a class="adel" href="{dr_dialog_url(dr_url('sysvar/edit',array('id'=>$t['id'])), 'edit')}">{fc_lang('否')}</a>
{/if}
{else if $t.type == 1}
<a class="ago" href="{dr_dialog_url(dr_url('sysvar/edit',array('id'=>$t['id'])), 'edit')}">{dr_strcut($t.value, 30)}</a>
{/if}
<a class="alist" href="javascript:;" onclick="dr_get_code('{$t.cname}', '{$t.type}')">{fc_lang('调用方式')}</a>
</td>
</tr>
{/loop}
<tr class="mtable_bottom">
<th width="20" align="right" ><input name="dr_select" class="toggle md-check" id="dr_select" type="checkbox" onClick="dr_selected()" /></th>
<td colspan="5" >
{if $this->ci->is_auth('admin/sysvar/del')}<button type="button" class="btn red btn-sm" name="option" onClick="dr_confirm_set_all('{fc_lang('您确定要这样操作吗?')}')"><i class="fa fa-trash"></i> {fc_lang('删除')}</button>{/if}
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</form>
<div id="pages"><a>{fc_lang('共%s条', $total)}</a>{$pages}</div>
{template nfooter.html}