if (account_send($SCION, $HTML) == 1) { account_select($SCION, $HTML, $SCION->account_id); $SCION->status = ACTIVITY_DISP; break 1; //don't return yet - go back around } $SCION->status = ACCOUNT_PICK; echo $HTML; break 2; case ACCOUNT_PICK: account_select($SCION, $HTML); $SCION->status = ACTIVITY_DISP; // break 1; // break 1; case ACTIVITY_DISP: activity_send($SCION, $HTML); $SCION->status = ACTIVITY_PICK; echo $HTML; break 2; case ACTIVITY_PICK: activity_select($SCION, $HTML); if ($SCION->columns > 0) { //tabular style $SCION->status = HOURS_DISP; break 1; //go back around } $SCION->status = DATE_DISP; // break 1; // break 1; case DATE_DISP:
//go back around } $SCION->status = ACCOUNT_PICK; echo $response; break 2; //break out //break out case ACCOUNT_PICK: include_once "lib/callback/account.php"; account_select($SCION, $response); $SCION->status = array_shift($SCION->path); break 1; //go back around //go back around case ACTIVITY_DISP: activity_send($SCION, $response); $SCION->status = ACTIVITY_PICK; echo $response; break 2; //break out //break out case ACTIVITY_PICK: activity_select($SCION, $response); $SCION->status = array_shift($SCION->path); break 1; //go back around //go back around case DATE_DISP: include_once "lib/callback/date_list.php"; date_send($SCION, $response); $SCION->status = DATE_PICK;