| 3 |
* $Id$ |
* $Id$ |
| 4 |
* |
* |
| 5 |
* $Log$ |
* $Log$ |
| 6 |
|
* Revision 1.8 2003/06/06 04:24:10 joko |
| 7 |
|
* test: function here |
| 8 |
|
* |
| 9 |
* Revision 1.7 2003/05/13 16:21:13 joko |
* Revision 1.7 2003/05/13 16:21:13 joko |
| 10 |
* + function url::view_as, filter, parent |
* + function url::view_as, filter, parent |
| 11 |
* added comments/docu |
* added comments/docu |
| 107 |
} |
} |
| 108 |
|
|
| 109 |
function topic($topic_name, $args = array()) { |
function topic($topic_name, $args = array()) { |
| 110 |
|
// 2003-0x-xx: css-class handling |
| 111 |
$css_class = $args[_css_class]; |
$css_class = $args[_css_class]; |
| 112 |
unset($args[_css_class]); |
unset($args[_css_class]); |
| 113 |
$query_string = linkargs::topic($topic_name, $args); |
$query_string = linkargs::topic($topic_name, $args); |
| 124 |
} |
} |
| 125 |
|
|
| 126 |
function action($action_name, $args = array()) { |
function action($action_name, $args = array()) { |
| 127 |
|
|
| 128 |
|
// new as of 2003-05-29 |
| 129 |
|
$here = array( t => $_REQUEST[t], ap => $_REQUEST[ap] ); |
| 130 |
|
$args = php::array_join_merge($here, $args); |
| 131 |
|
|
| 132 |
$query_string = linkargs::action($action_name, $args); |
$query_string = linkargs::action($action_name, $args); |
| 133 |
return html_a($query_string, "[$action_name]"); |
return html_a($query_string, "[$action_name]"); |
| 134 |
} |
} |
| 138 |
return html_a($url, $caption); |
return html_a($url, $caption); |
| 139 |
} |
} |
| 140 |
|
|
| 141 |
|
function here($caption, $args = array()) { |
| 142 |
|
|
| 143 |
|
// 2003-06-03: css-style handling |
| 144 |
|
$css_style = $args[_css_style]; |
| 145 |
|
unset($args[_css_style]); |
| 146 |
|
|
| 147 |
|
$here = array( t => $_REQUEST[t], ap => $_REQUEST[ap] ); |
| 148 |
|
$args = php::array_join_merge($here, $args); |
| 149 |
|
$query_string = url::query($args); |
| 150 |
|
$link = html_a($query_string, $caption); |
| 151 |
|
|
| 152 |
|
// 2003-06-03: css-style handling |
| 153 |
|
if ($css_style) { |
| 154 |
|
$link->set_style($css_style); |
| 155 |
|
} |
| 156 |
|
|
| 157 |
|
return $link; |
| 158 |
|
} |
| 159 |
|
|
| 160 |
} |
} |
| 161 |
|
|
| 162 |
|
|