author | Anthony Ly <anthonyly.com@gmail.com> |
Tue, 12 Mar 2013 18:21:39 +0100 | |
changeset 206 | 919b4ddb13fa |
parent 170 | 8e3a5a6fc63e |
permissions | -rw-r--r-- |
136 | 1 |
<?php get_header(); ?> |
2 |
<div class="column span-17 colborder first" id="maincontent"> |
|
3 |
<div class="content"> |
|
4 |
<!-- --> |
|
5 |
<?php |
|
6 |
$search_text = utf8_decode(stripslashes($_GET['s'])); |
|
7 |
||
8 |
if (isset($_GET['engine'])){ |
|
170
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
136
diff
changeset
|
9 |
|
136 | 10 |
$engine = $_GET['engine']; |
11 |
||
12 |
if ($engine=="0") { |
|
13 |
||
14 |
||
15 |
} else if ($engine=="1") { |
|
16 |
||
170
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
136
diff
changeset
|
17 |
$title = str_replace("%s", $search_text,__("Search results for “%s”",'IriTheme')); |
136 | 18 |
|
19 |
echo (" |
|
20 |
<h2 class='pagetitle'>".$title ."</h2><br/> |
|
21 |
<!-- Google Custom Search Element --> |
|
22 |
<div id=\"cse\" style=\"width:100%;\">Loading</div> |
|
23 |
<script src=\"http://www.google.com/jsapi\" type=\"text/javascript\"></script> |
|
24 |
<script type=\"text/javascript\"> |
|
25 |
google.load('search', '1'); |
|
26 |
|
|
27 |
google.setOnLoadCallback(function(){ |
|
28 |
var cse = new google.search.CustomSearchControl('015480955628162126762:skh3unbz0s8'); |
|
29 |
cse.setNoResultsString('Aucun résultat pour cette requète, essayer avec les autres moteurs.'); |
|
30 |
cse.draw('cse'); |
|
31 |
cse.setLinkTarget(GSearch.LINK_TARGET_BLANK); |
|
32 |
cse.execute('".utf8_encode(addslashes($s))."'); |
|
33 |
}, true); |
|
34 |
|
|
35 |
</script> "); |
|
36 |
||
37 |
} else if ($engine=="2") { |
|
38 |
||
39 |
} else if ($engine=="3") { |
|
40 |
||
41 |
} else { |
|
42 |
||
43 |
} |
|
44 |
}else { |
|
45 |
$engine="0"; |
|
46 |
} |
|
47 |
//echo ("========== ".$engine); |
|
48 |
?> |
|
49 |
|
|
50 |
<!-- LIGNE DE TEMPS / ENMI :: RESEARCH --> |
|
51 |
<?php if ($engine=="2") : ?> |
|
170
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
136
diff
changeset
|
52 |
<h2 class='pagetitle'><?php echo(str_replace("%s", $search_text,__("Rechercher dans les annotations des ENMI “%s”",'IriTheme'))); ?></h2> |
136 | 53 |
<script src="http://amateur.iri.centrepompidou.fr/nouveaumonde/static/js/jquery.DOMWindow.js" type="text/javascript"> |
54 |
</script> |
|
55 |
<script type="text/javascript">// <![CDATA[ |
|
56 |
function launch_search($) { |
|
57 |
$.openDOMWindow({ |
|
58 |
height:662, |
|
59 |
width:1022, |
|
60 |
windowSource:'iframe', |
|
61 |
windowSourceURL: 'http://amateur.iri.centrepompidou.fr/nouveaumonde/enmi/conf/search/loading/', |
|
62 |
windowHTTPType:'get', |
|
63 |
windowPadding:5, |
|
64 |
windowBGColor: 'rgb(239, 239, 239)', |
|
65 |
loader:1, |
|
66 |
loaderImagePath:'http://amateur.iri.centrepompidou.fr/nouveaumonde/static/img/loadingAnimation.gif', |
|
67 |
loaderHeight:13, |
|
68 |
loaderWidth:208, |
|
69 |
windowOverflow:'hidden' |
|
70 |
}); |
|
71 |
$("#search_form").attr("target",$("#DOMWindowIframe").attr("name")); |
|
72 |
} |
|
73 |
jQuery(document).ready(function($) { |
|
74 |
$('#search_form').bind('submit', function(e) { |
|
75 |
$('#search_ts').val(e.timeStamp); |
|
76 |
$(this).attr("action","http://amateur.iri.centrepompidou.fr/nouveaumonde/enmi/ldt/search/?"+e.timeStamp); |
|
77 |
launch_search($); |
|
78 |
}); |
|
79 |
<?php |
|
80 |
if ($search_text!=""){ |
|
81 |
echo ("$(\"#search_form\").submit();"); |
|
82 |
} |
|
83 |
?> |
|
84 |
|
|
85 |
}); |
|
86 |
// ]]></script> |
|
87 |
<div class="box"> |
|
88 |
<div> |
|
89 |
<div id="search"> |
|
90 |
|
|
170
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
136
diff
changeset
|
91 |
<h6><?php _e("Rechercher dans les anotations des Entretiens du nouveau monde industriel :",'IriTheme'); ?><h6> |
136 | 92 |
|
93 |
<form id="search_form" action="http://amateur.iri.centrepompidou.fr/nouveaumonde/enmi/ldt/search/" method="post"> |
|
94 |
|
|
95 |
<input name="edition" type="hidden" value="all" /> <input id="search_ts" name="ts" type="hidden" /> |
|
96 |
<input id="s" name="search" type="text" value="<?php echo($search_text); ?>" style="width:250px;"/> |
|
97 |
<select id="id_type" name="type" style="width:100px;"> |
|
170
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
136
diff
changeset
|
98 |
<option value="all"><?php _e("tous",'IriTheme'); ?></option> |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
136
diff
changeset
|
99 |
<option value="project"><?php _e("Contribution",'IriTheme'); ?></option> |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
136
diff
changeset
|
100 |
<option value="content"><?php _e("content",'IriTheme'); ?></option> |
136 | 101 |
</select> |
102 |
<select id="id_field" name="field" style="width:100px;"> |
|
170
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
136
diff
changeset
|
103 |
<option value="all"><?php _e("all",'IriTheme'); ?></option> |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
136
diff
changeset
|
104 |
<option value="title"><?php _e("title",'IriTheme'); ?></option> |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
136
diff
changeset
|
105 |
<option value="abstract"><?php _e("resum",'IriTheme'); ?></option> |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
136
diff
changeset
|
106 |
<option value="tags"><?php _e("tags",'IriTheme'); ?></option> |
136 | 107 |
</select> |
108 |
<input type="submit" value="recherche" /> |
|
109 |
||
110 |
</form> |
|
111 |
|
|
112 |
</div> |
|
113 |
<br/><br/> |
|
114 |
<hr/> |
|
115 |
<div id="msg"> |
|
170
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
136
diff
changeset
|
116 |
<?php _e("Retrouvez l'ensemble des contenus et annotations et participez à l'annotation collaborative sur le site des Entretien à l'adresse suivante :",'IriTheme'); ?><br/> |
136 | 117 |
<a href="http://amateur.iri.centrepompidou.fr/nouveaumonde/enmi/conf/program/2009_2" target="_blank">http://amateur.iri.centrepompidou.fr/nouveaumonde/enmi/conf/program/2009_2</a> |
118 |
</div> |
|
119 |
<div class="cleaner"> </div> |
|
120 |
</div> |
|
121 |
</div> |
|
122 |
<?php endif; ?> |
|
123 |
|
|
124 |
<!-- LIGNE DE TEMPS / AMATEURS :: SEMINAIRES --> |
|
125 |
<?php if ($engine=="3") : ?> |
|
170
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
136
diff
changeset
|
126 |
<h2 class='pagetitle'><?php echo(str_replace("%s", $search_text,__("Rechercher dans les annotations des séminaires “%s”",'IriTheme'))); ?></h2> |
136 | 127 |
<script src="http://amateur.iri.centrepompidou.fr/nouveaumonde/static/js/jquery.DOMWindow.js" type="text/javascript"> |
128 |
</script> |
|
129 |
<script type="text/javascript">// <![CDATA[ |
|
130 |
function launch_search($) { |
|
131 |
$.openDOMWindow({ |
|
132 |
height:662, |
|
133 |
width:1022, |
|
134 |
windowSource:'iframe', |
|
135 |
windowSourceURL: 'http://web.iri.centrepompidou.fr/fonds/ldt/index/seminaire/__post__', |
|
136 |
windowHTTPType:'post', |
|
137 |
windowPadding:5, |
|
138 |
windowBGColor: 'rgb(239, 239, 239)', |
|
139 |
loader:1, |
|
140 |
loaderImagePath:'http://amateur.iri.centrepompidou.fr/nouveaumonde/static/img/loadingAnimation.gif', |
|
141 |
loaderHeight:13, |
|
142 |
loaderWidth:208, |
|
143 |
windowOverflow:'hidden' |
|
144 |
}); |
|
145 |
$("#search_form").attr("target",$("#DOMWindowIframe").attr("name")); |
|
146 |
} |
|
147 |
jQuery(document).ready(function($) { |
|
148 |
$('#search_form').bind('submit', function(e) { |
|
149 |
//$('#search_ts').val(e.timeStamp); |
|
150 |
$(this).attr("action","http://web.iri.centrepompidou.fr/fonds/ldt/index/seminaire/__post__"); |
|
151 |
launch_search($); |
|
152 |
}); |
|
153 |
<?php |
|
154 |
if ($search_text!=""){ |
|
155 |
echo ("$(\"#search_form\").submit();"); |
|
156 |
} |
|
157 |
?> |
|
158 |
|
|
159 |
}); |
|
160 |
// ]]></script> |
|
161 |
<div class="box"> |
|
162 |
<div> |
|
163 |
<div id="search"> |
|
164 |
<form action="http://web.iri.centrepompidou.fr/fonds/ldt/index/seminaire/__post__" method="post" id="search_form" > |
|
170
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
136
diff
changeset
|
165 |
<h6><?php _e("Recherche interséminaire dans ligne de temps :",'IriTheme'); ?> <h6> |
136 | 166 |
<input id="s" type="text" name="value" value="<?php echo($search_text); ?>" /> |
167 |
<input type="submit" value="rechercher" /> |
|
168 |
</form> |
|
169 |
</div> |
|
170 |
<div class="cleaner"></div> |
|
171 |
</div> |
|
172 |
</div> |
|
173 |
|
|
174 |
<?php endif; ?> |
|
175 |
|
|
176 |
<!-- WORDPRESS / RESEARCH --> |
|
177 |
<?php if (have_posts() and $engine=="0") : ?> |
|
178 |
|
|
170
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
136
diff
changeset
|
179 |
<h2 class="pagetitle"><?php echo(str_replace("%s", $search_text,__("Search results for “%s”",'IriTheme'))); ?></h2> |
136 | 180 |
|
181 |
||
182 |
<?php getSearch(); ?> |
|
183 |
|
|
184 |
|
|
185 |
<div class="navigation"> |
|
186 |
<div class="alignleft"><?php next_posts_link('« Previous') ?></div> |
|
187 |
<div class="alignright"><?php previous_posts_link('Next »') ?></div> |
|
188 |
</div> |
|
189 |
|
|
190 |
<div class="clear"></div> |
|
191 |
|
|
192 |
<?php while (have_posts()) : the_post(); ?> |
|
193 |
|
|
194 |
<div class="post" id="post-<?php the_ID(); ?>"> |
|
170
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
136
diff
changeset
|
195 |
<p class="large nomargin"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e("Permanent Link to",'IriTheme'); the_title(); ?>"><?php the_title(); ?></a></p> |
136 | 196 |
<?php |
197 |
// Support for "Search Excerpt" plugin |
|
198 |
// http://fucoder.com/code/search-excerpt/ |
|
199 |
if ( function_exists('the_excerpt') && is_search() ) { |
|
200 |
the_excerpt_rss(); |
|
201 |
} ?> |
|
202 |
<p class="small"> |
|
203 |
<?php the_time('F jS, Y') ?> | |
|
204 |
<!-- by <?php the_author() ?> --> |
|
205 |
Published in |
|
206 |
<?php the_category(', '); |
|
207 |
if($post->comment_count > 0) { |
|
208 |
echo ' | '; |
|
209 |
comments_popup_link('', '1 Comment', '% Comments'); |
|
210 |
} |
|
211 |
?> |
|
212 |
</p> |
|
213 |
|
|
214 |
</div> |
|
215 |
|
|
216 |
<hr> |
|
217 |
<?php endwhile; ?> |
|
218 |
<div class="navigation"> |
|
219 |
<div class="alignleft"><?php next_posts_link('« Previous') ?></div> |
|
220 |
<div class="alignright"><?php previous_posts_link('Next »') ?></div> |
|
221 |
</div> |
|
222 |
<?php elseif($engine=="0") : ?> |
|
223 |
|
|
170
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
136
diff
changeset
|
224 |
<h2 class="center"><?php _e("No results found.",'IriTheme'); ?></h2> |
136 | 225 |
<?php include (TEMPLATEPATH . '/searchform.php'); ?> |
226 |
|
|
227 |
<?php // <!-- Tag Element if no result--> |
|
228 |
$newoptions['tcolor'] = '3466FE'; |
|
229 |
$newoptions['tcolor2'] = '3268FF'; |
|
230 |
$newoptions['hicolor'] = '000000'; |
|
231 |
$newoptions['bgcolor'] = 'ffffff'; |
|
232 |
$newoptions['speed'] = '100'; |
|
233 |
$newoptions['trans'] = 'false'; |
|
234 |
$newoptions['distr'] = 'true'; |
|
235 |
$newoptions['args'] = ''; |
|
236 |
$newoptions['mode'] = 'tags'; |
|
237 |
$newoptions['width'] = '590'; |
|
238 |
$newoptions['height'] = '410'; |
|
239 |
||
240 |
echo wp_cumulus_insert($newoptions); |
|
241 |
?> |
|
242 |
|
|
243 |
<?php endif; ?> |
|
244 |
|
|
245 |
<!-- --> |
|
246 |
</div> |
|
247 |
</div> |
|
248 |
<div class="column span-5 last"> |
|
249 |
<?php include (TEMPLATEPATH . '/sidebar_single.php'); ?> |
|
250 |
</div> |
|
251 |
<hr></hr> |
|
252 |
<?php get_sidebar(); ?> |
|
253 |
<?php get_footer(); ?> |