本帖最后由 aiakos 于 2010-3-8 09:57 编辑
下面是模型里的viewcomment.html.php文件- <?exit?>
- <!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=gb2312" />
- <title>$title $_SCONFIG[seotitle]</title>
- <meta name="keywords" content="$keywords $_SCONFIG[seokeywords]" />
- <meta name="description" content="$description" />
- <link href="{S_URL}/templates/$_SCONFIG[template]/css/_g.css" type="text/css" rel="stylesheet" />
- <link href="{S_URL}/templates/$_SCONFIG[template]/css/style.css" type="text/css" rel="stylesheet" />
- <link href="{S_URL}/templates/$_SCONFIG[template]/css/_liveShow.css" type="text/css" rel="stylesheet" />
- <link href="{S_URL}/templates/$_SCONFIG[template]/css/main.css" type="text/css" rel="stylesheet" />
- <link href="{S_URL}/templates/$_SCONFIG[template]/css/list.css" type="text/css" rel="stylesheet" />
- <script src="{S_URL}/include/js/ajax.js" type="text/javascript" language="javascript"></script>
- <script src="{S_URL}/include/js/common.js" type="text/javascript" language="javascript"></script>
- </head>
- <body class="home-page" bgcolor="#e6e6e6">
- <div class="wrapper">
- <!--{eval include template($tpldir.'/header.html.php', 1);}-->
- <!-- 主导航 -->
- <div id="nav">
- <div class="nav_zone">
- <ul>
- <li ><a href="{S_URL}/">首 页</a></li>
- <li ><a href="{S_URL}/m.php?name=life">生活服务</a></li>
- <li ><a href="{S_URL}/m.php?name=house">房屋信息</a></li>
- <li ><a href="{S_URL}/m.php?name=city">同城活动</a></li>
- <li ><a href="{S_URL}/m.php?name=market">交易市场</a></li>
- <li ><a href="{S_URL}/m.php?name=job">招聘求职</a></li>
- <li class="current"><a href="{S_URL}/m.php?name=love">交友征婚</a></li>
- <li ><a href="{S_URL}/m.php?name=company">口碑商家</a></li>
- <li><a href="{S_URL}/?action-category-catid-3">本地资讯</a></li>
- </ul>
- </div>
- <!-- 当前位置+颜色切换 结束 -->
-
- <!-- 主导航结束 -->
- <!-- 当前位置+颜色切换 -->
- <!--{eval $pages=$_GET;}-->
- <div class="search_box clearfix">
- <div class="location">您当前的位置:<a href="{S_URL}/">首页</a>
- <!--{loop $guidearr $value}-->
- > <a href="$value[url]">$value[name]</a>
- <!--{/loop}--></span> >>查看评论
- </div></div>
- <div id="article" class="comment_caption">
- <h1><a href="#action/model/name/$modelsinfoarr[modelname]/itemid/$itemid#"><font style="font-size:14px; color:#CC0000">$item[subject]</font></a></h1>
- <p id="article_extinfo">查看数: $item[viewnum] | 评论数: $item[replynum]</p>
- </div>
- <div class="comment">
- <!--{loop $iarr $value}-->
- <div class="comment_list">
- <div class="comment_list_caption">
- <div class="box_l"><!--{if empty($value[authorid])}-->$value[author]<!--{else}--><a href="{S_URL}/space.php?uid=$value[authorid]" class="author">$value[author]</a><!--{/if}--> (#date("Y-n-d H:i:s", $value["dateline"])#)</div>
- <div class="box_r"><!--{if empty($value[authorid]) && $value[authorid] == $_SGLOBAL['supe_uid'] || $_SGLOBAL['member']['groupid'] == 1}-->
- <a href="#action/viewcomment/itemid/$value[itemid]/cid/$value[cid]/op/delete/php/1#">删除</a>
- <!--{/if}-->
- </div>
- </div>
- <div class="comment_content">$value[message]</div>
- </div>
- <!--{/loop}-->
- <!--{if $multipage}-->
- $multipage
- <!--{/if}-->
-
- <div id="sign_msg">
- <form action="#action/modelcomment/itemid/$item[itemid]/name/$modelsinfoarr[modelname]/php/1#" method="post">
- <script language="javascript" type="text/javascript" src="{S_URL}/batch.formhash.php?rand={eval echo rand(1, 999999)}"/></script>
- <fieldset>
- <legend>发表评论</legend>
- <textarea id="messagecomm" name="messagecomm" onfocus="showcode()" onkeydown="ctlent(event,'postcomm');"></textarea><br />
- <!--{if empty($_SCONFIG['noseccode'])}-->
- <div class="security_code">
- <label for="seccode">验证码:</label><input type="text" id="seccode" name="seccode" maxlength="4" style="width:85px;" /> <img id="xspace-imgseccode" src="{S_URL}/do.php?action=seccode" onclick="javascript:newseccode(this);" alt="seccode" title="看不清?点击换一个" /> <a class="c_blue" title="看不清?点击换一个" href="javascript:newseccode($('xspace-imgseccode'));">换一个</a>
- </div>
- <!--{/if}-->
-
- <input type="image" src="{S_URL}/templates/$_SCONFIG[template]/images/huifu.gif">
- <input type="hidden" value="submit" name="submitcomm" /><input type="hidden" id="itemid" name="itemid" value="$item[itemid]" />
- </fieldset>
- </form>
- </div><!--sign_msg end-->
-
- </div>
- </div>
- <!--{if !empty($ads3['pagemovead']) || !empty($ads3['pageoutad'])}-->
- <!--{if !empty($ads3['pagemovead'])}-->
- <div id="coupleBannerAdv" style="z-index: 10; position: absolute; width:100px;left:10px;top:10px;display:none">
- <div style="position: absolute; left: 6px; top: 6px;">
- $ads3[pagemovead]
- <br />
- <img src="{S_URL}/images/base/advclose.gif" onMouseOver="this.style.cursor='hand'" onClick="closeBanner('coupleBannerAdv');">
- </div>
- <div style="position: absolute; right: 6px; top: 6px;">
- $ads3[pagemovead]
- <br />
- <img src="{S_URL}/images/base/advclose.gif" onMouseOver="this.style.cursor='hand'" onClick="closeBanner('coupleBannerAdv');">
- </div>
- </div>
- <!--{/if}-->
- <!--{if !empty($ads3['pageoutad'])}-->
- <div id="floatAdv" style="z-index: 10; position: absolute; width:100px;left:10px;top:10px;display:none">
- <div id="floatFloor" style="position: absolute; right: 6px; bottom:-700px">
- $ads3[pageoutad]
- </div>
- </div>
- <!--{/if}-->
- <script type="text/javascript" src="{S_URL}/include/js/floatadv.js"></script>
- <script type="text/javascript">
- <!--{if !empty($ads3['pageoutad'])}-->
- var lengthobj = getWindowSize();
- lsfloatdiv('floatAdv', 0, 0, 'floatFloor' , -lengthobj.winHeight).floatIt();
- <!--{/if}-->
- <!--{if !empty($ads3['pagemovead'])}-->
- lsfloatdiv('coupleBannerAdv', 0, 0, '', 0).floatIt();
- <!--{/if}-->
- </script>
- <!--{/if}-->
- <!--{if !empty($ads3['pageoutindex'])}-->
- $ads3[pageoutindex]
- <!--{/if}-->
- <!--{template footer}-->
复制代码 |