Example #1
0
function addedit_university($aggr)
{
    $column_labels = array('ID', 'University name', 'Country', 'Erasmus code');
    $column_types = array('RDONLY', 'text', '*', 'text');
    $column_seldata = db_countries();
    show_edit_form($column_labels, $aggr, $column_types, array($column_seldata));
}
Example #2
0
function addedit_student($st)
{
    $column_labels = array('ID', 'First name', 'Middle names', 'Last name', 'Born', 'Student ID', 'Gender', 'Citizenship', 'E-mail', 'Study programs', 'Year 1st participated');
    $column_types = array('RDONLY', 'text', 'text', 'text', 'date', 'text', '*', '*', 'text', '+', '*');
    $studprogs = db_study_programs(TRUE);
    $cntries = db_countries();
    $years = selection_of_years();
    show_edit_form($column_labels, $st, $column_types, array(array(array('M', 'male'), array('F', 'female')), $cntries, $studprogs, $years));
}