示例#1
0
$valid_version = valid($clean_version, 'ver', $chordate_versions);
$valid_database = valid($clean_database, 'db', $database_types);
if (!$valid_version) {
    $code = variable_error($address, 'version');
    die("{$code}");
}
if (!$valid_database) {
    $code = variable_error($address, 'database');
    die("{$code}");
}
//end of variable checking
//generate HTML code
$html = xml_def();
$html .= doctype_def();
$html .= head_start($address, 'Database of Orthologous Promoters - Chordate Search Page');
$html .= head_js_search($address, 'chordate', $clean_version);
$html .= head_end();
$html .= body_start('Database of Orthologous Promoters');
$html .= link_start();
$html .= link_general($address);
$html .= link_db($address, 'chordate', 'Chordates', $clean_version);
$html .= link_end();
$html .= main_start();
$html .= content_header('Chordate Search Page');
$html .= content_start();
$html .= search_form($address, 'chordate', $clean_version);
$html .= content_end();
/*$html .= content_start();
	$html .= search_form_blat($address,'chordate',$clean_version);
	$html .= content_end();*/
$html .= main_end();
示例#2
0
$valid_version = valid($clean_version, 'ver', $plant_versions);
$valid_database = valid($clean_database, 'db', $database_types);
if (!$valid_version) {
    $code = variable_error($address, 'version');
    die("{$code}");
}
if (!$valid_database) {
    $code = variable_error($address, 'database');
    die("{$code}");
}
//end of variable checking
//generate HTML code
$html = xml_def();
$html .= doctype_def();
$html .= head_start($address, 'Database of Orthologous Promoters - Plant Search Page');
$html .= head_js_search($address, 'plant', $clean_version);
$html .= head_end();
$html .= body_start('Database of Orthologous Promoters');
$html .= link_start();
$html .= link_general($address);
$html .= link_db($address, 'plant', 'Plants', $clean_version);
$html .= link_end();
$html .= main_start();
$html .= content_header('Plant Search Page');
$html .= content_start();
$html .= search_form($address, 'plant', $clean_version);
$html .= content_end();
/*$html .= content_start();
	$html .= search_form_blat($address,'plant',$clean_version);
	$html .= content_end();*/
$html .= main_end();