Пример #1
0
}
$s3ql['where']['object'] = "!='UID'";
if ($_REQUEST['orderBy']) {
    $s3ql['order_by'] = $_REQUEST['orderBy'] . ' ' . $_REQUEST['direction'];
}
$rules = S3QLaction($s3ql);
#echo '<pre>';print_r($rules);exit;
#	if(is_array($rules))
#	{
#	#find out whter the object of this rule is a class and retrieve the rule_id in that case
#	$rules = include_all_class_id(compact('rules', 'project_id', 'db'));
#	}
//actions when the buttons on list all, search or clear query are clicked
if ($_POST['search'] != '') {
    $S = compact('db', 'project_id', 'rule_id', 'resource_info', 'project_info', 'user_id');
    $_SESSION['show_me'] = get_show_me($S);
    $_SESSION['rule_value_pairs'] = array();
    $_SESSION['list_all'] = '';
    Header('Location:' . $action['queryclass']);
    exit;
} elseif ($_REQUEST['listall'] == 'yes') {
    $S = compact('db', 'project_id', 'rule_id', 'acl', 'user_id');
    Header('Location:' . $action['queryresult'] . '&listall=yes&page=1');
    #go directly do result
    exit;
    #$instances = search_all($owner_project_id, $entity, $_REQUEST['entity_id']);
} else {
    #include all the javascript functions for the menus...
    include '../S3DBjavascript.php';
    #and the short menu for the resource script
    include '../action.header.php';
Пример #2
0
    $s3ql['order_by'] = $_REQUEST['orderBy'] . ' ' . $_REQUEST['direction'];
}
#echo '<pre>';print_r($s3ql);
$rules = S3QLaction($s3ql);
#echo '<pre>';print_r($rules);exit;
#	if(is_array($rules))
#	{
#	#find out whter the object of this rule is a class and retrieve the rule_id in that case
#	$rules = include_all_class_id(compact('rules', 'project_id', 'db'));
#	}
//actions when the buttons on list all, search or clear query are clicked
#echo '<pre>';print_r($_SESSION);
if ($_POST['search'] != '') {
    $S = compact('db', 'project_id', 'rule_id', 'resource_info', 'project_info', 'user_id');
    #echo '<pre>';print_r($S);exit;
    $_SESSION['show_me'] = get_show_me($resource_info, $rules, $db);
    $_SESSION['rule_value_pairs'] = get_rule_value_pairs($resource_info, $rules, $db);
    $_SESSION[$uid]['rules'] = $rules;
    $_SESSION[$uid]['info'] = $resource_info;
    #echo '<pre>';print_r($_SESSION);exit;
    $_SESSION['list_all'] = '';
    Header('Location:' . $action['queryresult'] . '&listall=no&page=1&orderBy=created_on&direction=desc');
    exit;
} elseif ($_REQUEST['listall'] == 'yes') {
    Header('Location:' . $action['queryresult'] . '&listall=yes&page=1&orderBy=created_on&direction=desc');
    #go directly do result
    exit;
} else {
    #include all the javascript functions for the menus...
    include '../S3DBjavascript.php';
    #and the short menu for the resource script