| 1 |
<?php |
<?php |
| 2 |
// $Id$ |
// $Id: timemap.module,v 1.1 2008/06/02 03:43:49 sethfreach Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 389 |
// if so, enter a negative value for the category. the text is informational only. |
// if so, enter a negative value for the category. the text is informational only. |
| 390 |
if ($form_values['op'] == $form_values['done']) { |
if ($form_values['op'] == $form_values['done']) { |
| 391 |
// end the last 'task' entered |
// end the last 'task' entered |
| 392 |
db_query_range("update {timemap_doings} set stop=%d where uid=%d order by time desc limit 1", time(), $user->uid); |
db_query("update {timemap_doings} set stop=%d where uid=%d order by time desc limit 1", time(), $user->uid); |
| 393 |
|
|
| 394 |
// record the 'punch clock' stamp |
// record the 'punch clock' stamp |
| 395 |
db_query("insert into {timemap_doings} (uid, cid, task, time) values (%d, %d, '%s', %d)", |
db_query("insert into {timemap_doings} (uid, cid, task, time) values (%d, %d, '%s', %d)", |