1 | <?php $style = 'fixe'; ?> |
---|
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 | ?> |
---|
17 | <link rel="shortcut icon" href="/favicon.ico" /> |
---|
18 | <?php echo stylesheet_tag($style.'/style'); ?> |
---|
19 | <?php echo stylesheet_tag($style.'/print'); ?> |
---|
20 | <!--[if lte IE 6]> |
---|
21 | <?php echo stylesheet_tag($style.'/ie6'); ?> |
---|
22 | <script type="text/javascript" src="js/fixe/fonctions_ie.js"></script> |
---|
23 | <script type="text/javascript" src="includes/iepngfix/iepngfix_tilebg.js"></script> |
---|
24 | <style type="text/css"> |
---|
25 | img, div { behavior: url('includes/iepngfix/iepngfix.php') } |
---|
26 | </style> |
---|
27 | <![endif]--> |
---|
28 | </head> |
---|
29 | <body> |
---|
30 | <div id="navigation"><a href="#menu">Aller au menu</a> <a href="#contenu">Aller au contenu</a> <a href="#raccourcis" accesskey="0">Racourcis clavier</a> <a href="#" accesskey="3">Plan du site</a></div> |
---|
31 | <div class="haut"> |
---|
32 | <div class="conteneur_entete"> |
---|
33 | <div class="entete"> |
---|
34 | <div class="logo"> |
---|
35 | <a href="<?php echo url_for('@homepage');?>"><?php echo image_tag($style.'/logo2.png', array('alt' => 'NosDéputés.fr')); ?></a> |
---|
36 | </div> |
---|
37 | <div class="haut_droite"> |
---|
38 | <div class="boite_util"> |
---|
39 | <div class="b_u_h"><div class="b_u_hg"></div><div class="b_u_hd"></div></div> |
---|
40 | <div class="b_u_cont"> |
---|
41 | <?php if(!$sf_user->isAuthenticated()) { ?> |
---|
42 | <form method="post" action="<?php echo url_for('@signin'); ?>"> |
---|
43 | <input type="text" name="signin[login]" id="signin_login" size="10" class="signin" /> <input type="password" name="signin[password]" id="signin_password" size="10" class="signin" /> <input type="checkbox" name="signin[remember]" id="signin_remember" title="se rappeler de moi" /> |
---|
44 | <input type="submit" value="login" class="bouton_ok" /> |
---|
45 | <a href="<?php echo url_for('@inscription') ?>" class="bouton_ok">S'inscrire</a> |
---|
46 | </form> <?php } |
---|
47 | if($sf_user->isAuthenticated()) |
---|
48 | { |
---|
49 | if($sf_user->getAttribute('is_active') == true) { ?> |
---|
50 | <a href="<?php echo url_for('@citoyen?slug='.$sf_user->getAttribute('slug')); ?>">Mon Profil</a> - |
---|
51 | <?php |
---|
52 | } |
---|
53 | ?> |
---|
54 | Connecté en tant que <?php echo $sf_user->getAttribute('login'); ?> - |
---|
55 | <a href="<?php echo url_for('@signout') ?>">Déconnexion</a> |
---|
56 | <?php } ?> |
---|
57 | </div> |
---|
58 | <div class="b_u_b"><div class="b_u_bg"></div><div class="b_u_bd"></div></div> |
---|
59 | </div> |
---|
60 | </div> |
---|
61 | </div> |
---|
62 | </div> |
---|
63 | <div class="conteneur_menu"> |
---|
64 | <div class="menu" id="menu"> |
---|
65 | <ul> |
---|
66 | <li class="neuf"><a href="<?php echo url_for('@homepage'); ?>">Accueil</a></li> |
---|
67 | <li class="douze"><a href="<?php echo url_for('@list_parlementaires'); ?>">Les Députés</a></li> |
---|
68 | <li class="neuf"><a href="<?php echo url_for('@sections?order=date')?>">Les Lois</a></li> |
---|
69 | <li class="treize"><a href="<?php echo url_for('@list_citoyens')?>">Les Citoyens</a></li> |
---|
70 | <li class="douze"><a href="http://www.assemblee-nationale.fr/">L'Assemblée</a></li> |
---|
71 | </ul> |
---|
72 | <div class="search_box"> |
---|
73 | <form action="<?php echo url_for('@search'); ?>" method="get"> |
---|
74 | <p> |
---|
75 | <input class="rechercher" name="search" type="text" size="15" value="<?php if (isset($_GET['search'])) echo $_GET['search']; ?>"/> |
---|
76 | <?php |
---|
77 | if (isset($_GET['search']) && preg_match('/parlementaire/', $_SERVER['REQUEST_URI'])) $selectdepute = ' selected="selected"'; |
---|
78 | else $selectdepute = ""; |
---|
79 | if (isset($_GET['search']) && preg_match('/circonscription/', $_SERVER['REQUEST_URI'])) $selectcirco = ' selected="selected"'; |
---|
80 | else $selectcirco = ""; |
---|
81 | if (isset($_GET['search']) && preg_match('/profession/', $_SERVER['REQUEST_URI'])) $selectprof = ' selected="selected"'; |
---|
82 | else $selectprof = ""; |
---|
83 | if (isset($_GET['search']) && preg_match('/intervention/', $_SERVER['REQUEST_URI'])) $selectinterv = ' selected="selected"'; |
---|
84 | else $selectinterv = ""; |
---|
85 | if (isset($_GET['search']) && preg_match('/amendement/', $_SERVER['REQUEST_URI'])) $selectamdmt = ' selected="selected"'; |
---|
86 | else $selectamdmt = ""; |
---|
87 | ?> |
---|
88 | <select class="type_recherche" name="type"> |
---|
89 | <option value="depute"<?php echo $selectdepute; ?>>Députés</option> |
---|
90 | <option value="departement"<?php echo $selectcirco; ?>>Départements</option> |
---|
91 | <option value="profession"<?php echo $selectprof; ?>>Profession</option> |
---|
92 | <option value="intervention"<?php echo $selectinterv; ?>>Interventions</option> |
---|
93 | <option value="amendement"<?php echo $selectamdmt; ?>>Amendements</option> |
---|
94 | </select> |
---|
95 | <input class="bouton_ok" type="submit" value="ok"/> |
---|
96 | </p> |
---|
97 | </form> |
---|
98 | </div> |
---|
99 | </div> |
---|
100 | </div> |
---|
101 | </div> |
---|
102 | <div class="corps"> |
---|
103 | <div class="contenu" id="contenu"> |
---|
104 | <?php if ($sf_user->hasFlash('notice')) :?> |
---|
105 | <p class='flash_notice'><?php echo $sf_user->getFlash('notice'); ?></p> |
---|
106 | <?php endif;?> |
---|
107 | <?php if ($sf_user->hasFlash('error')) :?> |
---|
108 | <p class='flash_error'><?php echo $sf_user->getFlash('error'); ?></p> |
---|
109 | <?php endif;?> |
---|
110 | <?php echo $sf_content ?> |
---|
111 | </div> |
---|
112 | </div> |
---|
113 | <div class="bas"> |
---|
114 | <div class="conteneur_menu_suite"> |
---|
115 | <div class="menu2"> |
---|
116 | <div class="up"> |
---|
117 | <a href="#" title="haut de page"><?php echo image_tag($style.'/mini_logo.png', 'alt=LGT'); ?></a> |
---|
118 | </div> |
---|
119 | <!-- <div class="style_switcher"> |
---|
120 | <form method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>" id="select_style"> |
---|
121 | <p>Style : |
---|
122 | <select name="style" onchange="javascript:this.form.submit()"> |
---|
123 | <option value="defaut">par défaut</option> |
---|
124 | <option value="fixe" selected="selected">fixe</option> |
---|
125 | </select> |
---|
126 | </p> |
---|
127 | <noscript><p><input type="submit" value="ok" /></p></noscript> |
---|
128 | </form> |
---|
129 | </div> --> |
---|
130 | <div class="menu_bas"> |
---|
131 | <ul> |
---|
132 | <li class="dixhuit"><a href="#">Qui sommes nous ?</a></li> |
---|
133 | <li class="treize"><a href="#">Plan du site</a></li> |
---|
134 | </ul> |
---|
135 | </div> |
---|
136 | </div> |
---|
137 | </div> |
---|
138 | </div> |
---|
139 | </body> |
---|
140 | </html> |
---|