Location: PHPKode > projects > Course-manager > courseman-0.1.1/data-schema.php
<?php
  $terms_ref = "href='anmeldebedingungen.php'
   onClick=\"popup = window.open(
		'anmeldebedingungen.php',
		'anmeldebedingungen',
		'height=450,width=500,scrollbars=yes,resizable=yes');
		return false\"
   target='_blank'";
  require_once('objects.php');
  require_once('data-types.php');
  require_once('array-operations.php');
  require_once('abstractions.php');
  require_once('language.php');
  $application_specific_category = $lang_category[$language];
  $course_length = $lang_year[$language];
  $accusative_plural = array(
	"Anrede" => "Anreden",
	"Jahr" => "Jahren",
	"Kategorie" => "Kategorien");
  $anrede =& vertically_layouted_input(mandatory_input(
			multilingual(radio_field(
		"$lang_salutation[$language]",
		"anrede",
		"salutation_translation",
		"translation",
		"salutation")),
		"$lang_salutation_omission[$language]"));
  $personal_data = reduced_input(array(
  	$anrede,
	vertically_layouted_input(identifying_input(mandatory_input(text_field(
		$lang_name[$language],
		"name",
		"person",
		"name"),
		$lang_name_omission[$language]))),
	vertically_layouted_input(identifying_input(mandatory_input(text_field(
		$lang_first_name[$language],
		"vorname",
		"person",
		"first_name"),
		$lang_first_name_omission[$language]))),
	alternative_inputs(array(
		vertically_layouted_input(identifying_input(text_field(
			$lang_email[$language],
			"email",
			"person",
			"email"))),
		numeric_input(vertically_layouted_input(
				identifying_input(text_field(
			$lang_phone[$language],
			"telefon",
			"person",
			"phone"))))),
		$lang_contact_omission[$language]),
	non_saved_input(mandatory_input(checkbox_field(
		$lang_terms_accepted[$language],
		"anmeldebedingungen",
		0,
		0),
		$lang_terms_omission[$language]))));
  $table_registration = array(
  	"person" => array(
		 "table" => "registration_person",
		 "data_column" => "id",
		 "registration" => "registration",
		 "registration_column" => "person",
		 "login_table" => "person_login",
		 "login_join" =>
		 	"registration_person.person=person_login.person
		AND login='" . pg_escape_string($_REQUEST["user"]) . "'",
		 "password_table" => "person_password",
		 "password_join" =>
			"registration_person.person=person_password.person
		AND hash=md5('" . pg_escape_string($_REQUEST["key"]) . "')",
                 "insertion" => insert_data_simple,
                 "registration_function" => register_data_simple
			 ),
  	"salutation_translation" => array(
		 "table" => "registration_salutation",
		 "data_column" => "salutation",
		 "registration" => "registration",
		 "registration_column" => "salutation",
                 "insertion" => insert_data_predefined,
                 "registration_function" => register_data_predefined
			 )
		);
  $admin_columns = array(
  		$lang_name[$language],
		$lang_first_name[$language],
		$lang_phone[$language],
		$lang_email[$language],
		$lang_prep_course[$language]);
  $column_identifiers = array(
		$lang_prep_course[$language] => "prep_course",
  		$lang_name[$language] => "name",
		$lang_first_name[$language] => "first_name",
		$lang_phone[$language] => "phone",
		$lang_email[$language] => "email");
  $prep_course_conditions[-1] = $lang_prep_course_none[$language];
  $prep_course_conditions[1] = lang_prep_course_last($language);
  $prep_course_conditions[2] = lang_prep_course_before_last($language);
  $prep_course_conditions[3] = lang_prep_course_earlier($language);
  $course_period_option = array(
  	'name' => $lang_course_period[$language],
  	'variable' => 'course_period',
	'configurator' => 'set-course-period.php',
	'default' => static_course_period,
	'choices' => choices_from_database,
	'set-hook' => set_date_tables,
	'choice_query' => "SELECT course_period.id,course_term.term,begin_year "
				. "FROM course_period,course_term "
				. "WHERE course_period.term=course_term.id;");
  $personal_data['calls']($personal_data,'initialize_interoperations',array());
?>
Return current item: Course-manager