".__('There was a problem loading group')."";
echo "";
include ("general/footer.php");
exit;
}
}
echo "
".__('Group management')." » ";
if ($id_group) {
echo __('Update group');
} else {
echo __('Create group');
}
echo "
";
$table->width = '450px';
$table->data = array ();
$table->data[0][0] = __('Name');
$table->data[0][1] = print_input_text ('name', $name, '', 35, 100, true);
$table->data[1][0] = __('Icon');
$files = list_files ('images/groups_small/', "png", 1, 0);
$table->data[1][1] = print_select ($files, 'icon', $icon, '', 'None', '', true);
$table->data[1][1] .= ' ';
if ($icon) {
$table->data[1][1] .= '';
}
$table->data[1][1] .= '';
$table->data[2][0] = __('Parent');
$sql = 'SELECT id_grupo, nombre FROM tgrupo ';
if ($id_group)
$sql .= sprintf ('WHERE id_grupo != %d', $id_group);
$table->data[2][1] = print_select_from_sql ($sql, 'id_parent', $id_parent, '', 'None', 0, true);
$table->data[2][1] .= ' ';
if ($id_parent) {
echo '';
}
echo'';
$table->data[3][0] = __('Alerts');
$table->data[3][1] = print_checkbox ('alerts_enabled', 1, ! $alerts_disabled, true);
$table->data[4][0] = __('Custom ID');
$table->data[4][1] = print_input_text ('custom_id', $custom_id, '', 16, 255, true);
echo '';
?>