Modification de la feuille de style d'impression
This commit is contained in:
parent
9e350b5869
commit
022b96e5fa
@ -129,7 +129,8 @@ function print_header($js = false, $nom_sondage = '')
|
|||||||
<title>'.NOMAPPLICATION.'</title>';
|
<title>'.NOMAPPLICATION.'</title>';
|
||||||
}
|
}
|
||||||
echo '
|
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>';
|
echo '</head>';
|
||||||
}
|
}
|
||||||
|
41
print.css
41
print.css
@ -1,10 +1,43 @@
|
|||||||
|
@import url(./style.css);
|
||||||
|
|
||||||
.corps {
|
.corps {
|
||||||
width: 100% !important;
|
width: auto;
|
||||||
overflow-x: none;
|
border:0;
|
||||||
|
border-radius:0;
|
||||||
|
box-shadow:none;
|
||||||
}
|
}
|
||||||
.sousbandeau {
|
.sousbandeau {
|
||||||
display: none !important;
|
display:none;
|
||||||
}
|
}
|
||||||
body {
|
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;
|
||||||
}
|
}
|
@ -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 '<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 . '"/>';
|
echo '<input type="hidden" name="sondage" value="' . $numsondage . '"/>';
|
||||||
// Todo : add CSRF protection
|
// 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 _("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
|
// Debut de l'affichage des resultats du sondage
|
||||||
echo '<table class="resultats">'."\n";
|
echo '<table class="resultats">'."\n";
|
||||||
@ -492,7 +492,7 @@ while ($data = $user_studs->FetchNextObject(false)) {
|
|||||||
|
|
||||||
// affichage de la ligne pour un nouvel utilisateur
|
// affichage de la ligne pour un nouvel utilisateur
|
||||||
if (!isset($_SERVER['REMOTE_USER']) || !$user_mod) {
|
if (!isset($_SERVER['REMOTE_USER']) || !$user_mod) {
|
||||||
echo '<tr>'."\n";
|
echo '<tr class="ajout_reponse">'."\n";
|
||||||
echo '<td class="nom">'."\n";
|
echo '<td class="nom">'."\n";
|
||||||
if (isset($_SESSION['nom'])) {
|
if (isset($_SESSION['nom'])) {
|
||||||
$nom = stripslashes($_SESSION['nom']);
|
$nom = stripslashes($_SESSION['nom']);
|
||||||
|
@ -45,7 +45,7 @@ de Studs.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@import url('./buttons.css');
|
@import url('./buttons.css');
|
||||||
@import url('print.css') print;
|
|
||||||
body {
|
body {
|
||||||
margin:0;
|
margin:0;
|
||||||
background: #F7FAFE;
|
background: #F7FAFE;
|
||||||
@ -327,6 +327,10 @@ div.cadre {
|
|||||||
text-align:center;
|
text-align:center;
|
||||||
margin:0 auto;
|
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*/
|
/*la table des résultats dans l'affichage de sondage*/
|
||||||
div.cadre table.resultats {
|
div.cadre table.resultats {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
|
Loading…
Reference in New Issue
Block a user