From: Scott P. <wht...@us...> - 2007-09-30 19:11:37
|
Update of /cvsroot/helpmeict/Helpdesk In directory sc8-pr-cvs17:/tmp/cvs-serv11320 Modified Files: issue.php Log Message: Add back in worktimer Fix PostgreSQL create script for tbl_wrktimer Index: issue.php =================================================================== RCS file: /cvsroot/helpmeict/Helpdesk/issue.php,v retrieving revision 1.44 retrieving revision 1.45 diff -C2 -d -r1.44 -r1.45 *** issue.php 13 Sep 2007 00:01:26 -0000 1.44 --- issue.php 30 Sep 2007 19:11:32 -0000 1.45 *************** *** 401,404 **** --- 401,417 ---- } + // Action worktimer. + if ($acl['use_wrktimer']) { + if ($is_pgsql) { + require_once 'system/worktimer_pg.inc'; + } else { + require_once 'system/worktimer_mysql.inc'; + } + + if ($act == 'wrktm') { + wrktm_act(); + $act = ''; + } + } // Action: Edit issue *************** *** 899,902 **** --- 912,931 ---- <?php } + if ($acl['view_wrktimer']) { + $wrktm_labels = array ( + gettext('Start Timer'), + gettext('Stop Timer'), + gettext('Restart Timer'), + gettext('Reset Timer'), + gettext('Add Time to Issue'), + gettext('The time has been copied to the "Spend Time" fields below.\n\nPlease submit the issue to finally save it with the issue.') + ); + if ($is_pgsql) { + require_once 'system/worktimer_pg.inc'; + } else { + require_once 'system/worktimer_mysql.inc'; + } + wrktm_display(); + } ?> <div class="block"> |