Example #1
0
$uid = 'C' . $class_id;
$element = 'class';
#Universal variables
$uid_info = uid($class_id);
$resource_info = URIinfo($uid, $user_id, $key, $db);
$class_info = $resource_info;
$rule_id = $resource_info['rule_id'];
if ($_REQUEST['orderBy']) {
    $SQLextra['order_by'] = ' order by ' . $_REQUEST['orderBy'] . ' ' . $_REQUEST['direction'];
}
#Define the outgoing links there are going to exist in this page
$s3ql = compact('user_id', 'db');
$s3ql['from'] = 'users';
$s3ql['where']['class_id'] = $class_id;
$users = S3QLaction($s3ql);
$aclGrid = aclGrid(compact('user_id', 'db', 'users'));
$s3ql = compact('db', 'user_id');
$s3ql['from'] = 'rules';
$s3ql['where']['subject_id'] = $class_id;
$s3ql['where']['object'] = "!='UID'";
if ($_REQUEST['project_id']) {
    $s3ql['where']['project_id'] = $_REQUEST['project_id'];
}
if ($_REQUEST['orderBy']) {
    $s3ql['order_by'] = $_REQUEST['orderBy'] . ' ' . $_REQUEST['direction'];
}
#echo '<pre>';print_r($s3ql);
$rules = S3QLaction($s3ql);
if ($resource_info['view']) {
    #include all the javascript functions for the menus...
    include 'S3DBjavascript.php';
Example #2
0
            Header('Location:' . $action['class']);
            exit;
        } else {
            $message .= '<input type="button" value="Return to class" onclick="window.location=\'' . $action['class'] . '\'">';
        }
    }
    #echo "<font color = 'red'>".$done."</font>";
    #include the form
    #include all the javascript functions for the menus...
    include '../S3DBjavascript.php';
    #and the short menu for the resource script
    include '../action.header.php';
    echo "<br /><br />";
    #echo '<pre>';print_r($_REQUEST);
    $new = 0;
    $aclGrid = aclGrid(compact('user_id', 'db', 'users', 'new', 'uid'));
    ?>

<table class="edit_rule" width="90%"  align="center" border="0">
	<?php 
    echo '<tr><td class="message" colspan="9">' . $done . '<br /></td></tr>';
    ?>
	<tr bgcolor="#80BBFF"><td colspan="9" align="center">Edit resource</td></tr>
	<tr class="odd" align="center">
		<td  width="10%">Owner</td>
		<td  width="10%">Created On</td>
		<td width="10%">Entity</td>
		<td width="10%">Notes</td>
		<td  width="10%">Action</td>
	</tr>