Commit 80504d9a authored by Jean-Paul Saman's avatar Jean-Paul Saman

Cleanup tabs and replace them with spaces.

parent 3946dacc
<?php <?php
/* /*
* Copyright (C) 2007, M2X * Copyright (C) 2007-2008, M2X
* *
* Authors: Jean-Paul Saman * Authors: Jean-Paul Saman
* *
...@@ -28,13 +28,13 @@ $canDelete = $perms->checkModule( $m, 'delete' ); ...@@ -28,13 +28,13 @@ $canDelete = $perms->checkModule( $m, 'delete' );
// lock out users that do not have at least readPermission on this module // lock out users that do not have at least readPermission on this module
if (!$canRead) { if (!$canRead) {
$AppUI->redirect( "m=public&a=access_denied" ); $AppUI->redirect( "m=public&a=access_denied" );
} }
//save the workplace state (have a footprint on this site) //save the workplace state (have a footprint on this site)
$AppUI->savePlace(); $AppUI->savePlace();
// saves the current tab box state // saves the current tab box state
if (isset( $_GET['tab'] )) { if (isset( $_GET['tab'] )) {
$AppUI->setState( 'TimesheetIdxTab', $_GET['tab'] ); $AppUI->setState( 'TimesheetIdxTab', $_GET['tab'] );
} }
$tab = $AppUI->getState( 'TimesheetIdxTab' ) !== NULL ? $AppUI->getState( 'TimesheetIdxTab' ) : 0; $tab = $AppUI->getState( 'TimesheetIdxTab' ) !== NULL ? $AppUI->getState( 'TimesheetIdxTab' ) : 0;
$active = intval( !$AppUI->getState( 'TimesheetIdxTab' ) ); $active = intval( !$AppUI->getState( 'TimesheetIdxTab' ) );
...@@ -47,10 +47,10 @@ $titleBlock->addCell(); ...@@ -47,10 +47,10 @@ $titleBlock->addCell();
// adding the 'add'-Button if user has writePermissions // adding the 'add'-Button if user has writePermissions
if ($canEdit) { if ($canEdit) {
$titleBlock->addCell( $titleBlock->addCell(
'<input type="submit" class="button" value="'.$AppUI->_('new timesheet').'">', '', '<input type="submit" class="button" value="'.$AppUI->_('new timesheet').'">', '',
'<form action="?m=timesheet&a=addedit" method="post">', '</form>' '<form action="?m=timesheet&a=addedit" method="post">', '</form>'
); );
} }
$titleBlock->show(); $titleBlock->show();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment