wpfw_ewei_shopv2/template/web/system/plugin/coms.html
2023-02-14 19:57:32 +08:00

117 lines
4.5 KiB
HTML

{template '_header'}
<div class="page-heading">
<span class='pull-right' style='width:280px;margin-top:20px;'>
<form action="./index.php" method="get" class="form-horizontal" role="form" id="form1">
<input type="hidden" name="c" value="site" />
<input type="hidden" name="a" value="entry" />
<input type="hidden" name="m" value="{EWEI_SHOP_V2_MODULE_NAME}" />
<input type="hidden" name="do" value="web" />
<input type="hidden" name="r" value="system.plugin.coms" />
<div class="col-sm-12">
<div class="input-group" style='padding:0;'>
<input type="text" class="input-sm form-control" name='keyword' value="{$_GPC['keyword']}" placeholder="组件名称/组件标识">
<span class="input-group-btn">
<button class="btn btn-sm btn-primary" type="submit"> 搜索</button> </span>
</div>
</div>
</form>
</span>
<h2>应用信息设置 <small>总数:<span class='text-danger'>{$total}</span> </small></h2>
<span>应用关闭状态时只有超级管理员才能使用,安装后默认为关闭</span> </div>
<form method='post' class="form-horizontal form-validate">
<table class="table">
<thead class="navbar-inner">
<tr>
<th style='width:100px;'>图标</th>
<th style='width:100px;'>标识</th>
<th style='width:80px;'>开关</th>
<th style='width:200px;' >组件名称</th>
</tr>
</thead>
<tbody>
{loop $list $row}
<tr>
<td>
<input type='hidden' name="thumb[{$row['id']}]" value="{$row['thumb']}" />
<img onclick="selectImage(this)" onerror="this.src='{EWEI_SHOPV2_LOCAL}static/images/nopic100.jpg'"
src="{if empty($row['thumb'])}{EWEI_SHOPV2_LOCAL}static/images/nopic100.jpg{else}{php echo tomedia($row['thumb'])}{/if}"
{if !empty($row['thumb'])}
data-toggle='popover'
data-html ='true'
data-placement='top'
data-trigger ='hover'
data-content="<img src='{php echo tomedia($row['thumb'])}' style='width:30px;height:30px;' />"
{/if}
style="width:40px;height:40px">
</td>
<td>{$row['identity']}</td>
<td>
{if $row['identity']=='system'}
--
<input type='hidden' name='status[{$row['id']}]' value="0" />
{else}
<label class='checkbox-inline'>
<input type='checkbox' name='status[{$row['id']}]' value="1" {if $row['status']==1}checked{/if} /> 开启
</label>
{/if}
</td>
<td><input type="text" class="form-control" name="name[{$row['id']}]" value="{$row['name']}"></td>
</tr>
{/loop}
<tr>
<td colspan='6'>
<input type="submit" class="btn btn-primary" value="批量修改">
</td>
</tr>
</tbody>
</table>
{$pager}
</form>
<script language='javascript'>
$(function(){
$('.desc').focus(function(){
$(this).css('height','80px');
}).blur(function(){
$(this).css('height','35px');
})
});
function selectImage(obj){
util.image('',function(val){
$(obj).attr('src',val.url).popover({
trigger: 'hover',
html: true,
container: $(document.body),
content: "<img src='" + val.url + "' style='width:40px;height:40px;' />",
placement: 'top'
});
var group =$(obj).parent();
group.find(':hidden').val(val.url), group.find('i').show().unbind('click').click(function(){
$(obj).attr('src',"{EWEI_SHOPV2_LOCAL}static/images/nopic100.jpg");
group.find(':hidden').val('');
group.find('i').hide();
$(obj).popover('destroy');
});
});
}
</script>
{template '_footer'}