zoukankan      html  css  js  c++  java
  • ecos之widget

    weekbuy:
    widget.php
    <?php
    $setting['author']='zhang';
    $setting['name']='周末购';
    $setting['version']='v1.0';
    $setting['stime']='2014-07-28';
    $setting['order']='1';
    $setting['catalog']='v1.2场馆挂件';
    $setting['description']='本商品在前台周末显示的商品';
    $setting['usual']='1';
    $setting['template']=array('default.html'=>'默认');
    ?>
    ---------
    theme_widget_weekbuy.php
    <?php
    function theme_widget_weekbuy(&$setting,&$render){
    return $myData;
    }
    ?>
    ----------
    default.html
    <div>
    <div>
    <img src="<{$setting.first_big_img}>" width='<{$setting.first_big_img_width}>'
    height='<{$setting.first_big_img_height}>'>
    <ul>
    <li><span>五</span><em>FRIDAY</em></li>
    <li><span>六</span>
    <em>SATURDAY</em>
    </li>
    <li>
    <span>日</span><em>SUNDAY</em>
    </li>
    </ul>
    </div>

    <div>
    <div>
    <a href="<{$setting.url[0]}>"><img src="<{$setting.goods_img[0][0]}>" width="<{$setting.img_width}>"
    height="<{$setting.img_height}>"></a>
    <a href="<{$setting.url[1]}>"><img src="<{$setting.goods_img[0][1]}>" width="<{$setting.img_width}>"
    height="<{$setting.img_height}>"></a>
    </div>

    <div>
    <a href="<{$setting.url[2]}>"><img src="<{$setting.goods_img[0][0]}>" width="<{$setting.img_width}>"
    height="<{$setting.img_height}>"></a>
    <a href="<{$setting.url[3]}>"><img src="<{$setting.goods_img[0][1]}>" width="<{$setting.img_width}>"
    height="<{$setting.img_height}>"></a>
    </div>

    <div>
    <a href="<{$setting.url[4]}>"><img src="<{$setting.goods_img[0][0]}>" width="<{$setting.img_width}>"
    height="<{$setting.img_height}>"></a>
    <a href="<{$setting.url[5]}>"><img src="<{$setting.goods_img[0][1]}>" width="<{$setting.img_width}>"
    height="<{$setting.img_height}>"></a>
    </div>

    </div>
    </div>
    <script type="text/javascript">
    (function($){
    $(function(){
    new JqTab('j-tab01',{tabbtn:'tn1',tabitem:'t1-cont-item'});
    })
    });

    </script>
    -----------------------
    _config.html
    <div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="">
    第一个大图:
    <label>
    <input name="first_big_img" value="<{$setting.first_big_img}>">
    <input type="button" value="<{t app='b2c'}>上传图片<{/t}>">
    </label>
    </td>
    <td>
    宽度:<input value="<{$setting.first_big_img_width|default:202}>">
    </td>
    <td>
    高度:<input value="<{$setting.first_big_img_height|default:290}>">
    </td>
    </tr>
    </table>
    </td>
    </tr>

    <tr>
    <td>
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td>
    宽度:<input name="img_width" value="<{$setting.img_width|default:499}>">
    高度:<input name="img_height" value="<{$setting.img_height|default:290}>">
    </td>
    </tr>

    <tr>

    </tr>
    </table>
    </td>
    </tr>
    </table>
    </div>
    <script type="text/javascript">
    var tag_type="label";
    $$("#goods_exshow_config.uploadbtn").addEvent('click',function(e){bindevent(this)});
    function bingevent(e1){
    var target=$(e1).getParent(tag_type).getElement('.imgsrc');
    var url='index.php?app=desktop&act=alertpages&goto'+encondeURIComponent("index.php?app=image
    &ctl=admin_manage&act=imgae_broswer&type=big
    ");
    return new imgDialog(url,{onCallback:function(image_id,image_src){
    target.value=image_src;
    }});
    }

    </script>>

  • 相关阅读:
    verilog parameter 位宽问题
    quartus prime 16.0 报警告 inferring latch
    Quartus prime16.0 组合逻辑always块中敏感向量表不全
    centos6.8下安装matlab2009(图片转帖)
    centos6.8下普通用户下quartus编程识别不到用户开发板
    centos6.8下安装破解quartus prime16.0以及modelsim ae安装
    PHP TP 生成二维码
    模态框MODAL的一些事件捕捉
    iOS微信第三方登录实现
    PHP ini 配置无效的坑给自己记录
  • 原文地址:https://www.cnblogs.com/smartyman/p/3897792.html
Copyright © 2011-2022 走看看