优化表情、系统工具等UI

This commit is contained in:
小胡
2024-07-07 22:36:49 +08:00
Unverified
parent 1de5fbe3ec
commit 187d5d7010
7 changed files with 111 additions and 109 deletions

View File

@@ -41,7 +41,7 @@
<td><input type="text" class="form-control " name="namenew[{$value[typeid]}]" value="$value[name]" /></td>
<td valign="middle">./static/image/smiley/{$value[directory]}</td>
<td>$value[smiliesnum] <input type="hidden" name="smiliesnum[{$value[typeid]}]" value="$value[smiliesnum]" /></td>
<td valign="middle"><a href="{MOD_URL}&op=smiley&operation=update&id=$value[typeid]" class="" onclick="return confirm('{lang seeting_smiley_search}')">{lang update}</a>&nbsp;&nbsp; <a href="{MOD_URL}&op=smiley&operation=edit&id=$value[typeid]" class="">{lang detailedness}</a></td>
<td valign="middle"><a href="{MOD_URL}&op=smiley&operation=update&id=$value[typeid]" class="btn btn-outline-primary" onclick="return confirm('{lang seeting_smiley_search}')">{lang update}</a>&nbsp;&nbsp; <a href="{MOD_URL}&op=smiley&operation=edit&id=$value[typeid]" class="btn btn-outline-success">{lang detailedness}</a></td>
</tr>
<!--{/loop}-->
<!--{if $list_no}-->

View File

@@ -37,9 +37,9 @@
<div class="well">
<p class="$msg_type">$msg</p>
<!--{if $redirecturl}-->
<p class="text-info">
<a href="{$redirecturl}" class="lightlink">{lang message_redirect}</a>
</p>
<dl>
<a href="{$redirecturl}" class="btn btn-primary">{lang message_redirect}</a>
</dl>
<script type="text/JavaScript">setTimeout(function(){location.href='{$redirecturl}';}, 2000);</script>
<!--{/if}-->
</div>

View File

@@ -111,9 +111,9 @@
</div>
<!--{/if}-->
<!--{if $redirecturl}-->
<p class="text-info">
<a href="{$redirecturl}" class="lightlink">{lang message_redirect}</a>
</p>
<dl>
<a href="{$redirecturl}" class="btn btn-primary">{lang message_redirect}</a>
</dl>
<script type="text/JavaScript">setTimeout(function(){location.href='{$redirecturl}';}, 2000);</script>
<!--{/if}-->
</div>
@@ -125,9 +125,9 @@
<span class="no-result-title $msg_type">$msg</span>
</div>
<!--{if $redirecturl}-->
<p class="text-info">
<a href="{$redirecturl}" class="lightlink">{lang message_redirect}</a>
</p>
<dl>
<a href="{$redirecturl}" class="btn btn-primary">{lang message_redirect}</a>
</dl>
<script type="text/JavaScript">setTimeout(function(){location.href='{$redirecturl}';}, 2000);</script>
<!--{/if}-->
</div>
@@ -169,9 +169,9 @@
<td>$val[volume]</td>
<td>
<!--{if $val['list']}-->
<a href="{$datasiteurl}restore.php?operation=import&from=server&datafile_server=$val[datafile_server]&importsubmit=yes" <!--{if $info[ 'version'] !=$_G[ 'setting'][ 'version']}--> onclick="return confirm('{lang db_import_confirm}');"<!--{else}-->onclick="return confirm('{lang db_import_confirm_sql}');"<!--{/if}-->target="_blank">{lang import}</a>
<a href="{$datasiteurl}restore.php?operation=import&from=server&datafile_server=$val[datafile_server]&importsubmit=yes" class="btn btn-outline-primary" <!--{if $info[ 'version'] !=$_G[ 'setting'][ 'version']}--> onclick="return confirm('{lang db_import_confirm}');"<!--{else}-->onclick="return confirm('{lang db_import_confirm_sql}');"<!--{/if}-->target="_blank">{lang import}</a>
<!--{else}-->
<a href="{$datasiteurl}restore.php?operation=importzip&datafile_server=$info[datafile_server]&importsubmit=yes" onclick="return confirm('{lang db_import_confirm_zip}');" target="_blank">{lang db_import_unzip}</a>
<a href="{$datasiteurl}restore.php?operation=importzip&datafile_server=$info[datafile_server]&importsubmit=yes" class="btn btn-outline-primary" onclick="return confirm('{lang db_import_confirm_zip}');" target="_blank">{lang db_import_unzip}</a>
<!--{/if}-->
</td>
</tr>
@@ -213,9 +213,9 @@
<span class="no-result-title $msg_type">$msg</span>
</div>
<!--{if $redirecturl}-->
<p class="text-info">
<a href="{$redirecturl}" class="lightlink">{lang message_redirect}</a>
</p>
<dl>
<a href="{$redirecturl}" class="btn btn-primary">{lang message_redirect}</a>
</dl>
<script type="text/JavaScript">setTimeout(function(){location.href='{$redirecturl}';}, 5000);</script>
<!--{/if}-->
</div>

