Subversion Repositories Applications.papyrus

Rev

Rev 2085 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2085 Rev 2091
Line 20... Line 20...
20
	// TODO: comment stopper le chargement de #zone_contenu_corps//PAPYRUS_CONTENU_CORPS ?
20
	// TODO: comment stopper le chargement de #zone_contenu_corps//PAPYRUS_CONTENU_CORPS ?
21
	// réponse: cf: papyrus/applications/afficheur/afficheur.php :: afficherContenuCorps() 
21
	// réponse: cf: papyrus/applications/afficheur/afficheur.php :: afficherContenuCorps() 
22
	// TODO: link href dans <body> est non-standard
22
	// TODO: link href dans <body> est non-standard
23
	if($tab_applette_arguments[1] == 'results') {
23
	if($tab_applette_arguments[1] == 'results') {
24
		return <<<EOF
24
		return <<<EOF
25
<link href="/papyrus/applettes/google/google.css" rel="stylesheet" type="text/css" />
-
 
26
<gcse:searchresults-only queryParameterName="r"></gcse:searchresults-only>
25
<gcse:searchresults-only queryParameterName="r"></gcse:searchresults-only>
27
EOF;
26
EOF;
28
	}
27
	}
29
	$url = $_SERVER['REDIRECT_URL'];
28
	$url = $_SERVER['REDIRECT_URL'];
30
	/*$d = array();
29
	/*$d = array();
31
	parse_str($_SERVER['QUERY_STRING'], $d);
30
	parse_str($_SERVER['QUERY_STRING'], $d);
32
	var_dump(urldecode(http_build_query($d)));die;*/
31
	var_dump(urldecode(http_build_query($d)));die;*/
33
	$script = file_get_contents(dirname(__FILE__) . '/google.html');
32
	$script = file_get_contents(dirname(__FILE__) . '/google.html');
34
	return <<<EOF
33
	return <<<EOF
-
 
34
<link href="/papyrus/applettes/google/google.css" rel="stylesheet" type="text/css" />
35
$script
35
$script
36
<!-- <gcse:search></gcse:search> -->
36
<!-- <gcse:search></gcse:search> -->
37
<gcse:searchbox-only resultsUrl="http://papy$url" queryParameterName="r"></gcse:searchbox-only>
37
<gcse:searchbox-only resultsUrl="http://papy$url" queryParameterName="r"></gcse:searchbox-only>
38
EOF;
38
EOF;
39
}
39
}