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

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

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

68 lines
3.4 KiB
HTML

<!--{if $_GET['op']=='extopen'}-->
<div class="input-search">
<form name="search" action="{MOD_URL}" method="get">
<input type="hidden" name="mod" value="{MOD_NAME}" />
<input type="hidden" name="op" value="extopen" />
<i class="input-search-icon mdi mdi-magnify" aria-hidden="true" onclick="this.parentNode.submit()"></i>
<input type="text" class="form-control search form-search" name="ext" value="$_GET[ext]" placeholder="{lang extension}" id="searchval">
<span aria-hidden="true" id="emptysearchcondition" class="header-closebutton mdi mdi-close"></span>
</form>
</div>
<!--{elseif empty($_GET['op'])}-->
<div class="input-search">
<form name="search" action="{MOD_URL}" method="get">
<input type="hidden" name="mod" value="{MOD_NAME}" />
<input type="hidden" name="op" value="" />
<input type="hidden" name="tagid" value="$_GET['tagid']" />
<input type="hidden" name="group" value="$_GET['group']" />
<i class="input-search-icon mdi mdi-magnify" aria-hidden="true" onclick="this.parentNode.submit()"></i>
<input type="text" class="form-control search form-search" name="keyword" value="$_GET[keyword]" placeholder="{lang application_name_suppliers}" id="searchval">
<span aria-hidden="true" id="emptysearchcondition" class="header-closebutton mdi mdi-close"></span>
</form>
</div>
<!--{elseif $_GET['op']=='upgrade'}-->
<div class="input-search">
<form name="search" action="{MOD_URL}" method="get">
<input type="hidden" name="mod" value="{MOD_NAME}" />
<input type="hidden" name="op" value="upgrade" />
<i class="input-search-icon mdi mdi-magnify" aria-hidden="true" onclick="this.parentNode.submit()"></i>
<input type="text" class="form-control search form-search" name="keyword" value="$_GET[keyword]" placeholder="{lang appname}" id="searchval">
<span aria-hidden="true" id="emptysearchcondition" class="header-closebutton mdi mdi-close"></span>
</form>
</div>
<!--{elseif $_GET['op']=='default'}-->
<div class="input-search">
<form name="search" action="{MOD_URL}" method="get">
<input type="hidden" name="mod" value="{MOD_NAME}" />
<input type="hidden" name="op" value="$_GET[op]" />
<input type="hidden" name="group" value="$_GET['group']" />
<input type="hidden" name="position" value="$_GET['position']" />
<input type="hidden" name="depid" value="$_GET['depid']" />
<i class="input-search-icon mdi mdi-magnify" aria-hidden="true" onclick="this.parentNode.submit()"></i>
<input type="text" class="form-control search form-search" name="keyword" value="$_GET[keyword]" placeholder="{lang appname}" id="searchval">
<span aria-hidden="true" id="emptysearchcondition" class="header-closebutton mdi mdi-close"></span>
</form>
</div>
<!--{/if}-->
<script type="text/javascript">
jQuery('#searchval').focus(function (e) {//头部搜索框变颜色
jQuery(this).closest('.input-search').addClass('focus');
if(this.value!='') jQuery('#emptysearchcondition').show();
});
jQuery('#searchval').blur(function (e) {//失去焦点时
jQuery(this).closest('.input-search').removeClass('focus');
if(this.value=='') jQuery('#emptysearchcondition').hide();
});
jQuery('#searchval').keyup(function (e) {//失去焦点时
if(this.value!='') jQuery('#emptysearchcondition').show();
});
jQuery('#emptysearchcondition').on('click',function(){
jQuery('#searchval').val('');
jQuery('#searchval').closest('form').submit();
jQuery('#emptysearchcondition').hide();
return false;
});
</script>