DESTOON8.0商铺添加新的设置

  2021-03-11    阅读:576
\destoon\template\default\member\home.htm
 
这个htm文件就是我们要新添设置的展示页,这时我们搞清楚页面的逻辑关系就可以进行新添了。
 
<tr>//大概第4行
<td class="tab" id="Tab0"><a href="javascript:Tab(0);"><span>常用设置</span></a></td>
<td class="tab" id="Tab1"><a href="javascript:Tab(1);"><span>导航菜单</span></a></td>
<td class="tab" id="Tab2"><a href="javascript:Tab(2);"><span>侧边栏</span></a></td>
<td class="tab" id="Tab3"><a href="javascript:Tab(3);"><span>首页设置</span></a></td>
<td class="tab" id="Tab4"><a href="javascript:Tab(4);"><span>其他设置</span></a></td>
<td class="tab" id="Tab5"><a href="javascript:Tab(5);"><span>新添设置</span></a></td>//新添设置
 
//如果需要根据会员组在判断此会员组的会员能不能使用此功能,可添加以下判断
{if $_groupid == 11}
<td class="tab" id="Tab5"><a href="javascript:Tab(5);"><span>新添设置</span></a></td>
{/if}
</tr>

<div id="Tabs4" style="display: none;"></div>//大概在283行
<div id="Tabs5" style="display: none;"></div>//在Tabs4后面添加tabs5,里面为你想新添内容

\destoon\module\member\home.inc.php
 
//大概在21行,在此添加你需要用到的字段名称
delete_upload($setting['background'], $_userid);
delete_upload($setting['logo'], $_userid);
delete_upload($setting['video'], $_userid);
delete_upload($setting['banner'], $_userid);
delete_upload($setting['bannerf'], $_userid);
delete_upload($setting['banner1'], $_userid);
delete_upload($setting['banner2'], $_userid);
delete_upload($setting['banner3'], $_userid);
delete_upload($setting['banner4'], $_userid);
delete_upload($setting['banner5'], $_userid);
 
//大概在39行,在此添加你需要用到的字段名称
foreach(array('background', 'logo', 'video', 'banner', 'bannerf', 'banner1', 'banner2', 'banner3', 'banner4', 'banner5', 'bannerlink1', 'bannerlink2', 'bannerlink3', 'bannerlink4', 'bannerlink5') as $v) {
 
//大概在43行,在此添加你需要用到的字段名称
if($HOME['background'] != $setting['background']) delete_upload($HOME['background'], $_userid);
if($HOME['logo'] != $setting['logo']) delete_upload($HOME['logo'], $_userid);
if($HOME['video'] != $setting['video']) delete_upload($HOME['video'], $_userid);
if($HOME['banner'] != $setting['banner']) delete_upload($HOME['banner'], $_userid);
if($HOME['bannerf'] != $setting['bannerf']) delete_upload($HOME['bannerf'], $_userid);
if($HOME['banner1'] != $setting['banner1']) delete_upload($HOME['banner1'], $_userid);
if($HOME['banner2'] != $setting['banner2']) delete_upload($HOME['banner2'], $_userid);
if($HOME['banner3'] != $setting['banner3']) delete_upload($HOME['banner3'], $_userid);
if($HOME['banner4'] != $setting['banner4']) delete_upload($HOME['banner4'], $_userid);
if($HOME['banner5'] != $setting['banner5']) delete_upload($HOME['banner5'], $_userid);
clear_upload($setting['background'].$setting['logo'].$setting['video'].$setting['banner'].$setting['bannerf'].$setting['banner1'].$setting['banner2'].$setting['banner3'].$setting['banner4'].$setting['banner5'], $_userid, 'company_setting');

\destoon\module\company\init.inc.php
 
//大概在208行,在此根据以下书写方法添加你需要的字段
$bannert = isset($HOME['bannert']) ? $HOME['bannert'] : 0;
$banner = isset($HOME['banner']) ? $HOME['banner'] : '';
$bannerf = isset($HOME['bannerf']) ? $HOME['bannerf'] : '';
$banner1 = isset($HOME['banner1']) ? $HOME['banner1'] : '';
$banner2 = isset($HOME['banner2']) ? $HOME['banner2'] : '';
$banner3 = isset($HOME['banner3']) ? $HOME['banner3'] : '';
$banner4 = isset($HOME['banner4']) ? $HOME['banner4'] : '';
$banner5 = isset($HOME['banner5']) ? $HOME['banner5'] : '';
$bannerlink1 = isset($HOME['bannerlink1']) ? $HOME['bannerlink1'] : '';
$bannerlink2 = isset($HOME['bannerlink2']) ? $HOME['bannerlink2'] : '';
$bannerlink3 = isset($HOME['bannerlink3']) ? $HOME['bannerlink3'] : '';
$bannerlink4 = isset($HOME['bannerlink4']) ? $HOME['bannerlink4'] : '';
$bannerlink5 = isset($HOME['bannerlink5']) ? $HOME['bannerlink5'] : '';
 
//大概在240行,如果新添的内容中有banner图,可在此新添字段设置banner图默认大小
$bannerw = (isset($HOME['bannerw']) && $HOME['bannerw']) ? intval($HOME['bannerw']) : 960;
$bannerh = (isset($HOME['bannerh']) && $HOME['bannerh']) ? intval($HOME['bannerh']) : 200;

免责声明:
本站部份内容系网友自发上传与转载,不代表本网赞同其观点;
如涉及内容、版权等问题,请在30日内联系,我们将在第一时间删除内容!

相关Destoon技术

(c)2012-2023 www.qiyeyunshang.com All Rights Reserved.
慧一科技destoon模板   辽ICP备2021002520号-1
  QQ咨询

购买模板 售前咨询

  咨询QQ

3292628658
(早8:30-晚10:00)

  微信咨询

咨询微信
客服微信

  返回顶部