-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFaculties.php
More file actions
69 lines (63 loc) · 2.04 KB
/
Copy pathFaculties.php
File metadata and controls
69 lines (63 loc) · 2.04 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
68
69
<?php
include("head.php");
session_start();
if(!(isset($_SESSION['user']) && $_SESSION['user'] == "admin"))
header('Location: index.php');
$url = "https://internship.arggo.consulting:7047/DynamicsNAV100/WS/VC/Page/FacultyListVC";
$client = new SoapClient($url, ["login"=>$user, "password"=>$password]);
$Faculty=$client->Read(array("Faculty_ID"=>"F-001"));
$Faculties=$client->ReadMultiple(array("filter"=>array("Field"=>"", "Criteria"=>""), "setSize"=>0))->ReadMultiple_Result->FacultyListVC;
$fcs = $client->__getFunctions();
$types = $client->__getTypes();
?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/styles.css">
<title>Arggo</title>
</head>
<?php include "navbarAdmin.php"; ?>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-md-3">
</div>
<div class="col-md-6">
<h3 style="text-align:center;">Faculties</h3>
<form method="POST" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>">
<table class="table">
<thead>
<tr>
<th>#</th>
<th>Name</th>
<th>Universitate</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php
$cnt=1;
foreach($Faculties as $fac): ?>
<tr>
<th scope="row"><?php echo $cnt++; ?></th>
<th id="name<?php echo $fac->Faculty_name;?>"><?php echo $fac->Faculty_name;?></th>
<th id="name<?php echo $fac->Faculty_Location;?>"><?php echo $fac->University_Name?></th>
<th ><a href="Students.php?id=<?php echo $fac->Faculty_name . "," . $fac->Faculty_ID?>">Show Students</a></th>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</form>
</div>
<div class="col-md-3">
</div>
</div>
</div>
</body>
<?php include("footer.php");?>
</html>