openrat-cms

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

commit 7e1ce42e0e7a8e1804b29e921a525e01bb416f71
parent 50b83ff535572779501fcd786e39c30da97bf794
Author: dankert <devnull@localhost>
Date:   Sun, 29 Jan 2006 18:40:28 +0100

Quellen f?r Template-Engine

Diffstat:
themes/default/templates/user/add.tpl.src.php | 11+++++++++++
themes/default/templates/user/addgroup.tpl.src.php | 12++++++++++++
themes/default/templates/user/edit.tpl.src.php | 48++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/templates/user/groups.tpl.src.php | 10++++++++++
themes/default/templates/user/listing.tpl.src.php | 14++++++++++++++
themes/default/templates/user/profile.tpl.php | 74++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/templates/user/pw.tpl.src.php | 34++++++++++++++++++++++++++++++++++
themes/default/templates/user/remove.tpl.src.php | 18++++++++++++++++++
themes/default/templates/user/rights.tpl.src.php | 60++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/templates/user/show.tpl.src.php | 85+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
10 files changed, 366 insertions(+), 0 deletions(-)

diff --git a/themes/default/templates/user/add.tpl.src.php b/themes/default/templates/user/add.tpl.src.php @@ -0,0 +1,10 @@ +page + form method:post + + window icon:project name:GLOBAL_USERS + row + cell class:fx + input name:name + row + cell class:act + button type:ok+ \ No newline at end of file diff --git a/themes/default/templates/user/addgroup.tpl.src.php b/themes/default/templates/user/addgroup.tpl.src.php @@ -0,0 +1,11 @@ +page + form + window name:USER_MEMBERSHIPS + row + cell class:fx + selectbox name:groupid list:groups + row + cell class:act + button type:ok + + focus field:groupid+ \ No newline at end of file diff --git a/themes/default/templates/user/edit.tpl.src.php b/themes/default/templates/user/edit.tpl.src.php @@ -0,0 +1,47 @@ +page + form + window name:GLOBAL_USER widths:50%,50% + row + cell class:fx + text text:user_username + cell class:fx + input name:name size:20 + row + cell class:fx + text text:user_fullname + cell class:fx + input name:fullname size: + row + cell class:fx + text text:user_mail + cell class:fx + input name:mail size: + row + cell class:fx + text text:user_desc + cell class:fx + input name:desc size: + row + cell class:fx + text text:user_tel + cell class:fx + input name:tel size: + row + cell class:fx + text text:user_ldap_dn + cell class:fx + input name:ldap_dn size: + row + cell class:fx + text text:user_style + cell class:fx + selectbox list:allstyles name:style + row + cell class:fx + text text:user_admin + cell class:fx + checkbox name:is_admin + row + cell colspan:2 class:act + button type:ok + focus field:name+ \ No newline at end of file diff --git a/themes/default/templates/user/groups.tpl.src.php b/themes/default/templates/user/groups.tpl.src.php @@ -0,0 +1,10 @@ +page + window name:USER_MEMBERSHIPS widths:70%,30% + list list:memberships extract:true + row + cell class:fx + image file:icon_group + text var:name + cell class:fx + link url:delgroupurl + text text:GLOBAL_DELETE diff --git a/themes/default/templates/user/listing.tpl.src.php b/themes/default/templates/user/listing.tpl.src.php @@ -0,0 +1,14 @@ +page + window icon:user name:GLOBAL_USERS + list list:el extract:true + row + cell class:fx + link url:url target:cms_main title:desc + image type:icon_user + text var:name + cell class:fx + text var:fullname + if true:isAdmin + text raw:_( + text text:USER_ADMIN + text raw:) diff --git a/themes/default/templates/user/profile.tpl.php b/themes/default/templates/user/profile.tpl.php @@ -0,0 +1,73 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> + +<center> + +<?php echo Html::form('profile','saveprofile',$userid) ?> + +<?php windowOpen( 'GLOBAL_USER' ) ?> + +<tr> +<td width="50%" class="f1"><?php echo lang('user_username') ?></a></td> +<td width="50%" class="f1"><strong><?php echo $name ?></strong></td> +</tr> + +<?php foreach( array('fullname','tel','mail','desc') as $z) + { + if ( isset($$z) ) + { ?> +<tr> +<td width="50%" class="f1"><?php echo lang('USER_'.$z) ?></a></td> +<td width="50%" class="f1"><input type="text" name="<?php echo $z ?>" size="40" maxlength="128" value="<?php echo $$z ?>"></td> +</tr> +<?php } + } ?> + +<?php if ( count($allstyles) > 1 ) + { ?> +<tr> +<td width="50%" class="f1"><?php echo lang('USER_style') ?></a></td> +<td width="50%" class="f1"><?php echo Html::selectBox('style',$allstyles,$style) ?></td> +</tr> + <tr> + <td class="act" colspan="2"><input type="submit" class="submit" value="<?php echo lang('GLOBAL_SAVE') ?>"></td> + </tr> +<?php } ?> + +<?php windowClose() ?> + +</form> + + +<?php if ( empty($ldap_dn) ) { ?> +<?php echo Html::form('profile','pwchange',$userid) ?> + +<?php windowOpen( 'USER_PASSWORD') ?> + +<tr> +<td width="50%" class="f2"><?php echo lang('user_password') ?></a></td> +<td width="50%" class="f2"><input type="password" name="act_password"></td> +</tr> +<tr> +<td width="50%" class="f1"><?php echo lang('user_new_password') ?></a></td> +<td width="50%" class="f1"><input type="password" name="password1"></td> +</tr> +<tr> +<td width="50%" class="f2"><?php echo lang('user_new_password_repeat') ?></a></td> +<td width="50%" class="f2"><input type="password" name="password2"></td> +</tr> +<tr> + <td class="act" colspan="2"><input type="submit" class="submit" value="<?php echo lang('GLOBAL_SAVE') ?>"></td> +</tr> + +<?php windowClose() ?> + +</form> + +<?php } ?> +</center> + +<?php Html::focusField('fullname') ?> + +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/templates/user/pw.tpl.src.php b/themes/default/templates/user/pw.tpl.src.php @@ -0,0 +1,34 @@ +page + form + window name:USER_PASSWORD + row + cell class:fx + text text:user_username + cell class:fx + text var:name + row + cell class:fx + text text:USER_new_password + cell class:fx + password name:password1 + row + cell class:fx + text text:USER_new_password_repeat + cell class:fx + password name:password2 + if present:mail + row + cell class:fx + text text:user_mail_new_password + cell class:fx + checkbox name:mail + row + cell class:fx + text text:user_random_password + cell class:fx + checkbox name:random + + row + cell colspan:2 class:act + button type:ok + focus field:password1 diff --git a/themes/default/templates/user/remove.tpl.src.php b/themes/default/templates/user/remove.tpl.src.php @@ -0,0 +1,17 @@ +page + form + window name:GLOBAL_USER + row + cell class:fx + text text:user_username + cell class:fx + text var:name + row + cell class:fx + text text:user_delete + cell class:fx + checkbox name:delete + row + cell colspan:2 class:act + button type:ok + focus field:name+ \ No newline at end of file diff --git a/themes/default/templates/user/rights.tpl.src.php b/themes/default/templates/user/rights.tpl.src.php @@ -0,0 +1,60 @@ +RAW +<?php include( $tpl_dir.'header.tpl.php') ?> + + +<center> + +<?php foreach($projects as $projectid=>$projectname) { ?> + +<?php windowOpen( lang('GLOBAL_PROJECT').': '.$projectname,15) ?> + + <tr> + <td class="help"><?php echo lang('GLOBAL_FILENAME') ?></td> + <td class="help"><?php echo lang('GLOBAL_LANGUAGE') ?></td> + <?php foreach( $show as $t ) { ?> + <td class="help"><span title="<?php echo lang('ACL_'.strtoupper($t)) ?>"><strong><?php echo lang('ACL_'.strtoupper($t).'_ABBREV') ?></strong></span></td> + <?php } ?> + </tr> + + + + + +<?php $fx = ''; + if (isset($rights[$projectid]) && is_array($rights[$projectid])) + { + foreach( $rights[$projectid] as $oid=>$z ) + { $fx = fx($fx); ?> + <tr> +<?php $objectUrl = Html::url( 'index','object',$oid ) ?> + <td class="<?php echo $fx ?>"><a href="<?php echo $objectUrl ?>" target="_top"><img src="<?php echo $image_dir.'icon_'.$objects[$oid]['type'].IMG_EXT ?>" border="0" align="left"><?php echo $objects[$oid]['filename'] ?></a></td> + <td class="<?php echo $fx ?>"><?php echo $z['languagename'] ?></td> + +<?php foreach( $show as $t ) + { ?> + <td class="<?php echo $fx ?>"><?php echo Html::checkBox('',$z[$t],false,array('title'=>lang('ACL_'.strtoupper($t))) ) ?></td> +<?php } ?> + + + </tr> +<?php } + $fx = fx($fx); ?> +<?php } + else + { $fx = fx($fx); ?> + <tr> + <td colspan="14" class="<?php echo $fx ?>"><?php echo lang('GLOBAL_NOT_FOUND') ?></td> + </tr> +<?php } ?> + + +<?php windowClose() ?> + +<?php } ?> + + + + +</center> +<?php include( $tpl_dir.'footer.tpl.php') ?> +END diff --git a/themes/default/templates/user/show.tpl.src.php b/themes/default/templates/user/show.tpl.src.php @@ -0,0 +1,84 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> + +<br><br><br> +<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="useraction" value="save"> + +<table width="80%"> + +<tr> + <th colspan="2"><?php echo lang('USER') ?> <a href="<?php echo Html::url(array('action'=>'user','subaction'=>'edit')) ?>"><?php echo lang('EDIT') ?></a></th> +</tr> + +<tr> +<td width="50%" class="f1"><?php echo lang('username') ?></a></td> +<td width="50%" class="f1"><?php echo $name ?></td> +</tr> +<tr> +<td width="50%" class="f1"><?php echo lang('name') ?></a></td> +<td width="50%" class="f1"><?php echo $fullname ?></td> +</tr> +<tr> +<td width="50%" class="f1"><?php echo lang('mail') ?></a></td> +<td width="50%" class="f1"><?php echo $mail ?></td> +</tr> +<tr> +<td width="50%" class="f1"><?php echo lang('ldap') ?></a></td> +<td width="50%" class="f1"><?php echo $ldap ?></td> +</tr> +<tr> +<td width="50%" class="f1"><?php echo lang('language') ?></a></td> +<td width="50%" class="f1"><?php echo $lang ?></td> +</tr> +<tr> +<td width="50%" class="f1"><?php echo lang('style') ?></a></td> +<td width="50%" class="f1"><?php echo $style ?></td> +</tr> +<tr> +<td width="50%" class="f1"><?php echo lang('admin') ?></a></td> +<td width="50%" class="f1"><?php if ($is_admin==1) echo lang('YES'); else echo lang('NO') ?></td> +</tr> + +</table> + +</form> + + +<table width="80%"> +<tr> + <th colspan="2"><?php echo lang('MEMBERSHIPS') ?><a href="<?php echo $action.'?useraction=groups' ?>"><?php echo lang('EDIT') ?></a></th> +</tr> +<?php $f1=true; + foreach( $memberships as $id=>$name ) + { ?> +<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;}?>"></td> +</tr> +<?php } ?> +</table> +<br> + + +<table width="80%"> +<tr> + <th colspan="2"><?php echo lang('RIGHTS') ?></th> +</tr> +<?php $f1=true; + foreach( $acls as $id=>$name ) + { ?> +<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 Html::url(array('action'=>'user','subaction'=>'delacl','aclid'=>$id)) ?>"><?php echo lang('DELETE') ?></a></td> +</tr> +<?php } ?> +</table> +<br> + +</center> +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file