timetracker.git
7 years agoRefactoring - removed not used default parameters from constructors.
anuko [Fri, 3 Mar 2017 17:06:34 +0000 (17:06 +0000)]
Refactoring - removed not used default parameters from constructors.

7 years agoOngoing refactoring of Checkbox class.
anuko [Fri, 3 Mar 2017 15:55:54 +0000 (15:55 +0000)]
Ongoing refactoring of Checkbox class.

7 years agoSome more refactoring in Form classes.
anuko [Fri, 3 Mar 2017 01:22:44 +0000 (01:22 +0000)]
Some more refactoring in Form classes.

7 years agoSome further refactoring in form classes.
anuko [Thu, 2 Mar 2017 19:34:46 +0000 (19:34 +0000)]
Some further refactoring in form classes.

7 years agoRefactoring - some renaming.
anuko [Thu, 2 Mar 2017 19:09:44 +0000 (19:09 +0000)]
Refactoring - some renaming.

7 years agoMore usage of PasswordField element type.
anuko [Wed, 1 Mar 2017 21:59:03 +0000 (21:59 +0000)]
More usage of PasswordField element type.

7 years agoIntroduced PasswordField.class.php to keep things simple.
anuko [Wed, 1 Mar 2017 21:42:08 +0000 (21:42 +0000)]
Introduced PasswordField.class.php to keep things simple.

7 years agoFinished refactoring of the FormElement class.
anuko [Wed, 1 Mar 2017 20:40:18 +0000 (20:40 +0000)]
Finished refactoring of the FormElement class.

7 years agoFurther refactoring of the FormElement class.
anuko [Wed, 1 Mar 2017 19:30:28 +0000 (19:30 +0000)]
Further refactoring of the FormElement class.

7 years agoAdded a comment explaining the purpose of safe functions.
anuko [Wed, 1 Mar 2017 18:43:30 +0000 (18:43 +0000)]
Added a comment explaining the purpose of safe functions.

7 years agoFurther refactoring of the FormElement class to simplify things.
anuko [Wed, 1 Mar 2017 18:25:57 +0000 (18:25 +0000)]
Further refactoring of the FormElement class to simplify things.

7 years agoSome more refactoring.
anuko [Tue, 28 Feb 2017 18:56:21 +0000 (18:56 +0000)]
Some more refactoring.

7 years agoSome renaming.
anuko [Tue, 28 Feb 2017 18:43:27 +0000 (18:43 +0000)]
Some renaming.

7 years agoRefactoring - renamed a few things.
anuko [Tue, 28 Feb 2017 18:24:44 +0000 (18:24 +0000)]
Refactoring - renamed a few things.

7 years agoRemoving unused stuff.
anuko [Tue, 28 Feb 2017 18:13:53 +0000 (18:13 +0000)]
Removing unused stuff.

7 years agoRefactoring - removed unused stuff.
anuko [Tue, 28 Feb 2017 17:34:16 +0000 (17:34 +0000)]
Refactoring - removed unused stuff.

7 years agoSome renaming.
anuko [Tue, 28 Feb 2017 16:09:46 +0000 (16:09 +0000)]
Some renaming.

7 years agoRefactoring - renamed a variable.
anuko [Tue, 28 Feb 2017 15:59:44 +0000 (15:59 +0000)]
Refactoring - renamed a variable.

7 years agoRemoved unused member variable.
anuko [Tue, 28 Feb 2017 14:23:57 +0000 (14:23 +0000)]
Removed unused member variable.

7 years agoRefactoring. Moved a member out of base class.
anuko [Tue, 28 Feb 2017 14:11:24 +0000 (14:11 +0000)]
Refactoring. Moved a member out of base class.

7 years agoRefactoring - renaming things.
anuko [Mon, 20 Feb 2017 01:06:53 +0000 (01:06 +0000)]
Refactoring - renaming things.

7 years agoRefactoring - removedunused stuff and some renaming.
anuko [Mon, 20 Feb 2017 00:33:01 +0000 (00:33 +0000)]
Refactoring - removedunused stuff and some renaming.

