www.gusucode.com > 4004网博士成品网站管理系统 PHP网站源码程序 > 4004/4004/service_backup_1242004010/admin/look.php

    <?php
define("ROOTPATH", "../../");
include(ROOTPATH."includes/admin.inc.php");
include("language/".$sLan.".php");
NeedAuth(103);

$id=$_REQUEST["id"];
$adminid=$_COOKIE["SYSUSERID"];

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head >
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link  href="css/style.css" type="text/css" rel="stylesheet">
<title><?php echo $strAdminTitle; ?></title>
<script type="text/javascript" src="../../base/js/base.js"></script>
<script type="text/javascript" src="../../base/js/form.js"></script>
<script type="text/javascript" src="../../base/js/blockui.js"></script>
<script type="text/javascript" src="js/chat.js"></script>

</head>

<body>
<div class="formzone">
<div class="tablezone">

<?php

		$fsql->query ("select * from {P}_service_feedback where id='$id'");
		if ($fsql -> next_record ()) {
		   $groupid=$fsql->f('groupid');
		   $title=$fsql->f('title');
		   $content=$fsql->f('content');
		   $name=$fsql->f('name');
		   $sex=$fsql->f('sex');
		   $tel=$fsql->f('tel');
		   $address=$fsql->f('address');
		   $email=$fsql->f('email');
		   $url=$fsql->f('url');
		   $qq=$fsql->f('qq');
		   $company=$fsql->f('company');
		   $company_address=$fsql->f('company_address');
		   $zip=$fsql->f('zip');
		   $fax=$fsql->f('fax');
		   $products_id=$fsql->f('products_id');
		   $products_name=$fsql->f('products_name');
		   $products_num=$fsql->f('products_num');
		   $custom1=$fsql->f('custom1');
		   $custom2=$fsql->f('custom2');
		   $custom3=$fsql->f('custom3');
		   $custom4=$fsql->f('custom4');
		   $custom5=$fsql->f('custom5');
		   $custom6=$fsql->f('custom6');
		   $custom7=$fsql->f('custom7');
		   $memberid=$fsql->f('memberid');
		   $ip=$fsql->f('ip');
		   $time=$fsql->f('time');
		   $uptime=$fsql->f('uptime');
		    $nowstat=$fsql->f('stat');
		   $time=date("Y-n-j H:i:s",$time);
		   $uptime=date("Y-n-j H:i:s",$uptime);
			
		   $content=nl2br($content);

		}
		
		if($nowstat=="6"){
			$showchatform="display:none";
		}
		
	//来源信息
	if($memberid>0){
		$msql->query("select * from {P}_member where memberid='$memberid'");
		if($msql->next_record()){
			$memberpname=$msql->f('pname');
			$memberuser=$msql->f('user');
			$membername=$msql->f('name');
		}
		$source=$strMember." &nbsp; &nbsp; (".$strMemberUser.":".$memberuser." -  ".$strMemberPname.":".$memberpname." - ".$strMemberName.":".$membername.")";
	}else{
		$source=$strNotMember;
	}
	
	//客服权限校验(兼容协同处理)
	$msql->query("select allowservice,groupname from {P}_service_group where id='$groupid'");
	if($msql->next_record()){
		$allowservice=$msql->f('allowservice');
		$groupname=$msql->f('groupname');
	}
	if(!strstr($allowservice,"|".$adminid."|")){
		err($strServiceOfferNTC1.'"'.$groupname.'"'.$strServiceOfferNTC2,"","");
		exit;
	}

?>


<table width="660" border="0" cellpadding="5" cellspacing="1" bgcolor="#DEEFFA">
<tr> 
<td  width="90" align="right" bgcolor="#F2F9FD"><?php echo $strServiceNo1; ?>:</td>
<td bgcolor="#FFFFFF"><?php echo $id; ?></td>
</tr>


<tr> 
<td  width="90" align="right" bgcolor="#F2F9FD"><?php echo $strFormTime; ?>:</td>
<td bgcolor="#FFFFFF"  ><?php echo $time; ?> &nbsp; [IP: <?php echo $ip; ?>] </td>
</tr>
<tr>
  <td width="90" align="right" bgcolor="#F2F9FD"><?php echo $strFormUptime; ?>:</td>
  <td bgcolor="#FFFFFF"  ><?php echo $uptime; ?> </td>
</tr>
<?php
$msql -> query ("select field_caption,field_name from {P}_service where groupid='$groupid' and use_field = '1' order by xuhao");
while ($msql -> next_record ()) {
$field_caption = $msql -> f ('field_caption');
$field_name = $msql -> f ('field_name');
?>
<tr> 
<td  width="90" align="right" bgcolor="#F2F9FD"><?php echo $field_caption; ?>:</td>
<td bgcolor="#FFFFFF"><?php echo ${$field_name}; ?></td>
</tr>
<?php
}
?>
<tr> 
<td  width="90" align="right" bgcolor="#F2F9FD"><?php echo $strFormMember; ?>:</td>
<td bgcolor="#FFFFFF" ><?php echo $source; ?></td>
</tr>
</table>

<div id="chatzone" class="chatzone">
</div>
</div>
<div style="<?php echo $showchatform; ?>">
<form method="post" action="" id="backForm">
<div  id="notice" class="noticediv"></div>
<div style="margin:5px 0px">
<?php
if($memberid=="-1"){
?>
<textarea name="message" id="message"  rows="8"  class="textarea" style="width:694px" disabled><?php echo $strFormMemberNTC1; ?></textarea>
<?php
}else{
?>
<textarea name="message" id="message"  rows="8"  class="textarea" style="width:694px"></textarea>
<?php
}
?>
</div>
<div style="margin:5px 0px">
   
<?php
	if($memberid=="-1"){
	?>
	 <select name="stat" id="stat">
	<option value="5x"><?php echo $strServiceStatSel5x; ?></option>
	</select>
	<?php
	}else{
	?>
	 <select name="stat" id="stat">
    <option value="3"><?php echo $strServiceStatSel3; ?></option>
    <option value="4"><?php echo $strServiceStatSel4; ?></option>
    <option value="5"><?php echo $strServiceStatSel5; ?></option>
	</select>
	
	 <select name="chang" id="changback">
	 <option value='0'><?php echo  $strServiceChangSel; ?></option>
	 <?php
	 $msql->query("select id,title from {P}_service_chang order by id");
	while($msql->next_record()){
		$changid=$msql->f('id');
		$title=$msql->f('title');
		echo "<option value='".$changid."'>".$title."</option>";
	}
	 ?>
	</select>
	
	<?php
	}
	?>
	
	
    <input type="submit" name="cc" value="<?php echo $strSubmit; ?>"  class="button" />
	<input type="hidden" id="qusid" name="id" value="<?php echo $id; ?>" />
		<input type="hidden" name="fromemail" value="<?php echo $GLOBALS["CONF"]["SiteEmail"]; ?>"  />
		<input type="hidden" name="toemail" value="<?php echo $email; ?>"  />
        <input type="hidden" name="groupid" value="<?php echo $groupid; ?>" />
		<input type="hidden" name="memberid" value="<?php echo $memberid; ?>" />
		 <input type="hidden" name="fromtitle"  value="RE:<?php echo $title; ?>"  />
        <input type="hidden" name="act" value="send" />


</div>
</form>
</div>
</div>

</body>
</html>