/
positionmanage.php
95 lines (88 loc) · 2.88 KB
/
positionmanage.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1, user-scalable=no">
<meta name="format-detection" content="telephone=no">
<title>位置设置</title>
<meta name="description" content="">
<meta name="keywords" content="">
<link rel="stylesheet" type="text/css" href="css/sg.css">
<link rel="stylesheet" type="text/css" href="css/common.css">
<link rel="stylesheet" type="text/css" href="css/tz-dialog.css">
<link rel="stylesheet" type="text/css" href="/statics/css/yumleeM.css" />
<link rel="stylesheet" type="text/css" href="/statics/css/mcr.css" />
<link rel="stylesheet" type="text/css" href="/com/icomoon/style.css" />
<link rel="stylesheet" type="text/css" href="css/manage.css" />
</head>
<body>
<header class="header fixed">
<div><a href="javascript:history.back();"><i class="icon-arrow-back"></i></a></div>
<h1>位置设置</h1>
<div><a href="index.php"><i class="icon-home"></i></a></div>
</header>
<?php
include_once('mcr_sc_fns.php');
session_start();
$portid=$_SESSION['portid']=1;
$sqlstr = "select positionid,position,ordervalue,salestatusname from t_dumpposition d,t_salestatus s "
." where d.salestatusid=s.salestatusid and portid =".$portid." order by ordervalue ";
$positionarray = get_mydata($sqlstr);
?>
<ul class="ul_list">
<?php
if(!is_array($positionarray))
{
echo "<p>对不起,没有查找到您要查找的内容!</p>";
return;
}
else
{
foreach ($positionarray as $row)
{
?>
<li>
<b class="select_btn"><img src="images/img_2.png" alt="" width="40" height="40"/></b>
<a href="" class="li_link">
<h3 class="position">
<span><?php echo $row['position'];?></span>
<span><?php echo $row['ordervalue'];?></span>
<span><?php echo $row['salestatusname'];?></span>
</h3>
</a>
<div class="tip">
<div class="triangle"></div>
<div class="t_con">
<input type="hidden" name="mes_id" id="mes_id" value="" />
<a href="#" class="del" id="del"><i class="icon-pencil"></i><br /><span>修改</span></a>
<a href=""><i class="icon-bin"></i><br /><span>删除</span></a>
</div>
</div>
</li>
<?php
}
}
?>
<input class="btnFixed" type="button" value="增加" id="add" />
</ul>
</body>
<script src="http://libs.baidu.com/jquery/1.8.3/jquery.min.js"></script>
<script src="/statics/js/config.js"></script>
<script type="text/javascript" src="js/sgutil.js"></script>
<script type="text/javascript" src="js/tz_dialog.js"></script>
<script>
$(function(){
kindselect();
tipToggle();
$(".del").click(function(){
var companyid = $(this).siblings("#mes_id").val();//公司id
if(window.confirm("确定要删除吗?")){
window.location = "mycompanydel_bgo.php?companyid="+companyid; //提交的url
}else{
return;
}
});
})
</script>
</html>