示例#1
0
         }
     } elseif ($_POST["btnSubmit"] == "delete") {
         $_STATE->status = DELETE_ORG;
         if (delete_audit()) {
             $_STATE = $_STATE->loopback(LIST_ORGS);
             break 1;
             //re-switch
         }
     } else {
         throw_the_bum_out(NULL, "Evicted(" . __LINE__ . "): invalid btnSubmit " . $_POST["btnSubmit"]);
     }
     break 2;
 case GET_LOGO:
     $_STATE->backup = SELECTED_ORG;
     //set goback
     logo_audit();
     break 2;
 case PREFERENCES:
     require_once "lib/preference_set.php";
     if (!isset($_STATE->prefset)) {
         //first time thru
         $category = $_PERMITS->can_pass(PERMITS::_SUPERUSER) ? PREF_SET::STRUCTURAL : PREF_SET::COSMETIC;
         $_STATE->prefset = serialize(new PREF_SET($_STATE, "a00", $_STATE->record_id, $category, $_STATE->forwho));
     }
     $prefset = unserialize($_STATE->prefset);
     if (!$prefset->state_gate($_STATE)) {
         $_STATE = $_STATE->loopback(SELECTED_ORG);
         break 1;
     }
     $_STATE->prefset = serialize(clone $prefset);
     //leave $prefset intact for later services
示例#2
0
文件: org_edit.php 项目: bbogin/sr2s
                break 2;
            }
            if ($_POST["btnSubmit"] == "update") {
                //IE < v8 submits name/InnerText NOT name/value
                $_STATE->status = STATE::UPDATE;
                if (update_audit()) {
                    $_STATE->status = STATE::DONE;
                }
            } elseif ($_POST["btnSubmit"] == "delete") {
                $_STATE->status = STATE::DELETE;
                if (delete_audit()) {
                    $_STATE->status = STATE::DONE;
                }
            } elseif ($_POST["btnSubmit"] == "logo") {
                $_STATE->status = STATE_LOGO;
                if (logo_audit()) {
                    $_STATE->status = STATE::DONE;
                }
            } else {
                throw_the_bum_out(NULL, "Evicted(" . __LINE__ . "): invalid btnSubmit " . $_POST["btnSubmit"]);
            }
            break 2;
        default:
            throw_the_bum_out(NULL, "Evicted(" . __LINE__ . "): invalid state=" . $_STATE->status);
    }
}
//while & switch
EX_pageStart();
//standard HTML page start stuff - insert scripts here
?>
<script language="JavaScript">