openrat-cms

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

commit da438881797321bc544c1a7e160920456f75bf0e
parent 2c724651c82390ff8970c8e821e1bcea43d92400
Author: dankert <devnull@localhost>
Date:   Sun,  2 May 2004 20:53:56 +0200

Initiale Version

Diffstat:
themes/default/pages/html/blank.tpl.php | 4++++
themes/default/pages/html/element.tpl.php | 331+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/file/prop.tpl.php | 213+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/file/rights.tpl.php | 189+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/file/src.tpl.php | 32++++++++++++++++++++++++++++++++
themes/default/pages/html/folder/new.tpl.php | 69+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/folder/prop.tpl.php | 83+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/folder/pub.tpl.php | 39+++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/folder/rights.tpl.php | 202+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/folder/show.tpl.php | 56++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/footer.tpl.php | 5+++++
themes/default/pages/html/group/edit.tpl.php | 44++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/group/list.tpl.php | 42++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/group/users.tpl.php | 11++++++-----
themes/default/pages/html/language/edit.tpl.php | 47+++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/language/list.tpl.php | 48++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/link/prop.tpl.php | 98+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/link/rights.tpl.php | 87+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/login.tpl.php | 70++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/main/menu.tpl.php | 75+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/message.tpl.php | 25+++++++++++++++++++++++++
themes/default/pages/html/model/edit.tpl.php | 45+++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/model/list.tpl.php | 56++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/page/element.tpl.php | 48++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/page/prop.tpl.php | 101+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/page/rights.tpl.php | 93+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/page/src.tpl.php | 20++++++++++++++++++++
themes/default/pages/html/pageelement/archive.tpl.php | 49+++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/pageelement/edit/date.tpl.php | 155+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/pageelement/edit/file.tpl.php | 36++++++++++++++++++++++++++++++++++++
themes/default/pages/html/pageelement/edit/link.tpl.php | 42++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/pageelement/edit/list.tpl.php | 42++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/pageelement/edit/number.tpl.php | 46++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/pageelement/edit/text.tpl.php | 46++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/pageelement_edit_resize.tpl.php | 36++++++++++++++++++++++++++++++++++++
themes/default/pages/html/project/edit.tpl.php | 87+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/project/list.tpl.php | 34++++++++++++++++++++++++++++++++++
themes/default/pages/html/publish.tpl.php | 31+++++++++++++++++++++++++++++++
themes/default/pages/html/search/content.tpl.php | 41+++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/search/prop.tpl.php | 61+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/table_close.tpl.php | 3+++
themes/default/pages/html/table_open.tpl.php | 7+++++++
themes/default/pages/html/template/el.tpl.php | 47+++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/template/list.tpl.php | 38++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/template/prop.tpl.php | 98+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/template/show.tpl.php | 21+++++++++++++++++++++
themes/default/pages/html/template/src.tpl.php | 52++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/title.tpl.php | 17+++++++++++++++++
themes/default/pages/html/transfer/import.tpl.php | 55+++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/tree.tpl.php | 33+++++++++++++++++++++++++++++++++
themes/default/pages/html/tree/menu.tpl.php | 29+++++++++++++++++++++++++++++
51 files changed, 3234 insertions(+), 5 deletions(-)

