Пример #1
0
$varValueInput["label"] = "varValue";
$varValueInput["required"] = true;
$inputs = array($varNameInput, $varValueInput);
PageBuilder::formTextInput($inputs);
PageBuilder::closeForm($form_options);
//Update Session Values Form
$form_options["button_text"] = "Update Session Variable";
PageBuilder::openForm($form_options);
$mediumHeader["text"] = "Update Session Value:";
PageBuilder::header($mediumHeader);
$varNameInput["name"] = "updatevarName";
$varValueInput["name"] = "updateVarValue";
$inputs = array($varNameInput, $varValueInput);
PageBuilder::formTextInput($inputs);
PageBuilder::closeForm($form_options);
//Delete Session Values Form
$form_options["button_text"] = "Delete Variable";
PageBuilder::openForm($form_options);
$mediumHeader["text"] = "Delete Session Var:";
PageBuilder::header($mediumHeader);
$varNameInput["name"] = "delVarName";
$inputs = array($varNameInput);
PageBuilder::formTextInput($inputs);
PageBuilder::closeForm($form_options);
//Show current variables
$largeHeader["text"] = "Session Name: " . $Session->sessionName;
PageBuilder::header($largeHeader);
$mediumHeader["text"] = "Session Values:";
PageBuilder::header($mediumHeader);
$Session->printVars();
PageBuilder::closePage();