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

117 lines
4.3 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 '_header'}
<div class="page-heading">
{if $_W['role'] == 'manager' || $_W['role'] == 'founder'}
<span class='pull-right' style="padding: 15px 10px;">
<strong>设置顶部菜单</strong>
<input class="js-switch small" type="checkbox" {if !empty($setmenu)}checked{/if}
data-toggle='ajaxSwitch'
data-switch-value='{$setmenu}'
data-switch-value0='0|0|0|{php echo webUrl('diypage/setmenu',array('status'=>1))}'
data-switch-value1='1|0|0|{php echo webUrl('diypage/setmenu',array('status'=>0))}' />
</span>
{/if}
<h2>{php echo m('plugin')->getName('diypage')}</h2>
</div>
<div class="row">
<div class="col-sm-4">
<div class="ibox float-e-margins" style="border: 1px solid #e7eaec">
<div class="ibox-title">
{ifp 'diypage.page.sys'}
<a class="label label-primary pull-right" href="{php echo webUrl('diypage/page/sys')}">管理</a>
{/if}
<h5>系统页面</h5>
</div>
<div class="ibox-content">
<div class="row">
<div class="col-md-6 text-center">
页面总数
<h2 class="no-margins">{php echo intval($sysnumall)}</h2>
</div>
<div class="col-md-6 text-center">
今日新增
<h2 class="no-margins">{php echo intval($sysnumtoday)}</h2>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="ibox float-e-margins" style="border: 1px solid #e7eaec">
<div class="ibox-title">
{ifp 'diypage.page.diy'}
<a class="label label-success pull-right" href="{php echo webUrl('diypage/page/diy')}">管理</a>
{/if}
<h5>自定义页面</h5>
</div>
<div class="ibox-content">
<div class="row">
<div class="col-md-6 text-center">
页面总数
<h2 class="no-margins">{php echo intval($diynumall)}</h2>
</div>
<div class="col-md-6 text-center">
今日新增
<h2 class="no-margins">{php echo intval($diynumtoday)}</h2>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="ibox float-e-margins" style="border: 1px solid #e7eaec">
<div class="ibox-title">
{ifp 'diypage.menu'}
<a class="label label-danger pull-right" href="{php echo webUrl('diypage/menu')}">管理</a>
{/if}
<h5>自定义菜单</h5>
</div>
<div class="ibox-content">
<div class="row">
<div class="col-md-6 text-center">
菜单总数
<h2 class="no-margins">{php echo intval($menunumall)}</h2>
</div>
<div class="col-md-6 text-center">
今日新增
<h2 class="no-margins">{php echo intval($menunumtoday)}</h2>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row" style="padding: 0;">
<div class="col-sm-12">
<div style="border: 1px solid #e7eaec;" class="ibox float-e-margins">
<div class="ibox-title">
<h5>{php echo m('plugin')->getName('diypage')}介绍</h5>
</div>
<div class="ibox-content">
<p></p>
<p>{php echo m('plugin')->getName('diypage')}是一款页面DIY神器。</p>
<p>{php echo m('plugin')->getName('diypage')}的核心主要分为:<a href="{php echo webUrl('diypage/page/sys')}">商城主要页面DIY</a><a href="{php echo webUrl('diypage/page/diy')}">自定义页面</a><a href="{php echo webUrl('diypage/menu')}">自定义商城菜单</a></p>
<p>系统页面介绍用户可根据页面类型进行创建DIY页面保存预览无误后可通过<a href="{php echo webUrl('diypage/shop/page')}">商城页面</a>设置替换商城原有模版。</p>
<p>自定义页面介绍:用户可根据自己的需求设计出需要的页面,可通过关键字进入或直接通过链接进入。</p>
<p>自定义菜单介绍:用户可根据自己的需求设计出需要的页面,并通过<a href="{php echo webUrl('diypage/shop/menu')}">商城菜单</a>设置替换商城原有的菜单模板。</p>
<p>公用模块介绍:多个页面出现的相同元素可用公用模块来实现,创建一个公用模块后直接在系统页面、自定义页面中调用即可。</p>
<p></p>
</div>
</div>
</div>
</div>
{ifp 'diypage.page.sys.add|diypage.page.diy.add'}
<div class="row">
<div class="col-sm-12">
<a class="btn btn-default btn-block" href="{php echo webUrl('diypage/page/create')}"><i class="fa fa-plus"></i> 立即创建页面</a>
</div>
</div>
{/if}
{template '_footer'}