-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuser.php
More file actions
executable file
·67 lines (58 loc) · 2.25 KB
/
user.php
File metadata and controls
executable file
·67 lines (58 loc) · 2.25 KB
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
<?php
$act_user=$_GET['act_user'];
switch($act_user){
case 'delete';
mysql_query('delete from orders where o_user_id='.$user_id.' and o_status<>1 and o_id='.$id);
Msg('','?act=jilu');
break;
}
?>
<script language="javascript">
function delcfm() {
if (!confirm("确认要删除?"))
{
window.event.returnValue = false;
}
}</script>
<p id="user_title"><span>最近报考</span></p>
<div class="user_tbe">
<table width="700" border="0" cellspacing="0" cellpadding="0">
<tr class="user_tbe_title">
<td width="10%">姓名</td>
<td width="25%">报考科目</td>
<td width="10%">等级</td>
<td width="10%">类别</td>
<td width="13%">旧省码</td>
<td width="13%">旧准考证号</td>
<td width="10%">打印</td>
<td width="13%">操作</td>
</tr>
<?php
$str='';
$query=mysql_query('select * from orders where o_user='.$user_id.' order by o_id desc limit 0,10');
if (mysql_num_rows($query)==0){
$str.='<tr><td colspan="7"><p class="nodata">您目前还没有报考任何科目...</p></td></tr>';
}
else{
while($row=mysql_fetch_array($query)){
$str.='<tr>';
$str.='<td>'.RsField('select u_name from user where u_id='.$row['o_user']).'</td>';
$str.='<td>'.RsField('select p_name from cn_products where p_id='.$row['o_products']).'</td>';
$str.='<td>'.RsField('select p_name from dz_dengji where p_id='.$row['o_dengji']).'</td>';
$str.='<td>'.RsField('select p_name from dz_leibie where p_id='.$row['o_leibie']).'</td>';
$str.='<td>'.RsField('select p_name from dz_shengma where p_zhi='.$row['shengma']).'</td>';
$str.='<td> '.$row['old_zkz'].'</td>';
$str.='<td><a href="print.php?id='.$row['o_id'].'">打印</a></td>';
//$str.='<td></td>';
if($row['o_status']==1){
$str.='<td>已交费</td>';
}else
{$str.='<td><a href="?act_user=delete&act=jilu&id='.$row['o_id'].'" class="a" onClick="delcfm()">取消报名</a><br></td>';
}
$str.='</tr>';
}
}
echo $str;
?>
</table>
</div>