<style type="text/css">
<!-- 
.STYLE1 {
	color: #FF0000;
	font-weight: bold;
}
.STYLE2 {
	color: #009933;
	font-weight: bold;
}
.STYLE3 {
	color: #000000;
	font-weight: bold;
}
 -->
</style>
<tpl> if $score_array[0].score_id neq '' </tpl>
   <table class="from_table2_one top-1" >
 	<thead>
    	<tr class="area_ajax_list_title">
		  <th class="pd-left" width="35"><tpl> $langSysScoreAppraiser </tpl></th>
		  <th width="50"><tpl> $langSysSAppraiser </tpl></th>
		  <th width="270"><tpl> $langSysScoreAppraiserMerchandise </tpl></th>
		  <th width="55"><tpl> $langSysScoreByAppraiser </tpl></th>
		  <th width="55"><tpl> $langSysScoreAppraiseType </tpl></th>
		  <th width="70"><tpl> $langSysScoreMessageInfo </tpl></th>
			<th width="70"><tpl> $langSysScoreAppraiseTime </tpl></th>
		  <th width="45"><tpl> $langCOperation </tpl></th>
	  	</tr> 
     </thead>
	  	<tpl> section name=i loop=$score_array </tpl>
        <tr>
          <td class="pd-left" width="35"  align="left"><tpl> if $score_array[i].score eq "1" </tpl><span class="STYLE1"><tpl> $langPScoreGood </tpl>
          </span>
            <tpl> /if </tpl><tpl> if $score_array[i].score eq "0" </tpl><span class="STYLE2"><tpl> $langPScoreMid </tpl>
            </span>
            <tpl> /if </tpl><tpl> if $score_array[i].score eq "-1" </tpl><span class="STYLE3"><tpl> $langPScoreBad </tpl>
            </span>
          <tpl> /if </tpl></td>
         
            <td width="50"  align="left"><a href="<tpl> $site_url </tpl>/store/index.php?userid=<tpl> $score_array[i].member_id </tpl>" target="_blank">
          <tpl> $score_array[i].member_name </tpl></a></td>
         
            <td width="270" align="left"  >
				<tpl> if $score_array[i].html_url neq '' </tpl>
					<a href="<tpl> $score_array[i].html_url </tpl>" target="_blank"><tpl> $score_array[i].p_name </tpl></a>
				<tpl> else </tpl>
				<a href="<tpl> $site_url </tpl>/home/product.php?action=view&pid=<tpl> $score_array[i].p_code </tpl>" target="_blank"><tpl> $score_array[i].p_name </tpl></a>
				<tpl> /if </tpl>
				<div><tpl> $langSysScoreOrderNumber </tpl>:<tpl> $score_array[i].sp_code 

</tpl></div>
				
			    </td>
         
          <td width="55"  align="left"><a href="<tpl> $site_url </tpl>/store/index.php?userid=<tpl> $score_array[i].grade_member_id </tpl>" target="_blank">
          <tpl> $score_array[i].grade_member </tpl></a></td>
         
            <td width="55"  align="left"><tpl> if $score_array[i].genre eq "b" </tpl><tpl> $langPGradeGenreBuy </tpl><tpl>/if </tpl>
			  <tpl> if $score_array[i].genre eq "s" </tpl><tpl> $langPGradeGenreSale </tpl><tpl> /if </tpl>		  </td>
          
            <td width="35"  align="left"><a href="javascript:;" style="cursor:pointer;" title="<tpl> $score_array[i].content </tpl>">内容</a></td>
         
            <td width="70"  align="left"><tpl> $score_array[i].pubtime </tpl></td>
            <td width="45"  align="left"><a href="javascript:;" onclick="ShowDiv='result_content';getPageContent('score.manage.php?action=modi&scoreid=<tpl> $score_array[i].score_id </tpl>&curpage=<tpl> $curpage </tpl>');" title="<tpl> $langCmodi </tpl>" class="modify_a_pic">
          </a><a href="javascript:;" onclick="ui_del('<tpl> $score_array[i].score_id </tpl>');" title="<tpl> $langCdele </tpl>"class="del_a_pic"></a></td>
     </tr>
      
       
         <tpl> /section </tpl>
		
</table>
  	<tpl> else </tpl>
  	<table class="keyword_gl" style="margin-top:10px;">
	  <tr>
		<td><tpl> $langCNull </tpl></td>
	  </tr>
	</table>
<tpl> /if </tpl>
<tpl> if $score_array[0].score_id neq '' </tpl><div class="table-5-bottom"><div class="btn_marginright"><tpl> $pagelist </tpl></div></div><tpl> /if </tpl>
	  
<div id="ui_question" style="display:none; cursor: default; padding:10px"> 
        <b style=" font-size:14px; margin-top:10px; line-height:50px; height:50px;padding-top:10px; padding-bottom:10px"><tpl> $langCConfirmDelete </tpl></b> <br />
        <input type="button" id="yes" value="<tpl> $langCYes </tpl>"  style=" border:1px solid #CCCCCC;width:80px; margin:5px; background-image:url(../templates/system_new/images/anniu.gif)"/> 
        <input type="button" id="no" value="<tpl> $langCNo </tpl>"  style="border:1px solid #CCCCCC;width:80px; margin:5px; background-image:url(../templates/system_new/images/anniu.gif)"/>
		<input type="hidden" id="del_value" />
</div>   
	  
<script>
var ui_question = $("#ui_question")[0];
//删除
function ui_del(str){
	hideMessage();
	$.blockUI(ui_question, { width: '275px' }); 
	$('#del_value').val(str);
}
$(function() {
	$('#yes').click(function() {
		$.ajax({
			url: "score.manage.php",
			data: 'action=dele&scoreid='+$('#del_value').val(),
			type:'post',
			dataType:"json",
			beforeSubmit:  showLoading(showText),
			success: function(msg){
				hideLoading();
				showMessage(msg.message,msg.type);
				if(msg.type == 1){
					ShowDiv = "result_content";
					getPageContent("score.manage.php?action=ajax_list&curpage=<tpl> $curpage </tpl>");
				}
				$.unblockUI(); 
			}
		});
		return false; 
	}); 
	$('#no').click($.unblockUI); 
}); 
//删除
function ajax_del(str){
	$.ajax({
		url: "score.manage.php",
		data: str,
		type:'post',
		dataType:"html",
		beforeSubmit:  showLoading(showText),   // 提交之前执行的方法
		success: function(msg){
			hideLoading();
			showMessage(msg.message,msg.type);
			if(msg.type == '1'){
				ShowDiv = "result_content";
				getPageContent("score.manage.php?action=ajax_list&curpage=<tpl> $curpage </tpl>");
			}
		}
	});
	return false;
}
</script>