root/morphix/trunk/morphixOrg/index.php

Revision 2, 3.8 kB (checked in by nextime, 2 years ago)

Initial import, branching from morphix svn

  • Property svn:executable set to
Line 
1 <?php
2 defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
3 // needed to seperate the ISO number from the language file constant _ISO
4 $iso = split( '=', _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
12 if ( $my->id ) {
13     initEditor();
14 }
15 ?>
16 <meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
17 <?php mosShowHead(); ?>
18 <link href="<?php echo $mosConfig_live_site;?>/templates/MorphixORG/css/template_css.css" rel="stylesheet" type="text/css" />
19 <link rel="shortcut icon" href="<?php echo $mosConfig_live_site;?>/favicon.ico" />
20 </head>
21 <body class="page_bg">
22 <a name="up" id="up"></a>
23 <?php
24 @$collspan_offset = ( mosCountModules( 'right' ) + mosCountModules( 'user2' ) and !$_REQUEST['task'] == 'edit' ) ? 2 : 1;
25 ?>
26 <div class="big_frame">
27     <div class="top_bar">
28     </div>
29     <div class="header">
30         <a href="<?php echo $mosConfig_live_site;?>/" >
31             <img border="0" src="<?php echo $mosConfig_live_site; ?>/templates/MorphixORG/images/mambo_header.jpg" alt="Morphix: sometimes one hell of a mess, but always kicks ass"/>
32         </a>
33 <!--        <img src="<?php echo $mosConfig_live_site; ?>/templates/MorphixORG/images/spacer.png" width="646" height="9" alt=""/>-->
34         <div class="top_right_box">
35             <div class="searchform">
36                 <form action='index.php' method='post'>
37                 <div class="searchblock">
38                     <p/>
39                     <input size="14" class="inputbox" type="text" name="searchword" style="width:100px;" value="search..."  onblur="if(this.value=='') this.value='search...';" onfocus="if(this.value=='search...') this.value='';" />
40                     <input type="hidden" name="option" value="search" />
41                     <input type="submit" value="GO" class="button" style="width:35px;" />
42                 </div> <!-- searchblock -->
43                 </form>
44             </div> <!-- searchform -->
45         </div> <!-- top_right_box -->
46     </div>
47
48     <div id="menu" align="left">
49             <?php mosLoadModules ( 'topmenu' ); ?>
50     </div> <!-- menu tabs -->
51
52     <div class="contentbox">
53         <!-- main content area -->
54         <div align="left" class="contentblock">
55             &nbsp;&nbsp;&nbsp;<?php mosPathWay(); ?>
56         </div>
57         <?php
58             if ( mosCountModules( 'left' ) ) {
59                 ?>
60                 <div class="leftblock">
61                     <?php mosLoadModules ( 'left' ); ?>
62                 </div>
63             <div class="centerblock">
64                 <?php
65                 }
66                 else {
67                 ?>
68             <div align="left" class="centerblock-nomenu">
69                 <?php
70                 }
71                 if ( mosCountModules( 'top' ) ) {
72                     mosLoadModules ( 'top' );
73                 }
74                 mosMainBody();
75             ?>
76         </div>
77
78         <div class="columns">
79             <div align="left" class="middle_box">
80                 <table><tr><td valign="top">
81                 <?php
82                     if ( mosCountModules( 'leftblok' ) ) {
83                 ?>
84                 <div class="leftblok" id="leftblok">
85                     <?php mosLoadModules ( 'leftblok' ); ?>
86                 </div>
87                 </td><td valign="top">
88                 <?php
89                     }
90                     if ( mosCountModules( 'centerblok' ) ) {
91                 ?>
92            
93                 <div class="centerblok" id="centerblok">
94                     <?php mosLoadModules ( 'centerblok' ); ?>
95                 </div>
96                 </td><td valign="top">
97                 <?php
98                     }
99                     if ( mosCountModules( 'rightblok' ) ) {
100                 ?>
101                 <div class="rightblok" id="rightblok">
102                     <?php mosLoadModules ( 'rightblok' ); ?>
103                 </div>
104                 <?php
105                     }
106                 ?>
107                 </td></tr></table>
108             </div> <!-- middle_box -->
109         </div> <!-- columns -->
110 <!--    <?php
111         include_once( $GLOBALS['mosConfig_absolute_path'] . '/includes/footer.php' );
112     ?>-->
113     </div> <!-- content_box -->
114     <p/>
115     <div class="contentblock" valign="bottom" align="center">
116             <?php mosLoadModules ( 'bottommenu' ); ?>
117     </div> <!-- menu tabs -->
118     <p/>
119     <?php
120         if ( mosCountModules( 'bottom' ) ) {
121     ?>
122     <div class="footerblock" id="footerblock">
123         <?php mosLoadModules ( 'bottom' ); ?>
124     </div>
125     <?php
126         }
127     ?>
128 </div> <!-- center bigframe -->
129 </body>
130 </html>
Note: See TracBrowser for help on using the browser.