Changeset 47 for css


Ignore:
Timestamp:
Aug 19, 2007, 4:58:14 PM (17 years ago)
Author:
george
Message:

Listování stránek u aktualit.
Zjednodušení generování hlavního menu do funkcí.
Doplnění položek konfigurace.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • css/global_js.php

    r18 r47  
    11<?php
    2 include('../config.php');
     2include('../global.php');
    33?>
    44
     
    2222
    2323<?php
    24 echo('imgsrc = new Array();
    25 imgsrc[1] = "'.$BaseUrl.'images/home.jpg";
    26 imgsrc[2] = "'.$BaseUrl.'images/home2.jpg";
    27 imgsrc[3] = "'.$BaseUrl.'images/donate.jpg";
    28 imgsrc[4] = "'.$BaseUrl.'images/donate2.jpg";
    29 imgsrc[5] = "'.$BaseUrl.'images/download.jpg";
    30 imgsrc[6] = "'.$BaseUrl.'images/download2.jpg";
    31 imgsrc[7] = "'.$BaseUrl.'images/forum.jpg";
    32 imgsrc[8] = "'.$BaseUrl.'images/forum2.jpg";
    33 imgsrc[9] = "'.$BaseUrl.'images/guilds.jpg";
    34 imgsrc[10] = "'.$BaseUrl.'images/guilds2.jpg";
    35 imgsrc[11] = "'.$BaseUrl.'images/honor.jpg";
    36 imgsrc[12] = "'.$BaseUrl.'images/honor2.jpg";
    37 imgsrc[13] = "'.$BaseUrl.'images/how.jpg";
    38 imgsrc[14] = "'.$BaseUrl.'images/how2.jpg";
    39 imgsrc[15] = "'.$BaseUrl.'images/link.jpg";
    40 imgsrc[16] = "'.$BaseUrl.'images/link2.jpg";
    41 imgsrc[17] = "'.$BaseUrl.'images/mapa.jpg";
    42 imgsrc[18] = "'.$BaseUrl.'images/mapa2.jpg";
    43 imgsrc[19] = "'.$BaseUrl.'images/online_player.jpg";
    44 imgsrc[20] = "'.$BaseUrl.'images/online_player2.jpg";
    45 imgsrc[21] = "'.$BaseUrl.'images/povolani.jpg";
    46 imgsrc[22] = "'.$BaseUrl.'images/povolani2.jpg";
    47 imgsrc[23] = "'.$BaseUrl.'images/profese.jpg";
    48 imgsrc[24] = "'.$BaseUrl.'images/profese2.jpg";
    49 imgsrc[25] = "'.$BaseUrl.'images/rasy.jpg";
    50 imgsrc[26] = "'.$BaseUrl.'images/rasy2.jpg";
    51 imgsrc[27] = "'.$BaseUrl.'images/registrace.jpg";
    52 imgsrc[28] = "'.$BaseUrl.'images/registrace2.jpg";
    53 imgsrc[29] = "'.$BaseUrl.'images/server.jpg";
    54 imgsrc[30] = "'.$BaseUrl.'images/server2.jpg";
    55 ');
     24echo('imgsrc = new Array();');
     25foreach($Menu as $Index => $MenuItem)
     26{
     27  echo('imgsrc['.($Index*2+1).'] = "'.$Config['Web']['BaseURL'].'images/'.$MenuItem[2].'.jpg";');
     28  echo('imgsrc['.($Index*2+2).'] = "'.$Config['Web']['BaseURL'].'images/'.$MenuItem[2].'2.jpg";'); 
     29}
     30
    5631?>
    5732
Note: See TracChangeset for help on using the changeset viewer.