-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfoot.php
289 lines (264 loc) · 11.7 KB
/
foot.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
<i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
</a>
<footer>
<div class="footer text-center">
<p class="4">© Copyright 2017-2019</p>
<p> NCP Team (Imran, Rao & Adeel) </p>
<p> For any queries, requests may be sent to <a href="mailto:[email protected]" target="_top">[email protected]</a></p>
</div>
</footer>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="css/bootstrap-3.3.5/js/bootstrap.min.js"></script>
<!-- custom GEM js -->
<script src="plugins/custom_GEM.js"></script>
<!-- Bootstrap core JavaScript
================================================== -->
<script src="../../dist/js/bootstrap.min.js"></script>
<script src="ace-master/assets/js/bootstrap.min.js"></script>
<!-- Just to make our placeholder images work. Don't actually copy the next line-->
<script src="../../assets/js/vendor/holder.min.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
<script type="text/javascript" src="bootstrap-datetimepicker-master/js/bootstrap-datetimepicker.js" charset="UTF-8"></script>
<script type="text/javascript" src="bootstrap-datetimepicker-master/js/locales/bootstrap-datetimepicker.fr.js" charset="UTF-8"></script>
<script type="text/javascript" src="plugins/chosen_v1.4.2/chosen.proto.js" charset="UTF-8"></script>
<script type="text/javascript" src="plugins/chosen_v1.4.2/chosen.jquery.js" charset="UTF-8"></script>
<!-- ace scripts -->
<script src="ace-master/assets/js/ace-elements.min.js"></script>
<script src="ace-master/assets/js/ace.min.js"></script>
<script type="text/javascript">
function doSomething() {
//$.get("actions/test.php");
//return true;
}
$('.dropdown-menu a').on('click', function () {
//alert($(this).html());
//Set the drop down list to the selected value
$(this).parent().parent().prev().empty();
$(this).parent().parent().prev().append($(this).html() + " <span class='caret'></span>");
if ($(this).html() == "Long") {
$(".version").text("L");
$(".version").val('L');
$(".serialInput").val($(".serial").text());
}
if ($(this).html() == "Short") {
$(".version").text("S");
$(".version").val('S');
$(".serialInput").val($(".serial").text());
}
if ($(this).html() == "Bari") {
$(".institute").text("BARI");
//$(".serialInput").val($(".serial").text());
}
if ($(this).html() == "CERN") {
$(".institute").text("CERN");
//$(".serialInput").val($(".serial").text());
}
if ($(this).html() == "Florida Tech(FIT)") {
$(".institute").text("FLORIDA");
//$(".serialInput").val($(".serial").text());
}
if ($(this).html() == "Frascati(LNF)") {
$(".institute").text("FRASCATI");
//$(".serialInput").val($(".serial").text());
}
if ($(this).html() == "Ghent") {
$(".institute").text("GHENT");
//$(".serialInput").val($(".serial").text());
}
if ($(this).html() == "BARC") {
//$(".institute").text("BARC");
$(".serialInput").val($(".serial").text());
}
if ($(this).html() == "Delhi") {
$(".institute").text("DELHI");
//$(".serialInput").val($(".serial").text());
}
if ($(this).attr("class") == "PCB-DR"){
$(this).parent().parent().parent().prev().val();
$(this).parent().parent().parent().prev().val($(this).html());
}
if ($(this).attr("class") == "PCB-RO"){
$(this).parent().parent().parent().prev().val();
$(this).parent().parent().parent().prev().val($(this).html());
}
if ($(this).attr("class") == "FOIL-VI1"){
$(this).parent().parent().parent().prev().val();
$(this).parent().parent().parent().prev().val($(this).html());
}
if ($(this).attr("class") == "FOIL-VI2"){
$(this).parent().parent().parent().prev().val();
$(this).parent().parent().parent().prev().val($(this).html());
}
if ($(this).attr("class") == "FOIL-VI3"){
$(this).parent().parent().parent().prev().val();
$(this).parent().parent().parent().prev().val($(this).html());
}
if ($(this).attr("class") == "status"){
$(this).parent().parent().parent().prev().val();
$(this).parent().parent().parent().prev().val($(this).html());
}
if ($(this).attr("class") == "location"){
$(this).parent().parent().parent().prev().val();
$(this).parent().parent().parent().prev().val($(this).html());
}
if ($(this).attr("class") == "institue"){
$(this).parent().parent().parent().prev().val();
$(this).parent().parent().parent().prev().val($(this).html());
}
if ($(this).attr("class") == "manufacturer"){
$(this).parent().parent().parent().prev().val();
$(this).parent().parent().parent().prev().val($(this).html());
}
if ($(this).attr("class") == "availablepart"){
$(this).parent().parent().parent().prev().val();
$(this).parent().parent().parent().prev().val($(this).html());
//var x = $(this).html();
//$("availablepart a[value='"+x+"']").remove();
}
if ($(this).hasClass('label')){
$(this).parent().parent().parent().prev().val();
$(this).parent().parent().parent().prev().val($(this).html());
}
if ($(this).attr("class") == "kinds"){
$(this).parent().parent().parent().prev().val();
$(this).parent().parent().parent().prev().val($(this).attr('kind-id'));
if($(this).val() !== '' && $('.num').val() !== '')$('.subbutt_at').attr('disabled', false);
}
if ($(this).attr("class") == "CHAMBER"){
$(this).parent().parent().parent().prev().val();
$(this).parent().parent().parent().prev().val($(this).html());
}
if ($(this).attr("class") == "alert-danger foilalert"){
$(this).parent().parent().parent().prev().val();
$(this).parent().parent().parent().prev().val($(this).html());
}
// used in Search channel page
if ($(this).attr("class") == "searchbysdv"){
$(".searchby").val("");
$(".searchby").val($(this).html());
$(".sdv").show();
$(".epd").hide();
$(".epd").find("input").val("");
}
if ($(this).attr("class") == "searchbyepd"){
$(".searchby").val("");
$(".searchby").val($(this).html());
$(".sdv").hide();
$(".epd").show();
$(".sdv").find("input").val("");
}
$('.dropdown-menu a').dropdown("toggle");
return false;
//$('.dropdown-toggle').html($(this).html() + '<span class="caret"></span>');
})
$(".testDiod").change(function () {
if ($(this).is(':checked')) {
//alert("check");
$(".diodes").val(1);
}
else {
//alert("uncheck");
$(".diodes").val(0);
}
});
$('.form_datetime').datetimepicker({
//language: 'fr',
weekStart: 1,
todayBtn: 1,
autoclose: 1,
todayHighlight: 1,
startView: 2,
forceParse: 0,
showMeridian: 1
});
$(".subbutt").click(function(){
//alert($(".serialInput").val());
if($(".serialInput").val() == "")
{
$(".alert-danger").show();
$('html, body').animate({ scrollTop: 0 }, 0);
return false;
}
});
</script>
<script type="text/javascript">
$(".chosen-select").chosen();
$(".chosen-select-gebl").chosen();
$(".chosen-select-gebs").chosen();
$(".chosen-select-opto").chosen();
$(".chosen-select-vfat0").chosen();
$(".chosen-select-vfat1").chosen();
$(".chosen-select-vfat2").chosen();
$(".chosen-select-vfat3").chosen();
$(".chosen-select-vfat4").chosen();
$(".chosen-select-vfat5").chosen();
$(".chosen-select-vfat6").chosen();
$(".chosen-select-vfat7").chosen();
$(".chosen-select-vfat8").chosen();
$(".chosen-select-vfat9").chosen();
$(".chosen-select-vfat10").chosen();
$(".chosen-select-vfat11").chosen();
$(".chosen-select-vfat12").chosen();
$(".chosen-select-vfat13").chosen();
$(".chosen-select-vfat14").chosen();
$(".chosen-select-vfat15").chosen();
$(".chosen-select-vfat16").chosen();
$(".chosen-select-vfat17").chosen();
$(".chosen-select-vfat18").chosen();
$(".chosen-select-vfat19").chosen();
$(".chosen-select-vfat20").chosen();
$(".chosen-select-vfat21").chosen();
$(".chosen-select-vfat22").chosen();
$(".chosen-select-vfat23").chosen();
$(".chosen-select-sector").chosen();
$("select[class^='chosen-select']").chosen();
jQuery(document).ready(function ($) {
// site preloader -- also uncomment the div in the header and the css style for #preloader
$(window).load(function () {
$('#preloader').fadeOut('fast', function () {/*$(this).remove();*/
});
});
});
$('.detach').click(function () {
var item = $(this);
//<span style='color: red;'>You are going to detach this part from current parent part, Proceed?</span>
var r = confirm("ATTENTION!\nYou are going to detach this part from current parent part, Proceed?");
if (r == true) {
//txt = "You pressed OK!";
$('#preloader').fadeIn('fast', function () {/*$(this).remove();*/
});
$.ajax({
type: 'POST',
url: 'functions/ajaxActions.php?detach=true&partid=' + item.attr('id') + '&kind=' + item.attr('kind') + '&user=<?php echo $_SESSION['user']; ?>',
success: function (data) {
console.log(data);
item.parent().remove();
location.reload();
$('#preloader').fadeOut('fast', function () {/*$(this).remove();*/
});
},
error: function (jqXHR, textStatus, errorThrown) {
alert(errorThrown);
}
});
$('body').load(
'https://gemdb-p5.web.cern.ch/gemdb-p5/proxy.php', {
csurl: 'https://gemdb-p5.web.cern.ch/gemdb-p5/functions/ajaxActions.php',
detach: true,
partid: item.attr('id'),
kind: item.attr('kind'),
user: '<?php echo $_SESSION['user']; ?>'
}
);
} else {
//txt = "You pressed Cancel!";
}
})
</script>
<link rel="import" href="foot_panel.html">
</body>
</html>