-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcategory.php
45 lines (34 loc) · 1.38 KB
/
category.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
<?php
ob_start();
require_once './script/pdocrud.php';
include './includes/header.php';
?>
<body class="hold-transition skin-blue sidebar-mini">
<!-- Site wrapper -->
<div class="wrapper">
<!-- Content Wrapper. Contains page content -->
<?php include './includes/topheader.php'; ?>
<?php include './includes/sidebar.php'; ?>
<div class="content-wrapper">
<!-- Code box -->
<section class="content">
<?php
$pdocrud = new PDOCrud(false, "pure", "pure");;
if ($pdocrud->checkUserSession("userId")) {
echo "Welcome ".$pdocrud->getUserSession("userName");
$pdocrud->setSkin("pure");
$pdocrud->setSettings("autoSuggestion", true);
$pdocrud->setSettings("tableCellEdit", true);
$pdocrud->fieldNotMandatory("HSN");
$pdocrud->fieldNotMandatory("SAC_code");
$pdocrud->fieldNotMandatory("IGST");
echo $pdocrud->dbTable("category")->render();
}else{
echo 'You are not authorized to view this page';
}
?>
</section>
</div>
</div>
</body>
</html>