Commit 60badb2a authored by Jean-Paul Saman's avatar Jean-Paul Saman

Cleanup tabs and replace them with spaces.

parent 80504d9a
......@@ -9,7 +9,7 @@
*/
/*
* Copyright (C) 2007, M2X
* Copyright (C) 2007-2008, M2X
*
* Authors: Jean-Paul Saman
*
......@@ -37,7 +37,7 @@ $config['mod_setup_class'] = 'CSetupTimesheet'; // the name of the PHP setup cla
$config['mod_type'] = 'user'; // 'core' for modules distributed with dP by standard, 'user' for additional modules from dotmods
$config['mod_ui_name'] = 'Timesheet'; // the name that is shown in the main menu of the User Interface
$config['mod_ui_icon'] = 'communicate.gif'; // name of a related icon
$config['mod_description'] = 'Timesheet module for hour registrations'; // some description of the module
$config['mod_description'] = 'Timesheet module for hour registration'; // some description of the module
$config['mod_config'] = true; // show 'configure' link in viewmods
// show module configuration with the dPframework (if requested via http)
......@@ -47,19 +47,19 @@ if (@$a == 'setup') {
class CSetupTimesheet {
function configure() { // configure this module
function configure() {
global $AppUI;
$AppUI->redirect( 'm=timesheet&a=configure' ); // load module specific configuration page
return true;
}
function remove() {
$q = new DBQuery;
$q = new DBQuery();
$q->dropTable('timesheet');
$q->exec();
$q->clear();
$q->clear();
$q->dropTable('timesheet_project');
$q->exec();
......@@ -91,7 +91,7 @@ class CSetupTimesheet {
// prepare the creation of a dbTable
$sql = "( " .
" `timesheet_id` int(11) unsigned NOT NULL auto_increment," .
" `timesheet_period` int(11), " .
" `timesheet_period` int(11) NOT NULL default '0', " .
" `timesheet_status` int(4) NOT NULL default '0', " .
" `timesheet_date` int(11) NOT NULL default '0', " .
" `timesheet_creator` int(11) NOT NULL default '0', " .
......
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