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
*
......@@ -28,13 +28,13 @@ $canDelete = $perms->checkModule( $m, 'delete' );
// lock out users that do not have at least readPermission on this module
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)
$AppUI->savePlace();
// saves the current tab box state
if (isset( $_GET['tab'] )) {
$AppUI->setState( 'TimesheetIdxTab', $_GET['tab'] );
$AppUI->setState( 'TimesheetIdxTab', $_GET['tab'] );
}
$tab = $AppUI->getState( 'TimesheetIdxTab' ) !== NULL ? $AppUI->getState( 'TimesheetIdxTab' ) : 0;
$active = intval( !$AppUI->getState( 'TimesheetIdxTab' ) );
......@@ -47,10 +47,10 @@ $titleBlock->addCell();
// adding the 'add'-Button if user has writePermissions
if ($canEdit) {
$titleBlock->addCell(
'<input type="submit" class="button" value="'.$AppUI->_('new timesheet').'">', '',
'<form action="?m=timesheet&a=addedit" method="post">', '</form>'
);
$titleBlock->addCell(
'<input type="submit" class="button" value="'.$AppUI->_('new timesheet').'">', '',
'<form action="?m=timesheet&a=addedit" method="post">', '</form>'
);
}
$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