예제 #1
0
파일: index.php 프로젝트: PseudoAj/mfcs
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;
}
예제 #2
0
파일: index.php 프로젝트: PseudoAj/mfcs
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;
}