mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-11-29 08:56:03 +00:00
Kinda working with both Lightning & Evolution now. About to restructure to
add TODO items and make certain queries easier.
This commit is contained in:
1 parent
acc28c0faa
commit
a57d690167
27 files changed
+2879
-2107
No files matched your search
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
require_once("always.php");
|
||||
require_once("RSCDSSession.php");
|
||||
$session->LoginRequired();
|
||||
|
||||
require_once("interactive-page.php");
|
||||
|
||||
|
||||
require_once("classBrowser.php");
|
||||
$c->stylesheets[] = "css/browse.css";
|
||||
|
||||
$c->page_title = "System Roles";
|
||||
$browser = new Browser($c->page_title);
|
||||
|
||||
$browser->AddColumn( 'role_no', 'No.', '', '##role_link##' );
|
||||
$browser->AddColumn( 'role_name', 'Name' );
|
||||
$browser->AddHidden( 'role_link', "'<a href=\"/role.php?role_no=' || role_no || '\">' || role_no || '</a>'" );
|
||||
|
||||
$browser->SetJoins( "roles" );
|
||||
|
||||
if ( isset( $_GET['o']) && isset($_GET['d']) ) {
|
||||
$browser->AddOrder( $_GET['o'], $_GET['d'] );
|
||||
}
|
||||
else
|
||||
$browser->AddOrder( 'role_no', 'A' );
|
||||
|
||||
$browser->RowFormat( "<tr onMouseover=\"LinkHref(this,1);\" title=\"Click to Display Role Detail\" class=\"r%d\">\n", "</tr>\n", '#even' );
|
||||
$browser->DoQuery();
|
||||
|
||||
|
||||
// if ( $session->AllowedTo("Admin") )
|
||||
$role_menu->AddOption("New Role","/role.php?create","Add a new role", false, 10);
|
||||
|
||||
$active_menu_pattern = "#^/role#";
|
||||
|
||||
include("page-header.php");
|
||||
|
||||
echo $browser->Render();
|
||||
include("page-footer.php");
|
||||
?>
|
||||
Reference in new issue
Block a user