7 years agoRemoved unused stuff.
anuko [Mon, 20 Feb 2017 00:08:44 +0000 (00:08 +0000)]
Removed unused stuff.

7 years agoRefactoring - removed unused tabindex.
anuko [Mon, 20 Feb 2017 00:04:30 +0000 (00:04 +0000)]
Refactoring - removed unused tabindex.

7 years agoRefactoring - renamed a couple of variables.
anuko [Sun, 19 Feb 2017 23:55:42 +0000 (23:55 +0000)]
Refactoring - renamed a couple of variables.

7 years agoOngoing refactoring - renamed a variable.
anuko [Sun, 19 Feb 2017 22:14:28 +0000 (22:14 +0000)]
Ongoing refactoring - renamed a variable.

7 years agoOngoing refactoring of form controls.
anuko [Sun, 19 Feb 2017 21:33:27 +0000 (21:33 +0000)]
Ongoing refactoring of form controls.

7 years agoA bit of reuse of old Danish strings.
anuko [Sun, 19 Feb 2017 19:37:13 +0000 (19:37 +0000)]
A bit of reuse of old Danish strings.

7 years agoMore refactoring in the Danish file.
anuko [Sun, 19 Feb 2017 19:17:11 +0000 (19:17 +0000)]
More refactoring in the Danish file.

7 years agoMore refactoring in Danish file.
anuko [Sun, 19 Feb 2017 18:44:02 +0000 (18:44 +0000)]
More refactoring in Danish file.

7 years agoRefactoring in Danish file.
anuko [Sun, 19 Feb 2017 18:16:13 +0000 (18:16 +0000)]
Refactoring in Danish file.

7 years agoSome refactoring in the Danish translation file.
anuko [Sun, 19 Feb 2017 17:42:38 +0000 (17:42 +0000)]
Some refactoring in the Danish translation file.

