Meeskond "Meie menüü"

From ICO wiki
Revision as of 12:11, 9 January 2011 by Eyle (talk | contribs)
Jump to navigationJump to search

1.Luua XML fail vabalt valitud andmete edastamiseks,selle faili skeemifail ning XSL fail

<?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type= "text/xsl" href="menyy.xsl"?> <tooted>

   <toode>
     <ryhm>Supid</ryhm>
     <nimi>Hernesupp</nimi>
     <hind>30</hind>
   </toode>
   <toode>
   	<ryhm>Supid</ryhm>
   	<nimi>Seljanka</nimi>
   	<hind>35</hind>
   </toode>
   <toode>
     <ryhm>Supid</ryhm>
     <nimi>Borš</nimi>
     <hind>35</hind>
   </toode>
   <toode>
     <ryhm>Praed</ryhm>
     <nimi>Hakklihakaste keedukartuliga</nimi>
     <hind>40</hind>
   </toode>  
   <toode>
     <ryhm>Praed</ryhm>
     <nimi>Šnitsel ahjukartuliga</nimi>
     <hind>55</hind>
   </toode>  
   <toode>
     <ryhm>Praed</ryhm>
     <nimi>Risotto</nimi>
     <hind>35</hind>
   </toode>  
   <toode>
     <ryhm>Praelisandid</ryhm>
     <nimi>Porgandisalat</nimi>
     <hind>7</hind>
   </toode>  
   <toode>
     <ryhm>Praelisandid</ryhm>
     <nimi>Sibulasalat</nimi>
     <hind>7</hind>
   </toode>  
   <toode>
     <ryhm>Magustoidud</ryhm>
     <nimi>Roosamanna</nimi>
     <hind>15</hind>
   </toode>  
   <toode>
     <ryhm>Magustoidud</ryhm>
     <nimi>Kompott</nimi>
     <hind>15</hind>
   </toode>  
   <toode>
     <ryhm>Saiakesed</ryhm>
     <nimi>Kaneelirull</nimi>
     <hind>7</hind>
   </toode>  
   <toode>
     <ryhm>Saiakesed</ryhm>
     <nimi>Võisai</nimi>
     <hind>7</hind>
   </toode>  
   <toode>
     <ryhm>Suupisted</ryhm>
     <nimi>Heeringaleib</nimi>
     <hind>9</hind>
   </toode>  
   <toode>
     <ryhm>Suupisted</ryhm>
     <nimi>Pitsalõik</nimi>
     <hind>20</hind>
   </toode>  
   <toode>
     <ryhm>Salatid</ryhm>
     <nimi>Kartulisalat</nimi>
     <hind>15</hind>
   </toode>
   <toode>
     <ryhm>Salatid</ryhm>
     <nimi>Rosolje</nimi>
     <hind>15</hind>
   </toode>
   <toode>
     <ryhm>Kuumad joogid</ryhm>
     <nimi>Kohv</nimi>
     <hind>5</hind>
   </toode>  
   <toode>
     <ryhm>Kuumad joogid</ryhm>
     <nimi>Tee</nimi>
     <hind>10</hind>
   </toode> 
   <toode>
     <ryhm>Külmad joogid</ryhm>
     <nimi>Tomatimahl</nimi>
     <hind>8</hind>
   </toode>   
   <toode>
     <ryhm>Külmad joogid</ryhm>
     <nimi>Apelsinimahl</nimi>
     <hind>8</hind>
   </toode>  
   <toode>
     <ryhm>Külmad joogid</ryhm>
     <nimi>Piim</nimi>
     <hind>8</hind>
   </toode>  
   <toode>
     <ryhm>Külmad joogid</ryhm>
     <nimi>Keefir</nimi>
     <hind>8</hind>
   </toode>     
   </tooted>

2. Luua veebiteenus

Veebiteenus “Kohviku menüü” pakub kohvikupidajale võimalust salvestada toiduvalik, mida kohvik üldse pakub ja valida sealt päevamenüü, mida näeb ka kohviku klient klientrakenduse kaudu.


Kohvikupidaja saab ennast sisse logida kasutajanime ja parooli abil.



Olles sisenenud saab ta tabelisse linnukestega märkida, millised toidud-joogid ta päevamenüüsse valida soovib. Vajutades nupule “Kinnita valik” ilmub tabeli kõrvale päevamenüü eelvalik.