<!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=utf-8">
<title>{echo: lp{m_u_center};/}</title>

<link rel="stylesheet" type="text/css" href="skin/{echo: $SYSINFO['templates'];/}/css/modules.css">
<link rel="stylesheet" type="text/css" href="skin/{echo: $SYSINFO['templates'];/}/css/layout.css">
<link rel="stylesheet" type="text/css" href="skin/{echo: $SYSINFO['templates'];/}/css/style.css">
<script type="text/javascript" src="skin/{echo: $SYSINFO['templates'];/}/js/changeStyle.js"></script>
<script type="text/javascript" src="skin/{echo: $SYSINFO['templates'];/}/js/userchangeStyle.js"></script>
<style type="text/css">
th { background:#EFEFEF }
.edit span { background:#efefef; }
.search { margin:5px; }
.search input { color:#444; }
td.img img { cursor:pointer }
</style>
</head>

<body onload="changeMenu();">
{inc: require("shop/index_header.php");/}
	<div class="site_map">
	  {echo:lp{m_current_position};/}<A href="index.php">{echo:$SYSINFO['sys_name'];/}</A>/<a href="modules.php">{echo:lp{m_u_center};/}</a>/&nbsp;&nbsp;{echo:lp{m_recver_order};/}
	</div>
    <div class="clear"></div>
  	{inc: require("modules/left_menu.php");/}

     <div class="main_right">
     <div class="right_top"></div>
     <div class="cont">

		<div class="bigapart">
			<div class="title_uc"><h3>{echo: lp{m_evaluate};/}</h3></div>
   <hr />
			<form action="do.php?act=shop_credit_add&id={echo:$oid;/}&t={echo:$t;/}" name="form1" method="post" onsubmit="return check();">
				<table width="98%" class="form_table_02">
					<tr class="center">
						<th class="hor">{echo: lp{m_appraiser};/}</th>
						<td class="textleft">{echo: $result['user_name'];/}</td>
					</tr>
					<tr class="center">
						<th class="hor">{echo: lp{m_goods_info};/}</th>
						<td class=" textleft"><a href="goods.php?id={echo:$result['goods_id'];/}" target="_blank" style="color:#0044DD;">{echo: $result['goods_name'];/}</a></td>
					</tr>

				</table>
    <table width="100%" cellpadding="0" cellspacing="0">
    	<tbody>
      <tr>
      	<th width="150px" class="textleft">{echo: lp{m_my_appraise};/}</th>
       <th></th>
      </tr>
      <tr>
        <td width="150px">{echo: lp{m_appraise_grade};/}</td>
        <td>{sta:foreach($credit as $key=>$val)[loop]}
							&nbsp;&nbsp;&nbsp;<input type="radio" name="grade" value="{echo:$key;/}">{echo:$val;/}
							{end:foreach/}</td>
      </tr>
      <tr>
        <td>{echo: lp{m_evaluate_con};/}</td>
        <td><textarea rows="4" cols="50" name="content" id="content" onkeyup="this.value=this.value.slice(0,300);"></textarea></td>
      </tr>
      <tr>
        <td></td>
        <td><input type="submit" value="{echo: lp{m_send};/}"/></td>
      </tr>
     </tbody>
    </table>
			</form></div></div>
  </div>
</div>
<div class="clear"></div>
{inc: require("shop/index_footer.php");/}
<script language="JavaScript">
function Trim(center) {
	return center.replace(/\s+$|^\s+/g,"");
}
function check(){
	var sex_obj = document.getElementsByName('grade');
	var temp_sex = false;
	for(var i = 0; i < sex_obj.length; i ++){
		if(sex_obj[i].checked){
			var sex = sex_obj[i].value;
			temp_sex = true;
			break;
		}
	}
	if(temp_sex == false){
		alert("{echo: lp{m_appraise_grade_sell};/}");
		return false;
	}
	var center = Trim(document.form1.content.value);
	if(center == ""){
		alert("{echo: lp{m_commentate_null};/}");
		document.form1.content.value = center;
		return false;
	}
	var textareac = document.getElementById("textareac");
	if(textareac.value.length>300){
		alert("{echo:lp{s_work_count_error};/}");
		textareac.focus();
		return false;
	}
	return false;
}
</script>
</body>
</html>