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.
102 lines
3.4 KiB
102 lines
3.4 KiB
<div class="middlecenter scroll-100 scroll-srcollbars">
|
|
<div class="middletopMenu clearfix">
|
|
<div class="pictures-names">
|
|
<div class="owm-group clearfix">
|
|
<div class="file-editcon">
|
|
<strong class="own-label">{lang extension}:</strong>
|
|
<ul class="own-type ext">
|
|
<!--{loop $cattext $v}-->
|
|
<li class="list-chose"><span class="badge badge-outline-default" data-ext="$v">*$v</span></li>
|
|
<!--{/loop}-->
|
|
</ul>
|
|
</div>
|
|
<div class="file-editcon">
|
|
<strong class="own-label">{lang label}:</strong>
|
|
<ul class="own-type tag">
|
|
<!--{loop $tagarr $val}-->
|
|
<li class="list-chose"><span class="badge badge-outline-default" data-tid="$val[tid]">$val[tagname]</span></li>
|
|
<!--{/loop}-->
|
|
</ul>
|
|
</div>
|
|
|
|
</div>
|
|
<button type="button" class="btn btn-primary share-editbutton" onclick="showWindow('editcatsearch','{MOD_URL}&op=ajax&operation=addsearchcat&id={$catid}','get',0)">
|
|
<span class="mdi mdi-pencil"></span>
|
|
{lang edit}</button>
|
|
</div>
|
|
</div>
|
|
<div id="filemanage-cat-$catid"></div>
|
|
</div>
|
|
<div id="template_middleicon" style="display:none">
|
|
<!--{template template_file_middleicon}-->
|
|
</div>
|
|
<div id="template_detaillist" style="display:none">
|
|
<!--{template template_file_detaillist_cat}-->
|
|
</div>
|
|
<div id="template_toolButton" style="display:none">
|
|
<!--{template template_file_toolButton}-->
|
|
</div>
|
|
<div id="template_file" style="display:none">
|
|
<!--{template template_file_navtopfile}-->
|
|
</div>
|
|
<div id="template_nofile_notice" style="display:none">
|
|
<!--{template noFilePage-search}-->
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(document).ready(function(e) {
|
|
var hash=location.hash;
|
|
var id=_explorer.getUrlParam(hash,'id');
|
|
_filemanage.getData(_explorer.appUrl+'&op=catsearch&do=filelist&sid=cat-'+id);
|
|
});
|
|
jQuery('.middlecenter').on('resize',function(e){
|
|
});
|
|
|
|
var conditioncatsearch = {'ext':[],'tag':[]};
|
|
var hash=location.hash;
|
|
var catid=hash.replace(/(.+?)\&id\=/,'');
|
|
//点击扩展名
|
|
$(document).off('click.filesearch').on('click.filesearch','.own-type .list-chose',function(){
|
|
$('span.badge', this).toggleClass('active');
|
|
var isext=jQuery(this).closest('.own-type').hasClass('ext');
|
|
var ext = $('span',this).data('ext');
|
|
if(typeof ext == 'undefined'){
|
|
var ext = $('span',this).data('tid');
|
|
}
|
|
var extpreg = /\.\w+/;
|
|
|
|
if($(this).hasClass('fileclick')){
|
|
if(isext){
|
|
ext = ext.replace('.','');
|
|
var index = $.inArray(ext,conditioncatsearch.ext);
|
|
if(index != -1){
|
|
conditioncatsearch.ext.splice(index,1);
|
|
}
|
|
}else{
|
|
var index = $.inArray(ext,conditioncatsearch.tag);
|
|
if(index != -1){
|
|
conditioncatsearch.tag.splice(index,1);
|
|
}
|
|
}
|
|
$(this).removeClass('fileclick');
|
|
}else{
|
|
if(isext){
|
|
ext = ext.replace('.','');
|
|
if($.inArray(ext,conditioncatsearch.ext) == -1){
|
|
conditioncatsearch.ext.push(ext);
|
|
}
|
|
}else{
|
|
if($.inArray(ext,conditioncatsearch.tag) == -1){
|
|
conditioncatsearch.tag.push(ext);
|
|
}
|
|
}
|
|
$(this).addClass('fileclick');
|
|
}
|
|
var filemanage=_filemanage.cons['cat-'+catid];
|
|
|
|
filemanage.exts=(conditioncatsearch.ext.length > 0) ? conditioncatsearch.ext.join(','):'';
|
|
|
|
filemanage.tags=(conditioncatsearch.tag.length > 0) ? conditioncatsearch.tag.join(','):'';
|
|
|
|
_filemanage.cons['cat-'+catid].pageClick();
|
|
})
|
|
</script>
|