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.
 
 
 
 
 
 

84 lines
4.1 KiB

{template "nheader.html"}
<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 class="form-horizontal" action="" method="post" id="myform" name="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="80" align="left">Site</th>
<th width="200" align="left">{fc_lang('网站名称')}</th>
<th width="80" style="text-align: center">{fc_lang('生成静态')}</th>
<th align="left" class="dr_option">{fc_lang('操作')}</th>
</tr>
</thead>
<tbody>
{loop $ci->site_info $sid $t}
{if $admin.adminid == 1 || ($admin.adminid > 1 && @in_array($sid, $admin.role.site))}
<tr>
<td align="left">{$sid}</td>
<td align="left">{dr_strcut($t['SITE_NAME'], 25)}</td>
<td style="text-align: center">{if $data['site'][$sid]['html']}<a class="badge badge-success" href="{dr_url('module/html', array('id' => $id, 'sid'=>$sid))}"> {fc_lang('是')} </a>{else}<a class="badge badge-warning" href="{dr_url('module/html', array('id' => $id, 'sid'=>$sid))}"> {fc_lang('否')} </a>{/if}</td>
<td align="left" class="dr_option">
{if $data['site'][$sid]['use']}
{if $this->ci->is_auth('module/config')}<a class="alist" href="{dr_url('module/install3',array('id'=>$id, 'sid'=>$sid))}"> <i class="fa fa-cog"></i> {fc_lang('站点配置')}</a>{/if}
{if $this->ci->is_auth('module/uninstall')}<a class="adel" href="javascript:;" onClick="return dr_confirm_url('<font color=red><b>{fc_lang('该操作将会删除当前站点中的模块内容数据,您确定吗?')}</b></font>','{dr_url('module/uninstall2',array('id'=>$id, 'dir'=>$dir, 'sid'=>$sid))}');"> <i class="fa fa-trash"></i> {fc_lang('卸载')}</a>{/if}
{if $this->ci->is_auth('module/uninstall')}<a class="adel" href="javascript:;" onClick="return dr_confirm_url('<font color=red><b>{fc_lang('你的操作将会把该站点中的该模块数据全部清空,此操作不可恢复,你确定吗?')}</b></font>','{dr_url('module/clear',array('id'=>$id, 'dir'=>$dir, 'sid'=>$sid))}');"> <i class="fa fa-trash-o"></i> {fc_lang('清空')}</a>{/if}<a class="ago" href="{if $data['site'][$sid]['domain']}http://{$data['site'][$sid]['domain']}/{else}{$t.SITE_URL}index.php?s={$data.dirname}{/if}" target="_blank"> <i class="fa fa-paper-plane"></i> {fc_lang('访问')}</a>
<span id="dr_domain_{$sid}"></span>
<script type="text/javascript">
{if $data['site'][$sid]['domain']}
$.get("{dr_url('home/domain', array('domain' => $data['site'][$sid]['domain']))}", function(data){
if (data) {
$("#dr_domain_{$sid}").html("&nbsp;&nbsp;<a href='{dr_url('module/install3',array('id'=>$id, 'sid'=>$sid))}' style='color:red;'>域名解析异常</a>");
}
});
{/if}
</script>
{else}
{if $this->ci->is_auth('module/install')}<a class="adel" href="{dr_url('module/install2', array('id'=>$id, 'dir'=>$dir, 'sid'=>$sid))}">{fc_lang('安装')}</a>{/if}
{/if}
</td>
</tr>
{/if}
{/loop}
</tbody>
</table>
</div>
</div>
</div>
</div>
</form>
{template "nfooter.html"}