ecshop團購說明很簡單。添加個圖片都很不方便, 這次我把他改成商品詳情那種編輯器。
先看效果圖
1、打開 admin/group_buy.php 在 20 行左右添加
include_once(ROOT_PATH . 'includes/fckeditor/fckeditor.php'); // 包含 html editor 類文件
再繼續在 admin/group_buy.php 查找
if ($_REQUEST['act'] == 'add')
{
$group_buy = array(
'act_id' => 0,
'start_time' => date('Y-m-d', time() + 86400),
'end_time' => date('Y-m-d', time() + 4 * 86400),
'price_ladder' => array(array('amount' => 0, 'price' => 0))
);
在這段代碼下邊添加如下代碼(大概91行左右)
create_html_editor('act_desc');
再繼續查找代碼(大概101行左右)
$group_buy = group_buy_info($group_buy_id);
在下邊添加代碼
create_html_editor('act_desc',$group_buy['act_desc']);
2、打開 admin/templates/group_buy_info.htm 查找代碼
<textarea name="act_desc" cols="40" rows="3" >{$group_buy.act_desc}</textarea>
替換成如下代碼
{$FCKeditor}
再在就可以了,進入后臺清除緩存,看看。
新聞熱點
疑難解答