-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaddtype.php
executable file
·75 lines (50 loc) · 1.27 KB
/
addtype.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
<script type="text/javascript">
$(function() {
$(".delbutton").click(function(){
//Save the link in a variable called element
var element = $(this);
//Find the id of the link that was clicked
var del_id = element.attr("id");
//Built a url to send
var info = 'id=' + del_id;
if(confirm("Are you sure you want to delete this Type?"))
{
$.ajax({
type: "GET",
url: "deletetype.php",
data: info,
success: function(){
}
});
$(this).parents(".sds").animate({ backgroundColor: "#fbc7c7" }, "fast")
.animate({ opacity: "hide" }, "slow");
}
return false;
});
});
</script>
<script type="text/javascript">
$(function() {
$(".jades").click(function(){
//Save the link in a variable called element
var element = $(this);
//Find the id of the link that was clicked
var del_id = element.attr("id");
//Built a url to send
var info = 'sec_id=' + del_id;
if(confirm("Are you sure you want to delete this Section?"))
{
$.ajax({
type: "GET",
url: "deletetype.php",
data: info,
success: function(){
}
});
$(this).parents(".trint").animate({ backgroundColor: "#fbc7c7" }, "fast")
.animate({ opacity: "hide" }, "slow");
}
return false;
});
});
</script>