View File

@@ -721,8 +721,8 @@ a.ui-artZoom-hide:hover span, ._tt_tasklist li .ui-artZoom-hide.title_tttl:hover
}
.sllt { padding: 5px !important; }
.sllt .sllt-wrap{
width:288px;
height:188px;
width:100%;
height:100%;
}
.sllt td { padding: 6px; border: none; cursor: pointer; }
.sllt_p { *float: left; text-align: right; }

View File

@@ -86,100 +86,102 @@
</ul>
</form>
</div>
<form id="appform" name="appform" class="form-horizontal " action="{MOD_URL}" method="post" >
<input type="hidden" name="delsubmit" value="true" />
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="lpp" value="$lpp">
<input type="hidden" name="refer" value="$refer" />
<input type="hidden" name="keyword" value="$keyword" />
<table class="table table-hover">
<thead node-type="title" class="title">
<tr class="item clearfix">
<th>
<div class="col-sm-10">
<div class="form-check">
<input class="form-check-input" name="del[]" type="checkbox" id="chkall"><label></label>
<div class="main-content clearfix">
<form id="appform" name="appform" class="form-horizontal " action="{MOD_URL}" method="post" >
<input type="hidden" name="delsubmit" value="true" />
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="lpp" value="$lpp">
<input type="hidden" name="refer" value="$refer" />
<input type="hidden" name="keyword" value="$keyword" />
<table class="table table-hover">
<thead node-type="title" class="title">
<tr class="item clearfix">
<th>
<div class="col-sm-10">
<div class="form-check">
<input class="form-check-input" name="del[]" type="checkbox" id="chkall"><label></label>
</div>
</div>
</div>
</th>
<th node-type="title-col" data-key="name" class="lie col">{lang filename}<span node-type="order-status" class="asc $_GET[name]" style="visibility: <!--{if $_GET[name]}-->visible<!--{else}-->hidden<!--{/if}-->;"></span></span></th>
<th node-type="title-col" data-key="size" class="lie col">{lang file_size}<span node-type="order-status" class="asc $_GET[size]" style="visibility:<!--{if $_GET[size]}-->visible<!--{else}-->hidden<!--{/if}-->;"></span></th>
<th node-type="title-col" data-key="ftype" class="lie col">{lang file_type}<span node-type="order-status" class="asc $_GET[ftype]" style="visibility: <!--{if $_GET[ftype]}-->visible<!--{else}-->hidden<!--{/if}-->;"></span></th>
<th class="lie">{lang file_location}</th>
<!--{if $_G[adminid]}-->
<th node-type="title-col" data-key="username" class="lie col">{lang possessor}<span node-type="order-status" class="asc $_GET[username]" style="visibility: <!--{if $_GET[username]}-->visible<!--{else}-->hidden<!--{/if}-->;"></span></th>
<!--{/if}-->
<th node-type="title-col" data-key="dateline" class="lie col">{lang add_time} <span node-type="order-status" class="asc $_GET[dateline]" style="visibility: <!--{if $_GET[dateline]}-->visible<!--{else}-->hidden<!--{/if}-->;"></span></th>
<th class="lie">操作</th>
</tr>
</thead>
<tbody node-type="list" class="list list-share">
<!--{loop $list $key $value}-->
<tr node-type="item" data-dpath="$value[dpath]" data-rid="$value[rid]" <!--{if $value[type] == 'folder' && $value[oid]}--> data-containpath="$value[oid]"<!--{/if}--> data-type="$value[type]" class="item shareblock clearfix">
<td data-name="$value[name]" class="col">
<div class="col-sm-10">
<div class="form-check">
<input type="checkbox" class="form-check-input" name="del[]" value="$value[rid]" data-rid="$value[rid]">
</div>
</div>
</td>
<td node-type="name" class="name" title="$value[name]" data-size="$value[name]">
<!--{if $value[img]}--><img class="icon" title="$value[name]" src="$value[img]" <!--{if $value[type]=='image' }--> data-original="$value[url]" data-dpath="$value[dpath]"
<!--{/if}-->/>
<!--{/if}-->
<span node-type="name-text" data-href="$value[shareurl]" class="name-text enabled">$value[name]</span>
</td>
<td><!--{if $value[type]=='folder'}--><!--{else}--><div>$value[fsize]</div><!--{/if}--></td>
<td><div>$value[ftype]</div></td>
<td><div>$value[relpath]</div></td>
<!--{if $_G[adminid]}-->
<td><div>$value[username]</div></td>
<!--{/if}-->
<td><div>$value[fdateline]</div></td>
<td>
<div>
<a node-type="btn-item" data-key="download" class="btn btn-outline-info" title="下载" href="javascript:void(0);"><i class="dzz dzz-download"></i></a>
<a class="btn btn-outline-info" href="{MOD_URL}&do=delete&icoid=$value[rid]&refer={eval echo urlencode($refer);}" data-bs-toggle="tooltip" title="{lang delete}" onclick="if(confirm('{lang filemanage_del_file}')){return true}else{return false}"><i class="dzz dzz-delete"></i></a>
<!--{if $_G[adminid]}--><!--{if $value[type]=='folder'}--><!--{else}-->
<a class="btn btn-outline-info" href="javascript:;" onclick="togglecplog('{$key}')" data-bs-toggle="tooltip" title="更多信息"><i class="dzz dzz-description"></i></a>
<!--{/if}--><!--{/if}-->
</div>
</td>
<!--{if $value[type]=='folder'}--><!--{else}-->
<tr id="cplog_{$key}" style="display:none">
<td colspan="8">
</th>
<th node-type="title-col" data-key="name" class="lie col">{lang filename}<span node-type="order-status" class="asc $_GET[name]" style="visibility: <!--{if $_GET[name]}-->visible<!--{else}-->hidden<!--{/if}-->;"></span></span></th>
<th node-type="title-col" data-key="size" class="lie col">{lang file_size}<span node-type="order-status" class="asc $_GET[size]" style="visibility:<!--{if $_GET[size]}-->visible<!--{else}-->hidden<!--{/if}-->;"></span></th>
<th node-type="title-col" data-key="ftype" class="lie col">{lang file_type}<span node-type="order-status" class="asc $_GET[ftype]" style="visibility: <!--{if $_GET[ftype]}-->visible<!--{else}-->hidden<!--{/if}-->;"></span></th>
<th class="lie">{lang file_location}</th>
<!--{if $_G[adminid]}-->
<th node-type="title-col" data-key="username" class="lie col">{lang possessor}<span node-type="order-status" class="asc $_GET[username]" style="visibility: <!--{if $_GET[username]}-->visible<!--{else}-->hidden<!--{/if}-->;"></span></th>
<!--{/if}-->
<th node-type="title-col" data-key="dateline" class="lie col">{lang add_time} <span node-type="order-status" class="asc $_GET[dateline]" style="visibility: <!--{if $_GET[dateline]}-->visible<!--{else}-->hidden<!--{/if}-->;"></span></th>
<th class="lie">操作</th>
</tr>
</thead>
<tbody node-type="list" class="list list-share">
<!--{loop $list $key $value}-->
<tr node-type="item" data-dpath="$value[dpath]" data-rid="$value[rid]" <!--{if $value[type] == 'folder' && $value[oid]}--> data-containpath="$value[oid]"<!--{/if}--> data-type="$value[type]" class="item shareblock clearfix">
<td data-name="$value[name]" class="col">
<div class="col-sm-10">
<div class="form-check">
<input type="checkbox" class="form-check-input" name="del[]" value="$value[rid]" data-rid="$value[rid]">
</div>
</div>
</td>
<td node-type="name" class="name" title="$value[name]" data-size="$value[name]">
<!--{if $value[img]}--><img class="icon" title="$value[name]" src="$value[img]" <!--{if $value[type]=='image' }--> data-original="$value[url]" data-dpath="$value[dpath]"
<!--{/if}-->/>
<!--{/if}-->
<span node-type="name-text" data-href="$value[shareurl]" class="name-text enabled">$value[name]</span>
</td>
<td><!--{if $value[type]=='folder'}--><!--{else}--><div>$value[fsize]</div><!--{/if}--></td>
<td><div>$value[ftype]</div></td>
<td><div>$value[relpath]</div></td>
<!--{if $_G[adminid]}-->
<td><div>$value[username]</div></td>
<!--{/if}-->
<td><div>$value[fdateline]</div></td>
<td>
<div>
<a node-type="btn-item" data-key="download" class="btn btn-outline-info" title="下载" href="javascript:void(0);"><i class="dzz dzz-download"></i></a>
<a class="btn btn-outline-info" href="{MOD_URL}&do=delete&icoid=$value[rid]&refer={eval echo urlencode($refer);}" data-bs-toggle="tooltip" title="{lang delete}" onclick="if(confirm('{lang filemanage_del_file}')){return true}else{return false}"><i class="dzz dzz-delete"></i></a>
<!--{if $_G[adminid]}--><!--{if $value[type]=='folder'}--><!--{else}-->
<a class="btn btn-outline-info" href="javascript:;" onclick="togglecplog('{$key}')" data-bs-toggle="tooltip" title="更多信息"><i class="dzz dzz-description"></i></a>
<!--{/if}--><!--{/if}-->
</div>
</td>
<!--{if $value[type]=='folder'}--><!--{else}-->
文件位置:<!--{eval echo IO::getStream($value[path])}-->
<br/>
直链地址:<a href="<!--{eval echo IO::getFileUri($value[path])}-->"><!--{eval echo IO::getFileUri($value[path])}--></a>
<br/>
引用:$value[copys]
<br/>
是否在回收站:<!--{if $value[isdelete]}--><!--{else}--><!--{/if}-->
<tr id="cplog_{$key}" style="display:none">
<td colspan="8">
<!--{if $_G[adminid]}-->
<!--{if $value[type]=='folder'}--><!--{else}-->
文件位置:<!--{eval echo IO::getStream($value[path])}-->
<br/>
直链地址:<a href="<!--{eval echo IO::getFileUri($value[path])}-->"><!--{eval echo IO::getFileUri($value[path])}--></a>
<br/>
引用:$value[copys]
<br/>
是否在回收站:<!--{if $value[isdelete]}--><!--{else}--><!--{/if}-->
<!--{/if}-->
<!--{/if}--></td>
</tr>
<!--{/if}-->
<!--{/if}--></td>
</tr>
<!--{/if}-->
</tr>
<!--{/loop}-->
</tbody>
</table>
<div class="pull-left">
<div class="input-group mb-3">
<span class="input-group-text">每页显示</span>
<select class="form-select" onchange="if(this.options[this.selectedIndex].value != '') {this.form.lpp.value = this.options[this.selectedIndex].value;this.form.submit(); }">
<option value="10" $checklpp[10]> 10 </option>
<option value="20" $checklpp[20]> 20 </option>
<option value="40" $checklpp[40]> 40 </option>
<option value="100" $checklpp[100]> 100 </option>
<option value="200" $checklpp[200]> 200 </option>
</select>
<span class="input-group-text">条记录</span>
</tr>
<!--{/loop}-->
</tbody>
</table>
<div class="pull-left">
<div class="input-group mb-3">
<span class="input-group-text">每页显示</span>
<select class="form-select" onchange="if(this.options[this.selectedIndex].value != '') {this.form.lpp.value = this.options[this.selectedIndex].value;this.form.submit(); }">
<option value="10" $checklpp[10]> 10 </option>
<option value="20" $checklpp[20]> 20 </option>
<option value="40" $checklpp[40]> 40 </option>
<option value="100" $checklpp[100]> 100 </option>
<option value="200" $checklpp[200]> 200 </option>
</select>
<span class="input-group-text">条记录</span>
</div>
</div>
</div>
$multi
</form>
$multi
</form>
</div>
</div>
<!--{/if}-->
</div>

