Skip to content
Snippets Groups Projects
Commit 022b96e5 authored by Simon Leblanc's avatar Simon Leblanc
Browse files

Modification de la feuille de style d'impression

parent 9e350b58
No related branches found
No related tags found
No related merge requests found
......@@ -129,7 +129,8 @@ function print_header($js = false, $nom_sondage = '')
<title>'.NOMAPPLICATION.'</title>';
}
echo '
<link rel="stylesheet" type="text/css" href="'.get_server_name().'style.css">';
<link rel="stylesheet" type="text/css" href="'.get_server_name().'style.css">
<link rel="stylesheet" type="text/css" href="'.get_server_name().'print.css" media="print">';
echo '</head>';
}
......
@import url(./style.css);
.corps {
width: 100% !important;
overflow-x: none;
width: auto;
border:0;
border-radius:0;
box-shadow:none;
}
.sousbandeau {
display: none !important;
display:none;
}
body {
background-color: none !important;
background:none;
}
.imprimer {
display:none;
}
.casevide {
display:none;
}
div.cadre div.information {
display:none;
}
div.cadre td.ok, div.cadre td.non, div.cadre td.somme {
background:none;
border:1px solid black;
}
div.cadre tr:last-child td {
border:none;
}
div.cadre tr.ajout_reponse {
display:none;
}
div.addcomment {
display:none;
}
\ No newline at end of file
......@@ -261,9 +261,9 @@ echo '</div>'."\n";
echo '<form name="formulaire" action="'.getUrlSondage($dsondage->id_sondage).'"'.'#bas" method="POST" onkeypress="javascript:process_keypress(event)">'."\n";
echo '<input type="hidden" name="sondage" value="' . $numsondage . '"/>';
// Todo : add CSRF protection
echo '<div class="cadre"> '."\n";
echo '<div class="cadre"><div class="information">'."\n";
echo _("If you want to vote in this poll, you have to give your name, choose the values that fit best for you<br>(without paying attention to the choices of the other voters) and validate with the plus button at the end of the line.") ."\n";
echo '<br><br>'."\n";
echo '</div>'."\n";
// Debut de l'affichage des resultats du sondage
echo '<table class="resultats">'."\n";
......@@ -492,7 +492,7 @@ while ($data = $user_studs->FetchNextObject(false)) {
// affichage de la ligne pour un nouvel utilisateur
if (!isset($_SERVER['REMOTE_USER']) || !$user_mod) {
echo '<tr>'."\n";
echo '<tr class="ajout_reponse">'."\n";
echo '<td class="nom">'."\n";
if (isset($_SESSION['nom'])) {
$nom = stripslashes($_SESSION['nom']);
......
......@@ -45,7 +45,7 @@ de Studs.
*/
@import url('./buttons.css');
@import url('print.css') print;
body {
margin:0;
background: #F7FAFE;
......@@ -327,6 +327,10 @@ div.cadre {
text-align:center;
margin:0 auto;
}
/*information au sujet de la participation au sondage*/
div.cadre div.information {
margin-bottom:20px;
}
/*la table des résultats dans l'affichage de sondage*/
div.cadre table.resultats {
background-color: white;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment