openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 7a6308538ebaf879cf3633fac7f5b0547ebd5681
parent 5405b5d06986921b4bdf508d9bd886a44ad23633
Author: dankert <devnull@localhost>
Date:   Wed, 11 Jan 2006 23:06:46 +0100

Baustein f?r HTML-Seite

Diffstat:
themes/default/include/html/button.inc.php | 10++++++++++
themes/default/include/html/cell-end.inc.php | 2++
themes/default/include/html/cell.inc.php | 12++++++++++++
themes/default/include/html/checkbox.inc.php | 2++
themes/default/include/html/date.inc.php | 47+++++++++++++++++++++++++++++++++++++++++++++++
themes/default/include/html/dummy.inc.php | 0
themes/default/include/html/end.inc.php | 0
themes/default/include/html/focus.inc.php | 3+++
themes/default/include/html/form-end.inc.php | 2++
themes/default/include/html/form.inc.php | 12++++++++++++
themes/default/include/html/frame.inc.php | 1+
themes/default/include/html/frameset-end.inc.php | 1+
themes/default/include/html/frameset-page-end.inc.php | 3+++
themes/default/include/html/frameset-page.inc.php | 8++++++++
themes/default/include/html/frameset.inc.php | 5+++++
themes/default/include/html/if-end.inc.php | 4++++
themes/default/include/html/if.inc.php | 52++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/include/html/image.inc.php | 10++++++++++
themes/default/include/html/input.inc.php | 2++
themes/default/include/html/inputarea.inc.php | 2++
themes/default/include/html/insert.inc.php | 2++
themes/default/include/html/link-end.inc.php | 2++
themes/default/include/html/link.inc.php | 2++
themes/default/include/html/list-end.inc.php | 2++
themes/default/include/html/list.inc.php | 12++++++++++++
themes/default/include/html/newline.inc.php | 2++
themes/default/include/html/object.inc.php | 1+
themes/default/include/html/page-end.inc.php | 13+++++++++++++
themes/default/include/html/page.inc.php | 17+++++++++++++++++
themes/default/include/html/radio.inc.php | 3+++
themes/default/include/html/row-end.inc.php | 2++
themes/default/include/html/row.inc.php | 11+++++++++++
themes/default/include/html/selectbox.inc.php | 14++++++++++++++
themes/default/include/html/set.inc.php | 2++
themes/default/include/html/table-end.inc.php | 2++
themes/default/include/html/table.inc.php | 9+++++++++
themes/default/include/html/text.inc.php | 27+++++++++++++++++++++++++++
themes/default/include/html/user.inc.php | 13+++++++++++++
themes/default/include/html/window-end.inc.php | 7+++++++
themes/default/include/html/window.inc.php | 55+++++++++++++++++++++++++++++++++++++++++++++++++++++++
40 files changed, 376 insertions(+), 0 deletions(-)

