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.
 
 
 
 

140 lines
4.9 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_single.js, ../js/transport_jquery.js"}
<div class="form-div">
<!--<form action="javascript:listTable.sortSingle('comment_id');" name="searchForm">
<img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
{$lang.search_single_order_sn} <input type="text" name="keyword" id="keyword" /> <input onClick="onsub_keyword();" type="submit" class="Button" value="{$lang.button_search}" />
</form>-->
</div>
<script>
function onsub_keyword()
{
var keyword = document.getElementById('keyword').value;
Ajax.call('comment_manage.php?act=single_query', 'keyword=' + keyword, get_reply_single, 'GET', 'JSON');
}
function get_reply_single(res)
{
}
</script>
<form method="POST" action="comment_manage.php?act=" 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">
<a href="javascript:listTable.sortSingle('comment_id'); ">{$lang.record_id}</a> {$sort_comment_id}</th>
<th><a href="javascript:listTable.sortSingle('user_name'); ">{$lang.user_name}</a>{$sort_user_name}</th>
<th><a href="javascript:listTable.sortSingle('comment_type'); ">{$lang.single_order_sn}</a>{$sort_comment_type}</th>
<th><a href="javascript:listTable.sortSingle('id_value'); ">{$lang.single_obj}</a>{$sort_id_value}</th>
{if $priv_ru eq 1}
<th>{$lang.goods_steps_name}</th>
{/if}
<th><a href="javascript:listTable.sortSingle('ip_address'); ">{$lang.single_order_addtime}</a>{$sort_ip_address}</th>
<th><a href="javascript:listTable.sortSingle('add_time'); ">{$lang.single_addtime}</a>{$sort_add_time}</th>
<th>{$lang.comment_flag}</th>
<th>{$lang.handler}</th>
</tr>
{foreach from=$single_list item=single}
<tr>
<td><input value="{$single.single_id}" name="checkboxes[]" type="checkbox">{$single.single_id}</td>
<td>{if $single.user_name}{$single.user_name}{else}{$lang.anonymous}{/if}</td>
<td align="center">{$single.order_sn}</td>
<td align="center"><a href="../goods.php?id={$single.goods_id}" target="_blank">{$single.goods_name}</td>
{if $priv_ru eq 1}
<td align="center" style="color:#F00" width="10%">{$single.shop_name}</font></td>
{/if}
<td align="center">{$single.order_time}</td>
<td align="center">{$single.addtime}</td>
<td align="center">{if $single.is_audit eq 1}{$lang.display}{else}{$lang.hidden}{/if}</td>
<td align="center">
<a href="comment_manage.php?act=single_reply&amp;id={$single.single_id}">{$lang.view_content}</a>
{if $single_edit_delete}
|
<a href="javascript:" onclick="listTable.remove({$single.single_id}, '{$lang.drop_confirm}', 'single_remove')">{$lang.remove}</a>
{/if}
</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_single}</option>
<option value="allow">{$lang.allow}</option>
<option value="deny">{$lang.forbid}</option>
</select>
<input type="hidden" name="act" value="batch" />
<input type="submit" name="drop" id="btnSubmit" value="{$lang.button_submit}" class="button" disabled="true" /></div></td> -->
<td align="right">{include file="page_single.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['allow'] = '{$lang.cfm_allow}';
cfm['remove'] = '{$lang.cfm_remove}';
cfm['deny'] = '{$lang.cfm_deny}';
{foreach from=$filter item=item key=key}
listTable.filter.{$key} = '{$item}';
{/foreach}
{literal}
onload = function()
{
//document.forms['searchForm'].elements['keyword'].focus();
// 开始检查订单
startCheckOrder();
}
/**
* 搜索评论
*/
function searchComment()
{
var keyword = '';
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}