小胡 77979b6ed5
更新至V2.3.2版本,离线升级的用户需要执行升级程序 (#278)
* 优化百度编辑器,修复编辑器插入的图片不能预览问题

* 处理系统异常时登录无反应问题

* 更新至V2.3.1版本,离线升级的用户需要执行升级程序
2025-01-16 21:17:09 +08:00

225 lines
7.8 KiB
HTML
Raw 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.

<!--{template lyear:header_simple_start}-->
<link href="{MOD_PATH}/images/market1.css?{VERHASH}" rel="stylesheet" media="all">
<style>
.app-name-wrapper .appicon {
position: absolute;
left: 0;
top: 2px;
}
.app-name-wrapper .appicon img {
max-width: 45px;
max-height: 45px;
margin: 0;
}
.app-name-wrapper .appname a{
color:#000;
font-weight:500;
font-size:14px;
}
.app-name-wrapper .appdesc{
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size:13px;
cursor:default;
}
.group-td-wrapper{
max-width:120px;
white-space:normal;
overflow: hidden;
text-overflow: ellipsis;
}
.group-td-wrapper>span {
white-space:nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.group-td-wrapper>span>img {
margin:0;
vertical-align: text-bottom;
}
.tag-td-wrapper{
max-width:120px;
white-space:normal;
overflow: hidden;
text-overflow: ellipsis;
}
.tag-td-wrapper a{
display:inline-block;
padding:0 2px;
white-space:nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.table td img {
max-width: 45px;
max-height: 45px;
}
</style>
<!--{template lyear:header_simple_end}-->
<main class="bs-main-container">
<div class="container-fluid">
<div class="card">
<div class="card-body">
<ul class="nav nav-pills">
<li class="nav-item">
<a class="nav-link active" href="{MOD_URL}">{lang installed}</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{MOD_URL}&op=edit&do=add">{lang add_app}</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{MOD_URL}&op=cp&do=import">{lang import_type_app}</a>
</li>
</ul>
</div>
</div>
<div class="card">
<header class="card-header">
<div class="float-start">
<a href="{MOD_URL}" class="dcolor">{lang total}<span class="num">$count</span>{lang ge}{lang app}</a>
</div>
<div class="tag-filter dropdown float-end">
<a href="javascript:;" data-bs-toggle="dropdown" role="button" id="tag-drop" class="btn btn-primary dropdown-toggle" aria-expanded="false">{eval echo $tagid?$tags[$tagid]['tagname']:lang('label');}</a>
<ul aria-labelledby="tag-drop" role="menu" class="dropdown-menu" id="tag-drop-menu">
<li>
<a href="javascript:;" class="dropdown-item" onclick="screen_app('0','$_GET[group]')";>{lang all}</a>
</li>
<!--{loop $tags $value}-->
<li>
<a href="javascript:;" class="dropdown-item" onclick="screen_app('$value[tagid]','$_GET[group]')";>$value[tagname]</a>
</li>
<!--{/loop}-->
</ul>
</div>
<div class="dropdown float-end me-2">
<a href="{MOD_URL}&group=$group" data-bs-toggle="dropdown" role="button" id="drop-group" class="btn btn-primary dropdown-toggle" aria-expanded="false">{eval echo $group?$grouptitle[$group]:lang('group_permissions');}
</a>
<ul aria-labelledby="drop-group" role="menu" class="dropdown-menu" id="drop-group-menu">
<!--{loop $grouptitle $key $value}-->
<li role="presentation">
<a href="javascript:;" class="dropdown-item" onclick="screen_app('$_GET[tagid]','$key')"; tabindex="-1" role="menuitem">$value</a>
</li>
<!--{/loop}-->
</ul>
</div>
</header>
<div class="card-body">
<form id="appform" name="appform" class="form-horizontal" action="{MOD_URL}" method="post">
<input type="hidden" name="appsubmit" value="true" />
<input type="hidden" name="formhash" value="{FORMHASH}" />
<div class="table-responsive">
<table class="table table-hover align-middle">
<thead>
<th >{lang application_name}</th>
<th >{lang supplier}</th>
<th >{lang label}</th>
<th >{lang group_permissions}</th>
<th >{lang operation}</th>
</thead>
<!--{loop $list $value}-->
<tr>
<td>
<a href="$value[appurl]" target="_blank" class="appicon" style="float: left;padding-right: 5px;"><img src="$value[appico]" style="margin:0" /></a>
<!--{if $value[appadminurl]}-->
<a href="$value[appadminurl]" target="_blank" class="dcolor">$value[appname]</a>
<!--{else}-->
<a href="$value[appurl]" target="_blank" class="dcolor">$value[appname]</a>
<!--{/if}-->
<small class="text-muted" title="{lang version}">$value[version]</small>
<div class="appdesc form-text" title="$value['appdesc']"> {eval echo $value['appdesc']?$value['appdesc']:lang('none');}</div>
<!-- </div> -->
</td>
<td>$value[vendor]</td>
<td>
<div class="tag-td-wrapper">
<!--{loop $value[tags] $key $value1}-->
<a href="{MOD_URL}&tagid=$value1[tagid]">$value1[tagname]</a>
<!--{/loop}-->
</div>
</td>
<td>
<!--{if $value['department']}-->
<div class="group-td-wrapper">
<!--{loop $value['department'] $key $value1}-->
<span appid="$value[appid]" orgid="$key" class="label label-default " style="display:inline-block"> <img src="dzz/system/images/organization.png" >{eval $i=0;}
<!--{loop $value1 $value2}-->
<!--{if $i>0}-->-<!--{/if}-->$value2[orgname] {eval $i++;}
<!--{/loop}-->
</span>
<!--{/loop}-->
</div>
<!--{else}-->
$value[grouptitle]
<!--{/if}-->
</td>
<td>
<!--{if $value[appadminurl]}-->
<a class="btn btn-outline-success" href="$value[appadminurl]" target="_blank">{lang set}</a>
<!--{/if}-->
<a class="btn btn-outline-primary" href="{MOD_URL}&op=edit&do=edit&appid=$value[appid]&refer=$refer" title="{lang edit}">{lang edit}</a>
<!--{if $value["system"]!=2}-->
<!--{if $value["available"]==1}-->
<a class="btn btn-outline-warning" href="{MOD_URL}&op=cp&do=disable&appid=$value[appid]&refer=$refer" title="{lang close}">{lang close}</a>
<!--{else}-->
<a class="btn btn-outline-success" href="{MOD_URL}&op=cp&do=enable&appid=$value[appid]&refer=$refer" title="{lang enable}">{lang enable}</a>
<a class="btn btn-outline-danger" href="{MOD_URL}&op=cp&do=uninstall&appid=$value[appid]&refer=$refer" title="{lang uninstall}" onclick="if(confirm('{lang list_uninstall_application}'))return true;else return false">{lang uninstall}</a>
<!--{/if}-->
<!--{else}-->
<!--{if $value["available"]!=1}-->
<a class="btn btn-small btn-success-outline" href="{MOD_URL}&op=cp&do=enable&appid=$value[appid]&refer=$refer" title="{lang enable}">{lang enable}</a>
<!--{/if}-->
<!--{/if}-->
<a class="btn btn-outline-primary" href="{MOD_URL}&op=cp&do=upgrade&appid=$value[appid]&refer=$refer">本地升级</a>
<a class="btn btn-outline-primary" href="{MOD_URL}&op=cp&do=export&appid=$value[appid]&refer=$refer" title="{lang export}" target="_blank">{lang export}</a>
</td>
</tr>
<!--{/loop}-->
</table>
</div>
<!--{if $multi}-->
$multi
<!--{/if}-->
</form>
</div>
</div>
</div>
</main>
<script type="text/javascript">
function screen_app(tagid,group){
var url = MOD_URL;
if(tagid){
url += '&tagid='+tagid;
}
if(group){
url += '&group='+group;
}
var inputval = jQuery('#screen_keyword').val();
if(inputval){
url += '&keyword='+inputval;
}
console.log(url);
// return false;
window.location.href =url;
}
jQuery('#button_add').click(function(){
if(jQuery("#button_add1").hasClass('hide')){
jQuery("#button_add").html("×");
jQuery("#button_add1").removeClass("hide");
jQuery("#button_add2").removeClass("hide");
jQuery("#button_add1").stop().animate({top:"-124px"},500);
jQuery("#button_add2").stop().animate({top:"-62px"},500);
}else{
jQuery("#button_add").html("");
jQuery("#button_add1").stop().animate({top:"0px"},500);
jQuery("#button_add2").stop().animate({top:"0px"},500);
setTimeout(function(){
jQuery("#button_add1").addClass("hide");
jQuery("#button_add2").addClass("hide");
},500)
}
});
</script>
<!--{template lyear:footer_simple}-->