1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160
| <?
include("admin_header.php5");
//Verification des resultats
?>
<title> Menu </title>
<script language="JavaScript">
function imprime_zone(titre, obj)
{
// Définie la zone à imprimer
var zi = document.getElementById(obj).innerHTML;
// Ouvre une nouvelle fenetre
var f = window.open("", "ZoneImpr", " height=1000, width=1000,toolbar=0, menubar=0, scrollbars=1, resizable=1,status=0, location=0, left=10, top=10");
// Définit le Style de la page
f.document.body.style.padding = "5px";
f.document.body.style.fontSize = '5px';
f.document.body.style.color = '#000000';
f.document.body.style.backgroundColor = '#EEFFFF';
f.document.body.style.fontFamily = 'calibri';
// Ajoute les Données
f.document.title = titre;
f.document.body.innerHTML += " " + zi + " ";
// Imprime et ferme la fenetre
f.window.print();
f.window.close();
return true;
}
</script>
<style type="text/css">
<!--
.Style1 {
font-family: Arial, Helvetica, sans-serif;
color: #CCCCCC;
}
#Layer1 {
position:absolute;
left:522px;
top:463px;
width:19px;
height:28px;
z-index:1;
}
.Style4 {
font-size: 12px;
font-weight: bold;
}
.Style6 {
font-family: "Segoe UI";
font-size: 12px;
}
.Style16 {
font-size: 12px;
font-weight: bold;
font-family: Geneva, Arial, Helvetica, sans-serif;
}
.Style17 {
font-family: Geneva, Arial, Helvetica, sans-serif;
}
.Style18 {
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 12px;
}
#Layer2 {
position:absolute;
left:410px;
top:239px;
width:596px;
height:601px;
z-index:1;
}
#Layer4 { position:absolute;
left:14px;
top:29px;
width:193px;
height:77px;
z-index:14;
}
-->
</style>
<body bgcolor="#FFFFFF">
<div id="Layer2">
<div id="Layer4">
<td align="center" width="100%" class="buttonheading"><p>
<fieldset>
<legend class="Style6">Les boutons utiles ...</legend>
<table>
<tbody>
<tr> <br>
<input name="image" type="image" onclick="imprime_zone('commande', 'fr');" value="Imprimer" src ="images/print.PNG" alt= "J'imprime mon menu...">
<br />
</tr>
</tbody>
</table>
</fieldset>
</p>
</div>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<div class="Style6" id='fr'>
<table width="1000" border="0">
<tr>
<th width="80" scope="col">Nom</th>
<th width="100" scope="col">Entrée1</th>
<th width="100" scope="col">Entrée2</th>
<th width="100" scope="col">Entrée3</th>
<th width="100" scope="col">Entrée4</th>
<th width="100" scope="col">résistance1 </th>
<th width="100" scope="col">résistance2 </th>
<th width="100" scope="col">résistance3 </th>
<th width="100" scope="col">résistance4 </th>
<th width="100" scope="col">résistance5 </th>
<th width="100" scope="col">Légumes1</th>
<th width="100" scope="col">Légumes2</th>
<th width="100" scope="col">Légumes3</th>
<th width="100" scope="col">Fromage1</th>
<th width="100" scope="col">Fromage2</th>
<th width="100" scope="col">Fromage3</th>
<th width="100" scope="col">Dessert1</th>
<th width="100" scope="col">Dessert2</th>
<th width="100" scope="col">Dessert3</th>
</tr>
<?
$requete_txt = "SELECT * FROM `menu` WHERE admin_id <> ' ' and menu_semaine = ".$_GET['pays']." and menu_jour = '".$_GET['dep']."' ORDER BY menu_jour AND admin_id
";
$result = $bdd->result_to_array($bdd->query($requete_txt));
for($i=0;$i<count($result);$i++)
{
print("<td>".stripslashes($result[$i][26])."</td>");
print("<td>".stripslashes($result[$i][3])."</td>");
print("<td>".stripslashes($result[$i][4])."</td>");
print("<td>".stripslashes($result[$i][5])."</td>");
print("<td>".stripslashes($result[$i][6])."</td>");
print("<td>".stripslashes($result[$i][7])."</td>");
print("<td>".stripslashes($result[$i][8])."</td>");
print("<td>".stripslashes($result[$i][9])."</td>");
print("<td>".stripslashes($result[$i][10])."</td>");
print("<td>".stripslashes($result[$i][11])."</td>");
print("<td>".stripslashes($result[$i][12])."</td>");
print("<td>".stripslashes($result[$i][13])."</td>");
print("<td>".stripslashes($result[$i][14])."</td>");
print("<td>".stripslashes($result[$i][15])."</td>");
print("<td>".stripslashes($result[$i][16])."</td>");
print("<td>".stripslashes($result[$i][17])."</td>");
print("<td>".stripslashes($result[$i][18])."</td>");
print("<td>".stripslashes($result[$i][19])."</td>");
print("<td>".stripslashes($result[$i][20])."</td>");
print("</tr>");
}
?></table></div id='fr'> |