openrat-cms

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

commit 83ab2384143c3eb122064db2cd9ef024b4b1d6d3
parent 9277714e8e5d06d0e4bcaebf04200648a101a9e3
Author: dankert <devnull@localhost>
Date:   Thu, 25 Sep 2003 21:23:35 +0200

*** empty log message ***

Diffstat:
themes/default/pages/html/user/edit.tpl.php | 55+++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/user/groups.tpl.php | 43+++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/user/list.tpl.php | 36++++++++++++++++++++++++++++++++++++
themes/default/pages/html/user/pw.tpl.php | 32++++++++++++++++++++++++++++++++
themes/default/pages/html/user/show.tpl.php | 85+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/user_acls.tpl.php | 145+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6 files changed, 396 insertions(+), 0 deletions(-)

diff --git a/themes/default/pages/html/user/edit.tpl.php b/themes/default/pages/html/user/edit.tpl.php @@ -0,0 +1,54 @@ +<?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="useraction" value="save"> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th colspan="2"><?php echo lang('USER') ?></th> +</tr> + +<tr> +<td width="50%" class="f1"><?php echo lang('username') ?></a></td> +<td width="50%" class="f1"><input type="text" name="name" value="<?php echo $name ?>"></td> +</tr> +<tr> +<td width="50%" class="f1"><?php echo lang('name') ?></a></td> +<td width="50%" class="f1"><input type="text" name="fullname" value="<?php echo $fullname ?>"></td> +</tr> +<tr> +<td width="50%" class="f1"><?php echo lang('mail') ?></a></td> +<td width="50%" class="f1"><input type="text" name="mail" value="<?php echo $mail ?>"></td> +</tr> +<tr> +<td width="50%" class="f1"><?php echo lang('ldap') ?></a></td> +<td width="50%" class="f1"><input type="text" name="ldap" value="<?php echo $ldap ?>"></td> +</tr> +<tr> +<td width="50%" class="f1"><?php echo lang('language') ?></a></td> +<td width="50%" class="f1"><?php html_form_select('lang','',$alllanguages,$lang) ?></td> +</tr> +<tr> +<td width="50%" class="f1"><?php echo lang('style') ?></a></td> +<td width="50%" class="f1"><?php html_form_select('style','',$allstyles,$style) ?></td> +</tr> +<tr> +<td width="50%" class="f1"><?php echo lang('admin') ?></a></td> +<td width="50%" class="f1"><input type="checkbox" name="is_admin" value="1"<?php if ($is_admin==1) echo ' checked="checked"' ?>></td> +</tr> +<tr> +<td class="act" colspan="2"><input type="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/user/groups.tpl.php b/themes/default/pages/html/user/groups.tpl.php @@ -0,0 +1,42 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> + +<br><br><br> +<center> + + +<table width="80%"> +<tr> + <th colspan="2"><?php echo lang('MEMBERSHIPS') ?></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;}?>"><a href="<?php echo sid($action.'?useraction=delgroup&usergroupid='.$id) ?>"><?php echo lang('DELETE') ?></a></td> +</tr> +<?php } ?> +</table> +<br> + +<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="addgroup"> + +<table width="80%"> +<tr> + <th colspan="2"><?php echo lang('ADD') ?></th> +</tr> +<tr> + <td width="50%" class="f1"><?php html_form_select('groupid','',$groups,'') ?></a></td> + <td width="50%" class="f1"><input type="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/user/list.tpl.php b/themes/default/pages/html/user/list.tpl.php @@ -0,0 +1,35 @@ +<?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="useraction" value="add"> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th colspan="2"><?php echo lang('USERS') ?></th> +</tr> + +<?php $f1=true; + foreach( $el as $id=>$e ) + { ?> +<tr> +<td width="50%" class="<?php if($f1==true) {echo'f1'; } else{echo'f2'; }?>"><a href="<?php echo sid($e['url']) ?>"><?php echo $e['name'] ?></a></td> +<td width="50%" class="<?php if($f1==true) {echo'f1';$f1=false;} else{echo'f2';$f1=true;}?>"><?php echo $e['type'] ?></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> +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/user/pw.tpl.php b/themes/default/pages/html/user/pw.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="useraction" value="pwchange"> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> +<tr> + <th colspan="2"><?php echo lang('PASSWORD') ?></th> +</tr> +<tr> +<td width="50%" class="f1"><?php echo lang('password') ?></a></td> +<td width="50%" class="f1"><input type="password" name="password1"></td> +</tr> +<tr> +<td width="50%" class="f2"><?php echo lang('passwordrepeat') ?></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('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/user/show.tpl.php b/themes/default/pages/html/user/show.tpl.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 sid($action.'?useraction=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 sid($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 sid($action.'?useraction=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 diff --git a/themes/default/pages/html/user_acls.tpl.php b/themes/default/pages/html/user_acls.tpl.php @@ -0,0 +1,144 @@ +<?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') ?></th> +</tr> + +<tr> +<td width="50%" class="f1"><?php echo lang('username') ?></a></td> +<td width="50%" class="f1"><input type="text" name="name" value="<?php echo $name ?>"></td> +</tr> +<tr> +<td width="50%" class="f1"><?php echo lang('name') ?></a></td> +<td width="50%" class="f1"><input type="text" name="fullname" value="<?php echo $fullname ?>"></td> +</tr> +<tr> +<td width="50%" class="f1"><?php echo lang('mail') ?></a></td> +<td width="50%" class="f1"><input type="text" name="mail" value="<?php echo $mail ?>"></td> +</tr> +<tr> +<td width="50%" class="f1"><?php echo lang('ldap') ?></a></td> +<td width="50%" class="f1"><input type="text" name="ldap" value="<?php echo $ldap ?>"></td> +</tr> +<tr> +<td width="50%" class="f1"><?php echo lang('language') ?></a></td> +<td width="50%" class="f1"><?php html_form_select('lang','',$alllanguages,$lang) ?></td> +</tr> +<tr> +<td width="50%" class="f1"><?php echo lang('style') ?></a></td> +<td width="50%" class="f1"><?php html_form_select('style','',$allstyles,$style) ?></td> +</tr> +<tr> +<td width="50%" class="f1"><?php echo lang('admin') ?></a></td> +<td width="50%" class="f1"><input type="checkbox" name="is_admin" value="1"<?php if ($is_admin==1) echo ' checked="checked"' ?>></td> +</tr> +<tr> +<td class="f2" colspan="2"><input type="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="useraction" value="pwchange"> + +<table width="80%"> +<tr> + <th colspan="2"><?php echo lang('PASSWORD') ?></th> +</tr> +<tr> +<td width="50%" class="f1"><?php echo lang('password') ?></a></td> +<td width="50%" class="f1"><input type="password" name="password1"></td> +</tr> +<tr> +<td width="50%" class="f2"><?php echo lang('passwordrepeat') ?></a></td> +<td width="50%" class="f2"><input type="password" name="password2"></td> +</tr> +<tr> +<td class="f2" colspan="2"><input type="submit" value="<?php echo lang('SAVE') ?>"></td> +</tr> +</table> + +</form> + + +<table width="80%"> +<tr> + <th colspan="2"><?php echo lang('MEMBERSHIPS') ?></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;}?>"><a href="<?php echo sid($action.'?useraction=delgroup&usergroupid='.$id) ?>"><?php echo lang('DELETE') ?></a></td> +</tr> +<?php } ?> +</table> +<br> + +<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="addgroup"> + +<table width="80%"> +<tr> + <th colspan="2"><?php echo lang('ADD') ?></th> +</tr> +<tr> + <td width="50%" class="f1"><?php html_form_select('groupid','',$groups,'') ?></a></td> + <td width="50%" class="f1"><input type="submit" value="<?php echo lang('ADD') ?>"></td> +</tr> +</table> + +</form> + + + +<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 sid($action.'?useraction=delacl&aclid='.$id) ?>"><?php echo lang('DELETE') ?></a></td> +</tr> +<?php } ?> +</table> +<br> + +<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="addacl"> + +<table width="80%"> +<tr> + <th colspan="2"><?php echo lang('ADD') ?></th> +</tr> +<tr> + <td width="50%" class="f1"><?php html_form_select('pageid','',$pages,'') ?></a></td> + <td width="50%" class="f1"><input type="submit" value="<?php echo lang('ADD') ?>"></td> +</tr> +</table> + +</form> + +</center> +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file