-
Notifications
You must be signed in to change notification settings - Fork 0
/
history.php
96 lines (94 loc) · 3.03 KB
/
history.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<html>
<head>
<title>Tu van truc tuyen</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="js/myjs.js"></script>
<script src="js/jquery-1.5.2.min.js"></script>
<script src="js/js.js"></script>
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/style1.css">
<script src="js/jquery-ui.min.1.8.23.js"></script>
<link rel="stylesheet" type="text/css" href="css/jquery-ui.1.8.23.css">
</head>
<body>
<div id='vcn_wrap'><div id="header"><h1>Vaycanhan.com</h1></div>
<?php
include('include/functions.php');
?>
<?php
$id=_GET('id');
//URL: ?id=x
if(!isset($id) || !$id) {
show_error('Error','Không chỉ định lịch sử khách hàng ?');
}
$rs=vcn_report($id); //get history
if(!mysql_num_rows($rs)) show_error('Page Not Found','Không tìm thấy lịch sử này !');
$result=mysql_fetch_assoc($rs);
$data['history_rs']=get_history($result['id'],$result['save_history']); //get history
$data['result']=$result;
extract($data);
?>
<h2>Thông tin khách hàng</h2><br/>
<table border='1' cellpadding='5'>
<tr>
<td>Họ & tên</td>
<td><strong><?php echo $result['fullname']?></strong></td>
</tr>
<tr>
<td>Ngày sinh</td>
<td><strong><?php echo $result['birth']?></strong></td>
</tr>
<tr>
<td>SĐT</td>
<td><strong><?php echo $result['phone']?></strong></td>
</tr>
<tr>
<td>CMND</td>
<td><?php echo $result['CMT']?></td>
</tr>
<tr>
<td>Tên công ty</td>
<td><?php echo $result['company']?></td>
</tr>
<tr>
<td>Mức lương</td>
<td><?php echo is_numeric($result['salary'])? number_format($result['salary']):$result['salary']?> (VND)</td>
</tr>
<tr>
<td>Cần vay</td>
<td><?php echo is_numeric($result['loan'])? number_format($result['loan']):$result['loan']?> (VND)</td>
</tr>
<tr>
<td>Kết quả tư vấn</td>
<td><?php if($result['result']){?>Bạn được hỗ trợ bởi <?php echo $result['result'];}else{?>Không hỗ trợ<?php }?><br/><?php partner_logo($result['result'])?></td>
</tr>
</table>
<hr/>
<h2>Lịch sử tư vấn (<?php echo $result['post_date'].' '.$result['post_time']?>)</h2><br/>
<strong>Lời nhắn từ khách hàng:</strong><p><?php echo $result['note']?></p>
<?php
$index=1;
while($result=mysql_fetch_array($history_rs)){
?>
<div class='answer_history_report'>
<div class='label radius-2'><?php echo $index?></div>
<div class='question <?php echo $index%2? 'bg1':''?>'>
<p><strong><?php echo strip_tags($result['question'])?></strong></p>
<div>
<?php if($result['answer_text']) {?>
<p><?php echo $result['answer_text']?></p>
<?php partner_logo($result['answer_text'],0);?>
<?php
}else{
echo $result['answer'];
}?>
</div>
</div>
</div>
<?php
$index++;
}
?>
</div>
</body>
</html>