zoukankan      html  css  js  c++  java
  • discuz 修改亮剑积分商城2.91模板(在常用设置中添加商场首页排序方式的背景颜色)

    在应用 -> 积分商城 -> 常用设置 中添加 商场首页排序方式 的背景颜色修改功能

    步骤:

      1、找到并打开此页面对应的模板sourcepluginaljsc emplatesetting.htm

      2、复制红色方块内的代码粘贴到方框底下;

      3、将粘贴中的 c1 全部替换成 c2 buttonbackcolor 替换成 linkbuttonbackcolor;保存即可,注意 排 是Unicode编码、utf-8编码

    <tr><td s="1" class="td27" colspan="2">&#x6392;&#x5E8F;&#x65B9;&#x5F0F;&#x7B49;&#x94FE;&#x63A5;&#x529F;&#x80FD;&#x989C;&#x8272;</td></tr>
    <tr onmouseover="setfaq(this, 'faqca6e')" class="noborder"><td class="vtop rowform">
    <input type="text" onchange="updatecolorpreview('c2')" name="settingsnew[linkbuttonbackcolor]" value="{$settings['linkbuttonbackcolor']['value']}" style="float:left; 210px;" class="txt" id="c2_v">
    <input type="button" style="background: {$settings['linkbuttonbackcolor']['value']}" value="" class="colorwd" onclick="c2_frame.location='static/image/admincp/getcolor.htm?c2|c2_v';showMenu({'ctrlid':'c2'})" id="c2" ><span id="c2_menu" style="position: absolute; z-index: 301; left: 251px; top: 317px; display: none;"><iframe width="210" height="148" frameborder="0" scrolling="no" src="" name="c2_frame"></iframe></span>
    </td></tr>

    4、打开sourcepluginaljsc emplateheader.htm 头文件

    .category-list .header .tab.current{
        background:{if $settings['linkbuttonbackcolor']['value']}{$settings['linkbuttonbackcolor']['value']}{else}#3fc700{/if};
    }

      5、<style type="text/css"> 里面 添加一下代码,保存即可打开sourcepluginaljsc emplateheader.htm 头文件

      6、当你修改成任何值的时候,你就会发现数据库pre_aljsc_setting表中就多了一个key 值等于 linkbuttonbackcolor 

    注:本随笔是本人自己研究所得,如有疑问,请联系

  • 相关阅读:
    修复PLSQL Developer 与 Office 2010的集成导出Excel 功能
    Using svn in CLI with Batch
    mysql 备份数据库 mysqldump
    Red Hat 5.8 CentOS 6.5 共用 输入法
    HP 4411s Install Red Hat Enterprise Linux 5.8) Wireless Driver
    变更RHEL(Red Hat Enterprise Linux 5.8)更新源使之自动更新
    RedHat 5.6 问题简记
    Weblogic 9.2和10.3 改密码 一站完成
    ExtJS Tab里放Grid高度自适应问题,官方Perfect方案。
    文件和目录之utime函数
  • 原文地址:https://www.cnblogs.com/zwb121/p/6769067.html
Copyright © 2011-2022 走看看