| 3 |
* $Id$ |
* $Id$ |
| 4 |
* |
* |
| 5 |
* $Log$ |
* $Log$ |
| 6 |
|
* Revision 1.9 2003/06/25 23:42:15 joko |
| 7 |
|
* trying to switch from "ap" completely to "t" |
| 8 |
|
* |
| 9 |
* Revision 1.8 2003/06/06 04:24:10 joko |
* Revision 1.8 2003/06/06 04:24:10 joko |
| 10 |
* test: function here |
* test: function here |
| 11 |
* |
* |
| 147 |
$css_style = $args[_css_style]; |
$css_style = $args[_css_style]; |
| 148 |
unset($args[_css_style]); |
unset($args[_css_style]); |
| 149 |
|
|
| 150 |
$here = array( t => $_REQUEST[t], ap => $_REQUEST[ap] ); |
$here = array( t => $_REQUEST[t] ); |
| 151 |
|
if ($_REQUEST[ap]) { $here[ap] = $_REQUEST[ap]; } |
| 152 |
|
|
| 153 |
$args = php::array_join_merge($here, $args); |
$args = php::array_join_merge($here, $args); |
| 154 |
$query_string = url::query($args); |
$query_string = url::query($args); |
| 155 |
$link = html_a($query_string, $caption); |
$link = html_a($query_string, $caption); |
| 161 |
|
|
| 162 |
return $link; |
return $link; |
| 163 |
} |
} |
| 164 |
|
|
| 165 |
|
function job($jobname, $type = "search") { |
| 166 |
|
if ($type == 'search') { |
| 167 |
|
$link = link::here( "[$jobname]", array( t => 'Jobs', q => $jobname ) ); |
| 168 |
|
} elseif ($type == 'run') { |
| 169 |
|
$link = link::here( "[$jobname]", array( t => 'Jobs', job => $jobname, action => 'run' ) ); |
| 170 |
|
} |
| 171 |
|
return $link; |
| 172 |
|
} |
| 173 |
|
|
| 174 |
} |
} |
| 175 |
|
|
| 361 |
// REMEMBER: This is an hard coded fallback !! |
// REMEMBER: This is an hard coded fallback !! |
| 362 |
// Normaly args passed in as 'additional' should explicit used! |
// Normaly args passed in as 'additional' should explicit used! |
| 363 |
$final = array(); |
$final = array(); |
| 364 |
$defaults = array( 'ap' => 'explorer', 'ecl' => 'content' ); |
//$defaults = array( 'ap' => 'explorer', 'ecl' => 'content' ); |
| 365 |
|
$defaults = array( 't' => 'DataBrowser', 'ecl' => 'content' ); |
| 366 |
$location = array( 'ecdlk' => 'rpc' ); |
$location = array( 'ecdlk' => 'rpc' ); |
| 367 |
$args = array( 'ecmod' => 'view', 'ect' => 'data', ); |
$args = array( 'ecmod' => 'view', 'ect' => 'data', ); |
| 368 |
|
|