You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

111 lines
3.3 KiB

<!-- $Id: comment_list.htm 14216 2008-03-10 02:27:21Z testyang $ -->
{if $full_page}
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}
<div class="form-div">
<form action="javascript:searchComment()" name="searchForm">
<img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
{$lang.search_comment} <input type="text" name="keyword" /> <input type="submit" class="Button" value="{$lang.button_search}" />
</form>
</div>
<form method="POST" action="discuss_circle.php" name="listForm" onsubmit="return confirm_bath()">
<!-- start comment list -->
<div class="list-div" id="listDiv">
{/if}
<table cellpadding="3" cellspacing="1">
<tr>
<th>
<input onclick='listTable.selectAll(this, "checkboxes")' type="checkbox">
{$lang.record_id}</th>
<th>{$lang.user_name}</th>
<th>{$lang.reply_centent}</th>
<th>{$lang.quote_name}</th>
<th>{$lang.discuss_time}{$sort_ip_address}</th>
<th>{$lang.handler}</th>
</tr>
{foreach from=$reply_list item=list}
<tr>
<td align="center"><input value="{$list.dis_id}" name="checkboxes[]" type="checkbox">{$list.dis_id}</td>
<td align="center">{$list.user_name}</td>
<td align="center">{$list.dis_text}</td>
<td align="center">{if $list.quote_id}{$list.quote_name}{else}{$lang.this_text}{/if}</td>
<td align="center">{$list.add_time}</td>
<td align="center">
<a href="javascript:" onclick="listTable.remove({$list.dis_id}, '{$lang.drop_reply_confirm}')">{$lang.remove}</a>
</td>
</tr>
{foreachelse}
<tr><td class="no-records" colspan="10">{$lang.no_records}</td></tr>
{/foreach}
</table>
<table cellpadding="4" cellspacing="0">
<tr>
<td>
<div>
<select name="sel_action">
<option value="remove">{$lang.drop_select}</option>
</select>
<input type="hidden" name="dis_id" value="{$dis_id}" />
<input type="hidden" name="act" value="batch_drop" />
<input type="submit" name="drop" id="btnSubmit" value="{$lang.button_submit}" class="button" disabled="true" /></div></td>
<td align="right">{include file="page.htm"}</td>
</tr>
</table>
{if $full_page}
</div>
<!-- end comment list -->
</form>
<script type="text/javascript" language="JavaScript">
<!--
listTable.recordCount = {$record_count};
listTable.pageCount = {$page_count};
cfm = new Object();
cfm['remove'] = '{$lang.cfm_remove}';
{foreach from=$filter item=item key=key}
listTable.filter.{$key} = '{$item}';
{/foreach}
{literal}
onload = function()
{
document.forms['searchForm'].elements['keyword'].focus();
listTable.query = "discuss_reply_query";
}
function searchComment()
{
var keyword = Utils.trim(document.forms['searchForm'].elements['keyword'].value);
if (keyword.length > 0)
{
listTable.filter['keywords'] = keyword;
listTable.filter.page = 1;
listTable.loadList();
}
else
{
document.forms['searchForm'].elements['keyword'].focus();
}
}
{/literal}
function confirm_bath()
{
var action = document.forms['listForm'].elements['sel_action'].value;
return confirm(cfm[action]);
}
//-->
</script>
{include file="pagefooter.htm"}
{/if}