Exemplo n.º 1
0
}
// Load in the requested SeriesManager from the DB
$seriesManager = new RowManager_SeriesManager($seriesID);
// if the form was submitted, then load Form Data:
if (isset($_REQUEST['submit'])) {
    $newTitle = $_REQUEST['title'];
}
// set default error Message
$titleError = '';
/***
 *** Process the Data
 ***/
if (isset($_REQUEST['submit'])) {
    if ($newTitle != '') {
        $seriesManager->setTitle($newTitle);
        $seriesManager->updateDBTable();
    } else {
        $titleError = 'Title can\'t be empty';
    }
}
/***
 *** get HTML for display
 ***/
// Now we create a Template object
// NOTE: (optional parameter is to set the path to your template file )
// ex   $template = new Template( "path/to/template/files/here.php" );
// if you don't set it, it assumes the template is in the same directory
// as your script.
//
$template = new Template();
// Now we pass/set the values of variables in the Template