-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.php
83 lines (70 loc) · 3.02 KB
/
index.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
<?php
include(".views/header.php");
?>
<style>
</style>
<div class="container-fluid">
<div class="col-md-4">
<ul>
<li class="list-group-item active">Actions</li>
<li class="list-group-item"><a href="report.php">Create Report</a></li>
<li class="list-group-item"><a href="patient/patient-list.php">View Patients</a></li>
<?php if($staff->permissions()->has('CREATE_STAFF', 'name')){ ?>
<li class="list-group-item"><a href="create.php">New Staff</a></li>
<?php } if($staff->permissions()->has('CREATE_PATIENT', 'name')){ ?>
<li class="list-group-item"><a href="patient/new-patient.php">New Patient</a></li>
<?php } if($staff->permissions()->has('CREATE_RESOURCE', 'name')){ ?>
<li class="list-group-item"><a href="resources/create.php">Create Resource</a></li>
<?php } if($staff->permissions()->has('UPDATE_PATIENT_MEDICAL', 'name')){ ?>
<li class="list-group-item"><a href="resources/index.php">View Resources</a></li>
<?php } if($staff->permissions()->has('MANAGE_PERMISSIONS_TO_ROLE', 'name')){ ?>
<li class="list-group-item"><a href="permissions/default.php">Manage Roles</a></li>
<?php } if($staff->permissions()->has('MANAGE_PERMISSIONS_TO_ROLE', 'name')){ ?>
<li class="list-group-item"><a href="permissions/user.php">Manage Permissions</a></li>
<?php } if($staff->permissions()->has('MANAGE_PERMISSIONS_TO_ROLE', 'name')){ ?>
<li class="list-group-item"><a href="billable/index.php">Create billable items</a></li>
<?php } if($staff->permissions()->has('MANAGE_PERMISSIONS_TO_ROLE', 'name')){ ?>
<li class="list-group-item"><a href="report.php">Create reports</a></li>
<?php } ?>
</ul>
</div>
<div class="col-md-8">
<div class="column">
<?php include(".dash-modules/time.php"); ?>
<?php include(".dash-modules/quick-sql.php"); ?>
</div>
<div class="column">
<?php include(".dash-modules/messages.php"); ?>
<?php include(".dash-modules/news.php"); ?>
</div>
<div class="column">
<?php include(".dash-modules/schedule.php"); ?>
</div>
<?php
//~ insert dash modules here
//include(".dash-modules/time.php");
//~ end dash modules
?>
</div>
</div>
<script>
$(function() {
$( ".column" ).sortable({
connectWith: ".column",
handle: ".portlet-header",
cancel: ".portlet-toggle",
placeholder: "portlet-placeholder ui-corner-all",
start: function(e, ui){
ui.placeholder.height(ui.item.height());
}
});
$( ".portlet-toggle" ).click(function() {
var icon = $( this );
icon.toggleClass( "ui-icon-minusthick ui-icon-plusthick" );
icon.closest( ".portlet" ).find( ".portlet-content" ).toggle();
});
});
</script>
<?php
include(".views/footer.php");
?>