<!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/style.css">
<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>
{inc: require("shop/index_header.php");/}
<div class="site_map">
	  您当前的位置是：<a href="index.php">iweb Mall</a>/<a href="modules.php">个人中心</a>/&nbsp;&nbsp;来自卖家的评价	</div>
<div class="clear"></div>

    	{inc: require("modules/left_menu.php");/}

		<div class="main_right">
		<div class="cont">
		<div class="title_uc"><h3>{echo: lp{m_commentate};/}</h3></div>
		<hr/>
			<form action="do.php?act=shop_rate_reply_add&id={echo:$cid;/}&t={echo:$t;/}" name="form1" method="post" onsubmit="return check();">
				<table width="98%" class="form_table_02">
					<tr class="center">
						<th class="textright">{echo: lp{m_evaluate};/}</th>
						<td class="textleft">{echo:$credit[$result['credit']];/}</td>
					</tr>
					<tr class="center">
						<th class="textright">{echo: lp{m_evaluate_con};/}</th>
						<td class="textleft">{echo: $result['evaluate'];/}</td>
					</tr>
					<tr class="center">
						<th class="textright">{echo: lp{m_commentators};/}</th>
						<td class="textleft">{echo: $result['user_name'];/}</td>
					</tr>
					<tr class="center">
						<th class="textright">{echo: lp{m_goods_info};/}</th>
						<td class="textleft">{echo: $result['goods_name'];/}</td>
					</tr>
					<tr class="center">
						<th class="textright">{echo: lp{m_evaluate_time};/}</th>
						<td class="textleft">{echo:$result['evaltime'];/}</td>
					</tr>
					<tr>
						<th class="textleft" colspan="2">
							{echo: lp{m_my_commentate};/}
						</th>
					</tr>
					<tr>
						<th class="textright">{echo: lp{m_commentate_con};/}</th>
						<td class="textleft">
							<textarea rows="4" cols="50" name="reply" id="textareac" onkeyup="this.value=this.value.slice(0,300);"></textarea>
						</td>
					</tr>
					<tr>
						<td class="center" colspan="2">
							<input type="submit" value="{echo: lp{m_send};/}"/>
						</td>
					</tr>
				</table>
			</form>
        
    </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 center = Trim(document.form1.reply.value);

	var textareac = document.getElementById("textareac");
	if(center == ""){
		alert("{echo: lp{m_commentate_null};/}");
		document.form1.reply.value = center;
		return false;
	}
	if(textareac.value.length>300){
		alert("{echo:lp{s_work_count_error};/}");
		textareac.focus();
		return false;
	}
	return true;
}
</script>
</body>
</html>