如果你的首页设置不生成html
可以在首页模板这样写
{if $_userid}
登录后的HTML
{else}
登录框HTML
{/if}
如果设置生成首页可以这样:
1、在根目录下建立一个 php 文件 例如 login.js.php 内容如下
<?php
require './common.inc.php';
include template('line-index');
?>2、复制template\default\line.htm 为 line-index.htm
内容参考line.htm书写,注意用document.write来输出html
3、在需要调用登录框的地方添加下面的代码
<script type="text/javascript" src="{DT_PATH}login.js.php"></script>
























18605917465
客服QQ