-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathemployeesview.php
179 lines (165 loc) · 6.29 KB
/
employeesview.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
<?php
namespace PHPMaker2020\fmeaPRD;
// Session
if (session_status() !== PHP_SESSION_ACTIVE)
session_start(); // Init session data
// Output buffering
ob_start();
// Autoload
include_once "autoload.php";
?>
<?php
// Write header
WriteHeader(FALSE);
// Create page object
$employees_view = new employees_view();
// Run the page
$employees_view->run();
// Setup login status
SetupLoginStatus();
SetClientVar("login", LoginStatus());
// Global Page Rendering event (in userfn*.php)
Page_Rendering();
// Page Rendering event
$employees_view->Page_Render();
?>
<?php include_once "header.php"; ?>
<?php if (!$employees_view->isExport()) { ?>
<script>
var femployeesview, currentPageID;
loadjs.ready("head", function() {
// Form object
currentPageID = ew.PAGE_ID = "view";
femployeesview = currentForm = new ew.Form("femployeesview", "view");
loadjs.done("femployeesview");
});
</script>
<script>
loadjs.ready("head", function() {
// Client script
// Write your client script here, no need to add script tags.
});
</script>
<?php } ?>
<?php if (!$employees_view->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php $employees_view->ExportOptions->render("body") ?>
<?php $employees_view->OtherOptions->render("body") ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php $employees_view->showPageHeader(); ?>
<?php
$employees_view->showMessage();
?>
<?php if (!$employees_view->IsModal) { ?>
<?php if (!$employees_view->isExport()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php echo $employees_view->Pager->render() ?>
<div class="clearfix"></div>
</form>
<?php } ?>
<?php } ?>
<form name="femployeesview" id="femployeesview" class="form-inline ew-form ew-view-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($Page->CheckToken) { ?>
<input type="hidden" name="<?php echo Config("TOKEN_NAME") ?>" value="<?php echo $Page->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="employees">
<input type="hidden" name="modal" value="<?php echo (int)$employees_view->IsModal ?>">
<table class="table table-striped table-sm ew-view-table">
<?php if ($employees_view->idEmployee->Visible) { // idEmployee ?>
<tr id="r_idEmployee">
<td class="<?php echo $employees_view->TableLeftColumnClass ?>"><span id="elh_employees_idEmployee"><?php echo $employees_view->idEmployee->caption() ?></span></td>
<td data-name="idEmployee" <?php echo $employees_view->idEmployee->cellAttributes() ?>>
<span id="el_employees_idEmployee">
<span<?php echo $employees_view->idEmployee->viewAttributes() ?>><?php echo $employees_view->idEmployee->getViewValue() ?></span>
</span>
</td>
</tr>
<?php } ?>
<?php if ($employees_view->name->Visible) { // name ?>
<tr id="r_name">
<td class="<?php echo $employees_view->TableLeftColumnClass ?>"><span id="elh_employees_name"><?php echo $employees_view->name->caption() ?></span></td>
<td data-name="name" <?php echo $employees_view->name->cellAttributes() ?>>
<span id="el_employees_name">
<span<?php echo $employees_view->name->viewAttributes() ?>><?php echo $employees_view->name->getViewValue() ?></span>
</span>
</td>
</tr>
<?php } ?>
<?php if ($employees_view->surname->Visible) { // surname ?>
<tr id="r_surname">
<td class="<?php echo $employees_view->TableLeftColumnClass ?>"><span id="elh_employees_surname"><?php echo $employees_view->surname->caption() ?></span></td>
<td data-name="surname" <?php echo $employees_view->surname->cellAttributes() ?>>
<span id="el_employees_surname">
<span<?php echo $employees_view->surname->viewAttributes() ?>><?php echo $employees_view->surname->getViewValue() ?></span>
</span>
</td>
</tr>
<?php } ?>
<?php if ($employees_view->idFactory->Visible) { // idFactory ?>
<tr id="r_idFactory">
<td class="<?php echo $employees_view->TableLeftColumnClass ?>"><span id="elh_employees_idFactory"><?php echo $employees_view->idFactory->caption() ?></span></td>
<td data-name="idFactory" <?php echo $employees_view->idFactory->cellAttributes() ?>>
<span id="el_employees_idFactory">
<span<?php echo $employees_view->idFactory->viewAttributes() ?>><?php echo $employees_view->idFactory->getViewValue() ?></span>
</span>
</td>
</tr>
<?php } ?>
<?php if ($employees_view->userlevel->Visible) { // userlevel ?>
<tr id="r_userlevel">
<td class="<?php echo $employees_view->TableLeftColumnClass ?>"><span id="elh_employees_userlevel"><?php echo $employees_view->userlevel->caption() ?></span></td>
<td data-name="userlevel" <?php echo $employees_view->userlevel->cellAttributes() ?>>
<span id="el_employees_userlevel">
<span<?php echo $employees_view->userlevel->viewAttributes() ?>><?php echo $employees_view->userlevel->getViewValue() ?></span>
</span>
</td>
</tr>
<?php } ?>
<?php if ($employees_view->password->Visible) { // password ?>
<tr id="r_password">
<td class="<?php echo $employees_view->TableLeftColumnClass ?>"><span id="elh_employees_password"><?php echo $employees_view->password->caption() ?></span></td>
<td data-name="password" <?php echo $employees_view->password->cellAttributes() ?>>
<span id="el_employees_password">
<span<?php echo $employees_view->password->viewAttributes() ?>><?php echo $employees_view->password->getViewValue() ?></span>
</span>
</td>
</tr>
<?php } ?>
<?php if ($employees_view->workcenter->Visible) { // workcenter ?>
<tr id="r_workcenter">
<td class="<?php echo $employees_view->TableLeftColumnClass ?>"><span id="elh_employees_workcenter"><?php echo $employees_view->workcenter->caption() ?></span></td>
<td data-name="workcenter" <?php echo $employees_view->workcenter->cellAttributes() ?>>
<span id="el_employees_workcenter">
<span<?php echo $employees_view->workcenter->viewAttributes() ?>><?php echo $employees_view->workcenter->getViewValue() ?></span>
</span>
</td>
</tr>
<?php } ?>
</table>
<?php if (!$employees_view->IsModal) { ?>
<?php if (!$employees_view->isExport()) { ?>
<?php echo $employees_view->Pager->render() ?>
<div class="clearfix"></div>
<?php } ?>
<?php } ?>
</form>
<?php
$employees_view->showPageFooter();
if (Config("DEBUG"))
echo GetDebugMessage();
?>
<?php if (!$employees_view->isExport()) { ?>
<script>
loadjs.ready("load", function() {
// Startup script
// Write your table-specific startup script here
// console.log("page loaded");
});
</script>
<?php } ?>
<?php include_once "footer.php"; ?>
<?php
$employees_view->terminate();
?>