本页主题: SMARTY调用问题的解决方案 打印 | 加为IE收藏 | 收藏主题 | 上一主题 | 下一主题

lwenj

该用户目前不在线
级别: 论坛版主
精华: 2
发帖: 237
威望: 242 点
金钱: 2410 RMB
贡献值: 0 点
注册时间:2007-05-17
最后登录:2008-06-16

SMARTY调用问题的解决方案

本人想在一body.tpl模板中调用FCKeditor,不知道如何做。急~~~

我在的主页面是index.php如下:

  <?php
              require "main.php";
              $smarty->assign("title", "首页");

              //下面是运有FCK
        include("fckeditor/fckeditor.php") ;
        $oFCKeditor = new FCKeditor('FCKeditor1') ;
        $oFCKeditor->BasePath = '../FCKeditor/';
        $oFCKeditor->Value ='';
        $oFCKeditor->Width='270';
        $oFCKeditor->Height='120';
        $oFCKeditor->Create();

                $smarty->display('header.tpl');  //显示首页
        $smarty->display('body.tpl');    //本人就是想在这body.tpl中把$oFCKeditor->Create();显示出来        $smarty->display('footer.tpl');  //显示页脚
?>

在这个 body.tpl 模板中我要把FCK编辑器放在这个表单中如下:

<form action="text.php" method="post"  >
                                                       
<p >
<span  class="liuyan">留言内容<span>
  想把FCK编辑器放这里面。不知道有没朋友这样用过。希望能教教我,谢谢~!~~                                       
</p>                                       
                                       
<input type="reset" id="upreset"name="Submit" value="重置" /> 
<input type="submit" id="sbutton" value="确定" />
</form>
小窝:…… http://www.lwenj.cn ……
顶端 Posted: 2007-09-17 18:17 | [楼 主]
thetokin

该用户目前不在线
级别: 禁止发言
精华: 0
发帖: 12
威望: 13 点
金钱: 120 RMB
贡献值: 0 点
注册时间:2008-05-31
最后登录:2008-07-12

网络游戏是个毒瘤,不过沉醉其中

网络游戏是个毒瘤,不过沉醉其中




We offering the Badge of Justice wow gold cheap for a long time and such customers enjoy it, we not only reduce the price for Badge of Justice aoc power leveling, but also offering the exchange of Epic age of conan gold and gears. During the process you will get fast farming Badge of Justice. To advance your [url=www.gold-aoc.com]aoc gold[/url]  , and the items will get during the wow gold.
顶端 Posted: 2008-06-16 03:29 | 1 楼
开源嘛论坛 » linux、mysql、apache探讨

Guest cache page, Update at 2008-12-04 12:03 桂ICP备07006725号
Powered by PHPWind v6.0 Certificate Code © 2003-07 PHPWind.com Corporation