?? template.txt
字號:
文件: article_info.lbi
描述: 修改文章詳情庫
詳細(xì)信息:
把{if $article.open_type eq 2}
替換為{if $article.open_type eq 2 or $article.open_type eq 1}
已修改完成模板: shaobag
--------------------------------------------------------------------
文件: 所有dwt文件
描述: 將js語言賦值部分改為鏈接
詳細(xì)信息:
模板文件開頭部分出現(xiàn)以下內(nèi)容的部分:
<script type="text/javascript">
<!--
// 這里把JS用到的所有語言都賦值到這里
{foreach from=$lang.js_languages key=key item=item}
var {$key} = "{$item}";
{/foreach}
//-->
</script>
更改為:
<script type="text/javascript" src="index.php?act=js_languages"></script>
已修改完成模板: shaobag
--------------------------------------------------------------------
文件: user_register.lbi
描述: 將默認(rèn)的生日日期設(shè)置為1980-1-1
詳細(xì)信息:
44行:
<td>{html_select_date field_order="YMD" prefix="birthday" start_year="-100" end_year="+1" display_days=true month_format="%m" day_value_format="%02d"}</td>
替換為:
<td>{html_select_date field_order="YMD" prefix="birthday" start_year="-100" end_year="+1" display_days=true month_format="%m" day_value_format="%02d" time='1980-01-01'}</td>
已修改完成模板: shaobag
--------------------------------------------------------------------
文件: footer.lbi
描述: 增加skype聯(lián)系方式
詳細(xì)信息:
36行后加入:
<!-- Skype {foreach from=$skype item=im} -->
<a href="callto://{$im|escape:url}">{$im}</a>
<!-- {/foreach} -->
已修改完成模板: shaobag
--------------------------------------------------------------------
文件: search_form.lbi
描述: 搜索表單增加分類列表框
詳細(xì)信息:
<select name="category" id="category">
<option value="0">{$lang.all_category}</option>
{$category_list}
</select>
已修改完成模板: shaobag
---------------------------------------------------------------------------------
文件:sigin.lbi
描述:增加用戶名默認(rèn)值
詳細(xì)信息:
文本框由
<input name="username" type="text" class="textbox-light" size="8" tabindex="1" />
改為:
<input name="username" type="text" class="textbox-light" size="8" tabindex="1" value="{$ecs_username}"/>
已修改完成模板: shaobag
---------------------------------------------------------------------------------
文件:search_advanced.lbi
描述:增加屬性檢索表單選項(xiàng)
詳細(xì)信息:
將原來<!--{if $goods_type_list}-->.......................................<!--{/if}-->中內(nèi)容替換為:
<!--{if $goods_type}-->
<!--{if $goods_type_list}-->
<tr>
<td width="10%">{$lang.extension}</td>
<td>
<select name="goods_type" onChange="getAttr(this.value)">
<option value="0">{$lang.all_option}</option>
{html_options options=$goods_type_list}
</select>
</td>
</tr>
<!--{foreach from=$goods_type item=type key=key}-->
<tbody id="goods_type_{$key}" style="display: none;">
<!--{foreach from=$type item=item}-->
<!--{if $item.type eq 1}-->
<tr>
<td width="10%">{$item.attr}:</td>
<td><input name="attr[{$item.id}]" type="text" size="20" maxlength="120" /></td>
</tr>
<!--{/if}-->
<!--{if $item.type eq 2}-->
<tr>
<td width="10%">{$item.attr}:</td>
<td><input name="attr[{$item.id}][from]" type="text" size="5" maxlength="5" />-<input name="attr[{$item.id}][to]" type="text" maxlength="5" />
</td>
</tr>
<!--{/if}-->
<!--{if $item.type eq 3}-->
<tr>
<td width="10%">{$item.attr}:</td>
<td>
<select name="attr[{$item.id}]">
<option value="0">{$lang.all_option}</option>
{html_options options=$item.value}
</select>
</td>
</tr>
<!--{/if}-->
<!--{/foreach}-->
</tbody>
<!--{/foreach}-->
<!--{else}-->
<!--{foreach from=$goods_type item=item}-->
<!--{if $item.type eq 1}-->
<tr>
<td width="10%">{$item.attr}:</td>
<td><input name="attr[{$item.id}]" type="text" size="20" maxlength="120" /></td>
</tr>
<!--{/if}-->
<!--{if $item.type eq 2}-->
<tr>
<td width="10%">{$item.attr}:</td>
<td><input name="attr[{$item.id}][from]" type="text" size="5" maxlength="5" />-<input name="attr[{$item.id}][to]" type="text" maxlength="5" /></td>
</tr>
<!--{/if}-->
<!--{if $item.type eq 3}-->
<tr>
<td width="10%">{$item.attr}:</td>
<td><select name="attr[{$item.id}]">
<option value="0">{$lang.all_option}</option>
{html_options options=$item.value}
</select>
</td>
</tr>
<!--{/if}-->
<!--{/foreach}-->
<!--{/if}-->
<!--{/if}-->
文件:snatch.dwt
描述:優(yōu)化js包含和倒計(jì)時功能
詳細(xì)描述:
頁面<head></head>中js的包含部分改成以下樣子。
<script type="text/javascript" src="includes/cpaint/cpaint.js"></script>
<script type="text/javascript" src="includes/common.js"></script>
<script type="text/javascript" src="index.php?act=js_languages"></script>
<script type="text/javascript" src="includes/lefttime.js"></script>
頁面結(jié)束位置,onload時觸發(fā)倒計(jì)時功能
由原來:
onload = function()
{
window.setInterval("newPrice()",5000);
bid(-1);
}
修改為:
onload = function()
{
window.setInterval("newPrice()",5000);
onload_leftTime();
bid(-1);
}
---------------------------------------
文件:snatch_goods.lbi
描述:對默認(rèn)倒計(jì)時加入數(shù)值
詳細(xì)信息:
對原來
<span class="goods-price" id="leftTime"></span>
改為
<span class="goods-price" id="leftTime"><input type="hidden" value="{$end_utc_time|default:0}" /></span>
------------------------------------------
文件:goods.dwt
描述:優(yōu)化倒計(jì)時功能
詳細(xì)信息:
將頭部以下部分信息刪除
<script type="text/Javascript">
var residual_time = {$goods.residual_time|default:0};
var day = "{$lang.day|default:day}";
var hour = "{$lang.hour|default:hour}";
var minute = "{$lang.minute|default:minute}";
var second = "{$lang.second|default:second}";
var end = "{$lang.end|default:end}";
</script>
在頁面尾部加入觸發(fā)事件
<script type="text/javascript">
<!-- {literal} -->
onload = function()
{
onload_leftTime();
}
<!-- {/literal} -->
</script>
---------------------------------------------
文件:goods_info.lbi
描述:對默認(rèn)倒計(jì)時加入數(shù)值
詳細(xì)描述:
對原來
<span class="goods-price" id="leftTime"></span>
改為
<span class="goods-price" id="leftTime"><input type="hidden" value="{$end_utc_time|default:0}" /></span>
---------------------------------------------
文件:group_buy_order_detail.dwt
描述:對“修改”鏈接的修改
詳細(xì)描述:將原來的:<a href="javascript:saveOrder('consignee');" style="float:right;margin:5px 10px 0 0;">
改為:<a href="?act=consignee" style="float:right;margin:5px 10px 0 0;">
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -