Glavna stranica | Popis datoteka | Članovi klasa u datoteci

template_menu_ob.php

Dokumenacija za ovu datoteku.
00001 <?
00002 /********************************************************************************
00003  *  Studentski Informacijski servis, 2004                                       *
00004  ********************************************************************************
00005  *  template_menu_ob.php                                                        *
00006  *  izgled menu kod listanja                                                    *
00007  *  obavjestenja                                                                *
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 
00030 //
00031 // Funkcija koja ispusuje i organizuje izgled obavjestenja
00032 //
00033 function printObavjestenje($head, $naslov, $text, $datum, $autor, $color, $picture) {
00034         global $theme, $text_color2, $color4;
00035                         echo "<table width=\"537\" cellpadding=\"2\" cellspacing=\"2\">\n";
00036                         echo "     <tr>\n";
00037                         echo "       <td width=\"466\" valign=\"bottom\" > <div align=\"left\"><font color=\"".$text_color2."\"> \n";
00038                         echo "            </font><font color=\"".$text_color2."\" class=\"textsize1\"><strong>::"; 
00039                         echo " ". $head . " :: ". $naslov . "::</strong></font><font color=\"".$text_color2."\">&nbsp;\n"; 
00040                         echo "            </font></div></td>\n";
00041                         echo "        <td width=\"102\" valign=\"middle\" > <div align=\"right\"><img src=\"template/".$theme."/".$picture."\" width=\"15\" height=\"16\"></div></td>\n";
00042                         echo "     </tr>\n";
00043                         echo "      <tr>\n"; 
00044                         echo "        <td height=\"18\" colspan=\"2\" background=\"template/".$theme."/shadeup.jpg\" bgcolor=\"".$color4."\" class=\"table\"><font size=\"1\">&nbsp;\n";
00045                         echo "          </font> \n";
00046                         echo "          <div align=\"right\"></div></td>\n";
00047                         echo "      </tr>\n";
00048                         echo "      <tr bgcolor=\"".$color."\"> \n";
00049                         echo "        <td height=\"92\" colspan=\"2\" class=\"table\"> \n";                               
00050                         echo "       <table width=\"100%\" cellpadding=\"3\"><tr><td><strong><font color=\"".$text_color2."\" class=\"textsize1\">\n".$text."</font></strong></td></tr></table>";
00051                         echo "</td>\n";
00052                         echo "      </tr><tr> \n";
00053                         echo "        <td height=\"18\" colspan=\"2\" background=\"template/".$theme."/shadeup.jpg\" bgcolor=\"".$color4."\" class=\"table\"> \n";
00054                         echo "          <div align=\"center\"><font color=\"".$text_color2."\"><strong></strong></font></div>\n";
00055                         echo "          <div align=\"center\"><font color=\"".$text_color2."\"><strong><font class=\"textsize1\">" . $datum . "</font></strong></font></div></td>\n";
00056                         echo "     </tr><tr> \n";
00057                         echo "        <td colspan=\"2\" > <div align=\"right\"><font color=\"".$text_color2."\" class=\"textsize1\"><strong>\n"; 
00058                         echo $autor . "</strong></font></div></td>\n";
00059                         echo "      </tr><tr><td colspan=\"2\">&nbsp;</td></tr></table>\n";
00060                 }
00061 
00062 
00063 
00064 //
00065 //ispisuje menu blok sa zadanim naslovom i sadrzajem
00066 //
00067 function menuBlok ($title, $content){
00068         global $theme, $color4;
00069         echo "
00070                         <table width=\"150\" border=\"0\" cellpadding=\"0\" cellspacing=\"2\">
00071               <tr> 
00072                 <td width=\"100\" height=\"21\" valign=\"bottom\"><font class=\"textsize1\"><strong>:: 
00073                   ". $title ." ::</strong></font></td>
00074                 <td width=\"56\"><div align=\"right\"></div></td>
00075               </tr>
00076               <tr> 
00077                 <td height=\"18\" colspan=\"2\" background=\"template/".$theme."/shadeup.jpg\" class=\"table\">&nbsp;</td>
00078               </tr>
00079               <tr> 
00080                 <td  colspan=\"2\" bgcolor=\"".$color4."\" class=\"table\"> 
00081                    " . $content . "
00082               </td>
00083                           </tr>
00084               <tr> 
00085                 <td height=\"18\" colspan=\"2\" background=\"template/".$theme."/shadeup.jpg\" class=\"table\">&nbsp;</td>
00086               </tr>
00087             </table>
00088             <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
00089               <tr> 
00090                 <td>&nbsp;</td>
00091               </tr>
00092             </table>";
00093 }
00094  
00095 
00096 //
00097 // proslijedjuje vrijednosti za kreiranje menu bloka Menu
00098 //
00099 function menuMain() {
00100          global $theme; 
00101                 $content = 
00102                         "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"5\">
00103                     <tr> 
00104                       <td width=\"80%\" valign=\"middle\"> <div align=\"right\"><a href=\"main.php?&tip=predmeti&stranica=1\"><font class=\"textsize1\"> "._MTOPICS."
00105                            </font></a></div></td>
00106                       <td width=\"20%\" valign=\"middle\"><div align=\"right\"><img src=\"template/".$theme."/small.jpg\" width=\"15\" height=\"16\"></div></td>
00107                     </tr>
00108                     <tr> 
00109                       <td valign=\"middle\"> <div align=\"right\"><a href=\"main.php?&tip=sluzba&stranica=1\"><font class=\"textsize1\"> "._MSERVICENEWS."</font></a></div></td>
00110                       <td valign=\"middle\"><div align=\"right\"><img src=\"template/".$theme."/smallo.jpg\" width=\"15\" height=\"16\"></div></td>
00111                     </tr>                    
00112                   </table>\n";
00113                 menuBlok(_MTMENU, $content);            
00114 }
00115 
00116 //
00117 // prosljedjuje vrijednosti za kreiranje menu bloka Pretrazivanje
00118 //
00119 function menuSearch(){
00120                 $content = 
00121                                  "<table width=\"100%\" border=\"0\" cellspacing=\"5\" cellpadding=\"0\">
00122                     <tr> 
00123                       <td valign=\"middle\"> 
00124                         <div align=\"center\"></div>
00125                         <div align=\"center\"> 
00126                           <form name=\"search\" method=\"post\" action=\"search.php\">
00127                             <p>
00128                               <input name=\"searchfield\" type=\"text\" size=\"10\">
00129                               <input type=\"submit\" name=\"Submit\" value=\""._MBFIND."\">
00130                             </p>
00131                             </form>
00132                           <font class=\"textsize1\"></font></div></td>
00133                     </tr>
00134                   </table>\n";
00135                 menuBlok(_MTSEARCH, $content);
00136 }
00137 
00138 
00139                                                   
00140                                                   
00141 //
00142 // kreira menije na main (obavjestenja stranici)
00143 //
00144 function menu($odsjek, $tip, $id){
00145         echo "
00146                 <td width=\"46\" valign=\"top\">&nbsp;</td>
00147           <td width=\"147\" align=\"left\" valign=\"top\"> 
00148             <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
00149               <tr> 
00150                 <td>&nbsp;</td>
00151               </tr>
00152             </table>";
00153 
00154                         menuMain();
00155                         if (($tip == "predmeti") or ($tip == "predmet")){
00156                                 menuPredmeti($odsjek, $id);
00157                         }
00158                         menuSearch();
00159 
00160 echo "</td>
00161               </tr>             
00162             </table>
00163                         <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
00164               <tr>
00165                 <td>&nbsp;</td>
00166               </tr>
00167             </table>
00168                   </td>
00169         </tr>
00170       </table>";
00171  }
00172  
00173 
00174 //
00175 //obavijestenje da nema novosti...
00176 //
00177 function noNews(){
00178         global $text_color2, $color4;
00179         
00180         echo "<table width=\"537\" cellpadding=\"2\" cellspacing=\"2\">\n";
00181         echo "     <tr>\n";
00182         echo "       <td width=\"466\" valign=\"bottom\"> <div align=\"center\"><font color=\"".$text_color2."\"> \n";
00183         echo "            </font><font color=\"".$text_color2."\" class=\"textsize1\"><strong>"; 
00184         echo _NONEWS."</strong></font><font color=\"".$text_color2."\">&nbsp;\n"; 
00185         echo "            </font></div></td></tr></table>\n";
00186 } 
00187 ?>

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