View File

@@ -9,8 +9,8 @@
}
.sllt { padding: 5px !important; }
.sllt .sllt-wrap{
width:288px;
height:188px;
width:100%;
height:100%;
}
.sllt td { padding: 6px; border: none; cursor: pointer; }
.sllt_p { *float: left; text-align: right; }

View File

@@ -49,7 +49,7 @@ function smilies_onload(id, smcols, seditorkey) {
key = i.substring(1);
if(smilies_type[i][0]) {
k++;
smiliestype += '<li class="nav-item" id="'+seditorkey+'stype_'+key+'" onclick="smilies_switch(\'' + id + '\', \'' + smcols + '\', '+key+', 1, \'' + seditorkey + '\');if(CURRENTSTYPE) {document.getElementById(\''+seditorkey+'stype_\'+CURRENTSTYPE).className=\'\';}this.className=\'active\';CURRENTSTYPE='+key+';doane(event);" ><a class="nav-link ' + (CURRENTSTYPE == key ? 'active"' : '') + ' href="javascript:;" hidefocus="true">'+smilies_type[i][0]+'</a></>';
smiliestype += '<li class="nav-item"><a class="' + (CURRENTSTYPE == key ? 'active"' : '') + '" id="'+seditorkey+'stype_'+key+'" onclick="smilies_switch(\'' + id + '\', \'' + smcols + '\', '+key+', 1, \'' + seditorkey + '\');if(CURRENTSTYPE) {document.getElementById(\''+seditorkey+'stype_\'+CURRENTSTYPE).className=\'\';}this.className=\'nav-link active\';CURRENTSTYPE='+key+';doane(event);" href="javascript:;" hidefocus="true">'+smilies_type[i][0]+'</a></>';
}
}
smiliestype += '</ul></div>';