source: trunk/home_loggedin.php @ 1847

Revision 1847, 7.7 KB checked in by Xiping.Wang, 16 months ago (diff)

[trunk] 1.change logged layout to float. 2.Signup form refactor

Line 
1<?php
2require_once( dirname(__file__) . '/common/omconfig.php' );
3require_once( FS_COMMON_SKIN_DIRECTORY . '/common.php' );
4require_once( dirname(__file__) . '/home/includes/config.php' );
5require_once('home/includes/config.php');
6require_once ('home/includes/classes/DB.php' );
7require_once('home/portlets/PortletsClass.php');
8//require_once('w/includes/templates/Userlogin.php');
9
10class OmCollabHome {
11   
12    protected $sAction;
13    protected $aOmCollabAppUrls;
14    protected $sGoogleSearchHtml;
15    protected $sGoogleAnalyticsJs;
16   
17    public function __construct( $sPathInfo
18                               , $aOmCollabAppUrls ){
19       
20        @list( $sUrl, $sAction ) = isset( $sPathInfo ) ? explode('/', $sPathInfo ) : NULL;
21        $this->sAction           = $sAction;
22        $this->aOmCollabAppUrls  = $aOmCollabAppUrls;
23        $this->Execute();
24
25    }
26   
27    private function Execute(){
28        if( OMCOLLAB_GOOGLE_ANALYTICS != '' ){
29            $this->sGoogleAnalyticsJs = str_replace( '{omCollabGoogleAnalyticsJs}'
30                                                   , OMCOLLAB_GOOGLE_ANALYTICS
31                                                   , file_get_contents( dirname(__file__) .'/home/includes/templates/GoogleAnalyticsCode.html' ) );
32        }
33    }
34   
35    public function getGoogleAnalyticsJs(){
36        return $this->sGoogleAnalyticsJs;
37    }
38}
39
40$oOmCollabHome = new OmCollabHome( isset($_SERVER['PATH_INFO'])?$_SERVER['PATH_INFO']:NULL
41                                       , $omCollabAppURLs );
42session_start();
43?>
44
45<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
46<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
47<head>
48    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
49    <meta name="description" content="<?php echo OMCOLLAB_FRONTPAGE_DESCRIPTION; ?>"/>
50    <meta name="keywords" content="<?php echo OMCOLLAB_FRONTPAGE_KEYWORDS; ?>"/>
51    <title><?php echo OMCOLLAB_APPLICATION_NAME; ?></title>
52    <!-- feed locations -->
53    <link rel="alternate" type="application/rss+xml" title="MIKE2 Methodology RSS Feed" href="<?php echo "http://{$_SERVER['HTTP_HOST']}" . OMWIKI_SCRIPT_PATH;?>/index.php?title=Special:RecentChanges&amp;feed=rss" />
54    <link rel="alternate" type="application/rss+xml" title="Information Development RSS Feed" href="<?php echo "http://{$_SERVER['HTTP_HOST']}" . RR_OMCOLLAB_DIRECTORY . 'blogs';?>/information-development/feed/" />
55    <link rel="alternate" type="application/rss+xml" title="OM Bookmarks: Recent bookmarks" href="<?php echo "http://{$_SERVER['HTTP_HOST']}" . RR_OMCOLLAB_DIRECTORY . 'bookmarks';?>/rss.php/" />
56    <link rel="alternate" type="application/rss+xml" title="MIKE2 Community Forum RSS Feed" href="<?php echo "http://{$_SERVER['HTTP_HOST']}" . RR_OMCOLLAB_DIRECTORY . 'forum';?>/rss.php/" />
57    <link type="text/css" href="<?php echo RR_OMCOLLAB_DIRECTORY; ?>home/themes/base/jquery-ui.css" rel="Stylesheet" />
58    <script type="text/javascript" src="<?php echo RR_OMCOLLAB_DIRECTORY; ?>home/js/jquery-1.3.2.min.js?<?php echo OMCOLLAB_VERSION;?>"></script>
59        <script type="text/javascript" src="<?php echo RR_OMCOLLAB_DIRECTORY; ?>home/js/jquery-ui-1.7.1.min.js?<?php echo OMCOLLAB_VERSION;?>"></script>
60        <style type="text/css" media="screen,projection">
61    /*<![CDATA[*/
62        @import "<?php echo OMWIKI_SCRIPT_PATH; ?>/skins/common/shared.css?<?php echo OMCOLLAB_VERSION;?>";
63    /*]]>*/
64    </style>
65</head>
66<body>
67 
68<!-- A hidden module template is carried within the page, which can be modified easily -->
69<div id="portlet_template" class="portlet_" style="display:none; margin-top: 15px;">
70    <div class="portletHeader">
71        <div class="portletTitle blockTitle" style="border-bottom: 1px solid #aaaaaa;"></div>
72    </div>
73    <div class="portletContent">
74        <img src="<?php echo RR_COMMON_SKIN_DIRECTORY ?>/images/loading.gif" alt="Loading..."/>
75    </div>
76</div>
77
78<div class="portlet1" id="portlet1" style="display: none;">
79    <div class="portleteffect"></div>
80    <div class="portletHeader">
81        <div class="portletTitle"></div>
82        <div class="portletActions">
83            <img class="action_min" alt="Collapse" src="<?php echo RR_COMMON_SKIN_DIRECTORY ?>/images/blank.gif"/>
84            <img class="action_max" alt="Expand" src="<?php echo RR_COMMON_SKIN_DIRECTORY ?>/images/blank.gif"/>
85            <img class="action_close" alt="Close" src="<?php echo RR_COMMON_SKIN_DIRECTORY ?>/images/blank.gif"/>
86        </div>
87    </div>
88    <div class="portletContent">
89        <img src="<?php echo RR_COMMON_SKIN_DIRECTORY ?>/images/loading.gif" alt="Loading..."/>
90    </div>
91</div>                                                                                                                                 
92
93<div class="portlet2" id="portlet2" style="display: none;">
94    <div class="portletHeader">
95        <div class="portletTitle"></div>
96        <div class="portletActions">
97            <img class="action_min" alt="Collapse" src="<?php echo RR_COMMON_SKIN_DIRECTORY ?>/images/blank.gif"/>
98            <img class="action_max" alt="Expand" src="<?php echo RR_COMMON_SKIN_DIRECTORY ?>/images/blank.gif"/>
99            <img class="action_close" alt="Close" src="<?php echo RR_COMMON_SKIN_DIRECTORY ?>/images/blank.gif"/>
100        </div>
101    </div>
102    <div class="portletContent">
103        <img src="<?php echo RR_COMMON_SKIN_DIRECTORY ?>/images/loading.gif" alt="Loading..."/>
104    </div>
105    <div class="portletBottom"></div>
106</div>   
107
108<div id="loading">Loading</div>
109<?php include (FS_COMMON_SKIN_DIRECTORY . '/header.php');?>
110    <script type="text/javascript" src="<?php echo RR_OMCOLLAB_DIRECTORY; ?>home/js/jquery.portal.js?<?php echo OMCOLLAB_VERSION;?>"></script>
111<!-- Start Main Content -->
112<div class="main-bg-top"><div></div></div>
113<div class="main-wrapper"><div class="innerwrapper">
114    <table cellpadding="0" cellspacing="0" id="main" width="100%">
115        <tr>
116        <!-- Colmun one -->
117            <td id="column-one">
118                <?php include('home/portlets/profile/Portlet.php'); ?>
119                <?php include('home/portlets/subscribe/Portlet.php'); ?>
120                <?php include('home/portlets/member/Portlet.php'); ?>
121                <div id="c1">
122                        <?php include(OMCOLLAB_DOCROOT . '/home/portlets/improve/Portlet.php'); ?>
123                </div>
124            </td>
125        <!-- Colmun Two -->
126            <td id="column-two" class="contentWrapper">
127                <!-- Start 4 main tabs in middle area -->
128                <ul class="main-tabs">
129                    <li class="tab-seperator"><a href="/wiki" class="writewiki home-size">&nbsp;</a></li>
130                    <li class="tab-seperator"><a href="/blogs/wp-admin" class="writeblog home-size">&nbsp;</a></li>
131                    <li class="tab-seperator"><a href="/forum" class="writeforum home-size">&nbsp;</a></li>
132                    <li class="tab-seperator"><a href="/wiki/Special:Upload" class="uploadfile home-size">&nbsp;</a></li>
133                </ul>
134                <!-- End 4 main tabs in middle area -->
135                <div id="c2"></div>
136            </td>
137        <!-- Colmun Three -->
138            <td id="column-three">
139                <?php include(OMCOLLAB_DOCROOT.'/home/omcache/'.SkillPortlet.'.html'); ?>
140                <div id="c3"></div>
141            </td>
142        </tr>
143    </table>
144</div></div>
145<div class="main-bg-bottom"><div class="innerbottomwrapper"></div><div class="main-corner-bg"></div></div>
146<!-- End Main Content -->
147
148<?php include (FS_COMMON_SKIN_DIRECTORY . '/footer.php');?>
149
150<?php echo $oOmCollabHome->getGoogleAnalyticsJs(); ?>
151</body>
152</html>
Note: See TracBrowser for help on using the repository browser.