CMXX - New Profile setup
This commit is contained in:
7
test.php
7
test.php
@@ -9,10 +9,7 @@ include './settings/config.php';
|
||||
include_once './settings/translations/translations_US.php';
|
||||
include_once './settings/systemfirmware.php';
|
||||
|
||||
|
||||
//define('standard_profile','dashboard,profile,equipments,equipment,histories,history,servicereports,servicereport,firmwaretool,application');
|
||||
|
||||
$allviews = ["dashboard","profile","equipments","equipment","equipmentmanage","equipment_item"];
|
||||
$allviews = explode(',' , standard_profile);
|
||||
|
||||
$admin_profile = ["dashboard","profile","equipments","equipment"];
|
||||
|
||||
@@ -20,7 +17,7 @@ $view = '<html><form action="" method="post">';
|
||||
|
||||
foreach ($allviews as $view){
|
||||
|
||||
if (in_array($view,$admin_profile)){
|
||||
if (in_stir($view,$admin_profile)){
|
||||
$view .= '<input type="checkbox" id="'.$view.'" name="" value="'.$view.'" checked>';
|
||||
} else {
|
||||
$view .= '<input type="checkbox" id="'.$view.'" name="profile[]" value="'.$view.'">';
|
||||
|
||||
Reference in New Issue
Block a user