7 years agoUpdate of translation in da.lang.php (#30)
Jens Brinch [Sun, 19 Feb 2017 16:37:58 +0000 (17:37 +0100)]
Update of translation in da.lang.php (#30)

Have filled in some missing translations and updated some with a new translation, i.e. correction of spelling errors.

7 years agoMore refactoring in Form.class.php.
anuko [Thu, 16 Feb 2017 21:37:42 +0000 (21:37 +0000)]
More refactoring in Form.class.php.

7 years agoRefactoring - removed reference return types from a couple of functions to keep thing...
anuko [Thu, 16 Feb 2017 21:16:17 +0000 (21:16 +0000)]
Refactoring - removed reference return types from a couple of functions to keep things simple.

7 years agoA bit more refactoring in forms to make them leaner.
anuko [Thu, 16 Feb 2017 20:56:26 +0000 (20:56 +0000)]
A bit more refactoring in forms to make them leaner.

7 years agoSmall scale refactoring - renamed a variable.
anuko [Thu, 16 Feb 2017 20:23:41 +0000 (20:23 +0000)]
Small scale refactoring - renamed a variable.

7 years agoResumed refactoring forms, hopefully without breaking reports this time.
anuko [Thu, 16 Feb 2017 20:01:22 +0000 (20:01 +0000)]
Resumed refactoring forms, hopefully without breaking reports this time.

7 years agoRolling back changes in previous 2 commits because we broke reports.
anuko [Thu, 16 Feb 2017 19:08:19 +0000 (19:08 +0000)]
Rolling back changes in previous 2 commits because we broke reports.

7 years agoSoem refactoring to keep things a bit more consistent.
anuko [Thu, 16 Feb 2017 16:12:33 +0000 (16:12 +0000)]
Soem refactoring to keep things a bit more consistent.

7 years agoSome cleanup.
anuko [Thu, 16 Feb 2017 15:41:24 +0000 (15:41 +0000)]
Some cleanup.

7 years agoDutch translation improved.
anuko [Tue, 14 Feb 2017 17:15:33 +0000 (17:15 +0000)]
Dutch translation improved.

7 years agoInitial implementation of predefined expenses.
anuko [Sun, 12 Feb 2017 18:23:28 +0000 (18:23 +0000)]
Initial implementation of predefined expenses.

7 years agoAdded predefined expense selector onto the expenses.php page.
anuko [Sun, 12 Feb 2017 18:09:06 +0000 (18:09 +0000)]
Added predefined expense selector onto the expenses.php page.

7 years agoAdded an edit form for predefined expenses.
anuko [Sun, 12 Feb 2017 15:55:37 +0000 (15:55 +0000)]
Added an edit form for predefined expenses.

7 years agoAdded a delete form for predefined expenses.
anuko [Sun, 12 Feb 2017 15:29:53 +0000 (15:29 +0000)]
Added a delete form for predefined expenses.

7 years agoWork in progress on predefined expenses.
anuko [Sun, 12 Feb 2017 15:18:01 +0000 (15:18 +0000)]
Work in progress on predefined expenses.

7 years agoWork in progress on predefined expenses.
anuko [Sun, 12 Feb 2017 15:12:40 +0000 (15:12 +0000)]
Work in progress on predefined expenses.

7 years agoWork in progress on predefined expenses.
anuko [Sun, 12 Feb 2017 15:04:01 +0000 (15:04 +0000)]
Work in progress on predefined expenses.

7 years agoWork in progress on predefined expenses.
anuko [Sun, 12 Feb 2017 14:44:49 +0000 (14:44 +0000)]
Work in progress on predefined expenses.

7 years agoWork in progress on predefined expenses.
anuko [Sun, 12 Feb 2017 14:30:19 +0000 (14:30 +0000)]
Work in progress on predefined expenses.

7 years agoChanged data type for tt_log comment to TEXT because of _union all_ problems with...
anuko [Sat, 11 Feb 2017 19:38:24 +0000 (19:38 +0000)]
Changed data type for tt_log comment to TEXT because of _union all_ problems with some MySQL installations, specifically version 5.0.95 where cyrillic expense names were corrupted on reports.

7 years agoMore refactoring.
anuko [Tue, 7 Feb 2017 01:04:41 +0000 (01:04 +0000)]
More refactoring.

7 years agoA bit more refactoring.
anuko [Mon, 6 Feb 2017 21:42:59 +0000 (21:42 +0000)]
A bit more refactoring.

7 years agoMore refactoring in Form.class.php.
anuko [Mon, 6 Feb 2017 21:05:20 +0000 (21:05 +0000)]
More refactoring in Form.class.php.

7 years agoA bit of refactoring in Form.class.php.
anuko [Mon, 6 Feb 2017 17:26:59 +0000 (17:26 +0000)]
A bit of refactoring in Form.class.php.

7 years agoRefactored FloatField.class.php.
anuko [Sun, 5 Feb 2017 19:53:32 +0000 (19:53 +0000)]
Refactored FloatField.class.php.

7 years agoFixed constructor calls for FloatField elements to have only one parameter.
anuko [Sun, 5 Feb 2017 19:21:38 +0000 (19:21 +0000)]
Fixed constructor calls for FloatField elements to have only one parameter.

7 years agoRemoved unused stuff.
anuko [Sun, 5 Feb 2017 17:50:47 +0000 (17:50 +0000)]
Removed unused stuff.

7 years agoRefactoring - formatting improvements.
anuko [Sun, 5 Feb 2017 16:02:38 +0000 (16:02 +0000)]
Refactoring - formatting improvements.

7 years agoRefactored ActionErrors.class.php.
anuko [Sun, 5 Feb 2017 15:29:36 +0000 (15:29 +0000)]
Refactored ActionErrors.class.php.

7 years agoRenamed a function for clarity.
anuko [Sun, 5 Feb 2017 00:44:17 +0000 (00:44 +0000)]
Renamed a function for clarity.

7 years agoRefactored Mailer.class.php.
anuko [Sun, 5 Feb 2017 00:40:45 +0000 (00:40 +0000)]
Refactored Mailer.class.php.

7 years agoAdded MIME decoder for SENDER.
anuko [Sat, 4 Feb 2017 20:42:36 +0000 (20:42 +0000)]
Added MIME decoder for SENDER.

7 years agoShared time_script.tpl in mobile timer.tpl as well.
anuko [Sun, 29 Jan 2017 20:53:17 +0000 (20:53 +0000)]
Shared time_script.tpl in mobile timer.tpl as well.

7 years agoIntroduced time_script.tpl for shared script used in time.tpl and time_edit.tpl ...
anuko [Sun, 29 Jan 2017 19:56:37 +0000 (19:56 +0000)]
Introduced time_script.tpl for shared script used in time.tpl and time_edit.tpl - both mobile and regular.

7 years agoAdded missing declarations for better JavaScript.
anuko [Sun, 29 Jan 2017 18:07:53 +0000 (18:07 +0000)]
Added missing declarations for better JavaScript.

7 years agoA bit of cleanup in JavaScript, removed repeated var declarations.
anuko [Sun, 29 Jan 2017 17:28:58 +0000 (17:28 +0000)]
A bit of cleanup in JavaScript, removed repeated var declarations.

7 years agoA bit more consistent usage of quotes in template files.
anuko [Mon, 23 Jan 2017 00:29:53 +0000 (00:29 +0000)]
A bit more consistent usage of quotes in template files.

7 years agoSimplified templates by using the default Smarty escape calls.
anuko [Sun, 22 Jan 2017 23:36:18 +0000 (23:36 +0000)]
Simplified templates by using the default Smarty escape calls.

7 years agoModified templates to use newline in the end of file.
anuko [Sun, 22 Jan 2017 22:52:43 +0000 (22:52 +0000)]
Modified templates to use newline in the end of file.

7 years agoFixed charts to allow display of totals for unassigned projects and tasks.
anuko [Tue, 17 Jan 2017 22:01:30 +0000 (22:01 +0000)]
Fixed charts to allow display of totals for unassigned projects and tasks.

7 years agoAllowed null tasks in project and tasks tracking mode.
anuko [Tue, 17 Jan 2017 21:18:26 +0000 (21:18 +0000)]
Allowed null tasks in project and tasks tracking mode.

7 years agoMade sorting case insensitive for more situations.
anuko [Fri, 13 Jan 2017 20:41:33 +0000 (20:41 +0000)]
Made sorting case insensitive for more situations.

7 years agoFixed ordering of projects.
anuko [Fri, 13 Jan 2017 18:26:48 +0000 (18:26 +0000)]
Fixed ordering of projects.

8 years agoDutch translation improved.
anuko [Thu, 17 Nov 2016 16:47:47 +0000 (16:47 +0000)]
Dutch translation improved.

8 years agoCentered mobile pages on screen.
anuko [Sat, 5 Nov 2016 20:23:45 +0000 (20:23 +0000)]
Centered mobile pages on screen.

8 years agoUpdate the 101% table height to use a fixed scrollbar via CSS (#28)
Andréas Lundgren [Mon, 24 Oct 2016 14:15:04 +0000 (16:15 +0200)]
Update the 101% table height to use a fixed scrollbar via CSS (#28)

Tested on Windows 10 on latest Chrome, Firefox 43+47+48+49, Internet Explorer 11+10 (and emulated 9+8+7) and Microsoft Edge 38.

8 years agoUpdate filename for exported reports to the users language (#27)
Andréas Lundgren [Mon, 24 Oct 2016 14:11:05 +0000 (16:11 +0200)]
Update filename for exported reports to the users language (#27)

* Update filename for exported reports to the users language

Now defaults to "report" in the users language, or English if the word isn't set. Also includes start date and end date for the generated report.

{report}_{start_date}_{end_date}.xml/csv/pdf

* Add missing dot to filename

8 years agoFixing white space.
anuko [Mon, 24 Oct 2016 11:11:24 +0000 (11:11 +0000)]
Fixing white space.

8 years agoFix the last deprecation notices on class names for PHP 7+ (#26)
Andréas Lundgren [Mon, 24 Oct 2016 10:53:58 +0000 (12:53 +0200)]
Fix the last deprecation notices on class names for PHP 7+ (#26)

* Modified classes: ttSysConfig, ttUser and CustomFields plugin

8 years agoUpdate Swedish translation (#25)
Andréas Lundgren [Mon, 24 Oct 2016 10:45:01 +0000 (12:45 +0200)]
Update Swedish translation (#25)

* Uncompleted indicators section

8 years agoA bit of cleanup in Catalan file.
anuko [Mon, 24 Oct 2016 01:52:27 +0000 (01:52 +0000)]
A bit of cleanup in Catalan file.

8 years agoSome improvements in localization files.
anuko [Sun, 23 Oct 2016 17:15:02 +0000 (17:15 +0000)]
Some improvements in localization files.

8 years agoDutch translation improved.
anuko [Sun, 23 Oct 2016 16:56:03 +0000 (16:56 +0000)]
Dutch translation improved.

8 years agoFinished renaming variables after PR#24 merge.
anuko [Sun, 23 Oct 2016 16:48:24 +0000 (16:48 +0000)]
Finished renaming variables after PR#24 merge.

8 years agoMore renaming.
anuko [Sun, 23 Oct 2016 16:35:02 +0000 (16:35 +0000)]
More renaming.

8 years agoWork in progress renaming variables after PR#24 merge.
anuko [Sun, 23 Oct 2016 16:26:58 +0000 (16:26 +0000)]
Work in progress renaming variables after PR#24 merge.

8 years agoSome more renaming.
anuko [Sun, 23 Oct 2016 16:02:16 +0000 (16:02 +0000)]
Some more renaming.

8 years agoWork in progress renaming things.
anuko [Sun, 23 Oct 2016 14:48:39 +0000 (14:48 +0000)]
Work in progress renaming things.

8 years agoSome more renaming.
anuko [Sun, 23 Oct 2016 14:35:48 +0000 (14:35 +0000)]
Some more renaming.

8 years agoRenaming in progress.
anuko [Sun, 23 Oct 2016 14:27:30 +0000 (14:27 +0000)]
Renaming in progress.

8 years agoWork in progress renaming things.
anuko [Sun, 23 Oct 2016 14:07:59 +0000 (14:07 +0000)]
Work in progress renaming things.

8 years agoVersion change for PR#24, work in progress renaming things.
anuko [Sun, 23 Oct 2016 13:49:17 +0000 (13:49 +0000)]
Version change for PR#24, work in progress renaming things.

8 years agoAdd option to profile_edit.php to show/hide users uncompleted entries (#24)
Andréas Lundgren [Sun, 23 Oct 2016 13:22:44 +0000 (15:22 +0200)]
Add option to profile_edit.php to show/hide users uncompleted entries (#24)

I'll try to do some renaming after this merge.

8 years agoVersion change for PR#23, fixed dbinstall.php for it to work.
anuko [Sun, 16 Oct 2016 21:55:15 +0000 (21:55 +0000)]
Version change for PR#23, fixed dbinstall.php for it to work.

8 years agoExpense Item description - Follow-up to pull request #22 (#23)
Kim Keown [Sun, 16 Oct 2016 21:42:38 +0000 (15:42 -0600)]
Expense Item description - Follow-up to pull request #22 (#23)

* mysql.sql suggested revision Line 330

Follow-up for pull request #22: $cl_item_name for expenses.php and expense_edit.php was changed to textarea to allow a larger expense description input area. However, database input size had been overlooked and was fortunately noticed upon review.

Updated revision of mysql.sql to replace varchar(255) with a text property to allow a detailed description of the expense.

Line 330
  `name` text NOT NULL,                # expense item name (what is an expense for)

* dbinstall.php revision Line 612

Follow-up to pull request #22:
Previously expenses.php and expense_edit.php $cl_item_name field was revised to 'textarea' to provide a larger input box and longer description of the expense.
However, database character allowance had been overlooked and was fortunately noticed upon review.

- Update mysql.sql to replace varchar(255) with the 'text' property to increase allowable entry length.
Limit character input via expenses.php and expense_edit.php $cl_item_name textarea 'maxlength'.

- Update dbinstall.php with an identical revision.
Line 612
   Original: `name` varchar(255) NOT NULL,
    `name` text NOT NULL,

* mysql.sql revision Line 330

Follow-up to pull request #22:
Previously expenses.php and expense_edit.php $cl_item_name field was revised to 'textarea' to provide a larger input box and longer description of the expense. However, database character allowance had been overlooked and was fortunately noticed upon review.

- Update mysql.sql to replace tt_expense_items 'name' property varchar(255) with the text property to increase allowable entry length.
Limit character input via expenses.php and expense_edit.php $cl_item_name textarea 'maxlength'. Update dbinstall.php with an identical revision.

Line 330
(Original:  `name` varchar(255) NOT NULL,)
`name` text NOT NULL,

*  expense_edit.php revision Line 122

Follow-up to pull request #22:
Previously expenses.php and expense_edit.php $cl_item_name field was revised to 'textarea' to provide a larger input box and longer expense description. However, database character allowance had been overlooked and was fortunately noticed upon review. Accordingly, the textarea maxlength revision was removed.

- Update mysql.sql to replace tt_expense_items 'name' property varchar(255) with the text property to increase allowable entry length.
- Update dbinstall.php with an identical revision.

 - Update expenses.php and expense_edit.php $cl_item_name textarea to include a maxlength property of 800 characters.
The expense record is useful for recording any added debit or fixed-rate charge, and a generous character limit will allow a detailed description that can be easily understood in billing logs and reports.

Line 122
Original:
$form->addInput(array('type'=>'textarea', 'name'=>'item_name','style'=>'width: 250px; height:'.NOTE_INPUT_HEIGHT.'px;','value'=>$cl_item_name));

Revised:
$form->addInput(array('type'=>'textarea','maxlength'=>'800','name'=>'item_name','style'=>'width: 250px; height:'.NOTE_INPUT_HEIGHT.'px;','value'=>$cl_item_name));

*  expenses.php revision Line 130

Follow-up to pull request #22:
Previously expenses.php and expense_edit.php $cl_item_name field was revised to 'textarea' to provide a larger input box and longer expense description. However, database character allowance had been overlooked and was fortunately noticed upon review. Accordingly, the textarea maxlength revision was removed.

- Update mysql.sql to replace tt_expense_items 'name' property varchar(255) with the text property to increase allowable entry length.
- Update dbinstall.php with an identical revision.

 - Update expenses.php and expense_edit.php $cl_item_name textarea to include a maxlength property of 800 characters.
The expense record is useful for recording any added debit or fixed-rate charge, and a generous character limit will allow for a detailed description that can be easily understood within billing logs and reports.

Line 130
Original:
$form->addInput(array('type'=>'textarea', 'name'=>'item_name','style'=>'width: 250px; height:'.NOTE_INPUT_HEIGHT.'px;','value'=>$cl_item_name));

Revised:
$form->addInput(array('type'=>'textarea','maxlength'=>'800','name'=>'item_name','style'=>'width: 250px; height:'.NOTE_INPUT_HEIGHT.'px;','value'=>$cl_item_name));

8 years agoA little bit of cleanup in ca.lang.php file.
anuko [Sun, 16 Oct 2016 21:19:06 +0000 (21:19 +0000)]
A little bit of cleanup in ca.lang.php file.

8 years agoSome refactoring and version change for PR#20.
anuko [Sun, 16 Oct 2016 20:02:16 +0000 (20:02 +0000)]
Some refactoring and version change for PR#20.

8 years agoReplaced boolval calls to cast to bool so that the app works with PHP 5.2.
anuko [Sun, 16 Oct 2016 19:25:55 +0000 (19:25 +0000)]
Replaced boolval calls to cast to bool so that the app works with PHP 5.2.