Glavna stranica | Popis datoteka | Članovi klasa u datoteci

template_servisi.php

Dokumenacija za ovu datoteku.
00001 <?
00002 /**************************************************************************************
00003  Studentski Informacijski servis, 2004
00004  **************************************************************************************
00005  template_servisi.php
00006  repozitorij funkcija koje definisi izgled formi za prijavljivanje ispita,
00007  pregled rokova, slanje zahtjeva za potvrde i jos ponesto...
00008 
00009 
00010  Srdjan Segvic - srle
00011  **************************************************************************************
00012  **************************************************************************************
00013  This program is free software; you can redistribute it and/or modify
00014  it under the terms of the GNU General Public License as published by
00015  the Free Software Foundation; either version 2 of the License, or
00016  (at your option) any later version.
00017 
00018  This program is distributed in the hope that it will be useful,
00019  but WITHOUT ANY WARRANTY; without even the implied warranty of
00020  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00021  GNU Library General Public License for more details.
00022 
00023  You should have received a copy of the GNU General Public License
00024  along with this program; if not, write to the Free Software
00025  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00026  **************************************************************************************/
00027 
00028 //
00029 // Funkcija definise izgled forme za izbor servisa
00030 //
00031 function printServisiMain(){
00032         global $theme, $text_color1;
00033         echo "\n<!----- funkcija: printServisiMain - START ----->\n";
00034         echo "                  
00035             <table height=\"250\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
00036               <tr>
00037                 <td height=\"20\" valign=\"top\"><font color=\"".$text_color1."\" class=\"textsize1\">
00038                <div align=\"right\">"._SSERVICEFOR." <b> " .$_SESSION['ime_prezime'] . " </b>, "._SSERVICEINDEXNR." <b>" .$_SESSION['index']. "</b>, "._SSERVICEDEP." <b>" .$_SESSION['naziv_od'] ." <br><br><br></b></div></font></td>
00039               </tr>
00040               <tr> 
00041                 <td width=\"1011\" height=\"107\" align=\"center\" valign=\"middle\"> 
00042                   <table width=\"588\" border=\"0\" cellpadding=\"0\" cellspacing=\"4\">
00043                     <tr> 
00044                       <td width=\"152\" height=\"25\" valign=\"middle\" bgcolor=\"#C2C6D6\" class=\"table\"> 
00045                         <table width=\"150\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">
00046                           <tr align=\"center\" valign=\"middle\"> 
00047                             <td width=\"10\" bgcolor=\"#C2C6D6\"> <div align=\"center\"><strong><font color=\"".$text_color1."\" class=\"textsize1\">::</font></strong></div></td>
00048                             <td width=\"250\" height=\"15\"  background=\"template/".$theme."/shadeup.jpg\" class=\"table\"> 
00049                               <div align=\"center\"><a href=\"prijava.php\" target=\"_self\"><strong><font class=\"textsize1\"><strong>
00050                               "._SSERVICEADDEXAM."</strong></font></strong></a></div></td>
00051                             <td width=\"10\" bgcolor=\"#C2C6D6\"> <div align=\"center\"><strong><font class=\"textsize1\"><font color=\"".$text_color1."\">:: 
00052                                 </font></font></strong></div></td>
00053                           </tr>
00054                         </table></td>
00055                       <td width=\"25\" align=\"left\" valign=\"middle\"> <div align=\"center\"><font class=\"textsize1\"><img src=\"template/".$theme."/small.jpg\" width=\"15\" height=\"16\"></font></div></td>
00056                       <td width=\"401\" valign=\"middle\"><font class=\"textsize1\">
00057                       "._SSERVICEADDEXAMEXPL." </font></td>
00058                     </tr>
00059                     <tr> 
00060                       <td width=\"152\" height=\"25\" valign=\"middle\"  bgcolor=\"#C9D1C7\" class=\"table\"> 
00061                         <table width=\"150\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">
00062                           <tr align=\"center\" valign=\"middle\"> 
00063                             <td width=\"10\" bgcolor=\"#C9D1C7\"> <div align=\"center\"><strong><font color=\"".$text_color1."\" class=\"textsize1\">::</font></strong></div></td>
00064                             <td width=\"250\" height=\"15\"  background=\"template/".$theme."/shadeup.jpg\" class=\"table\"> 
00065                               <div align=\"center\"><a href=\"rokovi.php\"><strong><font class=\"textsize1\"><strong>
00066                               "._SSERVICEEXAMTIME."</strong></font></strong></a></div></td>
00067                             <td width=\"10\" bgcolor=\"#C9D1C7\"> <div align=\"center\"><strong><font class=\"textsize1\"><font color=\"".$text_color1."\">:: 
00068                                 </font></font></strong></div></td>
00069                           </tr>
00070                         </table></td>
00071                       <td align=\"left\" valign=\"middle\"> <div align=\"center\"><img src=\"template/".$theme."/smallg.jpg\" width=\"15\" height=\"16\"></div></td>
00072                       <td valign=\"middle\"><font class=\"textsize1\">
00073                       "._SSERVICEEXAMTIMEEXPL."</font></td>
00074                     </tr>
00075                     <tr> 
00076                       <td width=\"152\" height=\"25\" valign=\"middle\"  bgcolor=\"#D5D0C4\" class=\"table\"> 
00077                         <table width=\"150\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">
00078                           <tr align=\"center\" valign=\"middle\"> 
00079                             <td width=\"10\" bgcolor=\"#D5D0C4\"> 
00080                               <div align=\"center\"><strong><font color=\"".$text_color1."\" class=\"textsize1\">::</font></strong></div></td>
00081                             <td width=\"250\" height=\"15\"  background=\"template/".$theme."/shadeup.jpg\" class=\"table\"> 
00082                               <div align=\"center\"><a href=\"rstudij.php\"><strong><font class=\"textsize1\"><strong>
00083                               "._SSERVICEREQ1."</font></strong></a></div></td>
00084                             <td width=\"10\" bgcolor=\"#D5D0C4\"> <div align=\"center\"><strong><font class=\"textsize1\"><font color=\"".$text_color1."\">:: 
00085                                 </font></font></strong></div></td>
00086                           </tr>
00087                         </table></td>
00088                       <td align=\"left\" valign=\"middle\"> <div align=\"center\"><img src=\"template/".$theme."/smallo.jpg\" width=\"15\" height=\"16\"></div></td>
00089                       <td valign=\"middle\"><font class=\"textsize1\">
00090                       "._SSERVICEREQ1EXPL."</font></td>
00091                     </tr>
00092                     <tr> 
00093                       <td width=\"152\" height=\"25\" valign=\"middle\"  bgcolor=\"#D2C6D2\" class=\"table\"> 
00094                         <table width=\"150\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">
00095                           <tr align=\"center\" valign=\"middle\"> 
00096                             <td width=\"10\" bgcolor=\"#D2C6D2\"> 
00097                               <div align=\"center\"><strong><font color=\"".$text_color1."\" class=\"textsize1\">::</font></strong></div></td>
00098                             <td height=\"15\"  background=\"template/".$theme."/shadeup.jpg\" class=\"table\"> 
00099                               <div align=\"center\"><a href=\"pispiti.php\"><strong><font class=\"textsize1\"><strong>
00100                               "._SSERVICEREQ2."</strong></font></strong></a></div></td>
00101                             <td width=\"10\" bgcolor=\"#D2C6D2\"> <div align=\"center\"><strong><font class=\"textsize1\"><font color=\"".$text_color1."\">:: 
00102                                 </font></font></strong></div></td>
00103                           </tr>
00104                         </table></td>
00105                       <td align=\"left\" valign=\"middle\"> <div align=\"center\"><img src=\"template/".$theme."/smallp.jpg\" width=\"15\" height=\"16\"></div></td>
00106                       <td valign=\"middle\"><font class=\"textsize1\">
00107                       "._SSERVICEREQ2EXPL."</font></td>
00108                     </tr>
00109                   </table>
00110                 </td>
00111               </tr>
00112               <tr align=\"right\"> 
00113                 <td height=\"146\" align=\"center\"> 
00114                   <table width=\"588\" border=\"0\" cellpadding=\"0\" cellspacing=\"4\">
00115                     <tr> 
00116                       <td width=\"152\" valign=\"middle\"  bgcolor=\"#C2C6D6\" class=\"table\"> 
00117                         <table width=\"150\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">
00118                           <tr align=\"center\" valign=\"middle\"> 
00119                             <td width=\"10\" bgcolor=\"#C2C6D6\"> <div align=\"center\"><strong><font color=\"".$text_color1."\" class=\"textsize1\">::</font></strong></div></td>
00120                             <td width=\"266\" height=\"15\"  background=\"template/".$theme."/shadeup.jpg\" class=\"table\"> 
00121                               <div align=\"center\"><a href=\"kontakt.php?&tip=profesor\"><strong><font class=\"textsize1\"><strong>
00122                               "._SSERVICEPROFESORS."</strong></font></strong></a></div></td>
00123                             <td width=\"10\" bgcolor=\"#C2C6D6\"> <div align=\"center\"><strong><font class=\"textsize1\"><font color=\"".$text_color1."\">:: 
00124                                 </font></font></strong></div></td>
00125                           </tr>
00126                         </table></td>
00127                       <td width=\"21\" align=\"left\" valign=\"middle\"> <div align=\"center\"><font class=\"textsize1\"><img src=\"template/".$theme."/small.jpg\" width=\"15\" height=\"16\"></font></div></td>
00128                       <td width=\"412\" height=\"25\" valign=\"middle\"> <div align=\"left\"><font class=\"textsize1\">
00129                       "._SSERVICEPROFESORSEXPL."</font></div></td>
00130                     </tr>
00131                     <tr> 
00132                       <td width=\"152\" valign=\"middle\"  bgcolor=\"#C9D1C7\" class=\"table\"> 
00133                         <table width=\"150\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">
00134                           <tr align=\"center\" valign=\"middle\"> 
00135                             <td width=\"10\" bgcolor=\"#C9D1C7\"> <div align=\"center\"><strong><font color=\"".$text_color1."\" class=\"textsize1\">::</font></strong></div></td>
00136                             <td height=\"15\"  background=\"template/".$theme."/shadeup.jpg\" class=\"table\"> 
00137                               <div align=\"center\"><a href=\"kontakt.php?&tip=asist\"><strong><font class=\"textsize1\"><strong>
00138                               "._SSERVICEASSISTENTS."</strong></font></strong></a></div></td>
00139                             <td width=\"10\" bgcolor=\"#C9D1C7\"> <div align=\"center\"><strong><font class=\"textsize1\"><font color=\"".$text_color1."\">:: 
00140                                 </font></font></strong></div></td>
00141                           </tr>
00142                         </table></td>
00143                       <td align=\"left\" valign=\"middle\"> <div align=\"center\"><img src=\"template/".$theme."/smallg.jpg\" width=\"15\" height=\"16\"></div></td>
00144                       <td height=\"25\" valign=\"middle\"><div align=\"left\"><font class=\"textsize1\">
00145                       "._SSERVICEASSISTENTSEXPL."</font></div></td>
00146                     </tr>           
00147                     <tr> 
00148                       <td width=\"152\" valign=\"middle\"  bgcolor=\"#D5D0C4\" class=\"table\"> 
00149                         <table width=\"151\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">
00150                           <tr align=\"center\" valign=\"middle\"> 
00151                             <td width=\"10\" bgcolor=\"#D5D0C4\"> 
00152                               <div align=\"center\"><strong><font color=\"".$text_color1."\" class=\"textsize1\">::</font></strong></div></td>
00153                             <td width=\"127\" height=\"15\" background=\"template/".$theme."/shadeup.jpg\" class=\"table\"> 
00154                               <div align=\"center\"><a href=\"kontakt.php?&tip=sluzba\"><strong><font class=\"textsize1\"><strong>
00155                               "._SSERVICECONTACT."</strong></font></strong></a></div></td>
00156                             <td width=\"12\" bgcolor=\"#D5D0C4\"> <div align=\"center\"><strong><font class=\"textsize1\"><font color=\"".$text_color1."\">:: 
00157                                 </font></font></strong></div></td>
00158                           </tr>
00159                         </table></td>
00160                       <td align=\"left\" valign=\"middle\"> <div align=\"center\"><img src=\"template/".$theme."/smallo.jpg\" width=\"15\" height=\"16\"></div></td>
00161                       <td height=\"25\" valign=\"middle\"><div align=\"left\"><font class=\"textsize1\">
00162                       "._SSERVICECONTACTEXPL."</font></div></td>
00163                     </tr>
00164                   </table>
00165                  </div></td>
00166               </tr>
00167             </table>
00168             </td>
00169         </tr>
00170       </table></td>
00171   </tr>";
00172     echo "\n<!----- funkcija: printServisiMain - KRAJ ----->\n";
00173 }
00174 
00175 //
00176 // Funkcija definise izgled formi za prijavu ispita
00177 // i slanje zahtjeva za izdavanje potvrde o redovnom studiju
00178 //
00179 function printPrijavaStart($naziv){ 
00180         global $theme, $color1, $color4;
00181         echo "\n<!----- funkcija: printPrijavaStart - START ----->\n";
00182         echo "
00183             <div align=\"left\">              
00184               <table width=\"600\" border=\"0\" align=\"left\" cellpadding=\"0\" cellspacing=\"0\">
00185                 <tr align=\"right\" valign=\"top\"> 
00186                   <td width=\"370\" height=\"160\" align=\"center\" valign=\"top\">                     
00187                       <table width=\"339\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
00188                         <tr> 
00189                           <td valign=\"bottom\" class=\"table\"> 
00190                            <table bgcolor=\"".$color1."\" width=\"410\" border=\"0\" cellpadding=\"10\" cellspacing=\"0\">
00191                               <tr bgcolor=\"".$color4."\"> 
00192                                 <td colspan=\"3\" valign=\"middle\"> <div align=\"right\"></div>
00193                                   <div align=\"left\"> 
00194                                     <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
00195                                       <tr> 
00196                                         <td width=\"7%\"><div align=\"center\"><font class=\"textsize1\"><img src=\"template/".$theme."/small.jpg\" width=\"15\" height=\"16\"> 
00197                                             </font></div></td>
00198                                         <td width=\"93%\"><font class=\"textsize1\">
00199                                         ".$naziv."</font></td>
00200                                       </tr>
00201                                     </table>
00202                                   </div></td>
00203                               </tr>";
00204         echo "\n<!----- funkcija: printPrijavaStart - KRAJ ----->\n";
00205 }      
00206 
00207 
00208 //
00209 // Funkcija zaokruzuje izgled forme
00210 // za prijavu ispita
00211 //
00212 function printPrijavaKraj($ime_prezime, $naziv_od, $broj, $prosjecna){
00213         echo "\n<!----- funkcija: printPrijavaKraj - START ----->\n";
00214         echo "
00215                          </table></td>
00216                         </tr>
00217                       </table>
00218                     </td>
00219                   <td width=\"300\" align=\"center\" valign=\"middle\">
00220                   <table width=\"300\" border=\"0\" cellspacing=\"2\" cellpadding=\"0\">
00221                       <tr> 
00222                         <td width=\"100\"><div align=\"right\"><font class=\"textsize1\">
00223                         "._EXAMENROLSTUDENT."</font></div></td>
00224                         <td width=\"200\"><strong><font class=\"textsize1\">
00225                         ".$ime_prezime."
00226                           </font></strong></td>
00227                       </tr>
00228                       <tr>
00229                         <td><div align=\"right\"><font class=\"textsize1\">
00230                         "._EXAMENROLDIVISION."</font></font></div></td>
00231                         <td><strong><font class=\"textsize1\">".$naziv_od."</font></strong></td>
00232                       </tr>
00233                       <tr>
00234                         <td><div align=\"right\"><font class=\"textsize1\">
00235                         "._EXAMENROLSEMESTER."</font></font></div></td>
00236                         <td><strong><font class=\"textsize1\">".toRim($_SESSION['semestar'])."</font></strong></td>
00237                       </tr>
00238                     </table>
00239                   </td>
00240                 </tr>
00241               </table>
00242             </div></td>
00243           <td width=\"8\" align=\"left\" valign=\"top\">&nbsp;</td>
00244         </tr>
00245       </table></td>
00246   </tr>";
00247     echo "\n<!----- funkcija: printPrijavaKraj - KRAJ ----->\n";
00248 }    
00249 
00250 
00251 //
00252 // Funkcija zaoukruzeje izgled forme za slanje 
00253 // zahtjeva o redovnom studiju
00254 //
00255 function printRedovniKraj($broj, $odradjeno, $action){
00256                 echo "\n<!----- funkcija: printRedovniKraj - START ----->\n";
00257                 echo " 
00258                   <td width=\"330\" align=\"center\" valign=\"middle\">
00259                    <table width=\"330\" border=\"0\" cellspacing=\"2\" cellpadding=\"0\">
00260                       <tr> 
00261                         <td width=\"120\"><div align=\"right\"><font class=\"textsize1\">
00262                         "._EXAMENROLSTUDENT."</font></div></td>
00263                         <td width=\"210\"><strong><font class=\"textsize1\">
00264                           ".$_SESSION['ime_prezime']."</font></strong></td>
00265                       </tr>
00266                       <tr> 
00267                         <td><div align=\"right\"><font class=\"textsize1\">
00268                           "._EXAMENROLDIVISION."</font></font></div></td>
00269                         <td><strong><font class=\"textsize1\">".$_SESSION['naziv_od']."</font></strong></td>
00270                       </tr>
00271                       <tr> 
00272                         <td><div align=\"right\"><font class=\"textsize1\">
00273                            "._EXAMENROLSEMESTER."</font></font></div></td>
00274                         <td><strong><font class=\"textsize1\">IX</font></strong></td>
00275                       </tr>                      
00276                       <tr> 
00277                         <td>&nbsp;</td>
00278                         <td>&nbsp;</td>
00279                       </tr>
00280                         <tr> 
00281                         <td><div align=\"right\"><font class=\"textsize1\">
00282                         "._REGSTUDENTREQSENT."</font></div></td>
00283                         <td><strong><font class=\"textsize1\">".$broj."</font></strong></td>
00284                       </tr>
00285                       <tr>
00286                         <td><div align=\"right\"><font class=\"textsize1\">
00287                         "._REGSTUDENTREQPROCESED."</font></div></td>
00288                         <td><strong><font class=\"textsize1\">".$odradjeno."</font></strong></td>";
00289                       if($action=="zahtjev"){
00290                                                 session_unregister('odradjeno');
00291                                                 session_unregister('broj');
00292                                             }
00293                         echo "
00294                         </tr>                   
00295                     </table>
00296                   </td>
00297                 </tr>                
00298                   </td>                  
00299                 </tr>
00300               </table>
00301             </div></td>
00302           <td width=\"8\" align=\"left\" valign=\"top\">&nbsp;</td>
00303         </tr>
00304       </table></td>
00305   </tr>";
00306     echo "\n<!----- funkcija: printRedovniKraj - KRAJ ----->\n";
00307 } 
00308 
00309 
00310 //
00311 // Funkcija ispisuje izgled kontakt forme
00312 // na osnovu proslijedjenog naslova i kontakt osoba
00313 //
00314 function printKontakt($naslov, $content, $broj, $selectname){   
00315         global $theme, $text_color2;
00316         echo "\n<!----- funkcija: printKontakt - START ----->\n";
00317         echo "
00318                                         <tr align=\"center\">
00319                                            <td align=\"center\">
00320                                             <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\" align=\"center\">  
00321                                             <form  method=\"post\" action=\"kontakt.php?&tip=send\">                                                          
00322                                               <tr>
00323                                                 <td  width=\"420\" colspan=\"3\"> <div align=\"left\">
00324                                                    <font color=\"".$text_color2."\" class=\"textsize2\"><strong>
00325                                                    ".$naslov."
00326                                                   </strong></font></div></td>
00327                                              </tr></table></td></tr>";
00328                 echo "
00329                                           <tr>
00330                                            <td>
00331                                             <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\">  
00332                                               <tr>
00333                                                 <td  width=\"420\" colspan=\"3\" class=\"tablelight\"> <div align=\"left\">";
00334                 echo "                                                      <select name=\"emailmail\" style=\"width:300px\">\n";
00335                 echo "                                                          <option selected value = -1>:: ".$selectname." :::::::::::::::::::::::::::::::::::</option>\n";
00336                 $count = 0;
00337                 while ($count<=$broj){
00338                         echo $content[$count];
00339                         $count++;
00340                 }
00341                 echo "                            </div></td>
00342                                              </tr></table></td></tr>";
00343                 echo "
00344                                           <tr>
00345                                            <td>
00346                                             <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\">  
00347                                               <tr>
00348                                                 <td  width=\"420\" colspan=\"3\"> <div align=\"left\">
00349                                                    <font color=\"".$text_color2."\" class=\"textsize2\"><strong>
00350                                                 "._CONTACTMESSAGETITLE."
00351                                                   </strong></font></div></td>
00352                                              </tr></table></td></tr>";
00353                 echo "
00354                                           <tr>
00355                                            <td>
00356                                             <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\">  
00357                                               <tr>
00358                                                 <td  width=\"420\" colspan=\"3\" class=\"tablelight\"> <div align=\"left\"> 
00359                                                  <input type=\"text\" name=\"subjectmail\" style=\"width:300px\">    
00360                                                   </div></td>                                           
00361                                              </tr></table></td></tr>";
00362                 echo "
00363                                           <tr>
00364                                            <td>
00365                                             <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\">  
00366                                               <tr>
00367                                                 <td  width=\"420\" colspan=\"3\"> <div align=\"left\">
00368                                                    <font color=\"".$text_color2."\" class=\"textsize2\"><strong>
00369                                                  "._CONTACTMESSAGETEXT."
00370                                                   </strong></font></div></td>
00371                                              </tr></table></td></tr>";
00372                 echo "
00373                                           <tr>
00374                                            <td>
00375                                             <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\">  
00376                                               <tr>
00377                                                 <td  width=\"420\" colspan=\"3\" class=\"tablelight\"> <div align=\"left\">
00378                                                  <textarea name=\"textmail\" cols=40 rows=6 style=\"width:300px\"></textarea>
00379                                                 </div></td>
00380                                              </tr></table></td></tr>";                                       
00381                 echo "
00382                                           <tr>
00383                                            <td>
00384                                             <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\">  
00385                                               <tr>
00386                                                 <td  width=\"420\" colspan=\"3\"> <div align=\"right\">
00387                                                    <font color=\"".$text_color2."\" class=\"textsize2\"><strong>
00388                                                  <input type=\"submit\" name=\"posalji\" value=\""._CONTACTSENDBUTTON."\">    
00389                                                   </strong></font></div></td>
00390                                              </tr></table></td></tr>";
00391                 
00392                 echo "
00393                                 </table>
00394                               </td>
00395                           </table></td>
00396                         </tr>";
00397                 echo "\n<!----- funkcija: printKontakt - KRAJ ----->\n";
00398 }
00399 
00400 //
00401 // funkcija definise izgled forme prijave ispita
00402 // u prvom koraku - izboru predmeta
00403 //
00404 function printPrijavaPredmetForm($predmet_content, $broj){
00405         global $theme, $text_color2;    
00406                 echo "\n<!----- funkcija: printPrijavaPredmetForm - START ----->\n";
00407                 echo "                                        
00408                                               <tr>
00409                                               <form  method=\"post\" action=\"prijava.php?&action=rok\">
00410                                                 <td><div align=\"center\">
00411                                                             <select name=\"predmet_id\" onchange=\"this.form.submit()\" style=\"width:350px\">
00412                                                                 <option selected value = 0>:: "._SERVICESSUBJECT." :::::::::::::::::::::::::::::::::::</option>\n";
00413         $count = 0;
00414         while ($count < $broj){
00415                 echo "                                                          ".$predmet_content[$count];
00416                 $count++;
00417                 }
00418                 echo "
00419                                                             </select>
00420                                                 </td>
00421                                              </tr>
00422                                              <tr>
00423                                                 <td colspan=\"3\"> <div align=\"right\"><font color=\"".$text_color2."\" class=\"textsize2\">
00424                                                 <strong>"._EXAMENROLCHOSESUBJECT."</strong></font></div>
00425                                                 </td>
00426                                               </tr>
00427                                               <tr> 
00428                                                 <td colspan=\"3\"> <div align=\"right\"> 
00429                                                 <input type=\"submit\" name=\"posalji\" value=\""._EXAMENROLSENDBUTTON."\" disabled=\"true\">
00430                                                 </div></td>
00431                                               </tr>
00432                                               </form>";
00433                 echo "\n<!----- funkcija: printPrijavaPredmetForm - KRAJ ----->\n";
00434 }
00435 
00436 //
00437 // funkcija definise izgled forme prijave ispita
00438 // u drugom koraku - izboru roka
00439 //
00440 function printPrijavaRokForm($naziv, $rok_content, $broj_rok, $broj, $pred_id){
00441         global $theme, $text_color2;    
00442                 echo "\n<!----- funkcija: printPrijavaRokForm - START ----->\n";
00443                 echo "
00444                                               <tr>
00445                                               <form  method=\"post\" action=\"prijava.php?&action=prijava\">
00446                                                 <td valign=\"middle\" width=\"220\"> <div align=\"center\">
00447                                                         <font color=\"".$text_color2."\" class=\"textsize2\"><strong><div align=\"right\">
00448                                                         ". $naziv. " >> </div></strong></font>
00449                                                 <td width=\"170\"><div align=\"center\">
00450                                                         <select name=\"rokID\">
00451                                                         <option selected value = 0>:: "._EXAMENROLEXAMDATE." :::::::::::::::::::</option>\n";
00452         $count = 0;
00453         while ($count < $broj_rok){
00454                 echo "                                                          ".$rok_content[$count];
00455                 $count++;
00456                 }
00457                 echo "            
00458                                                         </select></div>
00459                                                 </td>
00460                                               <tr>
00461                                                 <td colspan=\"3\"><div align=\"right\"><font color=\"".$text_color2."\" class=\"textsize2\">
00462                                                         <strong>"._EXAMENROLSENDINGFOR." ". $broj .". "._EXAMENROLSENDINGFORTIME." </strong></font></div>
00463                                                         <div align=\"right\"></div>
00464                                                 </td>
00465                                               </tr>
00466                                               <tr> 
00467                                                 <td><div align=\"left\"><font color=\"".$text_color2."\" class=\"textsize2\">
00468                                                         <input type=\"hidden\" name=\"predmet_id\" value=\"".$pred_id."\">
00469                                                         <a href=\"prijava.php\" targe=\"_self\"><< "._EXAMENROLGOBACK." </a></font>
00470                                                         <td colspan=\"2\"><div align=\"right\">";
00471         if ($broj_rok>0) {
00472                 echo "
00473                                                         <input type=\"submit\" name=\"posalji\" value=\""._EXAMENROLSENDBUTTON."\">";
00474         }
00475         else {
00476                 echo "
00477                                                         <input type=\"submit\" name=\"posalji\" value=\""._EXAMENROLSENDBUTTON."\" disabled=\"true\">";
00478         }
00479                 echo "
00480                                                         </div>
00481                                                 </td>
00482                                               </tr>
00483                                               </form>";
00484                 echo "\n<!----- funkcija: printPrijavaRokForm - KRAJ ----->\n";
00485 }
00486 
00487 //
00488 // funkcija definise izgled forme prijave ispita
00489 // u trecem koraku - obavjestenju da je ispit prijavljen
00490 //
00491 function printPrijavaPrijavljenForm($naziv, $datum_ispita){
00492         global $theme, $text_color2;    
00493                 echo "\n<!----- funkcija: printPrijavaPrijavljenForm - START ----->\n";
00494                 echo "
00495                                               <tr>
00496                                                 <td valign=\"default\" width=\"100%\"> <div align=\"left\">
00497                                                         <font color=\"".$text_color2."\" class=\"textsize1\"><strong><div align=\"center\">
00498                                                          "._EXAMENROLSUCCESFORSUBJECT."</div></strong></font>
00499                                                 </td>
00500                                               </tr>
00501                                               <tr>
00502                                                 <td valign=\"default\" width=\"100%\"> <div align=\"center\">
00503                                                         <font color=\"".$text_color2."\" class=\"textsize2\"><strong><div align=\"center\"><b>
00504                                                         ".$naziv . "</b></div></strong></font></td></tr>
00505                                               <tr>
00506                                                 <td valign=\"left\" width=\"100%\"> <div align=\"left\">
00507                                                         <font color=\"".$text_color2."\" class=\"textsize1\"><strong><div align=\"center\">
00508                                                         "._EXAMENROLONDATETIME."</div></strong></font>
00509                                                 </td>
00510                                               </tr>
00511                                               <tr>
00512                                                 <td valign=\"left\" width=\"100%\"> <div align=\"center\">
00513                                                         <font color=\"".$text_color2."\" class=\"textsize2\"><strong><div align=\"center\"><b>
00514                                                         ".$datum_ispita . "</b></div></strong></font>
00515                                                 </td>
00516                                               </tr>";
00517                 echo "\n<!----- funkcija: printPrijavaPrijavljenForm - KRAJ ----->\n";
00518 }
00519 
00520 
00521 //
00522 // funkcija definise izgled forme za slanje zahtjeva za izdavanje potvrde o redovnom studiju
00523 // u prvom koraku - unosu svrhe zahtjeva
00524 //
00525 function printRedovniSvrhaForm($broj){
00526         global $theme, $text_color2;    
00527                 echo "\n<!----- funkcija: printRedovniSvrhaForm - START ----->\n";
00528                 echo "
00529                                               <tr> 
00530                                               <form  method=\"post\" action=\"rstudij.php?&action=zahtjev\">
00531                                                 <td  colspan=\"3\"> <div align=\"left\"><font color=\"".$text_color2."\" class=\"textsize2\">
00532                                                         <strong>"._REGSTUDENTREQREASON."</strong></font></div>
00533                                                 </td>
00534                                               </tr> 
00535                                               <tr>
00536                                                 <td  colspan=\"3\"> <div align=\"center\">
00537                                                         <textarea name=\"svrha\" cols=45 rows=2 style=\"width:350px\"></textarea>
00538                                                 </td>
00539                                               </tr> 
00540                                               <tr> 
00541                                                 <td colspan=\"3\"> <div align=\"right\"><font color=\"".$text_color2."\" class=\"textsize2\"><strong>
00542                                                         "._FINEXAMSREQUESTSENDING." ". $broj .". "._FINEXAMSREQUESTSENDINGTIME."</strong></font></div>
00543                                                 </td>
00544                                               </tr>
00545                                               <tr>
00546                                                 <td colspan=\"3\"> <div align=\"right\"> 
00547                                                         <input type=\"submit\" name=\"Submit\" value=\""._FINEXAMSREQUESTSENDBUTTON."\"></div>
00548                                                 </td>
00549                                                </tr>
00550                                         </table>
00551                                       </td>
00552                                    </tr>
00553                                 </table>
00554                              </form>
00555                          </td>";
00556                 echo "\n<!----- funkcija: printRedovniSvrhaForm - KRAJ ----->\n";
00557 }
00558 
00559 //
00560 // funkcija definise izgled forme za slanje zahtjeva za izdavanje potvrde o polozenim ispitima
00561 // u prvom koraku - prikazu ocjena
00562 //
00563 function printPolozeniIspitiForm($polozeni_pred, $counter, $prosjecna, $broj_zahtjeva){
00564         global $theme, $bg_color2, $text_color1, $text_color2;  
00565                 echo "\n<!----- funkcija: printPolozeniIspitiForm - START ----->\n";
00566                 echo "
00567                                            <tr>
00568                                               <form  method=\"post\" action=\"pispiti.php?&action=zahtjev\">
00569                                                 <td colspan=\"3\"> <div align=\"left\"><font color=\"".$text_color2."\" class=\"textsize2\"><strong>
00570                                                 "._FINEXAMSREQUESTGRADESTILNOW."</strong></font></div>
00571                                                 </td>
00572                                             </tr>     
00573                                             <tr>
00574                                              <td>
00575                                               <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"4\">
00576                                               <tr>
00577                                                <td>
00578                                                 <table width=\"100%\" height=\"15\" align=\"center\" cellpadding=\"2\" cellspacing=\"0\">
00579                                                   <tr valign=\"middle\"> 
00580                                                         <td width=\"10\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\">
00581                                                                 <div align=\"center\"><strong><font color=\"".$text_color1."\" class=\"textsize1\">::</font></strong></div></td>
00582                                                         <td class=\"table\" background=\"template/".$theme."/shadeup.jpg\"> <div align=\"center\"><font class=\"textsize1\"><strong>"._SERVICESSUBJECT."</strong></font></div></td>
00583                                                         <td width=\"10\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\"> <div align=\"center\"><strong><font class=\"textsize1\"><font color=\"".$text_color1."\">::
00584                                                                 </font></font></strong></div></td>
00585                                                         <td width=\"50\" align=\"center\" class=\"table\" background=\"template/".$theme."/shadeup.jpg\">
00586                                                                 <div align=\"center\"><strong><font class=\"textsize1\">
00587                                                                 "._SERVICESGRADE."</font></strong></div></td>
00588                                                         <td width=\"10\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\"> <div align=\"center\"><strong><font class=\"textsize1\"><font color=\"".$text_color1."\">::
00589                                                                 </font></font></strong></div></td>                                              
00590                                                         <td width=\"200\" align=\"center\" class=\"table\" background=\"template/".$theme."/shadeup.jpg\"> 
00591                                                                 <div align=\"center\"><font class=\"textsize1\"><strong>
00592                                                                 "._SERVICESDATEOFFINALGRADE."</strong></font></div></td>
00593                                                         <td width=\"10\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\"> <div align=\"center\"><strong><font class=\"textsize1\"><font color=\"".$text_color1."\">:: 
00594                                                                 </font></font></strong></div></td>
00595                                                    </tr>
00596                                                 </table>
00597                                                </td>
00598                                               </tr>";
00599         $count = 0;     
00600         while ($count < $counter){
00601                 echo "
00602                                               <tr>
00603                                                 <td>
00604                                                 <table width=\"100%\" height=\"15\" align=\"center\" cellpadding=\"2\" cellspacing=\"0\">
00605                                                   <tr valign=\"middle\"> 
00606                                                         <td width=\"10\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\"> 
00607                                                                 <div align=\"center\"><strong><font color=\"".$text_color1."\" class=\"textsize1\">::</font></strong></div></td>
00608                                                         <td bgcolor=\"".$bg_color2."\" class=\"table\"> <div align=\"center\"><font class=\"textsize1\"><strong> 
00609                                                                 " .$polozeni_pred[$count][0] . "</strong></font></div></td>
00610                                                         <td width=\"10\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\"> <div align=\"center\"><strong><font class=\"textsize1\"><font color=\"".$text_color1."\">:: 
00611                                                                 </font></font></strong></div></td>
00612                                                         <td width=\"50\" align=\"center\" bgcolor=\"".$bg_color2."\" class=\"table\"> 
00613                                                                 <div align=\"center\"><strong><font class=\"textsize1\">
00614                                                                 " . $polozeni_pred[$count][1] . "</font></strong></div></td>
00615                                                         <td width=\"10\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\"> <div align=\"center\"><strong><font class=\"textsize1\"><font color=\"".$text_color1."\">:: 
00616                                                                 </font></font></strong></div></td>                                              
00617                                                         <td width=\"200\" align=\"center\" bgcolor=\"".$bg_color2."\" class=\"table\"> 
00618                                                                 <div align=\"center\"><font class=\"textsize1\"><strong>
00619                                                                 " . $polozeni_pred[$count][2] . "</strong></font></div></td>
00620                                                         <td width=\"10\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\"> <div align=\"center\"><strong><font class=\"textsize1\"><font color=\"".$text_color1."\">:: 
00621                                                                 </font></font></strong></div></td>
00622                                                    </tr>
00623                                                 </table>
00624                                                </td>
00625                                               </tr>";
00626                 $count++;
00627                 }
00628                 echo "
00629                                               </table>
00630                                             </td>
00631                                            </tr>
00632                                               <tr> 
00633                                                 <td colspan=\"3\"> <div align=\"center\"><font color=\"".$text_color2."\" class=\"textsize1\"><strong>
00634                                                         :: "._SERVICESAVGGRADE." = ".$prosjecna." ::</strong></font></div>
00635                                                 </td>
00636                                               </tr>
00637                                               <tr> 
00638                                                 <td colspan=\"3\"> <div align=\"right\"><font color=\"".$text_color2."\" class=\"textsize2\"><strong>
00639                                                 "._FINEXAMSREQUESTSENDING." ". $broj_zahtjeva .". "._FINEXAMSREQUESTSENDINGTIME."</strong></font></div>
00640                                                 </td>
00641                                               </tr>
00642                                               <tr>
00643                                                 <td colspan=\"3\"> <div align=\"right\">
00644                                                         <input type=\"submit\" name=\"Submit\" value=\""._FINEXAMSREQUESTSENDBUTTON."\">
00645                                                         </div>
00646                                                 </td>
00647                                               </tr>
00648 
00649                                         </form>
00650                                         </table>
00651                                        </td>
00652                                       </tr>
00653                                      </table>                                   
00654                                 ";
00655                 echo "\n<!----- funkcija: printPolozeniIspitiForm - KRAJ ----->\n";
00656 }
00657 
00658 //
00659 // funkcija definise izgled forme za prikaz
00660 // rokova ispita
00661 //
00662 function printRokoviForm($rok_pred, $counter, $prijavljen, $rok_prijav, $count_prijavljen){
00663         global $theme, $text_color1, $bg_color2, $color4;       
00664                 echo "\n<!----- funkcija: printRokoviForm - START ----->\n";
00665                 echo "
00666                                               <tr>
00667                                                 <td>
00668                                                 <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"4\">
00669                                                 <tr><td>
00670                                                 <table width=\"100%\" height=\"15\" align=\"center\" cellpadding=\"2\" cellspacing=\"0\">
00671                                                   <tr valign=\"middle\"> 
00672                                                         <td width=\"10\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\"> 
00673                                                                 <div align=\"center\"><strong><font color=\"".$text_color1."\" class=\"textsize1\">::</font></strong></div></td>
00674                                                         <td width=\"60\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\"> 
00675                                                                 <div align=\"center\"><strong><font color=\"".$text_color1."\" class=\"textsize1\">
00676                                                                 "._EXAMTIMETABLETITLEDATE."</font></strong></div></td>
00677                                                         <td width=\"10\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\">
00678                                                                 <div align=\"center\"><strong><font color=\"".$text_color1."\" class=\"textsize1\">::</font></strong></div></td>
00679                                                         <td class=\"table\" background=\"template/".$theme."/shadeup.jpg\"> <div align=\"center\"><font class=\"textsize1\"><strong>
00680                                                                 "._EXAMTIMETABLETITLEEXAMNOTENROLED."</strong></font></div></td>
00681                                                         <td width=\"10\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\"> <div align=\"center\"><strong><font class=\"textsize1\"><font color=\"".$text_color1."\">::
00682                                                                 </font></font></strong></div></td>
00683                                                         <td width=\"100\" align=\"center\" class=\"table\" background=\"template/".$theme."/shadeup.jpg\">
00684                                                                 <div align=\"center\"><strong><font class=\"textsize1\">
00685                                                                 "._EXAMTIMETABLETITLETIME."</font></strong></div></td>
00686                                                         <td width=\"10\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\"> <div align=\"center\"><strong><font class=\"textsize1\"><font color=\"".$text_color1."\">::
00687                                                                 </font></font></strong></div></td>
00688                                                         <td width=\"50\" align=\"center\" class=\"table\" background=\"template/".$theme."/shadeup.jpg\">
00689                                                                 <div align=\"center\"><font class=\"textsize1\"><strong>
00690                                                                  "._EXAMTIMETABLETITLEPLACE."</strong></font></div></td>
00691                                                         <td width=\"10\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\"> <div align=\"center\"><strong><font class=\"textsize1\"><font color=\"".$text_color1."\">::
00692                                                                 </font></font></strong></div></td>
00693                                                    </tr>
00694                                                 </table>
00695                                                </td></tr>";
00696         echo "
00697                                                <tr>
00698                                                 <td>
00699                                                 <table width=\"100%\" height=\"15\" align=\"center\" cellpadding=\"2\" cellspacing=\"0\">";
00700         $count = 0;
00701         $datum = $rok_pred[0][3];
00702         while ($count < $counter){
00703                 if (($rok_pred[$count][3]!= $datum) OR ($count==0)){
00704                         $datum = $rok_pred[$count][3];
00705                         echo "
00706                                     
00707                                           <td width=\"10\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\"> 
00708                                                                 <div align=\"center\"><strong><font color=\"".$text_color1."\" class=\"textsize1\">::</font></strong></div></td>
00709                                                         <td width=\"60\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\">
00710                                                                 <font class=\"textsize1\"><b>".$datum."</b></font></td>
00711                                                         <td width=\"10\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\"> 
00712                                                                 <div align=\"center\"><strong><font color=\"".$text_color1."\" class=\"textsize1\">::</font></strong></div></td>
00713                                                         <td bgcolor=\"".$color4."\" class=\"table\"> <div align=\"center\">
00714                                                                 <a href=\"prijava.php\"><font class=\"textsize1\"><strong>" .$rok_pred[$count][0] . "</strong></font></a></div></td>
00715                                                         <td width=\"10\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\"> <div align=\"center\"><strong><font class=\"textsize1\"><font color=\"".$text_color1."\">:: 
00716                                                                 </font></font></strong></div></td>
00717                                                         <td width=\"100\" align=\"center\" bgcolor=\"".$color4."\" class=\"table\"> 
00718                                                                 <div align=\"center\"><strong><font class=\"textsize1\">
00719                                                                 " . $rok_pred[$count][1] . "</font></strong></div></td>
00720                                                         <td width=\"10\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\"> <div align=\"center\"><strong><font class=\"textsize1\"><font color=\"".$text_color1."\">:: 
00721                                                                 </font></font></strong></div></td>                                              
00722                                                         <td width=\"50\" align=\"center\" bgcolor=\"".$color4."\" class=\"table\"> 
00723                                                                 <div align=\"center\"><font class=\"textsize1\"><strong>
00724                                                                 " . $rok_pred[$count][2] . "</strong></font></div></td>
00725                                                         <td width=\"10\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\"> <div align=\"center\"><strong><font class=\"textsize1\"><font color=\"".$text_color1."\">:: 
00726                                                                 </font></font></strong></div></td>
00727                                                    </tr>";
00728                                                 
00729                         $count++;
00730                 }
00731                 else {
00732                 
00733                 
00734                         echo "
00735                                               
00736                                                   <tr valign=\"middle\"> 
00737                                                         <td width=\"10\" align=\"center\" ></td>
00738                                                         <td width=\"60\" align=\"center\" ></td>
00739                                                         <td width=\"10\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\"> <div align=\"center\"><strong><font class=\"textsize1\"><font color=\"".$text_color1."\">:: 
00740                                                                 </font></font></strong></div></td>
00741                                                         <td bgcolor=\"".$color4."\" class=\"table\"> <div align=\"center\">
00742                                                                 <a href=\"prijava.php\"><font class=\"textsize1\"><strong>" .$rok_pred[$count][0] . "</strong></font></a></div></td>    
00743                                                         <td width=\"10\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\"> <div align=\"center\"><strong><font class=\"textsize1\"><font color=\"".$text_color1."\">:: 
00744                                                                 </font></font></strong></div></td>
00745                                                         <td width=\"100\" align=\"center\" bgcolor=\"".$color4."\" class=\"table\"> 
00746                                                                 <div align=\"center\"><strong><font class=\"textsize1\">
00747                                                                 " . $rok_pred[$count][1] . "</font></strong></div></td>
00748                                                         <td width=\"10\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\"> <div align=\"center\"><strong><font class=\"textsize1\"><font color=\"".$text_color1."\">:: 
00749                                                                 </font></font></strong></div></td>                                              
00750                                                         <td width=\"50\" align=\"center\" bgcolor=\"".$color4."\" class=\"table\"> 
00751                                                                 <div align=\"center\"><font class=\"textsize1\"><strong>
00752                                                                 " . $rok_pred[$count][2] . "</strong></font></div></td>
00753                                                         <td width=\"10\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\"> <div align=\"center\"><strong><font class=\"textsize1\"><font color=\"".$text_color1."\">:: 
00754                                                                 </font></font></strong></div></td>
00755                                                    </tr>";
00756                 $count++;
00757                 }
00758         }
00759         echo "                                  
00760                                                 </table>
00761                                                </td>
00762                                               </tr>
00763                                               </table>
00764                                                </td>
00765                                               </tr>";
00766         echo "
00767                                               <tr>
00768                                                 <td>
00769                                                 <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"4\">
00770                                                 <tr><td>
00771                                                 <table width=\"100%\" height=\"15\" align=\"center\" cellpadding=\"2\" cellspacing=\"0\">
00772                                                   <tr valign=\"middle\"> 
00773                                                         <td width=\"10\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\"> 
00774                                                                 <div align=\"center\"><strong><font color=\"".$text_color1."\" class=\"textsize1\">::</font></strong></div></td>
00775                                                         <td width=\"60\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\"> 
00776                                                                 <div align=\"center\"><strong><font color=\"".$text_color1."\" class=\"textsize1\">
00777                                                                 "._EXAMTIMETABLETITLEDATE."</font></strong></div></td>
00778                                                         <td width=\"10\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\"> 
00779                                                                 <div align=\"center\"><strong><font color=\"".$text_color1."\" class=\"textsize1\">::</font></strong></div></td>
00780                                                         <td class=\"table\" background=\"template/".$theme."/shadeup.jpg\"> <div align=\"center\"><font class=\"textsize1\"><strong> 
00781                                                                 "._EXAMTIMETABLETITLEEXAMENROLED."</strong></font></div></td>
00782                                                         <td width=\"10\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\"> <div align=\"center\"><strong><font class=\"textsize1\"><font color=\"".$text_color1."\">:: 
00783                                                                 </font></font></strong></div></td>
00784                                                         <td width=\"100\" align=\"center\" class=\"table\" background=\"template/".$theme."/shadeup.jpg\"> 
00785                                                                 <div align=\"center\"><strong><font class=\"textsize1\">
00786                                                                 "._EXAMTIMETABLETITLETIME."</font></strong></div></td>
00787                                                         <td width=\"10\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\"> <div align=\"center\"><strong><font class=\"textsize1\"><font color=\"".$text_color1."\">::
00788                                                                 </font></font></strong></div></td>
00789                                                         <td width=\"50\" align=\"center\" class=\"table\" background=\"template/".$theme."/shadeup.jpg\">
00790                                                                 <div align=\"center\"><font class=\"textsize1\"><strong>
00791                                                                  "._EXAMTIMETABLETITLEPLACE."</strong></font></div></td>
00792                                                         <td width=\"10\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\"> <div align=\"center\"><strong><font class=\"textsize1\"><font color=\"".$text_color1."\">:: 
00793                                                                 </font></font></strong></div></td>
00794                                                    </tr>
00795                                                 </table>
00796                                                </td></tr>";
00797         
00798         echo  "
00799                                                 <tr>
00800                                                   <td>
00801                                                    <table width=\"100%\" height=\"15\" align=\"center\" cellpadding=\"2\" cellspacing=\"0\">";
00802         $count = 0;
00803         $datum = $rok_prijav[0][3];
00804         
00805         while ($count < $count_prijavljen){
00806                 if (($rok_prijav[$count][3] != $datum) OR ($count==0)){
00807                         $datum = $rok_prijav[$count][3];
00808                         echo "                                           
00809                                                  <tr valign=\"middle\"> 
00810                                                         <td width=\"10\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\"> 
00811                                                                 <div align=\"center\"><strong><font color=\"".$text_color1."\" class=\"textsize1\">::</font></strong></div></td>
00812                                                         <td width=\"60\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\">
00813                                                         <font class=\"textsize1\"><b>".$datum."</b></font></td>
00814                                                         <td width=\"10\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\"> 
00815                                                                 <div align=\"center\"><strong><font color=\"".$text_color1."\" class=\"textsize1\">::</font></strong></div></td>
00816                                                         <td bgcolor=\"".$bg_color2."\" class=\"table\"> <div align=\"center\"><font class=\"textsize1\"><strong> 
00817                                                                 " .$rok_prijav[$count][0] . "</strong></font></div></td>        
00818                                                         <td width=\"10\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\"> <div align=\"center\"><strong><font class=\"textsize1\"><font color=\"".$text_color1."\">:: 
00819                                                                 </font></font></strong></div></td>
00820                                                         <td width=\"100\" align=\"center\" bgcolor=\"".$bg_color2."\" class=\"table\"> 
00821                                                                 <div align=\"center\"><strong><font class=\"textsize1\">
00822                                                                 " . $rok_prijav[$count][1] . "</font></strong></div></td>
00823                                                         <td width=\"10\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\"> <div align=\"center\"><strong><font class=\"textsize1\"><font color=\"".$text_color1."\">:: 
00824                                                                 </font></font></strong></div></td>                                              
00825                                                         <td width=\"50\" align=\"center\" bgcolor=\"".$bg_color2."\" class=\"table\"> 
00826                                                                 <div align=\"center\"><font class=\"textsize1\"><strong>
00827                                                                 " . $rok_prijav[$count][2] . "</strong></font></div></td>
00828                                                         <td width=\"10\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\"> <div align=\"center\"><strong><font class=\"textsize1\"><font color=\"".$text_color1."\">:: 
00829                                                                 </font></font></strong></div></td>
00830                                                    </tr>                ";
00831                 $count++;
00832                 }
00833                 else {                                                          
00834                         echo "
00835                                               
00836                                                   <tr valign=\"middle\"> 
00837                                                         <td width=\"10\" align=\"center\" ></td>
00838                                                         <td width=\"60\" align=\"center\" ></td>
00839                                                         <td width=\"10\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\"> <div align=\"center\"><strong><font class=\"textsize1\"><font color=\"".$text_color1."\">:: 
00840                                                                 </font></font></strong></div></td>
00841                                                         <td bgcolor=\"".$bg_color2."\" class=\"table\"> <div align=\"center\"><font class=\"textsize1\"><strong> 
00842                                                                 " .$rok_prijav[$count][0] . "</strong></font></div></td>        
00843                                                         <td width=\"10\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\"> <div align=\"center\"><strong><font class=\"textsize1\"><font color=\"".$text_color1."\">:: 
00844                                                                 </font></font></strong></div></td>
00845                                                         <td width=\"100\" align=\"center\" bgcolor=\"".$bg_color2."\" class=\"table\"> 
00846                                                                 <div align=\"center\"><strong><font class=\"textsize1\">
00847                                                                 " . $rok_prijav[$count][1] . "</font></strong></div></td>
00848                                                         <td width=\"10\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\"> <div align=\"center\"><strong><font class=\"textsize1\"><font color=\"".$text_color1."\">:: 
00849                                                                 </font></font></strong></div></td>                                              
00850                                                         <td width=\"50\" align=\"center\" bgcolor=\"".$bg_color2."\" class=\"table\"> 
00851                                                                 <div align=\"center\"><font class=\"textsize1\"><strong>
00852                                                                 " . $rok_prijav[$count][2] . "</strong></font></div></td>
00853                                                         <td width=\"10\" align=\"center\" background=\"template/".$theme."/shadeup.jpg\"> <div align=\"center\"><strong><font class=\"textsize1\"><font color=\"".$text_color1."\">:: 
00854                                                                 </font></font></strong></div></td>
00855                                                    </tr>";
00856                 $count++;
00857                 }
00858         }
00859                 echo "                          </table>
00860                                                </td>
00861                                               </tr>";
00862                                               
00863                 echo "                        <tr height=\"40\">
00864                                                 <td>
00865                                                    <table height=\"15\" align=\"right\" cellpadding=\"2\" cellspacing=\"2\">
00866                                                      <tr valign=\"middle\"> 
00867                                                         <td width=\"100\" bgcolor=\"".$color4."\" class=\"table\"> <div align=\"center\"><font class=\"textsize1\"> 
00868                                                                 "._EXAMTIMETABLETITLELEGENDNOT."</font></div></td>
00869                                                         <td width=\"100\" bgcolor=\"".$bg_color2."\" class=\"table\"> <div align=\"center\"><font class=\"textsize1\">
00870                                                                 "._EXAMTIMETABLETITLELEGEND."</font></div></td>
00871                                                         
00872                                                      </tr>
00873                                                    </table>
00874                                                </td>
00875                                               </tr>";
00876                 echo "
00877 
00878                                         </table>
00879                                        </td>
00880                                       </tr>
00881                                      </table>
00882                                     </tr>
00883                                    </td>
00884                                   </table>      
00885                                      ";
00886                 echo "\n<!----- funkcija: printRokoviForm - KRAJ ----->\n";
00887 }
00888 ?>

Generirano Thu Sep 16 17:16:02 2004 projekt: SiS.Student generator: doxygen 1.3.2