-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathregulationsdelete.php
135 lines (118 loc) · 3.91 KB
/
regulationsdelete.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
<?php
namespace PHPMaker2020\SupplierMapping;
// 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
$regulations_delete = new regulations_delete();
// Run the page
$regulations_delete->run();
// Setup login status
SetClientVar("login", LoginStatus());
// Global Page Rendering event (in userfn*.php)
Page_Rendering();
// Page Rendering event
$regulations_delete->Page_Render();
?>
<?php include_once "header.php"; ?>
<script>
var fregulationsdelete, currentPageID;
loadjs.ready("head", function() {
// Form object
currentPageID = ew.PAGE_ID = "delete";
fregulationsdelete = currentForm = new ew.Form("fregulationsdelete", "delete");
loadjs.done("fregulationsdelete");
});
</script>
<script>
loadjs.ready("head", function() {
// Client script
// Write your client script here, no need to add script tags.
});
</script>
<?php $regulations_delete->showPageHeader(); ?>
<?php
$regulations_delete->showMessage();
?>
<form name="fregulationsdelete" id="fregulationsdelete" class="form-inline ew-form ew-delete-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="regulations">
<input type="hidden" name="action" id="action" value="delete">
<?php foreach ($regulations_delete->RecKeys as $key) { ?>
<?php $keyvalue = is_array($key) ? implode(Config("COMPOSITE_KEY_SEPARATOR"), $key) : $key; ?>
<input type="hidden" name="key_m[]" value="<?php echo HtmlEncode($keyvalue) ?>">
<?php } ?>
<div class="card ew-card ew-grid">
<div class="<?php echo ResponsiveTableClass() ?>card-body ew-grid-middle-panel">
<table class="table ew-table">
<thead>
<tr class="ew-table-header">
<?php if ($regulations_delete->regulation->Visible) { // regulation ?>
<th class="<?php echo $regulations_delete->regulation->headerCellClass() ?>"><span id="elh_regulations_regulation" class="regulations_regulation"><?php echo $regulations_delete->regulation->caption() ?></span></th>
<?php } ?>
</tr>
</thead>
<tbody>
<?php
$regulations_delete->RecordCount = 0;
$i = 0;
while (!$regulations_delete->Recordset->EOF) {
$regulations_delete->RecordCount++;
$regulations_delete->RowCount++;
// Set row properties
$regulations->resetAttributes();
$regulations->RowType = ROWTYPE_VIEW; // View
// Get the field contents
$regulations_delete->loadRowValues($regulations_delete->Recordset);
// Render row
$regulations_delete->renderRow();
?>
<tr <?php echo $regulations->rowAttributes() ?>>
<?php if ($regulations_delete->regulation->Visible) { // regulation ?>
<td <?php echo $regulations_delete->regulation->cellAttributes() ?>>
<span id="el<?php echo $regulations_delete->RowCount ?>_regulations_regulation" class="regulations_regulation">
<span<?php echo $regulations_delete->regulation->viewAttributes() ?>><?php echo $regulations_delete->regulation->getViewValue() ?></span>
</span>
</td>
<?php } ?>
</tr>
<?php
$regulations_delete->Recordset->moveNext();
}
$regulations_delete->Recordset->close();
?>
</tbody>
</table>
</div>
</div>
<div>
<button class="btn btn-primary ew-btn" name="btn-action" id="btn-action" type="submit"><?php echo $Language->phrase("DeleteBtn") ?></button>
<button class="btn btn-default ew-btn" name="btn-cancel" id="btn-cancel" type="button" data-href="<?php echo $regulations_delete->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
</div>
</form>
<?php
$regulations_delete->showPageFooter();
if (Config("DEBUG"))
echo GetDebugMessage();
?>
<script>
loadjs.ready("load", function() {
// Startup script
// Write your table-specific startup script here
// console.log("page loaded");
});
</script>
<?php include_once "footer.php"; ?>
<?php
$regulations_delete->terminate();
?>