Beispiel #1
0
     }
     $SCION->status = DATE_DISP;
     //		break 1;
 //		break 1;
 case DATE_DISP:
     date_send($SCION, $HTML);
     $SCION->status = HOURS_DISP;
     //		break 1;
 //		break 1;
 case HOURS_DISP:
     hours_send($SCION, $HTML);
     $SCION->status = BUTTON_DISP;
     //		break 1;
 //		break 1;
 case BUTTON_DISP:
     button_send($SCION, $HTML);
     echo $HTML;
     $SCION->status = STATE::CHANGE;
     break 2;
 case STATE::CHANGE:
     if (isset($_GET["reset"])) {
         $_STATE->goback(1);
         //go back to log_list
         break 3;
     }
     if (isset($_POST["actupd"])) {
         update_activity($SCION);
     } else {
         new_hours($SCION);
         //msgStatus='-' says to "reset", ie. goback(1), so set that state's totals:
         $temp = STATE_pull($_STATE->thread, 1);
Beispiel #2
0
 case DATE_PICK:
     include_once "lib/callback/date_list.php";
     date_select($SCION, $response);
     $SCION->status = array_shift($SCION->path);
     break 1;
     //go back around
 //go back around
 case HOURS_DISP:
     hours_send($SCION, $response);
     $SCION->status = array_shift($SCION->path);
     break 1;
     //go back around
 //go back around
 case BUTTON_DISP:
     include_once "lib/callback/buttons.php";
     button_send($SCION, $response);
     echo $response;
     $SCION->status = STATE::CHANGE;
     break 2;
     //break out
 //break out
 case STATE::CHANGE:
     changes($SCION, $response);
     //DO IT!
     $temp = STATE_pull($_STATE->thread, 1);
     total_hours($temp);
     //re-calculate for all projects
     $temp->replace();
     echo $response;
     break 2;
     //break out