Esempio n. 1
0
 switch ($_STATE->status) {
     case STATE::INIT:
         $_STATE->title_singular = $_SESSION["_EXTENSION"]["title_singular"];
         $_STATE->title_plural = $_SESSION["_EXTENSION"]["title_plural"];
         setup($_DB, $_STATE);
         //	$_STATE->msgGreet = "Enter the ".$_STATE->title_singular." data";
         $_STATE->msgGreet = "Add or change info: click on the lefthand column";
         $_STATE->EC_status = "";
         //no line selected
         STATE_new_status($_STATE, FILL_CELLS);
         break 2;
     case FILL_CELLS:
         //fill cells (if edit, starts with Sessions)
         if (isset($_GET["getdesc"])) {
             //asking for the description of a cell
             cell_desc($_DB, $_STATE);
             break 2;
         }
         if (isset($_GET["reset"])) {
             log_list($_DB, $_STATE);
             $_STATE->msgGreet = "Add or change info: click on the lefthand column";
             $_STATE->EC_status = "";
             //no line selected
             break 2;
         }
         switch ($_GET["cell"]) {
             case "EV":
                 //event
                 event_send($_DB, $_STATE);
                 $_STATE->EC_status = "a";
                 //add line selected
Esempio n. 2
0
     //change displayed sheet
     $_STATE = $_STATE->loopback(SELECTED_SPECS);
     require_once "lib/project_select.php";
     $projects = unserialize($_STATE->project_select);
     $projects->set_state($_GET["sheet"]);
     $_STATE->project_select = serialize($projects);
     $_STATE->replace();
     break 1;
 }
 if (isset($_GET["reset"])) {
     $_STATE = $_STATE->loopback(SELECTED_SPECS);
     break 1;
 }
 if (isset($_GET["getdesc"])) {
     //asking for the description of a cell
     cell_desc($_STATE);
     break 2;
 }
 if (isset($_POST["btnPut"])) {
     //asking for a download
     log_put();
     break 2;
 }
 //Add/Update a row of the displayed sheet:
 $SCION = $_STATE->scion_pull();
 //use the child thread
 $response = "@";
 //initialize to do an eval
 while (1 == 1) {
     switch ($SCION->status) {
         //the SCION state gate
Esempio n. 3
0
     require_once "project_select.php";
     $projects = unserialize($_STATE->project_select);
     $projects->set_state($_GET["sheet"]);
     $_STATE->project_select = serialize($projects);
     set_closedCols();
     $_STATE->replace();
     break 1;
 }
 if (isset($_GET["reset"])) {
     $_STATE = $_STATE->goback(1);
     //go back to log_list
     break 1;
 }
 if (isset($_GET["getdesc"])) {
     //asking for the description of a cell
     cell_desc();
     break 2;
 }
 if (isset($_POST["actupd"])) {
     //update an activity
     update_activity($_STATE);
     echo $_STATE->msgStatus;
     break 2;
 }
 if (isset($_POST["btnPut"])) {
     //asking for a download
     log_put();
     break 2;
 }
 if (!(isset($_GET["row"]) || isset($_POST["row"]))) {
     throw_the_bum_out(NULL, "Evicted(" . __LINE__ . "): GET/POST row not supplied");
Esempio n. 4
0
         //		break 1; //no need to break, just fall through
         case SESSIONS_DISP:
             //Info input starting with sessions
             input_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["getdesc"])) {
                 //asking for the description of a cell
                 cell_desc($SCION);
                 break 2;
             }
             if (isset($_GET["reset"])) {
                 $_STATE->goback(1);
                 //go back to log_list
                 break 3;
             }
             new_info($SCION);
             echo $SCION->msgStatus;
             break 2;
         default:
             throw_the_bum_out(NULL, "Evicted(" . __LINE__ . "): error");
     }
 }
 //while & switch