| 3 |
* $Id$ |
* $Id$ |
| 4 |
* |
* |
| 5 |
* $Log$ |
* $Log$ |
| 6 |
|
* Revision 1.10 2003/07/01 23:43:29 joko |
| 7 |
|
* + target-option for link::job |
| 8 |
|
* + link::jobmonitor |
| 9 |
|
* |
| 10 |
|
* Revision 1.9 2003/06/25 23:42:15 joko |
| 11 |
|
* trying to switch from "ap" completely to "t" |
| 12 |
|
* |
| 13 |
|
* Revision 1.8 2003/06/06 04:24:10 joko |
| 14 |
|
* test: function here |
| 15 |
|
* |
| 16 |
* Revision 1.7 2003/05/13 16:21:13 joko |
* Revision 1.7 2003/05/13 16:21:13 joko |
| 17 |
* + function url::view_as, filter, parent |
* + function url::view_as, filter, parent |
| 18 |
* added comments/docu |
* added comments/docu |
| 114 |
} |
} |
| 115 |
|
|
| 116 |
function topic($topic_name, $args = array()) { |
function topic($topic_name, $args = array()) { |
| 117 |
|
// 2003-0x-xx: css-class handling |
| 118 |
$css_class = $args[_css_class]; |
$css_class = $args[_css_class]; |
| 119 |
unset($args[_css_class]); |
unset($args[_css_class]); |
| 120 |
$query_string = linkargs::topic($topic_name, $args); |
$query_string = linkargs::topic($topic_name, $args); |
| 131 |
} |
} |
| 132 |
|
|
| 133 |
function action($action_name, $args = array()) { |
function action($action_name, $args = array()) { |
| 134 |
|
|
| 135 |
|
// new as of 2003-05-29 |
| 136 |
|
$here = array( t => $_REQUEST[t], ap => $_REQUEST[ap] ); |
| 137 |
|
$args = php::array_join_merge($here, $args); |
| 138 |
|
|
| 139 |
$query_string = linkargs::action($action_name, $args); |
$query_string = linkargs::action($action_name, $args); |
| 140 |
return html_a($query_string, "[$action_name]"); |
return html_a($query_string, "[$action_name]"); |
| 141 |
} |
} |
| 145 |
return html_a($url, $caption); |
return html_a($url, $caption); |
| 146 |
} |
} |
| 147 |
|
|
| 148 |
|
function here($caption, $args = array()) { |
| 149 |
|
|
| 150 |
|
// 2003-06-03: css-style handling |
| 151 |
|
$css_style = $args[_css_style]; |
| 152 |
|
unset($args[_css_style]); |
| 153 |
|
|
| 154 |
|
// 2003-07-02: target handling |
| 155 |
|
$target = $args[_target]; |
| 156 |
|
unset($args[_target]); |
| 157 |
|
|
| 158 |
|
$here = array( t => $_REQUEST[t] ); |
| 159 |
|
if ($_REQUEST[ap]) { $here[ap] = $_REQUEST[ap]; } |
| 160 |
|
|
| 161 |
|
$args = php::array_join_merge($here, $args); |
| 162 |
|
$query_string = url::query($args); |
| 163 |
|
$link = html_a($query_string, $caption, NULL, $target); |
| 164 |
|
|
| 165 |
|
// 2003-06-03: css-style handling |
| 166 |
|
if ($css_style) { |
| 167 |
|
$link->set_style($css_style); |
| 168 |
|
} |
| 169 |
|
|
| 170 |
|
return $link; |
| 171 |
|
} |
| 172 |
|
|
| 173 |
|
function job($jobname, $type = "search", $target = '') { |
| 174 |
|
if ($type == 'search') { |
| 175 |
|
$link = link::here( "[$jobname]", array( t => 'Jobs', q => $jobname, _target => $target ) ); |
| 176 |
|
} elseif ($type == 'run') { |
| 177 |
|
$link = link::here( "[$jobname]", array( t => 'Jobs', job => $jobname, action => 'run', _target => $target ) ); |
| 178 |
|
} |
| 179 |
|
return $link; |
| 180 |
|
} |
| 181 |
|
|
| 182 |
|
function jobmonitor($jobname, $type = "search") { |
| 183 |
|
return link::job($jobname, $type, '_blank'); |
| 184 |
|
} |
| 185 |
|
|
| 186 |
} |
} |
| 187 |
|
|
| 188 |
|
|
| 373 |
// REMEMBER: This is an hard coded fallback !! |
// REMEMBER: This is an hard coded fallback !! |
| 374 |
// Normaly args passed in as 'additional' should explicit used! |
// Normaly args passed in as 'additional' should explicit used! |
| 375 |
$final = array(); |
$final = array(); |
| 376 |
$defaults = array( 'ap' => 'explorer', 'ecl' => 'content' ); |
//$defaults = array( 'ap' => 'explorer', 'ecl' => 'content' ); |
| 377 |
|
$defaults = array( 't' => 'DataBrowser', 'ecl' => 'content' ); |
| 378 |
$location = array( 'ecdlk' => 'rpc' ); |
$location = array( 'ecdlk' => 'rpc' ); |
| 379 |
$args = array( 'ecmod' => 'view', 'ect' => 'data', ); |
$args = array( 'ecmod' => 'view', 'ect' => 'data', ); |
| 380 |
|
|