- Timestamp:
- 2007/01/22 11:45:22 (19 years ago)
- Location:
- temp/test-xoops.ec-cube.net/html/modules/newbb
- Files:
-
- 2 edited
-
response.php (modified) (2 diffs)
-
templates/newbb_response.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/test-xoops.ec-cube.net/html/modules/newbb/response.php
r1270 r1272 204 204 $xoopsTpl->assign('forum_name', 'Âбþ¾õ¶·°ìÍ÷'); 205 205 206 $sql = 'SELECT topic_id, topic_title, topic_response, from_unixtime(topic_ time) as topic_time, uname FROM xoops_bb_topics as tpc left join xoops_users as usr on tpc.topic_response_uid = usr.uid ORDER BY topic_response, topic_id DESC';206 $sql = 'SELECT topic_id, topic_title, topic_response, from_unixtime(topic_last_posttime) as topic_time, uname FROM xoops_bb_topics as tpc left join xoops_users as usr on tpc.topic_response_uid = usr.uid ORDER BY topic_response, topic_id DESC'; 207 207 if ( !$result = $xoopsDB->query($sql) ) { 208 208 redirect_header('index.php',2,_MD_ERROROCCURED); … … 218 218 'topic_response'=>$myrow['topic_response'], 219 219 'topic_response_user'=>$myrow['uname'], 220 'topic_ time'=>$myrow['topic_time']));220 'topic_last_posttime'=>$myrow['topic_last_posttime'])); 221 221 } 222 222 -
temp/test-xoops.ec-cube.net/html/modules/newbb/templates/newbb_response.html
r1271 r1272 39 39 <{foreach item=topic from=$topics}> 40 40 <tr class="<{cycle values="even,odd"}>"> 41 <td align="center"><{$topic.topic_icon}></td>42 41 <td> [<{$topic.fix}>:<{$topic.topic_number}>]<a href="<{$topic.topic_link}>"><{$topic.topic_title}></a><{$topic.topic_page_jump}></td> 43 42 <td align="center" valign="middle"> … … 45 44 <{if $arrResponse[$topic.topic_response] != ""}> (<{$topic.topic_response_user|default:'¥²¥¹¥È'}>) <{/if}> 46 45 </td> 47 <td align="center" valign="middle"><{$topic.topic_replies}></td> 48 <td align="center" valign="middle"><{$topic.topic_poster}></td> 49 <td align="center" valign="middle"><{$topic.topic_views}></td> 50 <td align="right" valign="middle"><{$topic.topic_last_posttime}><br /><{$lang_by}> <{$topic.topic_last_poster}></td> 46 <td align="right" valign="middle"><{$topic.topic_last_posttime}></td> 51 47 </tr> 52 48 <{/foreach}>
Note: See TracChangeset
for help on using the changeset viewer.
