实例介绍
【实例截图】
【核心代码】
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="{$keywords}" />
<meta name="Description" content="{$description}" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>{$page_title}</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" href="animated_favicon.gif" type="image/gif" />
<link href="{$ecs_css_path}" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss xml" title="RSS|{$page_title}" href="{$feed_url}" />
{* 包含脚本文件 *}
{insert_scripts files='common.js,index.js'}
</head>
<body class="index_body">
<!-- #BeginLibraryItem "/library/page_header.lbi" --><!-- #EndLibraryItem -->
<div class="wrap">
<div class="block clearfix" >
<!--焦点图和站内快讯 START-->
<div class="box clearfix">
<!-- #BeginLibraryItem "/library/index_ad.lbi" --><!-- #EndLibraryItem -->
</div>
<div class="blank"></div>
<!-- TemplateBeginEditable name="主区域" -->
<!-- #BeginLibraryItem "/library/recommend_best.lbi" -->
<!-- {if $best_goods} -->
<div class="cat_tit"> <span><a href="../search.php?intro=best" >精品推荐</a></span> <a href="../search.php?intro=best">更多>></a> </div>
<div style="border-left:1px solid #e1e1e1; width:959px; float:left" class="pro_box">
<!--{foreach from=$best_goods item=goods name=best_goods}-->
<div class="goodsItem" <!--{if $smarty.foreach.best_goods.index mod 2 eq 0}-->
style='width:225px'
<!-- {/if} --> >
<a href="{$goods.url}"><img src="{$goods.thumb}" alt="{$goods.name|escape:html}" class="goodsimg" /></a><br />
<p><a href="{$goods.url}" title="{$goods.name|escape:html}">{$goods.short_style_name}</a></p>
<!--{if $goods.promote_price neq "" } -->
<font class="f1">{$goods.promote_price}</font><br />
<!--{else}-->
<font class="f1">{$goods.shop_price}</font><br />
<!--{/if}-->
</div>
<!--{/foreach}-->
</div>
<div class="blank"></div>
<!-- {/if} -->
<!-- #EndLibraryItem -->
<!-- #BeginLibraryItem "/library/recommend_new.lbi" -->
<!-- {if $new_goods} -->
<div class="cat_tit"> <span><a href="../search.php?intro=new" >新品上架</a></span> <a href="../search.php?intro=new">更多>></a> </div>
<div style="border-left:1px solid #e1e1e1; width:959px; float:left" class="pro_box">
<!--{foreach from=$new_goods item=goods name=new_goods}-->
<div class="goodsItem" <!--{if $smarty.foreach.new_goods.index mod 2 eq 0}-->
style='width:225px'
<!-- {/if} --> >
<a href="{$goods.url}"><img src="{$goods.thumb}" alt="{$goods.name|escape:html}" class="goodsimg" /></a><br />
<p><a href="{$goods.url}" title="{$goods.name|escape:html}">{$goods.short_style_name}</a></p>
<!--{if $goods.promote_price neq "" } -->
<font class="f1">{$goods.promote_price}</font><br />
<!--{else}-->
<font class="f1">{$goods.shop_price}</font><br />
<!--{/if}-->
</div>
<!--{/foreach}-->
</div>
<div class="blank"></div>
<!-- {/if} -->
<!-- #EndLibraryItem -->
<!-- #BeginLibraryItem "/library/recommend_hot.lbi" -->
<!-- {if $hot_goods} -->
<div class="cat_tit"> <span><a href="../search.php?intro=hot" >热卖商品</a></span> <a href="../search.php?intro=hot">更多>></a> </div>
<div style="border-left:1px solid #e1e1e1; width:959px; float:left" class="pro_box">
<!--{foreach from=$hot_goods item=goods name=hot_goods}-->
<div class="goodsItem" <!--{if $smarty.foreach.hot_goods.index mod 2 eq 0}-->
style='width:225px'
<!-- {/if} --> >
<a href="{$goods.url}"><img src="{$goods.thumb}" alt="{$goods.name|escape:html}" class="goodsimg" /></a><br />
<p><a href="{$goods.url}" title="{$goods.name|escape:html}">{$goods.short_style_name}</a></p>
<!--{if $goods.promote_price neq "" } -->
<font class="f1">{$goods.promote_price}</font><br />
<!--{else}-->
<font class="f1">{$goods.shop_price}</font><br />
<!--{/if}-->
</div>
<!--{/foreach}-->
</div>
<div class="blank"></div>
<!-- {/if} -->
<!-- #EndLibraryItem -->
<!-- TemplateEndEditable -->
<div class="blank"></div>
<!-- #BeginLibraryItem "/library/tupian_bottom.lbi" --><!-- #EndLibraryItem -->
<!-- TemplateBeginEditable name="订单查询" -->
<!-- #BeginLibraryItem "/library/order_query.lbi" -->
<!--{if empty($order_query)}-->
<script>var invalid_order_sn = "{$lang.invalid_order_sn}"</script>
<div class="box_dingdan" >
<div class="boxCenterList">
<form name="ecsOrderQuery">
<input type="text" value="例如:订单" onclick="javascript:this.value=''" name="order_sn" class="inputBg" style=" float:right" />
<div class="blank5"></div>
<input type="button" value="" class="bnt_blue_2" onclick="orderQuery()" />
</form>
<div id="ECS_ORDER_QUERY" style="margin-top:8px;">
<!--{else}-->
<!--{if $order_query.user_id}-->
<b>{$lang.order_number}:</b><a href="user.php?act=order_detail&order_id={$order_query.order_id}" class="f6">{$order_query.order_sn}</a><br>
<!--{else}-->
<b>{$lang.order_number}:</b>{$order_query.order_sn}<br>
<!--{/if}-->
<b>{$lang.order_status}:</b><br><font class="f1">{$order_query.order_status}</font><br>
<!--{if $order_query.invoice_no }-->
<b>{$lang.consignment}:</b>{$order_query.invoice_no}<br>
<!--{/if}-->
{if $order_query.shipping_date}:{$lang.shipping_date} {$order_query.shipping_date}<br>
<!--{/if}-->
<!--{/if}-->
</div>
</div>
</div>
<div class="blank5"></div>
<!-- #EndLibraryItem -->
<!-- TemplateEndEditable -->
</div>
<div class="blank"></div>
<!-- #BeginLibraryItem "/library/page_footer.lbi" --><!-- #EndLibraryItem -->
</div>
</body>
</html>
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明


网友评论
我要评论