diff --git a/themes/default/pages/html/blank.tpl.php b/themes/default/pages/html/blank.tpl.php @@ -0,0 +1,3 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/element.tpl.php b/themes/default/pages/html/element.tpl.php @@ -0,0 +1,330 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> + +<span style="text-align:center; "> + +<center> +<form action="<?php echo $self ?>" method="post" target="_self"> + +<input type="hidden" name="action" value="template"> +<input type="hidden" name="subaction" value="elementrename"> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + + <tr> + <th colspan="2"><?php echo lang('NAME') ?></th> + </tr> + <tr> + <td class="f1" rowspan="2"><?php echo lang('NAME') ?></td> + <td class="f1"><input type="text" name="name" class="name" value="<?php echo $name ?>"></td> + </tr> + <tr> + <td class="help"><?php echo lang('ELEMENT_NAME_DESC') ?></td> + </tr> + + <tr> + <td class="f2" rowspan="2"><?php echo lang('DESCRIPTION') ?></td> + <td class="f2"><textarea name="desc" rows="5" cols="50"><?php echo $desc ?></textarea></td> + </tr> + <tr> + <td class="help"><?php echo lang('ELEMENT_DESC_DESC') ?></td> + </tr> + + <tr> + <td class="f1" rowspan="2"><?php echo lang('ELEMENT_DELETE_VALUES') ?></a></td> + <td class="f1"><input type="checkbox" name="deletevalues" value="1"></td> + </tr> + <tr> + <td class="help"><?php echo lang('ELEMENT_DELETE_VALUES_DESC') ?></td> + </tr> + <tr> + <td class="f1" rowspan="2"><?php echo lang('DELETE') ?></a></td> + <td class="f1"><input type="checkbox" name="delete" value="1"></td> + </tr> + <tr> + <td class="help"><?php echo lang('ELEMENT_DELETE_DESC') ?></td> + </tr> + + <tr> + <td colspan="2" class="act"><input type="submit" class="submit" value="<?php echo lang('SAVE') ?>"></td> + </tr> + +</table> + +</form> + + +<form action="<?php echo $self ?>" method="post" target="_self"> + +<input type="hidden" name="action" value="element"> +<input type="hidden" name="subaction" value="changetype"> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + + <tr> + <th colspan="2"><?php echo lang('TYPE') ?></th> + </tr> + <tr> + <td class="f1" width="30%"><?php echo lang('TYPE') ?></td> + <td class="f1" width="70%"><?php echo Html::selectBox('type',$type,$default_type,Array('onChange'=>'submit();')) ?> <noscript><input type="submit" class="submit" value="<?php echo lang('CHANGE') ?>"></noscript></td> + </tr> + <tr> + <td></td> + <td class="help" width="70%"><?php echo lang('EL_'.$default_type.'_DESC') ?></td> + </tr> + +</table> + +</form> + + +<form action="<?php echo $self ?>" method="post" target="_self"> + +<input type="hidden" name="action" value="template"> +<input type="hidden" name="subaction" value="elementsave"> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + + <tr> + <th colspan="2"><?php echo lang('PREFS') ?></th> + </tr> + + + <?php $fx = ''; + if (isset($subtype)) + { $fx = fx($fx); ?> + <tr> + <td class="<?php echo $fx ?>"><?php echo lang('SUBTYPE') ?></td> + <td class="<?php echo $fx ?>"><?php echo Html::selectBox('subtype',$subtype,$act_subtype) ?></td> + </tr> + <?php } ?> + + + <?php + if ( isset($with_icon) ) + { + $fx = fx($fx); ?> + <tr> + <td class="<?php echo $fx ?>"><?php echo lang('EL_PROP_WITH_ICON') ?></td> + <td class="<?php echo $fx ?>"><?php echo Html::checkBox('with_icon',$with_icon) ?></td> + </tr> + <tr> + <td></td> + <td class="help"><?php echo lang('EL_PROP_WITH_ICON_DESC') ?></td> + </tr> + <?php } ?> + + + <?php + if ( isset($all_languages) ) + { + $fx = fx($fx); ?> + <tr> + <td class="<?php echo $fx ?>"><?php echo lang('EL_PROP_ALL_LANGUAGES') ?></td> + <td class="<?php echo $fx ?>"><?php echo Html::checkBox('all_languages',$all_languages) ?></td> + </tr> + <tr> + <td></td> + <td class="help"><?php echo lang('EL_PROP_ALL_LANGUAGES_DESC') ?></td> + </tr> + <?php } ?> + + + <?php + if ( isset($writable) ) + { + $fx = fx($fx); ?> + <tr> + <td class="<?php echo $fx ?>"><?php echo lang('EL_PROP_WRITABLE') ?></td> + <td class="<?php echo $fx ?>"><?php echo Html::checkBox('writable',$writable) ?></td> + </tr> + <tr> + <td></td> + <td class="help"><?php echo lang('EL_PROP_WRITABLE_DESC') ?></td> + </tr> + <?php } ?> + + + <?php + if ( isset($width) && isset($height) ) + { + $fx = fx($fx); ?> + <tr> + <td class="<?php echo $fx ?>"><?php echo lang('WIDTH') ?></td> + <td class="<?php echo $fx ?>"><input type="text" size="10" name="width" value="<?php echo $width ?>"></td> + </tr> + <?php $fx = fx($fx); ?> + <tr> + <td class="<?php echo $fx ?>"><?php echo lang('HEIGHT') ?></td> + <td class="<?php echo $fx ?>"><input type="text" size="10" name="height" value="<?php echo $height ?>"></td> + </tr> + <?php } ?> + + + <?php if (isset($dateformat)) + { $fx = fx($fx); ?> + <tr> + <td class="<?php echo $fx ?>"><?php echo lang('EL_PROP_DATEFORMAT') ?></td> + <td class="<?php echo $fx ?>"><?php echo Html::selectBox('dateformat',$dateformat,$act_dateformat) ?></td> + </tr> + <tr> + <td></td> + <td class="help"><?php echo lang('EL_PROP_DATEFORMAT_DESC') ?></td> + </tr> + <?php } ?> + + + <?php + if ( isset($wiki) ) + { + $fx = fx($fx); ?> + <tr> + <td class="<?php echo $fx ?>"><?php echo lang('EL_PROP_WIKI') ?></td> + <td class="<?php echo $fx ?>"><input type="checkbox" name="wiki" <?php if ($wiki) echo ' checked' ?>></td> + </tr> + <tr> + <td></td> + <td class="help"><?php echo lang('EL_PROP_WIKI_DESC') ?></td> + </tr> + <?php } ?> + + + <?php + if ( isset($html) ) + { + $fx = fx($fx); ?> + <tr> + <td class="<?php echo $fx ?>"><?php echo lang('EL_PROP_HTML') ?></td> + <td class="<?php echo $fx ?>"><input type="checkbox" name="html" <?php if ($html) echo ' checked' ?>></td> + </tr> + <tr> + <td></td> + <td class="help"><?php echo lang('EL_PROP_HTML_DESC') ?></td> + </tr> + <?php } ?> + + + <?php if ( isset($decimals) ) + { + $fx = fx($fx); ?> + <tr> + <td class="<?php echo $fx ?>"><?php echo lang('EL_PROP_DECIMALS') ?></td> + <td class="<?php echo $fx ?>"><input type="text" size="10" maxlength="2" name="decimals" value="<?php echo $decimals ?>"></td> + </tr> + <tr> + <td></td> + <td class="help"><?php echo lang('EL_PROP_DECIMALS_DESC') ?></td> + </tr> + <?php } ?> + + + <?php if ( isset($dec_point) ) + { + $fx = fx($fx); ?> + <tr> + <td class="<?php echo $fx ?>"><?php echo lang('EL_PROP_DEC_POINT') ?></td> + <td class="<?php echo $fx ?>"><input type="text" size="10" maxlength="5" name="dec_point" value="<?php echo $dec_point ?>"></td> + </tr> + <tr> + <td></td> + <td class="help"><?php echo lang('EL_PROP_DEC_POINT_DESC') ?></td> + </tr> + <?php } ?> + + + <?php if ( isset($thousand_sep) ) + { + $fx = fx($fx); ?> + <tr> + <td class="<?php echo $fx ?>"><?php echo lang('EL_PROP_THOUSAND_SEP') ?></td> + <td class="<?php echo $fx ?>"><input type="text" size="10" maxlength="1" name="thousand_sep" value="<?php echo $thousand_sep ?>"></td> + </tr> + <tr> + <td></td> + <td class="help"><?php echo lang('EL_PROP_THOUSAND_SEP_DESC') ?></td> + </tr> + <?php } ?> + + + <?php if ( isset($default_text) ) + { + $fx = fx($fx); ?> + <tr> + <td class="<?php echo $fx ?>"><?php echo lang('EL_PROP_DEFAULT_TEXT') ?></td> + <td class="<?php echo $fx ?>"><input type="text" size="40" maxlength="255" name="default_text" value="<?php echo $default_text ?>"></td> + </tr> + <tr> + <td></td> + <td class="help"><?php echo lang('EL_PROP_DEFAULT_TEXT_DESC') ?></td> + </tr> + <?php } ?> + + + <?php if ( isset($default_longtext) ) + { + $fx = fx($fx); ?> + <tr> + <td class="<?php echo $fx ?>"><?php echo lang('EL_PROP_DEFAULT_LONGTEXT') ?></td> + <td class="<?php echo $fx ?>"><textarea name="default_text" rows="10" cols="40"><?php echo $default_longtext ?></textarea></td> + </tr> + <tr> + <td></td> + <td class="help"><?php echo lang('EL_PROP_DEFAULT_LONGTEXT_DESC') ?></td> + </tr> + <?php } ?> + + + <?php if (isset($act_folderobjectid)) + { $fx = fx($fx); ?> + <tr> + <td class="<?php echo $fx ?>"><?php echo lang('EL_PROP_DEFAULT_FOLDEROBJECT') ?></td> + <td class="<?php echo $fx ?>"><?php echo Html::selectBox('folderobjectid',$folders,$act_folderobjectid) ?></td> + </tr> + <tr> + <td></td> + <td class="help"><?php echo lang('EL_PROP_DEFAULT_FOLDEROBJECT_DESC') ?></td> + </tr> + <?php } ?> + + + <?php if (isset($act_default_objectid)) + { $fx = fx($fx); ?> + <tr> + <td class="<?php echo $fx ?>"><?php echo lang('EL_PROP_DEFAULT_OBJECT') ?></td> + <td class="<?php echo $fx ?>"><?php echo Html::selectBox('default_objectid',$objects,$act_default_objectid) ?></td> + </tr> + <tr> + <td></td> + <td class="help"><?php echo lang('EL_PROP_DEFAULT_OBJECT_DESC') ?></td> + </tr> + <?php } ?> + + + + <?php if ( isset($code) ) + { + $fx = fx($fx); ?> + <tr> + <td class="<?php echo $fx ?>"><?php echo lang('CODE') ?></td> + <td class="<?php echo $fx ?>"><textarea name="code" rows="35" cols="60"><?php echo $code ?></textarea></td> + </tr> + <?php } ?> + + + <tr> + <td colspan="2" class="act"><input type="submit" class="submit" value="<?php echo lang('SAVE') ?>"></td> + </tr> + +</table> + +</form> + +</center> +</span> + +<script name="JavaScript"><!-- +document.forms[0].name.focus(); +//--></script> + +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/file/prop.tpl.php b/themes/default/pages/html/file/prop.tpl.php @@ -0,0 +1,212 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> +<center> + +<form action="<?php echo $self ?>" method="post" target="_self"> + +<input type="hidden" name="action" value="file"> +<input type="hidden" name="subaction" value="save"> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th colspan="2"><?php echo lang('PROP') ?></th> +</tr> + +<?php if (isset($message)) + { ?> +<tr> +<td colspan="2" class="message"><?php echo $message ?></td> +</tr> +<?php } ?> + +<tr> +<td width="50%" class="f1" rowspan="2"><?php echo lang('name') ?></a></td> +<td width="50%" class="f1"><input type="text" class="name" name="name" size="50" value="<?php echo $name ?>"></td> +</tr> +<tr> +<td width="50%" class="help"><?php echo lang('HELP_NAME') ?></td> +</tr> +<tr> +<td width="50%" class="f1" rowspan="2"><?php echo lang('filename') ?></a></td> +<td width="50%" class="f1"><input class="filename" type="text" name="filename" size="40" value="<?php echo $filename ?>"></td> +</tr> +<tr> +<td width="50%" class="help"><?php echo lang('HELP_FILENAME') ?></td> +</tr> +<tr> +<td width="50%" class="f2"><?php echo lang('extension') ?></a></td> +<td width="50%" class="f2"><input class="filename" type="text" name="extension" size="10" value="<?php echo $extension ?>"></td> +</tr> +<tr> +<td width="50%" class="f2"><?php echo lang('description') ?></a></td> +<td width="50%" class="f2"><textarea class="desc" cols="40" rows="10" name="desc"><?php echo $desc ?></textarea></td> +</tr> +<?php if ( isset($src_url)) + { ?> +<tr> +<td width="50%" class="f2"><?php echo lang('value') ?></a></td> +<td width="50%" class="f2"><a href="<?php echo $src_url ?>"><?php echo lang('EDIT') ?></a></td> +</tr> +<?php } ?> +<tr> +<td width="50%" class="f2"><?php echo lang('size') ?></a></td> +<td width="50%" class="f2"><?php echo number_format($size,0,',','.') ?> bytes</td> +</tr> +<tr> +<td width="50%" class="f2"><?php echo lang('mime_type') ?></a></td> +<td width="50%" class="f2"><tt><?php echo $mimetype; ?></tt></td> +</tr> +<tr> +<td width="50%" class="f2"><?php echo lang('FULL_FILENAME') ?></a></td> +<td width="50%" class="f2"><tt><?php echo $full_filename ?></tt></td> +</tr> +<tr> +<td width="50%" class="f2"><?php echo lang('created') ?></a></td> +<td width="50%" class="f2"><?php echo date(lang('DATE_FORMAT'),$create_date) ?>, <?php if (isset($create_user['url'])) echo'<a href="'.$create_user['url'].'" target="cms_main">' ?><?php echo $create_user['name'] ?><?php if (isset($create__user['url'])) echo'</a>' ?></td> +</tr> +<tr> +<td width="50%" class="f2"><?php echo lang('lastchange') ?></a></td> +<td width="50%" class="f2"><?php echo date(lang('DATE_FORMAT'),$lastchange_date) ?>, <?php if (isset($lastchange_user['url'])) echo'<a href="'.$lastchange_user['url'].'" target="cms_main">' ?><?php echo $lastchange_user['name'] ?><?php if (isset($lastchange_user['url'])) echo'</a>' ?></td> +</tr> + <?php if ( count($pages)==0) + { ?> + <tr> + <td class="f1" rowspan="2"><?php echo lang('DELETE') ?></a></td> + <td class="f1"><input type="checkbox" name="delete" value="1"></td> + </tr> + <tr> + <td class="help"><?php echo lang('HELP_FILE_DELETE') ?></td> + </tr> +<?php } ?> +<tr> +<td class="act" colspan="2"><input type="submit" class="submit" value="<?php echo lang('SAVE') ?>"></td> +</tr> + +</table> + +</form> + + +<?php if ( substr($mimetype,0,6) == 'image/' ) + { ?> +<form action="<?php echo $self ?>" method="post" target="_self"> + +<input type="hidden" name="action" value="file"> +<input type="hidden" name="subaction" value="resize"> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th colspan="2"><?php echo lang('RESIZE') ?></th> +</tr> + +<tr> +<td width="50%" class="f2"><?php echo lang('WIDTH') ?></td> +<td width="50%" class="f2"><input type="text" name="width" value=""></td> +</tr> +<tr> +<td width="50%" class="f2"><?php echo lang('HEIGHT') ?></td> +<td width="50%" class="f2"><input type="text" name="height" value=""></td> +</tr> + +<tr> +<td class="act" colspan="2"><input type="submit" class="submit" value="<?php echo lang('RESIZE') ?>"></td> +</tr> + +</table> + +</form> +<?php } ?> + + + + + +<form action="<?php echo $self ?>" method="post" target="_self"> + +<input type="hidden" name="action" value="file"> +<input type="hidden" name="subaction" value="move"> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th colspan="2"><?php echo lang('MOVE') ?></th> +</tr> + +<tr> +<td width="50%" class="f1"><?php echo lang('FOLDER') ?></a></td> +<td width="50%" class="f1"><?php echo Html::selectBox('movetoobjectid',$folderobject,$act_folderobjectid) ?></td> +</tr> + +<!-- +<tr> +<td width="50%" class="f2">&nbsp;</td> +<td width="50%" class="f2"><input type="checkbox" name="copy" value="1"> <?php echo lang('COPY_INSTEAD_OF_MOVE') ?></td> +</tr> +--> + +<tr> +<td class="act" colspan="2"><input type="submit" class="submit" value="<?php echo lang('MOVE') ?>"></td> +</tr> + +</table> + +</form> + + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th colspan="2"><?php echo lang('REPLACE') ?></th> +</tr> + +<tr> +<td colspan="2" class="act"> + <form action="<?php echo $self ?>" method="post" enctype="multipart/form-data"> + <input type="hidden" name="action" value="file"> + <input type="hidden" name="subaction" value="replace"> + <input type="file" name="file"> <input type="submit" class="submit" value="<?php echo lang('UPLOAD') ?>"> + </form> + +</td> +</tr> + +</table> + + + + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th colspan="2"><?php echo lang('PAGES') ?></th> +</tr> + +<?php $f1=true; + foreach( $pages as $id=>$p ) + { ?> +<tr> +<td class="f1"><a href="<?php echo $p['url'] ?>" target="cms_main"><img src="<?php echo $image_dir.'icon_page.png' ?>" align="left" border="0"><?php echo $p['name'] ?></a></td> +</tr> +<?php } + if ( count($pages)==0) + { ?> +<tr> +<td class="f1"><?php echo lang('NOT_FOUND') ?></td> +</tr> +<?php } ?> + + +</table> + + + +</center> + +<script name="JavaScript"><!-- +document.forms[0].name.focus(); +//--></script> + +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/file/rights.tpl.php b/themes/default/pages/html/file/rights.tpl.php @@ -0,0 +1,188 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + + +<center> + +<form action="<?php echo $self ?>" method="post" target="_self"> +<input type="hidden" name="action" value="file"> +<input type="hidden" name="subaction" value="addACL"> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th colspan="14"><?php echo lang('ACL') ?></th> +</tr> + + +<!-- + <tr> + <td></td> + <td></td> + <td class="help" colspan="4"><?php echo lang('ACL_READ') ?></td> + </tr> + <tr> + <td></td> + <td></td> + <td class="line">&nbsp;</td> + <td class="help" colspan="4"><?php echo lang('ACL_WRITE') ?></td> + </tr> + <tr> + <td></td> + <td></td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="help" colspan="4"><?php echo lang('ACL_PROP') ?></th> + </tr> + <tr> + <td></td> + <td></td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="help" colspan="4"><?php echo lang('ACL_DELETE') ?></th> + </tr> + <tr> + <td></td> + <td></td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="help" colspan="4"><?php echo lang('ACL_PUBLISH') ?></th> + </tr> + <tr> + <td></td> + <td></td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="help" colspan="4"><?php echo lang('ACL_CREATE_FOLDER') ?></th> + </tr> + <tr> + <td></td> + <td></td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="help" colspan="4"><?php echo lang('ACL_CREATE_FILE') ?></th> + </tr> + <tr> + <td></td> + <td></td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="help" colspan="4"><?php echo lang('ACL_CREATE_LINK') ?></th> + </tr> + <tr> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="help" colspan="4"><?php echo lang('ACL_CREATE_PAGE') ?></th> + </tr> + <tr> + <td class="help"><?php echo lang('NAME') ?></td> + <td class="help"><?php echo lang('LANGUAGE') ?></td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="help" colspan="4"><?php echo lang('ACL_GRANT') ?></th> + </tr> +--> + + <tr> + <td class="help"><?php echo lang('NAME') ?></td> + <td class="help"><?php echo lang('LANGUAGE') ?></td> + <td class="help"><span title="<?php echo lang('ACL_READ' ) ?>"><strong>R</strong></span></td> + <td class="help"><span title="<?php echo lang('ACL_WRITE' ) ?>"><strong>W</strong></span></td> + <td class="help"><span title="<?php echo lang('ACL_PROP' ) ?>"><strong>P</strong></span></td> + <td class="help"><span title="<?php echo lang('ACL_DELETE' ) ?>"><strong>E</strong></span></td> + <td class="help"><span title="<?php echo lang('ACL_PUBLISH' ) ?>"><strong>W</strong></span></td> + <td class="help"><span title="<?php echo lang('ACL_GRANT' ) ?>"><strong>G</strong></span></td> + </tr> + + + + + +<?php $fx = ''; + foreach( $acls as $aclid=>$z ) + { $fx = fx($fx); ?> +<tr> +<?php if ( $z['username'] != '' ) + { ?> +<td width="50%" class="<?php echo $fx ?>"><img src="<?php echo $image_dir.'icon_user.png' ?>" align="left"><?php echo $z['username'] ?></a></td> +<?php } + else + { ?> +<td width="50%" class="<?php echo $fx ?>"><img src="<?php echo $image_dir.'icon_group.png' ?>" align="left"><?php echo $z['groupname'] ?></a></td> +<?php } ?> +<td class="<?php echo $fx ?>"><?php echo $z['languagename'] ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('',true ,false,array('title'=>lang('read')) ) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('',$z['write' ],false) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('',$z['prop' ],false) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('',$z['delete' ],false) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('',$z['publish' ],false) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('',$z['grant' ],false) ?></td> +<?php if (isset($z['delete_url'])) + { ?> +<td class="<?php echo $fx ?>"><a href="<?php echo $z['delete_url'] ?>"><?php echo lang('DELETE') ?></a></td> +<?php } + else + { ?> +<td class="<?php echo $fx ?>"><?php echo lang('inherited') ?></td> +<?php } ?> +</tr> +<?php } + $fx = fx($fx); ?> + + +<tr> +<td class="act" style="white-space:nowrap;"> + <input type="radio" name="type" value="user" checked>&nbsp;<?php echo Html::selectBox( 'userid',$users); ?><br><br> + <?php if (count($groups)>0) + { ?> + <input type="radio" name="type" value="group">&nbsp;<?php echo Html::selectBox( 'groupid',$groups); ?></td> + <?php } ?> +<td class="act" style="white-space:nowrap;"><?php echo Html::selectBox( 'languageid',$languages); ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('' ,true ,false) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('write' ,false,true,array('title'=>lang('ACL_WRITE' )) ) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('prop' ,false,true,array('title'=>lang('ACL_PROP' )) ) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('delete' ,false,true,array('title'=>lang('ACL_DELETE' )) ) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('publish' ,false,true,array('title'=>lang('ACL_PUBLISH' )) ) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('grant' ,false,true,array('title'=>lang('ACL_GRANT' )) ) ?></td> +<td class="act"><input type="submit" class="submit" value="<?php echo lang('ADD') ?>"></td> +</tr> + +</table> + +</form> + + + + + +</center> +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/file/src.tpl.php b/themes/default/pages/html/file/src.tpl.php @@ -0,0 +1,31 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> +<center> + +<form action="<?php echo $action ?>" method="post" target="_self"> + +<input type="hidden" name="<?php echo session_name() ?>" value="<?php echo session_id() ?>"> +<input type="hidden" name="fileaction" value="savevalue"> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th colspan="2"><?php echo lang('SRC') ?></th> +</tr> + +<tr> +<td class="f2"><?php echo lang('value') ?></a></td> +<td class="f2"><textarea cols="60" rows="35" name="value"><?php echo htmlentities($value) ?></textarea></td> +</tr> +<tr> +<td class="act" colspan="2"><input type="submit" class="submit" value="<?php echo lang('SAVE') ?>"></td> +</tr> + +</table> + +</form> + +</center> + +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/folder/new.tpl.php b/themes/default/pages/html/folder/new.tpl.php @@ -0,0 +1,68 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> +<center> + +<form enctype="multipart/form-data" action="<?php echo $self ?>" method="post" target="_self"> +<input type="hidden" name="subaction" value="createnew"> +<input type="hidden" name="<?php echo session_name() ?>" value="<?php echo session_id() ?>"> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + + <tr> + <th colspan="4"><?php echo lang('NEW') ?></th> + </tr> + + <tr> + <td class="f1"> + <input type="radio" name="type" value="page" onClick="document.forms[0].pagename.focus();"><?php echo lang('PAGE') ?> + </td> + <td class="f1"> + <?php echo Html::selectBox('templateid',$templates) ?> + <input type="text" name="pagename" size="20" value="" onFocus="document.forms[0].type[0].checked=true;" tabindex="1"> + </td> + </tr> + + <tr> + <td class="f1"> + <input type="radio" name="type" value="file" onClick="document.forms[0].file.focus();"><?php echo lang('FILE') ?> + </td> + <td class="f1"> + <input type="file" name="file" onFocus="document.forms[0].type[1].checked=true;" tabindex="2"> + </td> + </tr> + + <tr> + <td class="f1"> + <input type="radio" name="type" value="folder" onClick="document.forms[0].foldername.focus();"><?php echo lang('FOLDER') ?> + </td> + <td class="f1"> + <input type="text" name="foldername" size="20" value="" onFocus="document.forms[0].type[2].checked=true;" tabindex="3"> + </td> + </tr> + + <tr> + <td class="f1"> + <input type="radio" name="type" value="link" onClick="document.forms[0].linkname.focus();"><?php echo lang('link') ?> + </td> + <td class="f1"> + <input type="text" name="linkname" size="20" value="" onFocus="document.forms[0].type[3].checked=true;" tabindex="4"> + </td> + </tr> + + <tr> + <td colspan="5" class="act"> + <input type="submit" class="submit" value="<?php echo lang('NEW') ?>"> + + </td> + </tr> + +</table> + +</form> +</center> + +<script name="JavaScript"><!-- +document.forms[0].pagename.focus(); +//--></script> +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/folder/prop.tpl.php b/themes/default/pages/html/folder/prop.tpl.php @@ -0,0 +1,82 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<center> + +<form action="<?php echo $self ?>" method="post" target="_self"> + +<input type="hidden" name="<?php echo session_name() ?>" value="<?php echo session_id() ?>"> +<input type="hidden" name="subaction" value="save"> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th colspan="2"><?php echo lang('PROP') ?></th> +</tr> + +<tr> +<td width="50%" rowspan="2" class="f1"><?php echo lang('name') ?></a></td> +<td width="50%" class="f1"><input class="name" type="text" name="name" size="50" value="<?php echo $name ?>"></td> +</tr> +<tr> +<td width="50%" class="help"><?php echo lang('HELP_NAME') ?></td> +</tr> +<tr> +<td width="50%" rowspan="2" class="f1"><?php echo lang('filename') ?></a></td> +<td width="50%" class="f1"><input class="filename" type="text" name="filename" size="50" value="<?php echo $filename ?>"></td> +</tr> +<tr> +<td width="50%" class="help"><?php echo lang('HELP_FILENAME') ?></td> +</tr> +<tr> +<td width="50%" class="f2"><?php echo lang('description') ?></a></td> +<td width="50%" class="f2"><textarea class="desc" cols="40" rows="10" name="desc"><?php echo $desc ?></textarea></td> +</tr> +<?php if($delete) + { ?> +<tr> +<td width="50%" class="f2"><?php echo lang('delete') ?></a></td> +<td width="50%" class="f2"><?php echo Html::checkBox('delete') ?></td> +</tr> +<?php } ?> +<tr> +<td class="act"><input type="submit" class="submit" value="<?php echo lang('SAVE') ?>"></td> +<td class="act"><input type="reset" class="reset" value="<?php echo lang('UNDO') ?>" onClick="document.forms[0].name.focus();"></td> +</tr> + +</table> + +</form> + + +<form action="<?php echo $self ?>" method="post" target="_self"> + +<input type="hidden" name="<?php echo session_name() ?>" value="<?php echo session_id() ?>"> +<input type="hidden" name="folderaction" value="move"> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th colspan="2"><?php echo lang('MOVE') ?></th> +</tr> + +<tr> +<td width="50%" class="f1"><?php echo lang('FOLDER') ?></a></td> +<td width="50%" class="f1"><?php echo Html::selectBox('movetoobjectid',$folder,$act_objectid) ?></td> +</tr> + +<tr> +<td class="act" colspan="2"><input type="submit" class="submit" value="<?php echo lang('MOVE') ?>"></td> +</tr> + +</table> + +</form> + + +</center> + +<script name="JavaScript"><!-- +document.forms[0].name.focus(); +//--></script> + +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/folder/pub.tpl.php b/themes/default/pages/html/folder/pub.tpl.php @@ -0,0 +1,38 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<center> + +<form action="<?php echo $self ?>" method="post" target="_self"> + +<input type="hidden" name="<?php echo session_name() ?>" value="<?php echo session_id() ?>"> +<input type="hidden" name="subaction" value="pub"> +<input type="hidden" name="go" value="1"> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th colspan="2"><?php echo lang('PUBLISH') ?></th> +</tr> + +<tr> +<td width="50%" class="f1"><input type="checkbox" name="pages" value="1" checked="checked"><?php echo lang('pages') ?><br> + <input type="checkbox" name="files" value="1" checked="checked"><?php echo lang('files') ?></td> +<td width="50%" class="f1"><input type="checkbox" name="subdirs" value="1"><?php echo lang('PUBLISH_WITH_SUBDIRS') ?></td> +</tr> + +<tr> +<td class="act" colspan="2"><input type="submit" class="submit" value="<?php echo lang('PUBLISH') ?>"></td> +</tr> + +</table> + +</form> + + +</center> + +<script name="JavaScript"><!-- +document.forms[0].subdirs.focus(); +//--></script> + +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/folder/rights.tpl.php b/themes/default/pages/html/folder/rights.tpl.php @@ -0,0 +1,201 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + + +<center> + +<form action="<?php echo $self ?>" method="post" target="_self"> +<input type="hidden" name="subaction" value="addACL"> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th colspan="14"><?php echo lang('ACL') ?></th> +</tr> + + +<!-- + <tr> + <td></td> + <td></td> + <td class="help" colspan="4"><?php echo lang('ACL_READ') ?></td> + </tr> + <tr> + <td></td> + <td></td> + <td class="line">&nbsp;</td> + <td class="help" colspan="4"><?php echo lang('ACL_WRITE') ?></td> + </tr> + <tr> + <td></td> + <td></td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="help" colspan="4"><?php echo lang('ACL_PROP') ?></th> + </tr> + <tr> + <td></td> + <td></td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="help" colspan="4"><?php echo lang('ACL_DELETE') ?></th> + </tr> + <tr> + <td></td> + <td></td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="help" colspan="4"><?php echo lang('ACL_PUBLISH') ?></th> + </tr> + <tr> + <td></td> + <td></td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="help" colspan="4"><?php echo lang('ACL_CREATE_FOLDER') ?></th> + </tr> + <tr> + <td></td> + <td></td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="help" colspan="4"><?php echo lang('ACL_CREATE_FILE') ?></th> + </tr> + <tr> + <td></td> + <td></td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="help" colspan="4"><?php echo lang('ACL_CREATE_LINK') ?></th> + </tr> + <tr> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="help" colspan="4"><?php echo lang('ACL_CREATE_PAGE') ?></th> + </tr> + <tr> + <td class="help"><?php echo lang('NAME') ?></td> + <td class="help"><?php echo lang('LANGUAGE') ?></td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="line">&nbsp;</td> + <td class="help" colspan="4"><?php echo lang('ACL_GRANT') ?></th> + </tr> +--> + + <tr> + <td class="help"><?php echo lang('NAME') ?></td> + <td class="help"><?php echo lang('LANGUAGE') ?></td> + <td class="help"><span title="<?php echo lang('ACL_READ' ) ?>"><strong>R</strong></span></td> + <td class="help"><span title="<?php echo lang('ACL_WRITE' ) ?>"><strong>W</strong></span></td> + <td class="help"><span title="<?php echo lang('ACL_PROP' ) ?>"><strong>P</strong></span></td> + <td class="help"><span title="<?php echo lang('ACL_DELETE' ) ?>"><strong>E</strong></span></td> + <td class="help"><span title="<?php echo lang('ACL_PUBLISH' ) ?>"><strong>W</strong></span></td> + <td class="help"><span title="<?php echo lang('ACL_CREATE_FOLDER') ?>"><strong>CD</strong></span></td> + <td class="help"><span title="<?php echo lang('ACL_CREATE_FILE' ) ?>"><strong>CF</strong></span></td> + <td class="help"><span title="<?php echo lang('ACL_CREATE_LINK' ) ?>"><strong>CL</strong></span></td> + <td class="help"><span title="<?php echo lang('ACL_CREATE_PAGE' ) ?>"><strong>CP</strong></span></td> + <td class="help"><span title="<?php echo lang('ACL_GRANT' ) ?>"><strong>G</strong></span></td> + <td class="help"><span title="<?php echo lang('ACL_TRANSMIT' ) ?>"><strong>T</strong></span></td> + </tr> + + + + + +<?php $fx = ''; + foreach( $acls as $aclid=>$z ) + { $fx = fx($fx); ?> +<tr> +<?php if ( $z['username'] != '' ) + { ?> +<td width="50%" class="<?php echo $fx ?>"><img src="<?php echo $image_dir.'icon_user.png' ?>" align="left"><?php echo $z['username'] ?></a></td> +<?php } + else + { ?> +<td width="50%" class="<?php echo $fx ?>"><img src="<?php echo $image_dir.'icon_group.png' ?>" align="left"><?php echo $z['groupname'] ?></a></td> +<?php } ?> +<td class="<?php echo $fx ?>"><?php echo $z['languagename'] ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('',true ,false,array('title'=>lang('read')) ) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('',$z['write' ],false) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('',$z['prop' ],false) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('',$z['delete' ],false) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('',$z['publish' ],false) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('',$z['create_folder'],false) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('',$z['create_file' ],false) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('',$z['create_link' ],false) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('',$z['create_page' ],false) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('',$z['grant' ],false) ?></td> +<?php if (isset($z['delete_url'])) + { ?> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('',$z['transmit'],false) ?></td> +<td class="<?php echo $fx ?>"><a href="<?php echo $z['delete_url'] ?>"><?php echo lang('DELETE') ?></a></td> +<?php } + else + { ?> +<td class="<?php echo $fx ?>">&nbsp;</td> +<td class="<?php echo $fx ?>"><?php echo lang('inherited') ?></td> +<?php } ?> +</tr> +<?php } + $fx = fx($fx); ?> + + +<tr> +<td class="act" style="white-space:nowrap;"> + <input type="radio" name="type" value="user" checked>&nbsp;<?php echo Html::selectBox( 'userid',$users); ?><br><br> + <?php if (count($groups)>0) + { ?> + <input type="radio" name="type" value="group">&nbsp;<?php echo Html::selectBox( 'groupid',$groups); ?></td> + <?php } ?> +<td class="act" style="white-space:nowrap;"><?php echo Html::selectBox( 'languageid',$languages); ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('' ,true ,false) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('write' ,false,true,array('title'=>lang('ACL_WRITE' )) ) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('prop' ,false,true,array('title'=>lang('ACL_PROP' )) ) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('delete' ,false,true,array('title'=>lang('ACL_DELETE' )) ) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('publish' ,false,true,array('title'=>lang('ACL_PUBLISH' )) ) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('create_folder',false,true,array('title'=>lang('ACL_CREATE_FOLDER')) ) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('create_file' ,false,true,array('title'=>lang('ACL_CREATE_FILE' )) ) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('create_link' ,false,true,array('title'=>lang('ACL_CREATE_LINK' )) ) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('create_page' ,false,true,array('title'=>lang('ACL_CREATE_PAGE' )) ) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('grant' ,false,true,array('title'=>lang('ACL_GRANT' )) ) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('transmit' ,false,true,array('title'=>lang('ACL_TRANSMIT' )) ) ?></td> +<td class="act"><input type="submit" class="submit" value="<?php echo lang('ADD') ?>"></td> +</tr> + +</table> + +</form> + + + +</center> +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/folder/show.tpl.php b/themes/default/pages/html/folder/show.tpl.php @@ -0,0 +1,55 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> +<center> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th colspan="5"><?php echo lang('FOLDER') ?></th> +</tr> + +<?php if ( isset($up_url) ) + { ?> +<tr> +<td width="50%" colspan="5" class="<?php if($f1==true) {echo'f1'; } else{echo'f2'; }?>"><a href="<?php echo $up_url ?>" target="cms_main"><img src="<?php echo $image_dir.'icon_folder.png' ?>" align="left" border="0"><strong>..</strong></a></td> +<!--<td width="50%" colspan="3" class="<?php if($f1==true) {echo'f1';$f1=false;} else{echo'f2';$f1=true;}?>">&nbsp;</td>--> +</tr> +<?php } + + if ( count( $object) > 0 ) + { + ?> +<tr> +<td width="40%" class="help" ><?php echo lang('name' ) ?></a></td> +<td width="20%" class="help" ><?php echo lang('lastchange') ?></a></td> +<td width="10%" class="help" colspan="2"><?php if (count( $object)>1) echo lang('move') ?></a></td> +<td width="10%" class="help" >&nbsp;</a></td> +</tr> + +<?php $f1=true; + foreach( $object as $id=>$z ) + { + $fx = fx($f1); + ?> +<tr> +<td width="40%" class="<?php echo $fx; ?>"><a href="<?php echo $z['url'] ?>" target="cms_main" title="<?php echo $z['desc'] ?>"><img src="<?php echo $image_dir.'icon_'.$z['icon'].'.png' ?>" align="left" border="0"><?php echo $z['name'] ?></a>&nbsp;</td> +<td width="20%" class="<?php echo $fx; ?>"><span title="<?php echo lang('USER').': '.$z['user'] ?>"><?php echo $z['date'] ?></span></td> +<td width="5%" class="<?php echo $fx; ?>"><?php if (isset($z['upurl' ])) { ?><a href="<?php echo $z['upurl' ] ?>"><img src="<?php echo $image_dir ?>up.gif" title="<?php echo lang('UP' ) ?>" border="0"></a><?php } else echo '&nbsp;' ?></td> +<td width="5%" class="<?php echo $fx; ?>"><?php if (isset($z['downurl'])) { ?><a href="<?php echo $z['downurl'] ?>"><img src="<?php echo $image_dir ?>down.gif" title="<?php echo lang('DOWN') ?>" border="0"></a><?php } else echo '&nbsp;' ?></td> +<td width="10%" class="<?php echo $fx; ?>"><a target="cms_main" href="<?php echo $z['propurl'] ?>"><?php echo lang('PROP') ?></a></td> +</tr> +<?php } + } + else + { ?> +<tr> +<td colspan="2" class="<?php if($f1==true) {echo'f1'; } else{echo'f2'; }?>"><?php echo lang('NOT_FOUND') ?></td> +</tr> +<?php } ?> + +</table> + +</center> + +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/footer.tpl.php b/themes/default/pages/html/footer.tpl.php @@ -0,0 +1,4 @@ + +<!-- $Id$ --> +</body> +</html>+ \ No newline at end of file diff --git a/themes/default/pages/html/group/edit.tpl.php b/themes/default/pages/html/group/edit.tpl.php @@ -0,0 +1,43 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> + +<center> + +<form action="<?php echo $self ?>" method="post" target="_self"> +<input type="hidden" name="<?php echo session_name() ?>" value="<?php echo session_id() ?>"> +<input type="hidden" name="subaction" value="save"> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + + <tr> + <th colspan="2"><?php echo lang('GROUP') ?></th> + </tr> + + <tr> + <td width="50%" class="f1"><?php echo lang('NAME') ?></a></td> + <td width="50%" class="f1"><input type="text" name="name" value="<?php echo $name ?>"></td> + </tr> + + <tr> + <td class="f1" rowspan="2"><?php echo lang('DELETE') ?></a></td> + <td class="f1"><input type="checkbox" name="delete" value="1"></td> + </tr> + <tr> + <td class="help"><?php echo lang('GROUP_DELETE_DESC') ?></td> + </tr> + + <tr> + <td class="act" colspan="2"><input type="submit" class="submit" value="<?php echo lang('SAVE') ?>"></td> + </tr> + +</table> + +</form> + +<script name="JavaScript"><!-- +document.forms[0].name.focus(); +//--></script> + +</center> +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/group/list.tpl.php b/themes/default/pages/html/group/list.tpl.php @@ -0,0 +1,41 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> + +<center> + +<form action="<?php echo $self ?>" method="post" target="_self"> +<input type="hidden" name="action" value="group"> +<input type="hidden" name="groupaction" value="add"> + +<table class="main" width="50%" cellspacing="0" cellpadding="4"> + +<tr> + <th><?php echo lang('GROUPS') ?></th> +</tr> + +<?php $f1=true; + foreach( $el as $id=>$e ) + { ?> +<tr> +<td class="<?php if($f1==true) {echo'f1'; } else{echo'f2'; }?>"><a href="<?php echo $e['url'] ?>" target="cms_main"><img src="<?php echo $image_dir ?>icon_group.png" border="0" align="left"><?php echo $e['name'] ?></a></td> +</tr> +<?php } ?> + +<tr> +<td class="act"><input type="text" name="name" value="">&nbsp;<input type="submit" class="submit" value="<?php echo lang('ADD') ?>"></td> +</tr> + +</table> + +</form> + +</center> + +<script name="JavaScript"> +<!-- +window.document.forms[0].name.focus(); +//--> +</script> + +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/group/users.tpl.php b/themes/default/pages/html/group/users.tpl.php @@ -4,11 +4,12 @@ <center> -<form action="<?php echo $action ?>" method="post" target="_self"> +<form action="<?php echo $self ?>" method="post" target="_self"> <input type="hidden" name="<?php echo session_name() ?>" value="<?php echo session_id() ?>"> -<input type="hidden" name="groupaction" value="adduser"> +<input type="hidden" name="subaction" value="adduser"> +<input type="hidden" name="action" value="group"> -<table class="main" width="90%" cellspacing="0" cellpadding="4"> +<table class="main" width="60%" cellspacing="0" cellpadding="4"> <tr> <th colspan="2"><?php echo lang('MEMBERSHIPS') ?></th> </tr> @@ -17,7 +18,7 @@ { ?> <tr> <td width="50%" class="<?php if($f1==true) {echo'f1'; }else{echo'f2'; }?>"><?php echo $name ?></td> -<td width="50%" class="<?php if($f1==true) {echo'f1';$f1=false;}else{echo'f2';$f1=true;}?>"><a href="<?php echo sid($action.'?groupaction=deluser&usergroupid='.$id) ?>"><?php echo lang('DELETE') ?></a></td> +<td width="10%" class="<?php if($f1==true) {echo'f1';$f1=false;}else{echo'f2';$f1=true;}?>"><a href="<?php echo Html::url(array('action'=>'group','subaction'=>'deluser','userid'=>$id)) ?>"><?php echo lang('DELETE') ?></a></td> </tr> <?php } if ( count($memberships)==0 ) @@ -30,7 +31,7 @@ <?php if ( count($users)>0 ) { ?> <tr> - <td colspan="2" class="act"><?php html_form_select('userid','',$users,'') ?></a>&nbsp;<input type="submit" class="submit" value="<?php echo lang('ADD') ?>"></td> + <td colspan="2" class="act"><?php echo Html::selectBox('userid',$users) ?></a>&nbsp;<input type="submit" class="submit" value="<?php echo lang('ADD') ?>"></td> </tr> <?php } ?> diff --git a/themes/default/pages/html/language/edit.tpl.php b/themes/default/pages/html/language/edit.tpl.php @@ -0,0 +1,46 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> + +<center> + +<form action="<?php echo $self ?>" method="post" target="_self"> +<input type="hidden" name="languageaction" value="save"> +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th colspan="2"><?php echo lang('LANGUAGE') ?></a></th> +</tr> + +<tr> +<td width="50%" class="f1"><?php echo lang('LANGUAGE') ?></a></td> +<td width="50%" class="f1"><input type="text" size="50" name="name" value="<?php echo $name ?>"></td> +</tr> +<tr> +<td width="50%" class="f2"><?php echo lang('ISOCODE') ?></a></td> +<td width="50%" class="f2"><input type="text" size="10" name="isocode" maxlength="10" value="<?php echo $isocode ?>"></td> +</tr> +<?php if ( $delete ) + { ?> +<tr> +<td width="50%" class="f2" rowspan="2"><?php echo lang('DELETE') ?></a></td> +<td width="50%" class="f2"><input type="checkbox" name="delete" value="1"></td> +</tr> +<tr> +<td class="help"><?php echo lang('HELP_LANGUAGE_DELETE') ?></td> +</tr> +<?php } ?> + +<tr> +<td colspan="2" class="act"><input type="submit" class="submit" value="<?php echo lang('SAVE') ?>"></a></td> +</tr> +</table> + +</form> +</center> + +<script name="JavaScript"><!-- +document.forms[0].name.focus(); +//--></script> + +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/language/list.tpl.php b/themes/default/pages/html/language/list.tpl.php @@ -0,0 +1,47 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> +<center> + +<form action="<?php echo $self ?>" method="post" target="_self"> +<input type="hidden" name="action" value="language"> +<input type="hidden" name="subaction" value="add"> + +<table class="main" width="60%" cellspacing="0" cellpadding="4"> +<tr> + <th colspan="3"><?php echo lang('LANGUAGES') ?></th> +</tr> + +<?php $f1=true; + foreach( $el as $id=>$e ) + { ?> +<tr> +<?php if ( isset($e['url'])) + { ?> +<td width="50%" class="<?php if($f1==true) {echo'f1'; } else{echo'f2'; }?>"><a href="<?php echo $e['url'] ?>"><img src="<?php echo $image_dir.'icon_lang.png' ?>" align="left" border="0" /><?php echo $e['name'] ?></a></td> +<td width="25%" class="<?php if($f1==true) {echo'f1';$f1=false;} else{echo'f2';$f1=true;}?>"><?php if (!isset($e['default_url'])) echo '<strong>'.lang('default').'</strong>'; else echo '<a href="'.$e['default_url'].'">'.lang('make_default').'</a>' ?></td> +<?php } + else + { ?> +<td width="50%" class="<?php if($f1==true) {echo'f1'; } else{echo'f2'; }?>"><img src="<?php echo $image_dir.'icon_lang.png' ?>" align="left"/><?php echo $e['name'] ?></td> +<td width="25%" class="<?php if($f1==true) {echo'f1';$f1=false;} else{echo'f2';$f1=true;}?>">&nbsp;</td> +<?php } ?> +<td width="25%" class="<?php if($f1==true) {echo'f1';$f1=false;} else{echo'f2';$f1=true;}?>"><?php if (!isset($e['select_url' ])) echo '<strong>'.lang('selected').'</strong>'; else echo '<a href="'.'?'.$e['select_url'].'">'.lang('select').'</a>' ?></td> +</tr> +<?php } ?> + +<?php if (isset($isocodes)) + { ?> +<tr> +<td colspan="3" class="act"><?php echo Html::selectBox( 'isocode',$isocodes ) ?> +<input type="submit" class="submit" value="<?php echo lang('ADD') ?>"></td> +</tr> +<?php } ?> + +</table> + +</form> + +</center> + +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/link/prop.tpl.php b/themes/default/pages/html/link/prop.tpl.php @@ -0,0 +1,97 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> +<center> + +<form action="<?php echo $self ?>" method="post" target="_self"> + +<input type="hidden" name="action" value="link"> +<input type="hidden" name="subaction" value="save"> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th colspan="2"><?php echo lang('PROP') ?></th> +</tr> + + <tr> + <td width="50%" class="f1" rowspan="2"><?php echo lang('name') ?></a></td> + <td width="50%" class="f1"><input type="text" class="name" name="name" size="50" value="<?php echo $name ?>"></td> + </tr> + <tr> + <td width="50%" class="help"><?php echo lang('HELP_NAME') ?></td> + </tr> + <tr> + <td width="50%" class="f2"><?php echo lang('description') ?></a></td> + <td width="50%" class="f2"><textarea class="desc" cols="40" rows="10" name="desc"><?php echo $desc ?></textarea></td> + </tr> + <tr> + <td class="f1"><input type="radio" name="type" value="link"<?php if ($type=='link') echo ' checked="checked"'; ?>><?php echo lang('target') ?></a></td> + <td class="f1"><?php echo Html::selectBox('linkobjectid',$objects,$act_linkobjectid) ?></td> + </tr> + <tr> + <td class="f1"><input type="radio" name="type" value="url"<?php if ($type=='url') echo ' checked="checked"'; ?>><?php echo lang('url') ?></a></td> + <td class="f1"><input type="text" name="url" size="50" maxlength="255" value="<?php echo $url; ?>"></td> + </tr> + <tr> + <td width="50%" class="f2"><?php echo lang('created') ?></a></td> + <td width="50%" class="f2"><?php echo date(lang('DATE_FORMAT'),$create_date) ?>, <?php if (isset($create_user['url'])) echo'<a href="'.$create_user['url'].'" target="cms_main">' ?><?php echo $create_user['name'] ?><?php if (isset($create__user['url'])) echo'</a>' ?></td> + </tr> + <tr> + <td width="50%" class="f2"><?php echo lang('lastchange') ?></a></td> + <td width="50%" class="f2"><?php echo date(lang('DATE_FORMAT'),$lastchange_date) ?>, <?php if (isset($lastchange_user['url'])) echo'<a href="'.$lastchange_user['url'].'" target="cms_main">' ?><?php echo $lastchange_user['name'] ?><?php if (isset($lastchange_user['url'])) echo'</a>' ?></td> + </tr> + <tr> + <td class="f1" rowspan="2"><?php echo lang('DELETE') ?></a></td> + <td class="f1"><input type="checkbox" name="delete" value="1"></td> + </tr> + <tr> + <td class="help"><?php echo lang('LINK_DELETE_DESC') ?></td> + </tr> + <tr> + <td class="act" colspan="2"><input type="submit" class="submit" value="<?php echo lang('SAVE') ?>"></td> + </tr> + +</table> + +</form> + + +<form action="<?php echo $action ?>" method="post" target="_self"> + +<input type="hidden" name="<?php echo session_name() ?>" value="<?php echo session_id() ?>"> +<input type="hidden" name="linkaction" value="move"> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th colspan="2"><?php echo lang('MOVE') ?></th> +</tr> + +<tr> +<td width="50%" class="f1"><?php echo lang('FOLDER') ?></a></td> +<td width="50%" class="f1"><?php echo Html::selectBox('movetoobjectid',$folder,$act_objectid) ?></td> +</tr> +<!-- +<tr> +<td width="50%" class="f2">&nbsp;</td> +<td width="50%" class="f2"><input type="checkbox" name="copy" value="1"> <?php echo lang('COPY_INSTEAD_OF_MOVE') ?></td> +</tr> +--> + +<tr> +<td class="act" colspan="2"><input type="submit" class="submit" value="<?php echo lang('MOVE') ?>"></td> +</tr> + +</table> + +</form> + + +</center> + +<script name="JavaScript"><!-- +document.forms[0].name.focus(); +//--></script> + +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/link/rights.tpl.php b/themes/default/pages/html/link/rights.tpl.php @@ -0,0 +1,86 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<center> + +<form action="<?php echo $self ?>" method="post" target="_self"> +<input type="hidden" name="action" value="link"> +<input type="hidden" name="subaction" value="addACL"> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th colspan="14"><?php echo lang('ACL') ?></th> +</tr> + + + <tr> + <td class="help"><?php echo lang('NAME') ?></td> + <td class="help"><?php echo lang('LANGUAGE') ?></td> + <td class="help"><span title="<?php echo lang('ACL_READ' ) ?>"><strong>R</strong></span></td> + <td class="help"><span title="<?php echo lang('ACL_WRITE' ) ?>"><strong>W</strong></span></td> + <td class="help"><span title="<?php echo lang('ACL_PROP' ) ?>"><strong>P</strong></span></td> + <td class="help"><span title="<?php echo lang('ACL_DELETE' ) ?>"><strong>E</strong></span></td> + <td class="help"><span title="<?php echo lang('ACL_GRANT' ) ?>"><strong>G</strong></span></td> + </tr> + + + + + +<?php $fx = ''; + foreach( $acls as $aclid=>$z ) + { $fx = fx($fx); ?> +<tr> +<?php if ( $z['username'] != '' ) + { ?> +<td width="50%" class="<?php echo $fx ?>"><img src="<?php echo $image_dir.'icon_user.png' ?>" align="left"><?php echo $z['username'] ?></a></td> +<?php } + else + { ?> +<td width="50%" class="<?php echo $fx ?>"><img src="<?php echo $image_dir.'icon_group.png' ?>" align="left"><?php echo $z['groupname'] ?></a></td> +<?php } ?> +<td class="<?php echo $fx ?>"><?php echo $z['languagename'] ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('',true ,false,array('title'=>lang('read')) ) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('',$z['write' ],false) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('',$z['prop' ],false) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('',$z['delete' ],false) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('',$z['grant' ],false) ?></td> +<?php if (isset($z['delete_url'])) + { ?> +<td class="<?php echo $fx ?>"><a href="<?php echo $z['delete_url'] ?>"><?php echo lang('DELETE') ?></a></td> +<?php } + else + { ?> +<td class="<?php echo $fx ?>"><?php echo lang('inherited') ?></td> +<?php } ?> +</tr> +<?php } + $fx = fx($fx); ?> + + +<tr> +<td class="act" style="white-space:nowrap;"> + <input type="radio" name="type" value="user" checked>&nbsp;<?php echo Html::selectBox( 'userid',$users); ?><br><br> + <?php if (count($groups)>0) + { ?> + <input type="radio" name="type" value="group">&nbsp;<?php echo Html::selectBox( 'groupid',$groups); ?></td> + <?php } ?> +<td class="act" style="white-space:nowrap;"><?php echo Html::selectBox( 'languageid',$languages); ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('' ,true ,false) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('write' ,false,true,array('title'=>lang('ACL_WRITE' )) ) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('prop' ,false,true,array('title'=>lang('ACL_PROP' )) ) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('delete' ,false,true,array('title'=>lang('ACL_DELETE' )) ) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('grant' ,false,true,array('title'=>lang('ACL_GRANT' )) ) ?></td> +<td class="act"><input type="submit" class="submit" value="<?php echo lang('ADD') ?>"></td> +</tr> + +</table> + +</form> + + + + + +</center> +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/login.tpl.php b/themes/default/pages/html/login.tpl.php @@ -0,0 +1,69 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> + + +<center> + +<form name="login" action="<?php echo $self ?>" method="post" target="_top"> +<input type="hidden" name="action" value="index"> +<input type="hidden" name="subaction" value="login"> + +<table class="main" width="400" cellspacing="0" cellpadding="4"> + +<tr> + <th colspan="2"><?php echo lang('LOGIN') ?></th> +</tr> + +<tr> +<td colspan="2"><img src="<?php echo $image_dir ?>/logo.jpg"></td> +</tr> + +<?php if ($loginmessage!='') + { ?> +<tr> +<td colspan="2" class="f1"><strong><?php echo $loginmessage ?></strong></td> +</tr> +<?php } ?> + +<tr> +<td class="f1" width="50%"><?php echo lang('USER_USERNAME') ?></td> +<td class="f1" width="50%"><input name="login_name" type="text" value="<?php #echo $login ?>" width="20"></td> +<tr> +<td class="f2" width="50%"><?php echo lang('PASSWORD') ?></td> +<td class="f2" width="50%"><input name="login_password" type="password" value="<?php echo #$password ?>" width="20"></td> +<tr> + +<?php if (count($dbids)>1) + { ?> +<tr> +<td class="f1" width="50%"><?php echo lang('DATABASE') ?></td> +<td class="f1" width="50%"><?php echo Html::selectBox('dbid',$dbids,$actdbid) ?></td> +</tr> +<?php } ?> + +<tr> +<td class="act" colspan="2"> +<?php if (count($dbids)==1) + { ?> +<input type="hidden" name="dbid" value="<?php echo key($dbids) ?>"> +<?php } ?> + +<input type="submit" class="submit" value="<?php echo lang('LOGIN') ?>"> +</td> +</tr> +</table> + +</form> + +<?php include( $tpl_dir.'copyright.tpl.php') ?> + +</center> + +<script name="JavaScript"> +<!-- +window.document.login.login_name.focus(); +//--> +</script> + +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/main/menu.tpl.php b/themes/default/pages/html/main/menu.tpl.php @@ -0,0 +1,74 @@ +<?php include($tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> +<table cellpadding="5" cellspacing="0" width="100%" height="100%" border="0"> + <tr> + <td class="menu"> + <table cellpadding="0" cellspacing="0" width="100%"> + <tr> + <td rowspan="2" width="20"> + <img src="<?php echo $image_dir.'action_'.$type.'.png' ?>"> + </td> + <td><span class="mainmenu_headline"><?php echo lang($type) ?></span></td> + <?php $cols = 1; + if (isset($language_name) || isset($nr)) + { + $cols=3; + ?> + <td class="mainmenu_headline" width="20"><?php echo lang('id') ?>:&nbsp;</td> + <td class="mainmenu_val" width="50"><strong><?php echo $nr ?></strong></td> + <td class="mainmenu_headline" width="50"><?php echo lang('LANGUAGE') ?>:&nbsp;</td> + <td class="mainmenu_val" width="50"><?php echo $language_name ?></td> + <?php } ?> + </tr> + <tr> + <td class="menu" colspan="3"><?php + if ( isset($folder) && is_array($folder) ) + { + foreach( $folder as $id=>$ftext ) + { + echo '<a href="'.Html::url(array('action'=>'main','callAction'=>'folder','objectid'=>$id,'callSubaction'=>'show')).'" target="cms_main" class="mainmenu">'.$ftext.'</a>&nbsp;<strong>&raquo;</strong>&nbsp;'; + } + } + ?><span class="mainmenu_name"><?php if (isset($text)) echo $text ?></span></td> + + <?php if (isset($projectmodel_name)) + { $cols=3; + ?> + <td width="50" class="mainmenu_headline"><?php echo lang('MODEL') ?>:&nbsp;</td> + <td width="50" class="mainmenu_val"><?php echo $projectmodel_name ?></td> + <?php } ?> + </tr> + </table> + </td> + </tr> + <tr> + <td class="submenu" height="20"><?php + $i = 0; + foreach( $subaction as $act=>$text ) + { + switch( $act ) + { + case 'prop' : $accesskey = 'p'; break; + case 'show' : $accesskey = 'v'; break; + case 'pub' : $accesskey = 'w'; break; + case 'edit' : $accesskey = 'e'; break; + case 'el' : $accesskey = 'l'; break; + case 'rights' : $accesskey = 'a'; break; + case 'new' : $accesskey = 'n'; break; + case 'src' : $accesskey = 's'; break; + default: $accesskey = '' ; + } + + if ( $accesskey != '') + $title = 'ALT+'.strtoupper( $accesskey ); + else $title = ''; + + if ( ++$i > 1 ) echo ' | '; + echo '<a href="'.Html::url(array('action'=>$action,'subaction'=>$act,$param=>$this->getSessionVar($param))).'" accesskey="'.$accesskey.'" target="cms_main_main" title="'.$title.'">'.$text.'</a>'; + } + ?></td> + </tr> +</table> + +<?php include($tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/message.tpl.php b/themes/default/pages/html/message.tpl.php @@ -0,0 +1,24 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> +<center> + +<table class="main" width="60%" cellspacing="0" cellpadding="4"> + + <tr> + <th><?php echo $title ?></th> + </tr> + <tr> + <td class="message"><?php echo $text ?> + + <?php if ($info!='') + echo '<br /><br /><br /><strong>'.lang('ADDITIONAL_INFO').'</strong><pre>'.htmlentities($info).'</pre>'; + ?> + </td> + </tr> + +</table> + +</center> + +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/model/edit.tpl.php b/themes/default/pages/html/model/edit.tpl.php @@ -0,0 +1,44 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> +<center> + +<form action="<?php echo $self ?>" method="post" target="_self"> + +<input type="hidden" name="subaction" value="save"> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th colspan="2"><?php echo lang('MODEL') ?></a></th> +</tr> + +<tr> +<td width="50%" class="f1"><?php echo lang('NAME') ?></td> +<td width="50%" class="f1"><input type="text" name="name" value="<?php echo $name ?>"></td> +</tr> +<?php if ( $delete ) + { ?> +<tr> +<td width="50%" class="f2" rowspan="2"><?php echo lang('DELETE') ?></a></td> +<td width="50%" class="f2"><input type="checkbox" name="delete" value="1"></td> +</tr> +<tr> +<td class="help"><?php echo lang('HELP_PROJECTMODEL_DELETE') ?></td> +</tr> +<?php } ?> +<tr> +<td colspan="2" class="act"><input type="submit" class="submit" value="<?php echo lang('SAVE') ?>"></a></td> +</tr> + +</table> + +</form> + +</center> + +<script name="JavaScript"><!-- +document.forms[0].name.focus(); +//--></script> + +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/model/list.tpl.php b/themes/default/pages/html/model/list.tpl.php @@ -0,0 +1,55 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> +<center> + +<form action="<?php echo $self ?>" method="post" target="_self"> +<input type="hidden" name="action" value="model"> +<input type="hidden" name="subaction" value="add"> + +<table class="main" width="60%" cellspacing="0" cellpadding="4"> + +<tr> + <th colspan="3"><?php echo lang('MODELS') ?></th> +</tr> + +<?php $f1=true; + foreach( $el as $id=>$e ) + { ?> +<tr> +<?php if (isset($e['url'])) + { ?> +<td width="50%" class="<?php if($f1==true) {echo'f1'; } else{echo'f2'; }?>"><a href="<?php echo $e['url'] ?>"><?php echo $e['name'] ?></a></td> +<td width="25%" class="<?php if($f1==true) {echo'f1';$f1=false;} else{echo'f2';$f1=true;}?>"><?php if ( !isset($e['default_url'])) echo '<strong>'.lang('default' ).'</strong>'; else echo '<a href="'.'?'.$e['default_url'].'">'.lang('make_default').'</a>' ?></td> +<?php } + else + { ?> +<td width="50%" class="<?php if($f1==true) {echo'f1'; } else{echo'f2'; }?>"><?php echo $e['name'] ?></td> +<td width="25%" class="<?php if($f1==true) {echo'f1';$f1=false;} else{echo'f2';$f1=true;}?>">&nbsp;</td> +<?php } ?> +<td width="25%" class="<?php if($f1==true) {echo'f1';$f1=false;} else{echo'f2';$f1=true;}?>"><?php if ( !isset($e['select_url' ])) echo '<strong>'.lang('selected').'</strong>'; else echo '<a href="'.'?'.$e['select_url' ].'">'.lang('select' ).'</a>' ?></td> +</tr> +<?php } ?> + +<?php if ($add) + { ?> +<tr> +<td class="act" colspan="3"> + +<?php echo lang('ADD') ?> <input type="text" name="name" size="30"> +<input type="submit" class="submit" value="<?php echo lang('ADD') ?>"> +</td> +</tr> +<?php } ?> + +</table> + +</form> + +</center> + +<script name="JavaScript"><!-- +document.forms[0].name.focus(); +//--></script> + +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/page/element.tpl.php b/themes/default/pages/html/page/element.tpl.php @@ -0,0 +1,47 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> +<center> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th colspan="4"><?php echo lang('ELEMENTS') ?></th> +</tr> + +<?php if ( count($el) > 0 ) + { ?> +<tr> + <td class="help"><?php echo lang('PAGE_ELEMENT_NAME') ?></td> + <td class="help"><?php echo lang('PAGE_ELEMENT_VALUE') ?></td> + <td class="help"><?php echo lang('ARCHIVE') ?></td> + <td class="help"><?php echo lang('LASTCHANGE') ?></td> +</tr> + +<?php $f1=true; + foreach( $el as $id=>$e ) + { + $fx = fx($f1); + ?> +<tr> +<td width="25%" class="<?php echo $fx ?>"><a href="<?php echo $e['url'] ?>" title="<?php echo $e['desc'] ?>"><img src="<?php echo $image_dir.'icon_el_'.$e['type'].'.png' ?>" border="0" align="left"><?php echo $e['name'] ?></a></td> +<td width="40%" class="<?php echo $fx ?>"><?php echo $e['value'] ?>&nbsp;</td> +<td width="15%" class="<?php echo $fx ?>"><a href="<?php echo $e['archive_url'] ?>"><?php echo lang('ARCHIVE') ?></a></td> +<td width="20%" class="<?php echo $fx ?>"><span title="<?php echo $e['date'].', '.$e['userfullname'] ?>"><?php echo $e['username'] ?></span></td> +</tr> +<?php } ?> +<tr> + <td class="help" colspan="4"><?php echo lang('PAGE_ELEMENTS_DESC') ?></td> +</tr> +<?php } + else + { ?> +<tr> +<td colspan="4" class="f1"><strong><?php echo lang('NOT_FOUND') ?></strong></td> +</tr> +<?php } ?> + +</table> + +</center> +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/page/prop.tpl.php b/themes/default/pages/html/page/prop.tpl.php @@ -0,0 +1,100 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> +<center> + +<form action="<?php echo $self ?>" method="post" target="_self"> + +<input type="hidden" name="subaction" value="propsave"> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + + <tr> + <th colspan="2"><?php echo lang('PROP') ?></th> + </tr> + + <tr> + <td width="50%" rowspan="2" class="f1"><?php echo lang('name') ?></a></td> + <td width="50%" class="f1"><input type="text" class="name" name="name" size="50" value="<?php echo $name ?>"></td> + </tr> + <tr> + <td width="50%" class="help"><?php echo lang('HELP_NAME') ?></td> + </tr> + <tr> + <td width="50%" rowspan="2" class="f1"><?php echo lang('filename') ?></a></td> + <td width="50%" class="f1"><input type="text" class="filename" name="filename" size="50" value="<?php echo $filename ?>"></td> + </tr> + <tr> + <td width="50%" class="help"><?php echo lang('HELP_FILENAME') ?></td> + </tr> + <tr> + <td width="50%" class="f2"><?php echo lang('description') ?></a></td> + <td width="50%" class="f2"><textarea cols="40" rows="10" name="desc"><?php echo $desc ?></textarea></td> + </tr> + <tr> + <td width="50%" class="f1"><?php echo lang('template') ?></a></td> + <?php if (isset($template_url)) + { ?> + <td width="50%" class="f1"><a href="<?php echo $template_url ?>" target="cms_main"><img src="<?php echo $image_dir ?>icon_tpl.png" border="0" align="left"><?php echo $template_name ?></a></td> + <?php } + else + { ?> + <td width="50%" class="f1"><img src="<?php echo $image_dir ?>icon_tpl.png" align="left"><?php echo $template_name ?></td> + <?php } ?> + </tr> + <tr> + <td width="50%" class="f1"><?php echo lang('full_filename') ?></a></td> + <td width="50%" class="f1"><tt><?php echo $full_filename ?></tt></td> + </tr> + + <?php if ($delete) + { ?> + <tr> + <td class="f1" rowspan="2"><?php echo lang('DELETE') ?></a></td> + <td class="f1"><input type="checkbox" name="delete" value="1"></td> + </tr> + <tr> + <td class="help"><?php echo lang('HELP_PAGE_DELETE') ?></td> + </tr> + <?php } ?> + + <tr> + <td class="act" colspan="2"><input type="submit" class="submit" value="<?php echo lang('SAVE') ?>"></td> + </tr> + +</table> + +</form> + + +<form action="<?php echo $action ?>" method="post" target="_self"> + +<input type="hidden" name="pageaction" value="move"> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + + <tr> + <th colspan="2"><?php echo lang('MOVE') ?></th> + </tr> + + <tr> + <td width="50%" class="f1"><?php echo lang('FOLDER') ?></a></td> + <td width="50%" class="f1"><?php echo Html::selectBox('movetoobjectid',$folder,$act_folderobjectid) ?></td> + </tr> + + <tr> + <td class="act" colspan="2"><input type="submit" class="submit" value="<?php echo lang('MOVE') ?>"></td> + </tr> + +</table> + +</form> + + +<script name="JavaScript"><!-- +document.forms[0].name.focus(); +//--></script> + +</center> + +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/page/rights.tpl.php b/themes/default/pages/html/page/rights.tpl.php @@ -0,0 +1,92 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + + +<center> + +<form action="<?php echo $self ?>" method="post" target="_self"> +<input type="hidden" name="action" value="page"> +<input type="hidden" name="subaction" value="addACL"> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th colspan="14"><?php echo lang('ACL') ?></th> +</tr> + + <tr> + <td class="help"><?php echo lang('NAME') ?></td> + <td class="help"><?php echo lang('LANGUAGE') ?></td> + <td class="help"><span title="<?php echo lang('ACL_READ' ) ?>"><strong>R</strong></span></td> + <td class="help"><span title="<?php echo lang('ACL_WRITE' ) ?>"><strong>W</strong></span></td> + <td class="help"><span title="<?php echo lang('ACL_PROP' ) ?>"><strong>P</strong></span></td> + <td class="help"><span title="<?php echo lang('ACL_DELETE' ) ?>"><strong>E</strong></span></td> + <td class="help"><span title="<?php echo lang('ACL_RELEASE' ) ?>"><strong>R</strong></span></td> + <td class="help"><span title="<?php echo lang('ACL_PUBLISH' ) ?>"><strong>W</strong></span></td> + <td class="help"><span title="<?php echo lang('ACL_GRANT' ) ?>"><strong>G</strong></span></td> + </tr> + + + + + +<?php $fx = ''; + foreach( $acls as $aclid=>$z ) + { $fx = fx($fx); ?> +<tr> +<?php if ( $z['username'] != '' ) + { ?> +<td width="50%" class="<?php echo $fx ?>"><img src="<?php echo $image_dir.'icon_user.png' ?>" align="left"><?php echo $z['username'] ?></a></td> +<?php } + else + { ?> +<td width="50%" class="<?php echo $fx ?>"><img src="<?php echo $image_dir.'icon_group.png' ?>" align="left"><?php echo $z['groupname'] ?></a></td> +<?php } ?> +<td class="<?php echo $fx ?>"><?php echo $z['languagename'] ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('',true ,false,array('title'=>lang('read')) ) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('',$z['write' ],false) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('',$z['prop' ],false) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('',$z['delete' ],false) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('',$z['release' ],false) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('',$z['publish' ],false) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('',$z['grant' ],false) ?></td> +<?php if (isset($z['delete_url'])) + { ?> +<td class="<?php echo $fx ?>"><a href="<?php echo $z['delete_url'] ?>"><?php echo lang('DELETE') ?></a></td> +<?php } + else + { ?> +<td class="<?php echo $fx ?>"><?php echo lang('inherited') ?></td> +<?php } ?> +</tr> +<?php } + $fx = fx($fx); ?> + + +<tr> +<td class="act" style="white-space:nowrap;"> + <input type="radio" name="type" value="user" checked>&nbsp;<?php echo Html::selectBox( 'userid',$users); ?><br><br> + <?php if (count($groups)>0) + { ?> + <input type="radio" name="type" value="group">&nbsp;<?php echo Html::selectBox( 'groupid',$groups); ?></td> + <?php } ?> +<td class="act" style="white-space:nowrap;"><?php echo Html::selectBox( 'languageid',$languages); ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('' ,true ,false) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('write' ,false,true,array('title'=>lang('ACL_WRITE' )) ) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('prop' ,false,true,array('title'=>lang('ACL_PROP' )) ) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('delete' ,false,true,array('title'=>lang('ACL_DELETE' )) ) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('release' ,false,true,array('title'=>lang('ACL_RELEASE' )) ) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('publish' ,false,true,array('title'=>lang('ACL_PUBLISH' )) ) ?></td> +<td class="<?php echo $fx ?>"><?php echo Html::checkBox('grant' ,false,true,array('title'=>lang('ACL_GRANT' )) ) ?></td> +<td class="act"><input type="submit" class="submit" value="<?php echo lang('ADD') ?>"></td> +</tr> + +</table> + +</form> + + + + + +</center> +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/page/src.tpl.php b/themes/default/pages/html/page/src.tpl.php @@ -0,0 +1,19 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> +<center> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th><?php echo lang('SOURCE') ?></th> +</tr> + +<tr> + <td class="f1"><pre><?php echo $src ?></pre></td> +</tr> + +</table> + +</center> +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/pageelement/archive.tpl.php b/themes/default/pages/html/pageelement/archive.tpl.php @@ -0,0 +1,48 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> +<center> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th colspan="5"><?php echo lang('ARCHIVE') ?> (<?php echo lang('ELEMENT') ?>: <?php echo $name ?>)</th> +</tr> +<?php if (count($el)>0) + { ?> +<tr> + <td class="help"><?php echo lang('DATE') ?></td> + <td class="help"><?php echo lang('USER') ?></td> + <td class="help"><?php echo lang('VALUE') ?></td> + <td class="help">&nbsp;</td> + <td class="help">&nbsp;</td> +</tr> + +<?php $f1=true; + foreach( $el as $id=>$e ) + { + $fx = fx($f1); + ?> +<tr> +<td width="20%" class="<?php echo $fx ?>"><?php echo $e['date'] ?></td> +<td width="20%" class="<?php echo $fx ?>"><?php echo $e['user' ] ?></td> +<td width="45%" class="<?php echo $fx ?>"><?php echo $e['value'] ?></td> +<td width="15%" class="<?php echo $fx ?>"><?php if ($e['public']) echo lang('public'); elseif ($e['releaseUrl']!='') { ?><a href="<?php echo $e['releaseUrl'] ?>"><?php echo lang('RELEASE') ?></a><?php } else { ?>&nbsp;<?php } ?></td> +<td width="15%" class="<?php echo $fx ?>"><?php if ($e['active']) echo lang('active'); elseif ($e['useUrl' ]!='') { ?><a href="<?php echo $e['useUrl' ] ?>"><?php echo lang('USE' ) ?></a><?php } else { ?>&nbsp;<?php } ?></td> +</tr> +<?php } ?> +<tr> + <td class="help" colspan="4"><?php echo lang('PAGE_ARCHIVE_DESC') ?></td> +</tr> +<?php } + else + { ?> +<tr> + <td class="f1" colspan="4"><strong><?php echo lang('NOT_FOUND') ?></strong></td> +</tr> +<?php } ?> + +</table> + +</center> +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/pageelement/edit/date.tpl.php b/themes/default/pages/html/pageelement/edit/date.tpl.php @@ -0,0 +1,154 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> +<center> + +<form action="<?php echo $self ?>" method="post" name="date" target="_self"> +<input type="hidden" name="action" value="page"> +<input type="hidden" name="subaction" value="elsave"> +<input type="hidden" name="old_pageaction" value="<?php echo $old_pageaction ?>"> +<input type="hidden" name="valueid" value="<?php echo $valueid ?>"> + + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th colspan="7"><?php echo $name ?> (<?php echo $title ?>)</th> +</tr> + +<tr> + <td colspan="7" class="help"><?php echo $desc ?><br><br></td> +</tr> + +<?php + + echo '<tr>'; + for ( $wday=0; $wday<=6; $wday++ ) + { + echo '<td class="help">'.lang('WEEKDAY'.$wday).'</th>'; + } + echo '</tr>'; + + $d = 0; + $begin = false; + do + { + echo '<tr>'; + for ( $wday=0; $wday<=6; $wday++ ) + { + + if (!$begin) + { + if ($wday == $first_weekday) + { + $begin = true; + } + } + + if ($begin && $d < $days ) + { + echo '<td class="f1">'; + + $d++; + if ($d == $day) + echo "<strong>$d</strong>"; + else echo '<a href="'.Html::url(array('action'=>'pageelement','year'=>$year,'month'=>$month,'day'=>$d,'hour'=>$hour,'minute'=>$minute,'second'=>$second)).'">'.$d.'</a>'; + echo '</td>'; + } + else echo '<td></td'; + } + echo '</tr>'; + } + while( $d < $days-1 ) +?> + + + +<tr> +<?php + $lastyear = $year-1; + echo '<td colspan="3"><a href="'.Html::url(array('action'=>'pageelement','year'=>$lastyear,'month'=>$month,'day'=>$day,'hour'=>$hour,'minute'=>$minute,'second'=>$second)).'">'.lang('LAST_YEAR').'</a>&nbsp;&laquo;&nbsp;'; + + $lastyear = $year; + $lastmonth = $month - 1; + + if ( $lastmonth == 0 ) + { + $lastyear--; + $lastmonth = 12; + } + echo '&nbsp;&nbsp;<a href="'.Html::url(array('action'=>'pageelement','year'=>$lastyear,'month'=>$lastmonth,'day'=>$day,'hour'=>$hour,'minute'=>$minute,'second'=>$second)).'">'.lang('LAST_MONTH').'</a>&nbsp;&laquo;&nbsp;</td>'; + + // Link auf heutiges Datum + echo '<td style="text-align:center"><a href="'.$todayurl.'">'.lang('TODAY').'</a></td>'; + + $nextyear = $year; + $nextmonth = $month + 1; + + if ( $nextmonth == 13 ) + { + $nextyear++; + $nextmonth = 1; + } + echo '<td colspan="3" style="text-align:right">&raquo;&nbsp;<a href="'.Html::url(array('action'=>'pageelement','year'=>$lastyear,'month'=>$nextmonth,'day'=>$day,'hour'=>$hour,'minute'=>$minute,'second'=>$second)).'">'.lang('NEXT_MONTH').'</a>'; + + $nextyear = $year+1; + echo '&nbsp;&nbsp;&raquo;&nbsp;<a href="'.Html::url(array('action'=>'pageelement','year'=>$nextyear,'month'=>$month,'day'=>$day,'hour'=>$hour,'minute'=>$minute,'second'=>$second)).'">'.lang('NEXT_YEAR').'</a></td>'; +?> + +</tr> + +<tr> +<td class="help" colspan="7"><br><?php echo lang('HELP_DATE') ?>:</td> +</tr> + +<tr> +<td class="f2" colspan="1"><?php echo lang('DATE') ?> +<td class="f2" colspan="4"> +<?php echo Html::selectBox('year' ,$all_years ,$year ) ?>&nbsp;<strong>-</strong>&nbsp; +<?php echo Html::selectBox('month',$all_months,$month) ?>&nbsp;<strong>-</strong>&nbsp; +<?php echo Html::selectBox('day' ,$all_days ,$day ) ?> +</td><td class="f1" colspan="2">&nbsp; +<!--<noscript><input type="submit" class="submit" value="<?php echo lang('REFRESH') ?>"></noscript>--> +</td> +</tr> + +<tr> +<td class="f1"><?php echo lang('TIME') ?> +<td class="f1" colspan="4"> +<?php echo Html::selectBox('hour' ,$all_hours ,$hour ) ?>&nbsp;:&nbsp; +<?php echo Html::selectBox('minute',$all_minutes ,$minute) ?>&nbsp;:&nbsp; +<?php echo Html::selectBox('second',$all_seconds ,$second) ?> +</td><td class="f1" colspan="2">&nbsp; +<!--<noscript><input type="submit" class="submit" value="<?php echo lang('REFRESH') ?>"></noscript>--> +</td> +</tr> + +<tr> +<td class="help" colspan="7"><?php echo lang('HELP_DATE_ANSIDATE') ?>:</td> +</tr> +<tr> +<td class="f2"><?php echo lang('ANSI') ?> +<td class="f2" colspan="4"><input type="text" name="ansidate" class="ansidate" width="25" maxlength="25" value="<?php echo $ansidate ?>"> + <input type="hidden" name="ansidate_orig" value="<?php echo $ansidate ?>"> +</td><td class="f1" colspan="2">&nbsp; +</td> +</tr> + +<tr> +<td class="act" colspan="7"><?php echo lang('DATE').': <strong>'.$actdate ?></strong><br><br> +<!--<input type="hidden" name="date" value="<?php echo $date ?>">--> +<input type="submit" class="submit" value="<?php echo lang('SAVE') ?>"></td> +</tr> + +</table> + +</form> + +</center> + +<script language="JavaScript" type="text/javascript"> + document.forms.date.ansidate.focus(); +</script> + +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/pageelement/edit/file.tpl.php b/themes/default/pages/html/pageelement/edit/file.tpl.php @@ -0,0 +1,35 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> +<center> + +<form action="<?php echo $form_action ?>" method="post" target="_self"> +<input type="hidden" name="<?php echo session_name() ?>" value="<?php echo session_id() ?>"> +<input type="hidden" name="subaction" value="elsave"> +<input type="hidden" name="old_pageaction" value="<?php echo $old_pageaction ?>"> +<input type="hidden" name="valueid" value="<?php echo $valueid ?>"> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th><?php echo $name ?></th> +</tr> +<tr> + <td class="help"><?php echo $desc ?></th> +</tr> + +<tr> +<td class="f1"><?php echo Html::selectBox( 'linkobjectid',$files,$act_objectid,array('onchange'=>'submit();')) ?></td> +</tr> + +<tr> +<td class="act"><noscript><input type="submit" class="submit" value="<?php echo lang('SAVE') ?>"></noscript></td> +</tr> + +</table> + +</form> + +</center> + +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/pageelement/edit/link.tpl.php b/themes/default/pages/html/pageelement/edit/link.tpl.php @@ -0,0 +1,41 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> +<center> + +<form action="<?php echo $self ?>" method="post" target="_self"> +<input type="hidden" name="action" value="page"> +<input type="hidden" name="subaction" value="elsave"> +<input type="hidden" name="old_pageaction" value="<?php echo $old_pageaction ?>"> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th><?php echo $name ?></th> +</tr> +<tr> + <td class="help"><?php echo $desc ?></th> +</tr> + +<tr> +<td class="f1"><?php echo Html::selectBox( 'linkobjectid',$objects,$act_linkobjectid,array('onchange'=>'submit();')) ?></td> +</tr> + +<?php if ( $release ) + { ?> +<tr> +<td class="f2"><?php echo Html::checkBox('release',true,true) ?> <?php echo lang('RELEASE') ?></td> +</tr> +<?php } ?> + +<tr> +<td class="act"><noscript><input type="submit" class="submit" value="<?php echo lang('SAVE') ?>"></noscript></td> +</tr> + +</table> + +</form> + +</center> + +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/pageelement/edit/list.tpl.php b/themes/default/pages/html/pageelement/edit/list.tpl.php @@ -0,0 +1,41 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> +<center> + +<form action="<?php echo $self ?>" method="post" target="_self"> +<input type="hidden" name="action" value="page"> +<input type="hidden" name="subaction" value="elsave"> +<input type="hidden" name="old_pageaction" value="<?php echo $old_pageaction ?>"> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th><?php echo $name ?></th> +</tr> +<tr> + <td class="help"><?php echo $desc ?></th> +</tr> + +<tr> +<td class="f1"><?php echo Html::selectBox( 'linkobjectid',$objects,$act_linkobjectid,array('onchange'=>'submit();')) ?></td> +</tr> + +<?php if ( $release ) + { ?> +<tr> +<td class="f2"><?php echo Html::checkBox('release',true,true) ?> <?php echo lang('RELEASE') ?></td> +</tr> +<?php } ?> + +<tr> +<td class="act"><noscript><input type="submit" class="submit" value="<?php echo lang('SAVE') ?>"></noscript></td> +</tr> + +</table> + +</form> + +</center> + +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/pageelement/edit/number.tpl.php b/themes/default/pages/html/pageelement/edit/number.tpl.php @@ -0,0 +1,45 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> +<center> + +<form action="<?php echo $self ?>" method="post" target="_self"> +<input type="hidden" name="subaction" value="elsave"> +<input type="hidden" name="action" value="page"> +<input type="hidden" name="old_pageaction" value="<?php echo $old_pageaction ?>"> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th><?php echo $name ?></th> +</tr> +<tr> + <td class="help"><?php echo $desc ?></th> +</tr> + +<tr> +<td class="f1"><input type="hidden" name="decimals" value="<?php echo $decimals ?>"><input type="text" name="number" size="10" maxlength="20" value="<?php echo $number ?>"></td> +</tr> + +<?php if ( $release ) + { ?> +<tr> +<td class="f2"><?php echo Html::checkBox('release',true,true) ?> <?php echo lang('RELEASE') ?></td> +</tr> +<?php } ?> + +<tr> +<td class="act"><input type="submit" class="submit" value="<?php echo lang('SAVE') ?>"></td> +</tr> + +</table> + +</form> + +</center> + +<script name="JavaScript"><!-- +document.forms[0].number.focus(); +//--></script> + +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/pageelement/edit/text.tpl.php b/themes/default/pages/html/pageelement/edit/text.tpl.php @@ -0,0 +1,45 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> +<center> + +<form action="<?php echo $self ?>" method="post" target="_self"> +<input type="hidden" name="subaction" value="elsave"> +<input type="hidden" name="action" value="page"> +<input type="hidden" name="old_pageaction" value="<?php echo $old_pageaction ?>"> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th><?php echo $name ?></th> +</tr> +<tr> + <td class="help"><?php echo $desc ?></th> +</tr> + +<tr> +<td class="f1"><input type="text" name="text" size="50" maxlength="1000" value="<?php echo $text ?>"></td> +</tr> + +<?php if ( $release ) + { ?> +<tr> +<td class="f2"><?php echo Html::checkBox('release',true,true) ?> <?php echo lang('RELEASE') ?></td> +</tr> +<?php } ?> + +<tr> +<td class="act"><input type="submit" class="submit" value="<?php echo lang('SAVE') ?>"></td> +</tr> + +</table> + +</form> + +</center> + +<script name="JavaScript"><!-- +document.forms[0].text.focus(); +//--></script> + +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/pageelement_edit_resize.tpl.php b/themes/default/pages/html/pageelement_edit_resize.tpl.php @@ -0,0 +1,35 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> +<center> + +<form action="<?php echo $form_action ?>" method="post" target="_self"> +<input type="hidden" name="<?php echo session_name() ?>" value="<?php echo session_id() ?>"> +<input type="hidden" name="subaction" value="elsave"> +<input type="hidden" name="old_pageaction" value="<?php echo $old_pageaction ?>"> +<input type="hidden" name="valueid" value="<?php echo $valueid ?>"> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th><?php echo $name ?></th> +</tr> +<tr> + <td class="help"><?php echo $desc ?></th> +</tr> + +<tr> +<td class="f1"><?php html_form_select( 'fileid','',$images,$act_fileid) ?></td> +</tr> + +<tr> +<td class="act"><input type="submit" class="submit" value="<?php echo lang('SAVE') ?>"></td> +</tr> + +</table> + +</form> + +</center> + +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/project/edit.tpl.php b/themes/default/pages/html/project/edit.tpl.php @@ -0,0 +1,86 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> +<center> + +<form action="<?php echo $self ?>" method="post" target="_self"> +<input type="hidden" name="<?php echo session_name() ?>" value="<?php echo session_id() ?>"> +<input type="hidden" name="subaction" value="save"> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + + <tr> + <th colspan="2"><?php echo lang('PROJECT') ?></th> + </tr> + + <tr> + <td width="50%" class="f1"><?php echo lang('project_name') ?></a></td> + <td width="50%" class="f1"><input type="text" name="name" class="name" size="50" value="<?php echo $name ?>"></td> + </tr> + <tr> + <td width="50%" class="f2" rowspan="2"><?php echo lang('target_dir') ?></a></td> + <td width="50%" class="f2"><input type="text" class="filename" name="target_dir" size="50" value="<?php echo $target_dir ?>"></td> + </tr> + <tr> + <td class="help"><?php echo lang('HELP_PROJECT_LOCALPATH') ?></td> + </tr> + + <tr> + <td width="50%" class="f1" rowspan="2"><?php echo lang('ftp_url') ?></a></td> + <td width="50%" class="f1"><input type="text" name="ftp_url" size="50" value="<?php echo $ftp_url ?>"></td> + </tr> + <tr> + <td class="help"><?php echo lang('HELP_PROJECT_FTPPATH') ?></td> + </tr> + + <tr> + <td width="50%" class="f1" rowspan="2"><?php echo lang('ftp_passive') ?></a></td> + <td width="50%" class="f1"><input type="checkbox" name="ftp_passive" value="1"<?php if ($ftp_passive=='1') echo ' checked' ?></td> + </tr> + <tr> + <td class="help"><?php echo lang('HELP_PROJECT_FTP_PASSIVE') ?></td> + </tr> + + <tr> + <td width="50%" class="f1" rowspan="2"><?php echo lang('cmd_after_publish') ?></a></td> + <td width="50%" class="f1"><input type="text" name="cmd_after_publish" size="50" value="<?php echo $cmd_after_publish ?>"></td> + </tr> + <tr> + <td class="help"><?php echo lang('HELP_PROJECT_CMD_AFTER_PUBLISH') ?></td> + </tr> + + <tr> + <td class="f1" rowspan="2"><?php echo lang('CONTENT_NEGOTIATION') ?></a></td> + <td class="f1"><input type="checkbox" name="content_negotiation" value="1"<?php if ($content_negotiation=='1') echo ' checked' ?>></td> + </tr> + <tr> + <td class="help"><?php echo lang('HELP_CONTENT_NEGOTIATION') ?></td> + </tr> + + <tr> + <td class="f1" rowspan="2"><?php echo lang('CUT_INDEX') ?></a></td> + <td class="f1"><input type="checkbox" name="cut_index" value="1"<?php if ($cut_index=='1') echo ' checked' ?>></td> + </tr> + <tr> + <td class="help"><?php echo lang('HELP_CUT_INDEX') ?></td> + </tr> + + <tr> + <td class="f1" rowspan="2"><?php echo lang('DELETE') ?></a></td> + <td class="f1"><input type="checkbox" name="delete" value="1"></td> + </tr> + <tr> + <td class="help"><?php echo lang('HELP_PROJECT_DELETE') ?></td> + </tr> + + <tr> + <td class="act"><input type="submit" class="submit" value="<?php echo lang('SAVE') ?>"></td> + <td class="act"><input type="reset" class="submit"></td> + </tr> + +</table> + +</form> + +</center> +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/project/list.tpl.php b/themes/default/pages/html/project/list.tpl.php @@ -0,0 +1,33 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> +<center> + +<form action="<?php echo $self ?>" method="post" target="_self"> +<input type="hidden" name="<?php echo session_name() ?>" value="<?php echo session_id() ?>"> +<input type="hidden" name="projectaction" value="add"> + +<table class="main" width="50%" cellspacing="0" cellpadding="4"> + +<tr> + <th><?php echo lang('PROJECTS') ?></th> +</tr> + +<?php $f1=true; + foreach( $el as $id=>$e ) + { ?> +<tr> +<td class="<?php if($f1==true) {echo'f1'; } else{echo'f2'; }?>"><a href="<?php echo $e['url'] ?>" target="cms_main"><img src="<?php echo $image_dir ?>icon_project.png" border="0" align="left"><?php echo $e['name'] ?></a></td> +</tr> +<?php } ?> + +<tr> +<td class="act" colspan="2"><input type="text" name="name" value="">&nbsp;<input type="submit" class="submit" value="<?php echo lang('ADD') ?>"></td> +</tr> + +</table> + +</form> + +</center> +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/publish.tpl.php b/themes/default/pages/html/publish.tpl.php @@ -0,0 +1,30 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> +<center> + +<table class="main" width="60%" cellspacing="0" cellpadding="4"> + + <tr> + <th colspan="1"><?php echo lang('PUBLISH') ?></th> + </tr> + + <?php foreach( $filenames as $filename ) + { ?> + <tr> + <td width="50%" class="f1"><?php echo $filename ?></td> + </tr> + <?php } ?> + +<!-- + <tr> + <td colspan="4"><pre><?php echo $log ?></pre> + </td> + </tr> +--> +</table> + + +</center> + +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/search/content.tpl.php b/themes/default/pages/html/search/content.tpl.php @@ -0,0 +1,40 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> + +<center> + +<form action="<?php echo $self ?>" method="post" target="_self"> + +<input type="hidden" name="searchaction" value="search"> +<input type="hidden" name="searchtype" value="content"> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th colspan="2"><?php echo lang('SEARCH_CONTENT') ?></th> +</tr> + +<tr> +<td width="50%" class="f1"><input type="radio" name="type" value="value" onClick="document.forms[0].text.focus();"><?php echo lang('value') ?></a></td> +<td width="50%" class="f1"><input type="text" name="text" size="50" value="" onFocus="document.forms[0].type[0].checked=true;"></td> +</tr> +<tr> +<td width="50%" class="f2"><input type="radio" name="type" value="lastchange_user"><?php echo lang('lastchange') ?></a></td> +<td width="50%" class="f2"><?php echo Html::selectBox('lastchange_userid',$users) ?></td> +</tr> +<tr> +<td class="act" colspan="2"><input type="submit" class="submit" value="<?php echo lang('SEARCH') ?>"></td> +</tr> + +</table> + +</form> + +</center> + +<script name="JavaScript"><!-- +document.forms[0].text.focus(); +//--></script> + +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/search/prop.tpl.php b/themes/default/pages/html/search/prop.tpl.php @@ -0,0 +1,60 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> + +<center> + +<form action="<?php echo $self ?>" method="post" target="_self"> + +<input type="hidden" name="searchaction" value="search"> +<input type="hidden" name="searchtype" value="prop" > + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th colspan="2"><?php echo lang('SEARCH_PROP') ?></th> +</tr> + +<tr> +<td width="50%" class="f1"><input type="radio" name="type" value="id" onClick="document.forms[0].id.focus();"><?php echo lang('id') ?></a></td> +<td width="50%" class="f1"><input type="text" name="id" size="10" value="" onFocus="document.forms[0].type[0].checked=true;"></td> +</tr> +<tr> +<td width="50%" class="f1"><input type="radio" name="type" value="name" onClick="document.forms[0].name.focus();"><?php echo lang('name') ?></a></td> +<td width="50%" class="f1"><input type="text" name="name" size="50" value="" onFocus="document.forms[0].type[1].checked=true;"></td> +</tr> +<tr> +<td width="50%" class="f1"><input type="radio" name="type" value="filename" onClick="document.forms[0].filename.focus();"><?php echo lang('filename') ?></a></td> +<td width="50%" class="f1"><input type="text" name="filename" size="50" value="" onFocus="document.forms[0].type[2].checked=true;"></td> +</tr> +<tr> +<td width="50%" class="f2"><input type="radio" name="type" value="extension" onClick="document.forms[0].extension.focus();"><?php echo lang('extension') ?></a></td> +<td width="50%" class="f2"><input type="text" name="extension" size="50" value="" onFocus="document.forms[0].type[3].checked=true;"></td> +</tr> +<tr> +<td width="50%" class="f2"><input type="radio" name="type" value="desc" onClick="document.forms[0].desc.focus();"><?php echo lang('description') ?></a></td> +<td width="50%" class="f2"><input type="text" name="desc" size="50" value="" onFocus="document.forms[0].type[4].checked=true;"></td> +</tr> +<tr> +<td width="50%" class="f2"><input type="radio" name="type" value="create_user" onClick="document.forms[0].create_user.focus();"><?php echo lang('created') ?></a></td> +<td width="50%" class="f2"><?php echo Html::selectBox('create_userid',$users) ?></td> +</tr> +<tr> +<td width="50%" class="f2"><input type="radio" name="type" value="lastchange_user" onClick="document.forms[0].lastchange_user.focus();"><?php echo lang('lastchange') ?></a></td> +<td width="50%" class="f2"><?php echo Html::selectBox('lastchange_userid',$users) ?></td> +</tr> +<tr> +<td class="act" colspan="2"><input type="submit" class="submit" value="<?php echo lang('SEARCH') ?>"></td> +</tr> + +</table> + +</form> + +</center> + +<script name="JavaScript"><!-- +document.forms[0].name.focus(); +//--></script> + +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/table_close.tpl.php b/themes/default/pages/html/table_close.tpl.php @@ -0,0 +1,3 @@ + +<!-- $Id$ --> +</table> diff --git a/themes/default/pages/html/table_open.tpl.php b/themes/default/pages/html/table_open.tpl.php @@ -0,0 +1,7 @@ + +<!-- $Id$ --> +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th colspan="2"><?php echo $table_title ?></th> +</tr> diff --git a/themes/default/pages/html/template/el.tpl.php b/themes/default/pages/html/template/el.tpl.php @@ -0,0 +1,46 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> +<center> + +<form action="<?php echo $self ?>" method="post" target="_self"> +<input type="hidden" name="subaction" value="addelement"> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th colspan="2"><?php echo lang('ELEMENTS') ?></th> +</tr> + +<?php + $fx = ''; + if (count($el)>0) foreach( $el as $id=>$e ) + { $fx = fx($fx); ?> +<tr> +<td width="50%" class="<?php echo $fx ?>"><a href="<?php echo $e['url'] ?>" title="<?php echo $e['desc'] ?>"><img src="<?php echo $image_dir.'icon_el_'.$e['type'].'.png' ?>" border="0" align="left"><?php echo $e['name'] ?></a></td> +<td width="50%" class="<?php echo $fx ?>"><?php echo lang('el_'.$e['type']) ?></td> +</tr> +<?php } + else + { $fx = fx($fx); ?> +<tr> +<td colspan="2" class="<?php echo $fx ?>"><?php echo lang('NOT_FOUND') ?></td> +</tr> +<?php } ?> + + +<tr> +<td class="act" colspan="2"><input type="text" name="name" value=""> <input type="submit" class="submit" value="<?php echo lang('ADD') ?>"></td> +</tr> + +</table> + +</form> + +</center> + +<script name="JavaScript"><!-- +document.forms[0].name.focus(); +//--></script> + +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/template/list.tpl.php b/themes/default/pages/html/template/list.tpl.php @@ -0,0 +1,37 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> +<center> + +<form action="<?php echo $self ?>" method="post" target="_self"> +<input type="hidden" name="subaction" value="add"> + +<table class="main" width="50%" cellspacing="0" cellpadding="4"> + +<tr> + <th colspan="2"><?php echo lang('TEMPLATES') ?></th> +</tr> + +<?php $f1=true; + $fx=''; + foreach( $templates as $id=>$e ) + { + $fx = fx( $fx ); ?> +<tr> +<td class="<?php echo $fx ?>"><a href="<?php echo $e['url'] ?>" target="cms_main"><?php echo $e['name'] ?></a></td> +</tr> +<?php } ?> + +<tr> +<td class="act"><input type="text" name="name" value="">&nbsp;<input type="submit" class="submit" value="<?php echo lang('ADD') ?>"></td> +</tr> + +</table> + +</form> + +<script name="JavaScript"><!-- +document.forms[0].name.focus(); +//--></script> +</center> +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/template/prop.tpl.php b/themes/default/pages/html/template/prop.tpl.php @@ -0,0 +1,97 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> +<center> + +<form action="<?php echo $self ?>" method="post" target="_self"> +<input type="hidden" name="action" value="template"> +<input type="hidden" name="subaction" value="propsave"> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + + <tr> + <th colspan="2"><?php echo lang('PROP') ?></th> + </tr> + + <tr> + <td width="50%" class="f1"><?php echo lang('name') ?></a></td> + <td width="50%" class="f1"><input type="text" name="name" size="50" value="<?php echo $name ?>"></td> + </tr> + <?php if ( count($pages)==0) + { ?> + <tr> + <td class="f1" rowspan="2"><?php echo lang('DELETE') ?></a></td> + <td class="f1"><input type="checkbox" name="delete" value="1"></td> + </tr> + <tr> + <td class="help"><?php echo lang('HELP_TEMPLATE_DELETE') ?></td> + </tr> +<?php } ?> + + <tr> + <td class="act" colspan="2"><input type="submit" class="submit" value="<?php echo lang('SAVE') ?>"></td> + </tr> + +</table> + +</form> + + + +<form action="<?php echo $self ?>" method="post" target="_self"> + +<input type="hidden" name="action" value="template"> +<input type="hidden" name="subaction" value="extensionsave"> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th colspan="2"><?php echo lang('EXTENSION') ?></th> +</tr> + +<tr> +<td width="50%" class="f1"><?php echo lang('extension') ?></a></td> +<td width="50%" class="f1"><input type="text" name="extension" size="10" value="<?php echo $extension ?>"></td> +</tr> +<tr> +<td class="act" colspan="2"><input type="submit" class="submit" value="<?php echo lang('SAVE') ?>"></td> +</tr> + +</table> + +</form> + + + + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th colspan="2"><?php echo lang('PAGES') ?></th> +</tr> + +<?php $f1=true; + foreach( $pages as $id=>$p ) + { ?> +<tr> +<td class="f1"><a href="<?php echo $p['url'] ?>" target="cms_main"><img src="<?php echo $image_dir.'icon_page.png' ?>" border="0" align="left"><?php echo $p['name'] ?></a></td> +</tr> +<?php } + if ( count($pages)==0) + { ?> +<tr> +<td class="f1"><?php echo lang('NOT_FOUND') ?></td> +</tr> +<?php } ?> + + +</table> + + +</center> + +<script name="JavaScript"><!-- +document.forms[0].name.focus(); +//--></script> + +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/template/show.tpl.php b/themes/default/pages/html/template/show.tpl.php @@ -0,0 +1,20 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> +<center> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th><?php echo lang('SHOW') ?></th> +</tr> + +<tr> +<td class="f1"><code><?php echo $text ?></code></td> +</tr> + +</table> + +</center> + +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/template/src.tpl.php b/themes/default/pages/html/template/src.tpl.php @@ -0,0 +1,51 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> +<center> + +<form action="<?php echo $self ?>" method="post" target="_self"> +<input type="hidden" name="subaction" value="srcsave"> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th><?php echo lang('SOURCE') ?></th> +</tr> + +<tr> +<td class="f1"><textarea rows="25" cols="80" name="src"><?php echo $text ?></textarea></td> +</tr> + +<?php if ( count($elements)>0 ) + { ?> +<tr> +<td class="f2"><input type="checkbox" name="addelement" value="1"> + <?php echo lang('ADD') ?> + <?php echo Html::selectBox('elementid',$elements) ?></td> +</tr> +<?php } ?> + +<?php if ( count($icon_elements)>0 ) + { ?> +<tr> +<td class="f2"><input type="checkbox" name="addicon" value="1"> + <?php echo lang('ADD') ?> + <?php echo Html::selectBox('iconid',$icon_elements) ?></td> +</tr> +<?php } ?> + +<tr> +<td class="act"><input type="submit" class="submit" value="<?php echo lang('SAVE') ?>"></td> +</tr> + +</table> + +</form> + +</center> + +<script name="JavaScript"><!-- +document.forms[0].src.focus(); +//--></script> + +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/title.tpl.php b/themes/default/pages/html/title.tpl.php @@ -0,0 +1,16 @@ +<?php include($tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> +<?php if (isset($username)) + { ?> + +<table cellpadding="5" cellspacing="0" width="100%"> + <tr> + <td class="title"><span title="<?php echo lang('LOGINAS') ?>: <?php echo $username ?>"><?php echo $userfullname ?></span> <strong>@</strong> <span title="<?php echo lang('DATABASE') ?>: <?php echo $dbid ?>"><?php echo $dbname ?></span></td> + <td class="title" style="text-align:right;"><a href="<?php echo $profile_url ?>" title="<?php echo lang('HELP_PROFILE'); ?>" target="cms_main_main"><?php echo lang('YOURPROFILE'); ?></a>&nbsp;|&nbsp;<a href="<?php echo $logout_url ?>" title="<?php echo lang('HELP_LOGOUT'); ?>" target="_top"><?php echo lang('LOGOUT'); ?></a></td> + </tr> +</table> + +<?php } ?> + +<?php include($tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/transfer/import.tpl.php b/themes/default/pages/html/transfer/import.tpl.php @@ -0,0 +1,54 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> +<center> + +<?php if (isset($fileLog)) + { ?> +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + <tr> + <th><?php echo lang('LOG') ?></th> + </tr> + <tr> + <td class="f1"><pre><?php echo $fileLog ?></pre></td> + </tr> +</table> +<?php } ?> + + +<form action="<?php echo $self ?>" method="post" target="_self"> + +<input type="hidden" name="<?php echo session_name() ?>" value="<?php echo session_id() ?>"> +<input type="hidden" name="transferaction" value="import"> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th colspan="2"><?php echo lang('IMPORT') ?></th> +</tr> + +<tr> +<td colspan="2" class="help"><?php echo lang('HELP_IMPORT') ?></td> +</tr> + +<tr> +<td width="50%" class="f1"><?php echo lang('SOURCE') ?></a></td> +<td width="50%" class="f1"><input type="text" name="local_folder" class="filename" size="50" value=""></td> +</tr> + +<tr> +<td width="50%" class="f1"><?php echo lang('TARGET') ?></a></td> +<td width="50%" class="f1"><?php echo Html::selectBox('objectid',$folders,0) ?></td> +</tr> + +<tr> +<td class="act" colspan="2"><input type="submit" class="submit" value="<?php echo lang('IMPORT') ?>"></td> +</tr> + +</table> + +</form> + +</center> + +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/tree.tpl.php b/themes/default/pages/html/tree.tpl.php @@ -0,0 +1,32 @@ +<?php include( $tpl_dir.'header.tpl.'.$conf_php ) ?> + +<!-- $Id$ --> + +<table cellpadding="0" cellspacing="0" border="0"> + +<?php foreach( $zeilen as $z ) + { ?> +<tr> + +<?php if (is_array($z['cols'])) foreach( $z['cols'] as $i ) + { ?> +<td width="1%"><img src="<?php echo $image_dir.'tree_'.$i ?>.gif" border="0"></td> +<?php } ?> + +<td width="1%"> +<?php if (isset($z['image_url'])) { ?><a href="<?php echo $z['image_url'].'#'.$z['name'] ?>" class="tree" target="_self"><?php } ?><img src="<?php echo $image_dir.'tree_'.$z['image'] ?>.gif" border=""><?php if (isset($z['image_url'])) { ?></a><?php } ?> +</td> + +<td colspan="20" id="<?php echo $z['name'] ?>" valign="middle" style="white-space:nowrap;"> +<a name="<?php echo $z['name'] ?>"></a> +<?php if (isset($z['url'])) { ?><a href="<?php echo $z['url'] ?>" <?php if($z['desc']!='') echo 'title="'.$z['desc'].'" ' ?>class="tree" target="<?php echo $z['target'] ?>"><?php } ?><img src="<?php echo $image_dir.'icon_'.$z['icon'] ?>.png" border="0" align="left"><?php echo $z['text'] ?><?php if (isset($z['url'])) { ?></a><?php if(isset($z['add'])) echo '&nbsp;<small>'.$z['add'].'<small>' ?><?php } ?> +</td> + +</tr> +<?php } ?> + +</table> + +<br><br> + +<?php include( $tpl_dir.'footer.tpl.'.$conf_php ) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/tree/menu.tpl.php b/themes/default/pages/html/tree/menu.tpl.php @@ -0,0 +1,28 @@ +<?php include($tpl_dir.'header.tpl.'.$conf_php) ?> + +<!-- $Id$ --> + +<table cellpadding="5" cellspacing="0" width="100%" height="100%"> +<tr> + <td class="menu"> + + <form style="margin:0px;" action="<?php echo $self ?>" method="get" target="cms_tree"> + <table> + <tr> + <td> + <input type="hidden" name="action" value="tree"> + <input type="hidden" name="subaction" value="reload"> + <?php echo Html::selectBox( 'projectid',$projects,$act_projectid,array('onchange'=>'submit();') ) ?></td><td><noscript>&nbsp;<input type="submit" class="submit" value="&raquo;"></noscript> + </td> + </tr> + </table> + </form> + </td> + </tr> + <tr> + <td class="submenu" height="20"><a accesskey="r" href="<?php echo $reload_url ?>" target="cms_tree"><?php echo lang('REFRESH') ?></a> | <a href="<?php echo $openall_url ?>" target="cms_tree">++</a></td> + </tr> +</table> + + +<?php include($tpl_dir.'footer.tpl.'.$conf_php) ?>+ \ No newline at end of file