diff --git a/themes/default/include/html/button.inc.php b/themes/default/include/html/button.inc.php @@ -0,0 +1,9 @@ +<?php + if ($attr_type=='ok') + { + $attr_type = 'submit'; + $attr_class = 'ok'; + $attr_text = 'BUTTON_OK'; + $attr_value = 'ok'; + } +?><input type="<?php echo $attr_type ?>" name="<?php echo $attr_value ?>" class="<?php echo $attr_class ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo lang($attr_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" />+ \ No newline at end of file diff --git a/themes/default/include/html/cell-end.inc.php b/themes/default/include/html/cell-end.inc.php @@ -0,0 +1 @@ +</td>+ \ No newline at end of file diff --git a/themes/default/include/html/cell.inc.php b/themes/default/include/html/cell.inc.php @@ -0,0 +1,11 @@ +<?php + global $fx; + if (!isset($attr_class)) $attr_class=''; + if ($attr_class=='fx') $attr['class']=$fx; + + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) + $attr['width']=$column_widths[$cell_column_nr-1]; + +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>>+ \ No newline at end of file diff --git a/themes/default/include/html/checkbox.inc.php b/themes/default/include/html/checkbox.inc.php @@ -0,0 +1 @@ +<input type="checkbox" name="<?php echo $attr_prefix.$$attr_name ?>" <?php if ($attr_readonly=='true') echo ' disabled="disabled"' ?> value="1" <?php if( $attr_default=='true' ) echo 'checked="checked"' ?> />+ \ No newline at end of file diff --git a/themes/default/include/html/date.inc.php b/themes/default/include/html/date.inc.php @@ -0,0 +1,46 @@ +<?php + $time = $$attr_date; + + $sekunden = time()-$time; + $minuten = intval($sekunden/60); + $stunden = intval($minuten /60); + $tage = intval($stunden /24); + $monate = intval($tage /30); + $jahre = intval($monate /12); + + echo '<span title="'.date(lang('DATE_FORMAT'),$time).'"">'; + + if ( $time==0) + echo lang('GLOBAL_UNKNOWN'); + elseif ( $sekunden == 1 ) + echo $sekunden.' '.lang('GLOBAL_SECOND'); + elseif ( $sekunden < 60 ) + echo $sekunden.' '.lang('GLOBAL_SECONDS'); + + elseif ( $minuten == 1 ) + echo $minuten.' '.lang('GLOBAL_MINUTE'); + elseif ( $minuten < 60 ) + echo $minuten.' '.lang('GLOBAL_MINUTES'); + + elseif ( $stunden == 1 ) + echo $stunden.' '.lang('GLOBAL_HOUR'); + elseif ( $stunden < 60 ) + echo $stunden.' '.lang('GLOBAL_HOURS'); + + elseif ( $tage == 1 ) + echo $tage.' '.lang('GLOBAL_DAY'); + elseif ( $tage < 60 ) + echo $tage.' '.lang('GLOBAL_DAYS'); + + elseif ( $monate == 1 ) + echo $monate.' '.lang('GLOBAL_MONTH'); + elseif ( $monate < 12 ) + echo $monate.' '.lang('GLOBAL_MONTHS'); + + elseif ( $jahre == 1 ) + echo $jahre.' '.lang('GLOBAL_YEAR'); + else + echo $jahre.' '.lang('GLOBAL_YEARS'); + + echo '</span>'; +?>+ \ No newline at end of file diff --git a/themes/default/include/html/dummy.inc.php b/themes/default/include/html/dummy.inc.php diff --git a/themes/default/include/html/end.inc.php b/themes/default/include/html/end.inc.php diff --git a/themes/default/include/html/focus.inc.php b/themes/default/include/html/focus.inc.php @@ -0,0 +1,3 @@ +<script name="JavaScript" type="text/javascript"><!-- +document.forms[0].<?php echo $$attr_field ?>.focus(); +//--></script> diff --git a/themes/default/include/html/form-end.inc.php b/themes/default/include/html/form-end.inc.php @@ -0,0 +1 @@ +</form>+ \ No newline at end of file diff --git a/themes/default/include/html/form.inc.php b/themes/default/include/html/form.inc.php @@ -0,0 +1,11 @@ +<form name="<?php echo $attr_name ?>" + target="<?php echo $attr_target ?>" + action="<?php echo Html::url( $attr_action,$attr_subaction,$attr_id ) ?>" + method="<?php echo $attr_method ?>" + enctype="<?php echo $attr_enctype ?>"> +<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $attr_action ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $attr_subaction ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr_id ?>" /><?php + if ( $conf['interface']['url_sessionid'] ) + echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; +?>+ \ No newline at end of file diff --git a/themes/default/include/html/frame.inc.php b/themes/default/include/html/frame.inc.php @@ -0,0 +1 @@ +<frame src="<?php echo $$attr_file ?>" name="<?php echo empty($attr_name)?'':$attr_name ?>" marginheight="0" marginwidth="0" scrolling="<?php echo empty($attr_scrolling)?'no':$attr_scrolling ?>"> diff --git a/themes/default/include/html/frameset-end.inc.php b/themes/default/include/html/frameset-end.inc.php @@ -0,0 +1 @@ +</frameset> diff --git a/themes/default/include/html/frameset-page-end.inc.php b/themes/default/include/html/frameset-page-end.inc.php @@ -0,0 +1,2 @@ + +</html>+ \ No newline at end of file diff --git a/themes/default/include/html/frameset-page.inc.php b/themes/default/include/html/frameset-page.inc.php @@ -0,0 +1,8 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN"> +<html> +<!-- $Id$ --> + <head> + <title><?php echo $title ?> - <?php echo $cms_title ?></title> + <link rel="shortcut icon" href="<?php echo $image_dir.'favicon.ico' ?>" /> + <meta name="robots" content="noindex,nofollow" /> + </head> diff --git a/themes/default/include/html/frameset.inc.php b/themes/default/include/html/frameset.inc.php @@ -0,0 +1,4 @@ +<frameset +<?php echo !empty($attr_rows) ?' rows="'.$attr_rows.'"':'' ?> +<?php echo !empty($attr_columns)?' cols="'.$attr_columns.'"':'' ?> + border="0" frameborder="5" framespacing="0" bordercolor="#000000">+ \ No newline at end of file diff --git a/themes/default/include/html/if-end.inc.php b/themes/default/include/html/if-end.inc.php @@ -0,0 +1,3 @@ +<?php + } +?>+ \ No newline at end of file diff --git a/themes/default/include/html/if.inc.php b/themes/default/include/html/if.inc.php @@ -0,0 +1,51 @@ +<?php + + // Wahr-Vergleich + if ( !empty($attr_true) ) + $exec = $$attr_true == true; + + // Falsch-Vergleich + elseif ( !empty($attr_false) ) + $exec = $$attr_false != true; + + // Inhalt-Vergleich mit Wertliste + elseif( !empty($attr_contains) ) + $exec = in_array($$attr_var,explode(',',$attr_contains)); + + // Inhalt-Vergleich + elseif( !empty($attr_var) ) + $exec = $$attr_var == $attr_value; + + // Vergleich auf leer + elseif ( !empty($attr_empty) ) + { + if ( !isset($$attr_empty) ) + $exec = true; + elseif ( is_array($$attr_empty) ) + $exec = (count($$attr_empty)==0); + else + $exec = empty( $$attr_empty ); + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_present) ) + { + if ( !isset($$attr_present) ) + $exec = false; + elseif ( is_array($$attr_present) ) + $exec = (count($$attr_present)>0); + else + $exec = !empty( $$attr_present ); + } + else + { + die("error in IF"); + } + + // Ergebnis umdrehen + if ( !empty($attr_invert) ) + $exec = !$exec; + + if ( $exec ) + { +?>+ \ No newline at end of file diff --git a/themes/default/include/html/image.inc.php b/themes/default/include/html/image.inc.php @@ -0,0 +1,9 @@ +<?php +if (!empty($attr_eltype)) { +?><img src="<?php echo $image_dir.'icon_el_'.$$attr_eltype.IMG_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php +} elseif (!empty($attr_type)) { +?><img src="<?php echo $image_dir.'icon_'.$$attr_type.IMG_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php +} elseif (!empty($$attr_url)) { +?><img src="<?php echo $$attr_url ?>" border="0" align="<?php echo $attr_align ?>"><?php +} elseif (!empty($attr_file)) { +?><img src="<?php echo $image_dir.$$attr_file.IMG_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php } ?>+ \ No newline at end of file diff --git a/themes/default/include/html/input.inc.php b/themes/default/include/html/input.inc.php @@ -0,0 +1 @@ +<input <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?> value="<?php echo $$attr_name ?>" />+ \ No newline at end of file diff --git a/themes/default/include/html/inputarea.inc.php b/themes/default/include/html/inputarea.inc.php @@ -0,0 +1 @@ +<textarea name="<?php echo $attr_name ?>" rows="<?php echo $attr_rows ?>" cols="<?php echo $attr_cols ?>"><?php echo $$attr_value ?></textarea>+ \ No newline at end of file diff --git a/themes/default/include/html/insert.inc.php b/themes/default/include/html/insert.inc.php @@ -0,0 +1 @@ +<?php include( $tpl_dir.$attr_file.'.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/include/html/link-end.inc.php b/themes/default/include/html/link-end.inc.php @@ -0,0 +1 @@ +</a>+ \ No newline at end of file diff --git a/themes/default/include/html/link.inc.php b/themes/default/include/html/link.inc.php @@ -0,0 +1 @@ +<a href="<?php echo $$attr_url ?>" target="<?php echo $attr_target ?>" title="<?php echo lang($$attr_title) ?>">+ \ No newline at end of file diff --git a/themes/default/include/html/list-end.inc.php b/themes/default/include/html/list-end.inc.php @@ -0,0 +1 @@ +<?php } ?>+ \ No newline at end of file diff --git a/themes/default/include/html/list.inc.php b/themes/default/include/html/list.inc.php @@ -0,0 +1,11 @@ +<?php + $list_tmp_key = $attr_key; + $list_tmp_value = $attr_value; + $list_extract = ($attr_extract=='true'); + + + foreach( $$attr_list as $$list_tmp_key => $$list_tmp_value ) + { + if ( $list_extract ) + extract($$list_tmp_value); +?>+ \ No newline at end of file diff --git a/themes/default/include/html/newline.inc.php b/themes/default/include/html/newline.inc.php @@ -0,0 +1 @@ +<br/>+ \ No newline at end of file diff --git a/themes/default/include/html/object.inc.php b/themes/default/include/html/object.inc.php @@ -0,0 +1 @@ +<a href="<?php Html::url('main',$$object->type,$$object->objectid) ?>" target="cms_main" title="<?php $$object->description ?>"><img src="<?php echo $image_dir.'icon_'.$$o->getType().IMG_EXT ?>" align="left" border="0"><?php echo $$o->name ?></a> diff --git a/themes/default/include/html/page-end.inc.php b/themes/default/include/html/page-end.inc.php @@ -0,0 +1,12 @@ + +<!-- $Id$ --> + +<?php if ($showDuration) { ?> +<br/> +<small>&nbsp; +<?php $dur = time()-START_TIME; + echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small> +<?php } ?> + +</body> +</html>+ \ No newline at end of file diff --git a/themes/default/include/html/page.inc.php b/themes/default/include/html/page.inc.php @@ -0,0 +1,17 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<html> +<!-- $Id$ --> +<head> + <title><?php echo $cms_title ?></title> + <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> + <meta name="MSSmartTagsPreventParsing" content="true" /> + <meta name="robots" content="noindex,nofollow" /> + <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> +<?php if($stylesheet!='default') { ?> + <link rel="stylesheet" type="text/css" href="<?php echo $stylesheet ?>" /> +<?php } ?> +</head> + +<body<?php if( !empty($attr_class) )echo ' class="'.$class.'"' ?>> + + diff --git a/themes/default/include/html/radio.inc.php b/themes/default/include/html/radio.inc.php @@ -0,0 +1,2 @@ +<?php +?><input type="radio" name="<?php echo $attr_prefix.$attr_name ?><?php if ( $attr_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $attr_value ?>" <?php if( $attr_default ) echo 'checked="checked"' ?> />+ \ No newline at end of file diff --git a/themes/default/include/html/row-end.inc.php b/themes/default/include/html/row-end.inc.php @@ -0,0 +1 @@ +</tr>+ \ No newline at end of file diff --git a/themes/default/include/html/row.inc.php b/themes/default/include/html/row.inc.php @@ -0,0 +1,10 @@ +<?php + global $fx; + if ( $fx =='f1') + $fx='f2'; + else $fx='f1'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><tr>+ \ No newline at end of file diff --git a/themes/default/include/html/selectbox.inc.php b/themes/default/include/html/selectbox.inc.php @@ -0,0 +1,13 @@ +<select size="1" name="<?php echo $attr_name ?>" <?php +if (count($$attr_list)==1) echo ' disabled="disabled"' +?>><?php + foreach( $$attr_list as $box_key=>$box_value ) + { + echo '<option value="'.$box_key.'"'; + if ($box_key == $$attr_default) + echo ' selected="selected"'; + echo '>'.$box_value.'</option>'; + } +?></select><?php +if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" value="'.$box_key.'" />' +?>+ \ No newline at end of file diff --git a/themes/default/include/html/set.inc.php b/themes/default/include/html/set.inc.php @@ -0,0 +1 @@ +<?php $$attr_var = $attr_value ?>+ \ No newline at end of file diff --git a/themes/default/include/html/table-end.inc.php b/themes/default/include/html/table-end.inc.php @@ -0,0 +1 @@ +</table>+ \ No newline at end of file diff --git a/themes/default/include/html/table.inc.php b/themes/default/include/html/table.inc.php @@ -0,0 +1,8 @@ +<?php + $coloumn_widths=array(); + if (!empty($attr_widths)) + { + $column_widths = explode(',',$attr_widths); + unset($attr['widths']); + } +?><table class="<?php echo $attr_class ?>" cellspacing="<?php echo $attr_space ?>" width="<?php echo $attr_width ?>" cellpadding="<?php echo $attr_padding ?>">+ \ No newline at end of file diff --git a/themes/default/include/html/text.inc.php b/themes/default/include/html/text.inc.php @@ -0,0 +1,26 @@ +<?php + if(empty($attr_title)) $attr_title = $attr_text; +?><span class="<?php echo $attr_class ?>"><?php + if (!empty($attr_url)) + echo "<a href=\"".$$attr_url."\" title=\"$attr_title\">"; + if (!empty($attr_array)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + echo $tmpArray[$attr_var]; + else + echo lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + echo lang($attr_text); + elseif (!empty($attr_var)) + echo $$attr_var; + elseif (!empty($attr_raw)) + echo str_replace('_',' ',$attr_raw); + else echo 'text error'; + + if (!empty($attr_url)) + echo '</a'; +?></span>+ \ No newline at end of file diff --git a/themes/default/include/html/user.inc.php b/themes/default/include/html/user.inc.php @@ -0,0 +1,12 @@ +<?php + $user = $$attr_user; + if ( empty($user->name) ) + $user->name = lang('GLOBAL_UNKNOWN'); + if ( empty($user->fullname) ) + $user->fullname = lang('GLOBAL_NO_DESCRIPTION_AVAILABLE'); + + if ( !empty($user->mail) ) + echo '<a href="mailto:'.$user->mail.'" title="'.$user->fullname.'">'.$user->name.'</a>'; + else + echo '<span title="'.$user->fullname.'">'.$user->name.'</span>'; +?>+ \ No newline at end of file diff --git a/themes/default/include/html/window-end.inc.php b/themes/default/include/html/window-end.inc.php @@ -0,0 +1,6 @@ + </table> + </td> + </tr> +</table> + +</center>+ \ No newline at end of file diff --git a/themes/default/include/html/window.inc.php b/themes/default/include/html/window.inc.php @@ -0,0 +1,54 @@ +<?php + $coloumn_widths=array(); + if (!empty($attr_widths)) + { + $column_widths = explode(',',$attr_widths); + unset($attr['widths']); + } + global $image_dir; + if ( !isset($attr_width)) $attr['width']='90%'; + echo '<br/><br/><br/><center>'; + echo '<table class="main" cellspacing="0" cellpadding="4" '; + foreach( $attr as $aName=>$aValue ) + echo " $aName=\"$aValue\""; + echo '>'; + echo '<tr><th>'; + if ( !empty($attr_icon) ) + echo '<img src="'.$image_dir.'icon_'.$attr_icon.IMG_EXT.'" align="left" border="0">'; + if ( !isset($$attr_name)) $$attr_name=''; + echo $$attr_name.': '; + echo lang( $attr_title ); + ?> + </th> + </tr> + <tr><td class="subaction"> + <?php foreach( $windowMenu as $menu ) + { + ?><a href="<?php echo Html::url($actionName,$menu['subaction']) ?>"><?php echo lang($menu['text']) ?></a>&nbsp;&nbsp;&nbsp;<?php + } + ?></td> + </tr> + +<?php if (isset($notices) && count($notices)>0 ) + { ?> + + <tr> + <td><table> + + <?php foreach( $notices as $notice ) { ?> + + <td><img src="<?php echo $image_dir.'notice_'.$notice['status'].IMG_EXT ?>" style="padding:10px" /></td> + <td class="f1"><?php if ($notice['name']!='') { ?><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_EXT ?>" align="left" /><?php echo $notice['name'] ?>: <?php } ?><?php if ($notice['status']=='error') { ?><strong><?php } ?><?php echo $notice['text'] ?><?php if ($notice['status']=='error') { ?></strong><?php } ?></td> + </tr> + <?php } ?> + + </table></td> + </tr> + +<?php } ?> + + + + <tr> + <td> + <table class="n" cellspacing="0" width="100%" cellpadding="4">+ \ No newline at end of file