Modification de la feuille de style d'impression

This commit is contained in:
Simon Leblanc 2011-06-27 01:34:06 +02:00
parent 9e350b5869
commit 022b96e5fa
4 changed files with 47 additions and 9 deletions

View File

@ -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>';
}

View File

@ -1,10 +1,43 @@
@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;
}

View 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']);

View File

@ -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;