1 | <?php $style = 'xneth'; ?> |
---|
2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
---|
3 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
---|
4 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> |
---|
5 | <head> |
---|
6 | <?php include_http_metas() ?> |
---|
7 | <?php include_metas() ?> |
---|
8 | <?php include_title() ?> |
---|
9 | <?php |
---|
10 | $rss = $sf_request->getParameter('rss'); |
---|
11 | if ($rss) { |
---|
12 | foreach($rss as $r) { |
---|
13 | echo '<link rel="alternate" type="application/rss+xml" title="'.$r['title'].'" href="'.url_for($r['link']).'"/>'; |
---|
14 | } |
---|
15 | } |
---|
16 | $uri = strip_tags($_SERVER['REQUEST_URI']); |
---|
17 | $selectdepute = "";$selectcirco = "";$selectprof = ""; $selectinterv = "";$selectamdmt = "";$selectquestion = ""; $selectcitoyen = ''; |
---|
18 | if ( preg_match('/\/circonscription[\/\?]/', $uri)) |
---|
19 | $selectcirco = ' selected="selected"'; |
---|
20 | else if ( preg_match('/\/profession[\/\?]/', $uri)) |
---|
21 | $selectprof = ' selected="selected"'; |
---|
22 | else if ( preg_match('/\/(interventions?|seance|dossiers?)[\/\?]/',$uri)) |
---|
23 | $selectinterv = ' selected="selected"'; |
---|
24 | else if ( preg_match('/\/amendements?[\/\?]/', $uri)) |
---|
25 | $selectamdmt = ' selected="selected"'; |
---|
26 | else if ( preg_match('/\/question[\/\?]/', $uri)) |
---|
27 | $selectquestion = ' selected="selected"'; |
---|
28 | else if (preg_match('/(\/citoyens?[\/\?]?|\/compterendu|\/commentaires?)/', $uri)) |
---|
29 | $selectcitoyen = 1; |
---|
30 | else if ( !preg_match('/\/(faq|$)/i', $uri)) |
---|
31 | $selectdepute = ' selected="selected"'; |
---|
32 | |
---|
33 | $menu_depute = $selectquestion || $selectdepute || $selectprof || $selectcirco; |
---|
34 | $menu_dossier = $selectinterv || $selectamdmt; |
---|
35 | $menu_citoyen = $selectcitoyen; |
---|
36 | ?> |
---|
37 | <link rel="shortcut icon" href="/favicon.ico" /> |
---|
38 | <?php echo stylesheet_tag($style.'/style.css'); ?> |
---|
39 | <?php echo stylesheet_tag($style.'/print', array('media' => 'print')); ?> |
---|
40 | <!--[if lte IE 6]> |
---|
41 | <?php echo stylesheet_tag($style.'/ie6'); ?> |
---|
42 | <script type="text/javascript" src="<?php echo $sf_request->getRelativeUrlRoot(); ?>/iepngfix/iepngfix_tilebg.js"></script> |
---|
43 | <style type="text/css"> |
---|
44 | img, div { behavior: url('<?php echo $sf_request->getRelativeUrlRoot(); ?>/iepngfix/iepngfix.php') } |
---|
45 | </style> |
---|
46 | <![endif]--> |
---|
47 | <?php echo javascript_include_tag('jquery-1.3.2.min.js'); ?> |
---|
48 | </head> |
---|
49 | <body> |
---|
50 | <div id="contenu"> |
---|
51 | <div id="top"> |
---|
52 | <div class="initiative"> |
---|
53 | <a href="http://www.regardscitoyens.org/" onclick="return(window.open(this.href)?false:true);"><?php echo image_tag($style.'/top_initiative.png', array('alt' => 'Une initiative de RegardsCitoyens.org')); ?></a> |
---|
54 | </div> |
---|
55 | <div id="connected" class="identification"> |
---|
56 | <p id="loggued_top"> |
---|
57 | <a href="/login">Se connecter</a> - |
---|
58 | <a href="/login">Mon compte</a> |
---|
59 | </p> |
---|
60 | </div> |
---|
61 | <script type="text/javascript"><!-- |
---|
62 | $('#connected').load("<?php echo url_for('@identification_ajax'); ?>"); |
---|
63 | --></script> |
---|
64 | </div> |
---|
65 | <div id="header"> |
---|
66 | <a href="<?php echo url_for('@homepage');?>"><?php echo image_tag($style.'/header_logo.png', array('alt' => 'NosDeputés.fr')); ?></a> |
---|
67 | </div> |
---|
68 | <div id="menu"> |
---|
69 | <div class="menu_navigation"> |
---|
70 | <div id="item1"><a href="<?php echo url_for('@homepage'); ?>" title="Accueil"></a></div> |
---|
71 | <div id="item2"><a <?php if ($menu_depute) echo 'class="selected" '; ?>href="<?php echo url_for('@list_parlementaires'); ?>"><span class="gris">Les</span> <span class="vert">D</span><span class="gris">éputés</span></a></div> |
---|
72 | <div id="item3"><a <?php if ($menu_dossier) echo 'class="selected" '; ?>href="<?php echo url_for('@sections?order=date')?>"><span class="gris">Les</span> <span class="orange">D</span><span class="gris">ossiers</span></a></div> |
---|
73 | <div id="item4"><a <?php if ($menu_citoyen) echo 'class="selected" '; ?>href="<?php echo url_for('@list_citoyens?order=date')?>"><span class="gris">Les</span> <span class="bleu">C</span><span class="gris">itoyens</span></a></div> |
---|
74 | <div id="item5"><a href="<?php echo url_for('@faq')?>"><span class="gris">FAQ</span></a></div> |
---|
75 | </div> |
---|
76 | <?php $search = strip_tags($sf_request->getParameter('search'));?> |
---|
77 | <div class="menu_recherche"> |
---|
78 | <form action="<?php echo url_for('@search'); ?>" method="get"> |
---|
79 | <p> |
---|
80 | <select class="type_recherche" name="type"> |
---|
81 | <option value="depute"<?php echo $selectdepute; ?>>Députés</option> |
---|
82 | <option value="departement"<?php echo $selectcirco; ?>>Départements</option> |
---|
83 | <option value="profession"<?php echo $selectprof; ?>>Profession</option> |
---|
84 | <option value="intervention"<?php echo $selectinterv; ?>>Interventions</option> |
---|
85 | <option value="question"<?php echo $selectquestion; ?>>Questions écrites</option> |
---|
86 | <option value="amendement"<?php echo $selectamdmt; ?>>Amendements</option> |
---|
87 | </select> |
---|
88 | <?php echo image_tag($style.'/recherche_fleche.png', array('alt' => '')); ?> |
---|
89 | <input class="rechercher" name="search" type="text" size="15" value="<?php echo $search; ?>"/> |
---|
90 | <input class="bouton_ok" value="" type="submit"/> |
---|
91 | </p> |
---|
92 | </form> |
---|
93 | </div> |
---|
94 | </div> |
---|
95 | <div id="sous_menu"> |
---|
96 | <div id="sous_menu_1" style="display:<?php if ($menu_depute) echo 'block'; else echo 'none'; ?>"> |
---|
97 | <div class="elements_sous_menu"> |
---|
98 | <ul> |
---|
99 | <li><a href="<?php echo url_for('@list_parlementaires'); ?>">Par ordre alphabétique</a> <strong>|</strong></li> |
---|
100 | <li><a href="<?php echo url_for('@list_parlementaires_circo'); ?>">Par circonscription</a> <strong>|</strong></li> |
---|
101 | <li><a href="<?php echo url_for('@parlementaires_tags'); ?>">Par mots clés</a> <strong>|</strong></li> |
---|
102 | <li><a href="<?php echo url_for('@top_global'); ?>">Synthèse</a> <strong>|</strong></li> |
---|
103 | <li><a href="<?php echo url_for('@parlementaire_random'); ?>">Au hasard</a></li> |
---|
104 | </ul> |
---|
105 | </div> |
---|
106 | </div> |
---|
107 | <div id="sous_menu_2" style="display:<?php if ($menu_dossier) echo 'block'; else echo 'none'; ?>"> |
---|
108 | <div class="elements_sous_menu"> |
---|
109 | <ul> |
---|
110 | <li><a href="<?php echo url_for('@sections?order=date'); ?>">Les derniers dossiers</a> <strong>|</strong></li> |
---|
111 | <li><a href="<?php echo url_for('@sections?order=plus'); ?>">Les dossiers les plus discutés</a></li> |
---|
112 | </ul> |
---|
113 | </div> |
---|
114 | </div> |
---|
115 | |
---|
116 | <div id="sous_menu_3" style="display:<?php if ($menu_citoyen) echo 'block'; else echo 'none'; ?>"> |
---|
117 | <div class="elements_sous_menu"> |
---|
118 | <ul> |
---|
119 | <li><a href="<?php echo url_for('@list_citoyens?order=date'); ?>">Tous les citoyens</a> <strong>|</strong></li> |
---|
120 | <li><a href="<?php echo url_for('@commentaires'); ?>">Les derniers commentaires</a> <strong>|</strong></li> |
---|
121 | <li><a href="<?php echo url_for('@compterendu_list'); ?>">Les comptes rendus citoyens</a></li> |
---|
122 | </ul> |
---|
123 | </div> |
---|
124 | </div> |
---|
125 | <div style="text-align: center; margin-top: 27px;"><h2><a href="/simplifions-la-loi">Participez aux débats « Simplifions la loi 2.0 » !</a></h2></div> |
---|
126 | </div> |
---|
127 | <div id="corps_page"> |
---|
128 | <div class="contenu_page"> |
---|
129 | <?php if ($sf_user->hasFlash('notice')) :?> |
---|
130 | <p class='flash_notice'><?php echo $sf_user->getFlash('notice'); ?></p> |
---|
131 | <?php endif;?> |
---|
132 | <?php if ($sf_user->hasFlash('error')) :?> |
---|
133 | <p class='flash_error'><?php echo $sf_user->getFlash('error'); ?></p> |
---|
134 | <?php endif;?> |
---|
135 | <?php echo $sf_content ?> |
---|
136 | </div> |
---|
137 | </div> |
---|
138 | <div id="bottom"> |
---|
139 | <a href="http://www.regardscitoyens.org"><?php echo image_tag($style.'/bottom_qui.png', array('alt' => 'Qui sommes-nous')); ?></a> |
---|
140 | </div> |
---|
141 | </div> |
---|
142 | <script type="text/javascript"> |
---|
143 | $(document).ready(function() { |
---|
144 | if (typeof additional_load != 'undefined') |
---|
145 | additional_load(); |
---|
146 | if (!$('#header_login').attr('value')) { |
---|
147 | $('#header_login').attr('value', 'Identifiant'); |
---|
148 | } |
---|
149 | if (!$('#header_pass').attr('value')) { |
---|
150 | $('#header_pass').attr('value', '______________'); |
---|
151 | } |
---|
152 | }); |
---|
153 | </script> |
---|
154 | <script type="text/javascript"> |
---|
155 | var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); |
---|
156 | document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); |
---|
157 | </script> |
---|
158 | <script type="text/javascript"> |
---|
159 | try { |
---|
160 | var pageTracker = _gat._getTracker("UA-10423931-2"); |
---|
161 | pageTracker._trackPageview(); |
---|
162 | } catch(err) {}</script> |
---|
163 | </body> |
---|
164 | </html> |
---|