Ejemplo n.º 1
0
function defineList($tableName)
{
    // $engine = EngineAPI::singleton();
    $l = new listManagement($tableName);
    $l->addField(array("field" => "projectName", "label" => "Project Name"));
    $l->addField(array("field" => "projectID", "label" => "Project ID (Short Name)", "validate" => "alphaNoSpaces"));
    $l->addField(array('field' => "ID", 'label' => "ID", 'type' => "hidden", 'disabled' => TRUE));
    return $l;
}
Ejemplo n.º 2
0
function defineList($tableName)
{
    $l = new listManagement($tableName);
    $l->addField(array("field" => "username", "label" => "Username"));
    $l->addField(array("field" => "firstname", "label" => "First Name", "dupes" => TRUE));
    $l->addField(array("field" => "lastname", "label" => "Last Name", "dupes" => TRUE));
    $l->addField(array("field" => "status", "label" => "Status", "type" => "select", "dupes" => TRUE, "options" => array(array("value" => "Librarian", "label" => "Librarian"), array("value" => "Staff", "label" => "Staff"), array("value" => "Student", "label" => "Student", "selected" => TRUE), array("value" => "Systems", "label" => "Systems"))));
    return $l;
}