Kinda working with both Lightning & Evolution now. About to restructure to

add TODO items and make certain queries easier.
This commit is contained in:
Andrew McMillan committed 2006-09-21 18:24:26 +12:00
1 parent acc28c0faa
commit a57d690167
27 files changed
+2879 -2107

No files matched your search

+4
View File
@@ -5,6 +5,10 @@ require_once("BasicAuthSession.php");
$raw_headers = apache_request_headers();
$raw_post = file_get_contents ( 'php://input');
if ( $debugging && isset($_GET['method']) ) {
$_SERVER['REQUEST_METHOD'] = $_GET['method'];
}
switch ( $_SERVER['REQUEST_METHOD'] ) {
case 'OPTIONS':
include_once("caldav-OPTIONS.php");
@@ -3,6 +3,8 @@ require_once("always.php");
require_once("RSCDSSession.php");
$session->LoginRequired();
require_once("interactive-page.php");
$c->title = "Really Simple CalDAV Store - Configuration Help";
include("page-header.php");
@@ -22,6 +24,6 @@ echo <<<EOBODY
</p>
EOBODY;
include("page-header.php");
include("page-footer.php");
?>
Binary file not shown.

After

Width:  |  Height:  |  Size: 58 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 B

+2 -1
View File
@@ -3,6 +3,7 @@ require_once("always.php");
require_once("RSCDSSession.php");
$session->LoginRequired();
require_once("interactive-page.php");
include("page-header.php");
echo <<<EOBODY
@@ -10,7 +11,7 @@ include("page-header.php");
<p>You appear to be logged on as $session->username ($session->fullname)</p>
<p>Useful links:
<ul>
<li><a href="/client_configuration_help.php">Help on configuring CalDAV clients with RSCDS</a></li>
<li><a href="/help.php">Help on configuring CalDAV clients with RSCDS</a></li>
</ul>
</p>
EOBODY;
+44
View File
@@ -0,0 +1,44 @@
<?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 = "User Relationships";
$browser = new Browser($c->page_title);
$browser->AddColumn( 'from_user', 'From', '', '##from_user_link##' );
$browser->AddColumn( 'from_name', 'Name', '', '', 'ufrom.fullname' );
$browser->AddHidden( 'from_user_link', "'<a href=\"/user.php?user_no=' || from_user || '\">' || from_user || '</a>'" );
$browser->AddColumn( 'to_user', 'From', '', '##to_user_link##' );
$browser->AddColumn( 'to_name', 'Name', '', '', 'uto.fullname' );
$browser->AddHidden( 'to_user_link', "'<a href=\"/user.php?user_no=' || to_user || '\">' || to_user || '</a>'" );
$browser->SetJoins( 'relationship JOIN usr ufrom ON (ufrom.user_no = from_user) JOIN usr uto ON (uto.user_no = to_user) ' );
if ( isset( $_GET['o']) && isset($_GET['d']) ) {
$browser->AddOrder( $_GET['o'], $_GET['d'] );
}
else
$browser->AddOrder( 'from_user', '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("Support") )
$relationship_menu->AddOption("New Relationship","/relationship.php?create","Add a new relationship", false, 10);
$active_menu_pattern = "#^/relationship#";
include("page-header.php");
echo $browser->Render();
include("page-footer.php");
?>
+40
View File
@@ -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");
?>
+102 -4
View File
@@ -1,8 +1,106 @@
/* Basic overridable CSS for Really Simple CalDAV Store */
span.prompt {
body, p, li, td {
padding: 0;
margin: 0;
border: none;
}
.prompt {
font-weight: bold;
width: 12em;
padding-right: 1em;
display: block;
padding: 1px 1em 1px 0.5em;
text-align: right;
}
.error {
/* font-weight: bold; */
font-size: 110%;
font-family: Bitstream Vera Sans, Vera Sans, sans-serif;
padding: 1px 0.3em;
background-color: #c00000;
color: #ffff00;
}
h1, h2, h3, h4, h5 {
font-weight: bold;
font-family: Bitstream Vera Sans, Vera Sans, sans-serif;
padding-left: 0.3em;
padding-right: 0.3em;
padding-bottom: 0.1em;
}
h1 {
font-size: 200%;
background-color: #30c050;
margin: 0;
padding: 0.3em;
}
h1:first-letter {
font-size: 120%;
}
h2 {
font-size: 160%;
background-color: #60e080;
margin: 0;
padding-top: 0.3em;
margin-top: 1px;
}
p {
padding: 0.1em 0.3em 0.2em;
}
input.text, input.password, label {
background-color: ffffe0;
color: navy;
border: thin solid #000000;
padding: 3px;
}
label {
padding: 2px;
}
#menu {
background-color: #084010;
color: white;
font-weight: bold;
padding: 2px 1px;
margin-bottom: 1px;
}
#menu a.menu, #menu a.menu:hover, #menu a.menu_active, #menu a.menu_active:hover {
color: white;
text-decoration: none;
background-color: #10a020;
padding: 1px 0.2em;
margin-right: 0.2em;
}
#menu a.menu:hover, #menu a.menu_active:hover {
color: yellow;
background-color: #088010;
}
#submenu {
background-color: #105020;
color: white;
font-weight: bold;
padding: 2px 1px;
margin-bottom: 1px;
}
#submenu a.submenu, #submenu a.submenu:hover, #submenu a.submenu_active, #submenu a.submenu_active:hover {
color: white;
text-decoration: none;
background-color: #20c040;
padding: 1px 0.2em;
margin-right: 0.2em;
}
#submenu a.submenu:hover, #submenu a.submenu_active:hover {
color: yellow;
background-color: #10a020;
}
+41
View File
@@ -0,0 +1,41 @@
<?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";
$browser = new Browser("Calendar Users");
$browser->AddColumn( 'user_no', 'No.', '', '##user_link##' );
$browser->AddColumn( 'username', 'Name' );
$browser->AddHidden( 'user_link', "'<a href=\"/user.php?user_no=' || user_no || '\">' || user_no || '</a>'" );
$browser->SetJoins( 'usr' );
if ( isset( $_GET['o']) && isset($_GET['d']) ) {
$browser->AddOrder( $_GET['o'], $_GET['d'] );
}
else
$browser->AddOrder( 'user_no', 'A' );
$browser->RowFormat( "<tr onMouseover=\"LinkHref(this,1);\" title=\"Click to Display Role Detail\" class=\"r%d\">\n", "</tr>\n", '#even' );
$browser->DoQuery();
$c->page_title = "Calendar Users";
// if ( $session->AllowedTo("Support") )
$user_menu->AddOption("New User","/user.php?create","Add a new user", false, 10);
$active_menu_pattern = "#^/user#";
include("page-header.php");
echo $browser->Render();
include("page-footer.php");
?>