[ Index ]
 

Code source de Joomla 1.0.13

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/templates/rhuk_solarflare_ii/ -> index.php (source)

   1  <?php
   2  defined( '_VALID_MOS' ) or die( 'Restricted access' );
   3  // needed to seperate the ISO number from the language file constant _ISO
   4  $iso = explode( '=', _ISO );
   5  // xml prolog
   6  echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
   7  ?>
   8  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
   9  <html xmlns="http://www.w3.org/1999/xhtml">
  10  <head>
  11  <?php mosShowHead(); ?>
  12  <?php
  13  if ( $my->id ) {
  14      initEditor();
  15  }
  16  $collspan_offset = ( mosCountModules( 'right' ) + mosCountModules( 'user2' ) ) ? 2 : 1;
  17  //script to determine which div setup for layout to use based on module configuration
  18  $user1 = 0;
  19  $user2 = 0;
  20  $colspan = 0;
  21  $right = 0;
  22  // banner combos
  23  
  24  //user1 combos
  25  if ( mosCountModules( 'user1' ) + mosCountModules( 'user2' ) == 2) {
  26      $user1 = 2;
  27      $user2 = 2;
  28      $colspan = 3;
  29  } elseif ( mosCountModules( 'user1' ) == 1 ) {
  30      $user1 = 1;
  31      $colspan = 1;
  32  } elseif ( mosCountModules( 'user2' ) == 1 ) {
  33      $user2 = 1;
  34      $colspan = 1;
  35  }
  36  
  37  //right based combos
  38  if ( mosCountModules( 'right' ) and ( empty( $_REQUEST['task'] ) || $_REQUEST['task'] != 'edit' ) ) {
  39      $right = 1;
  40  }
  41  ?>
  42  <meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
  43  <link href="<?php echo $mosConfig_live_site;?>/templates/rhuk_solarflare_ii/css/template_css.css" rel="stylesheet" type="text/css" />
  44  </head>
  45  <body>
  46  
  47  <div align="center">
  48      <table border="0" cellpadding="0" cellspacing="0" width="808">
  49          <tr>
  50              <td class="outline">
  51                    <div id="buttons_outer">
  52                      <div id="buttons_inner">
  53                          <div id="buttons">
  54                          <?php mosLoadModules ( 'user3', -1); ?>
  55                          </div>
  56                      </div>
  57                    </div>
  58                    <div id="search_outer">
  59                      <div id="search_inner">
  60                      <?php mosLoadModules ( 'user4', -1 ); ?>
  61                      </div>
  62                    </div>
  63                    <div class="clr"></div>
  64                    <div id="header_outer">
  65                        <div id="header">
  66                        &nbsp;
  67                        </div>
  68                        <div id="top_outer">
  69                          <div id="top_inner">
  70                          <?php
  71                            if ( mosCountModules( 'top' ) ) {
  72                                mosLoadModules ( 'top', -2 );
  73                            } else {
  74                                ?>
  75                                <span class="error">Top Module Empty</span>
  76                                <?php
  77                            }
  78                            ?>
  79                           </div>
  80                    </div>
  81                    </div>
  82                    <div id="left_outer">
  83                        <div id="left_inner">
  84                        <?php mosLoadModules ( 'left', -2 ); ?>
  85                        </div>
  86                    </div>
  87                    <div id="content_outer">
  88                      <div id="content_inner">
  89                      <?php
  90                        if ( mosCountModules ('banner') ) {
  91                            ?>
  92                            <table border="0" cellpadding="0" cellspacing="0" width="100%" class="content_table">
  93                          <tr>
  94                                  <td>
  95                                      <div id="banner_inner">
  96                                      <img src="<?php echo $mosConfig_live_site;?>/templates/rhuk_solarflare_ii/images/advertisement.png" alt="advertisement.png, 0 kB" title="advertisement" border="0" height="8" width="468" /><br />
  97                                    <?php mosLoadModules( 'banner', -1 ); ?><br />
  98                                      </div>
  99                                      <div id="poweredby_inner">
 100                                          <img src="<?php echo $mosConfig_live_site;?>/templates/rhuk_solarflare_ii/images/powered_by.png" alt="powered_by.png, 1 kB" title="powered_by" border="0" height="68" width="165" /><br />
 101                                      </div>
 102                                  </td>
 103                              </tr>
 104                              </table>
 105                              <?php
 106                        }
 107                        ?>
 108                        <table border="0" cellpadding="0" cellspacing="0" width="100%" class="content_table">
 109                          <tr valign="top">
 110                              <td width="99%">
 111                                  <table border="0" cellpadding="0" cellspacing="0" width="100%" class="content_table">
 112  
 113                                  <?php
 114                                  if ($colspan > 0) {
 115                                  ?>
 116                                      <tr valign="top">
 117                                          <?php
 118                                        if ( $user1 > 0 ) {
 119                                            ?>
 120                                            <td width="50%">
 121                                                <div class="user1_inner">
 122                                                <?php mosLoadModules ( 'user1', -2 ); ?>
 123                                                </div>
 124                                            </td>
 125                                            <?php
 126                                        }
 127                                        if ( $colspan == 3) {
 128                                           ?>
 129                                              <td width="2">
 130                                                  <img src="<?php echo $mosConfig_live_site;?>/templates/rhuk_solarflare_ii/images/spacer.png" alt="" title="spacer" border="0" height="10" width="2" />
 131                                              </td>
 132                                          <?php
 133                                          }
 134                                        if ( $user2 > 0 ) {
 135                                            ?>
 136                                            <td width="50%">
 137                                                <div class="user2_inner">
 138                                                <?php mosLoadModules ( 'user2', -2 ); ?>
 139                                                </div>
 140                                            </td>
 141                                            <?php
 142                                        }
 143                                          ?>
 144                                      </tr>
 145                                      <tr>
 146                                          <td colspan="<?php echo $colspan; ?>">
 147                                              <img src="<?php echo $mosConfig_live_site;?>/templates/rhuk_solarflare_ii/images/spacer.png" alt="" title="spacer" border="0" height="2" width="100" /><br />
 148                                          </td>
 149                                      </tr>
 150                                      <?php
 151                                      }
 152                                  ?>
 153                                  <tr>
 154                                      <td colspan="<?php echo $colspan; ?>">
 155                                          <div id="pathway_text">
 156                                          <?php mosPathWay(); ?>
 157                                          </div>
 158                                      </td>
 159                                  </tr>
 160                                  <tr>
 161                                      <td colspan="<?php echo $colspan; ?>" class="body_outer">
 162                                         <?php mosMainBody(); ?>
 163                                      </td>
 164                                  </tr>
 165                                  </table>
 166  
 167  
 168                              </td>
 169                              <?php
 170                              if ( $right > 0 ) {
 171                            ?>
 172                            <td>
 173                                <div id="right_outer">
 174                                    <div id="right_inner">
 175                                    <?php mosLoadModules ( 'right', -2 ); ?>
 176                                    </div>
 177                                </div>
 178                            </td>
 179                            <?php
 180                        }
 181                        ?>
 182  
 183                          </tr>
 184                          </table>
 185                    </div>
 186                </div>
 187            </td>
 188        </tr>
 189    </table>
 190  </div>
 191  <?php include_once( $GLOBALS['mosConfig_absolute_path'] . '/includes/footer.php' ); ?>
 192  <?php mosLoadModules( 'debug', -1 );?>
 193  </body>
 194  </html>


Généré le : Wed Nov 21 14:43:32 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics