source: trunk/home_public.php @ 1856

Revision 1856, 12.8 KB checked in by Xiping.Wang, 16 months ago (diff)

[trunk]Add video tour button

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
10$oDb          = &newDb( 'wiki',true );
11$articlePortlet = new ArticlePortlet($oDb);   
12class OmCollabHome {
13       
14        protected $sAction;
15        protected $aOmCollabAppUrls;
16        protected $sGoogleSearchHtml;
17        protected $sGoogleAnalyticsJs;
18       
19        public function __construct( $sPathInfo
20                                   , $aOmCollabAppUrls ){
21               
22                @list( $sUrl, $sAction ) = isset( $sPathInfo ) ? explode('/', $sPathInfo ) : NULL;
23                $this->sAction           = $sAction;
24                $this->aOmCollabAppUrls  = $aOmCollabAppUrls;
25                $this->Execute();
26
27        }
28       
29        private function Execute(){
30                if( OMCOLLAB_GOOGLE_ANALYTICS != '' ){
31                        $this->sGoogleAnalyticsJs = str_replace( '{omCollabGoogleAnalyticsJs}'
32                                                               , OMCOLLAB_GOOGLE_ANALYTICS
33                                                               , file_get_contents( dirname(__file__) .'/home/includes/templates/GoogleAnalyticsCode.html' ) );
34                }
35        }
36       
37        public function getGoogleAnalyticsJs(){
38            return $this->sGoogleAnalyticsJs;
39        }
40}
41
42$oOmCollabHome = new OmCollabHome( isset($_SERVER['PATH_INFO'])?$_SERVER['PATH_INFO']:NULL
43                                       , $omCollabAppURLs );
44session_start();
45?>
46
47<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
48<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
49<head>
50    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
51    <meta name="description" content="<?php echo OMCOLLAB_FRONTPAGE_DESCRIPTION; ?>"/>
52    <meta name="keywords" content="<?php echo OMCOLLAB_FRONTPAGE_KEYWORDS; ?>"/>
53    <title><?php echo OMCOLLAB_APPLICATION_NAME; ?></title>
54    <link rel="canonical" href="http://mike2.openmethodology.org/"/>
55        <!-- feed locations -->
56        <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" />
57        <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/" />
58    <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/" />
59    <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/" />
60        <link type="text/css" href="<?php echo RR_OMCOLLAB_DIRECTORY; ?>home/themes/base/jquery-ui.css" rel="Stylesheet" />     
61        <script type="text/javascript" src="<?php echo RR_OMCOLLAB_DIRECTORY; ?>home/js/jquery-1.3.2.min.js?<?php echo OMCOLLAB_VERSION;?>"></script>
62        <script type="text/javascript" src="<?php echo RR_OMCOLLAB_DIRECTORY; ?>home/js/jquery-ui-1.7.1.min.js?<?php echo OMCOLLAB_VERSION;?>"></script>
63        <style type="text/css" media="screen,projection">
64        /*<![CDATA[*/
65                @import "<?php echo OMWIKI_SCRIPT_PATH; ?>/skins/common/shared.css?<?php echo OMCOLLAB_VERSION;?>";
66        /*]]>*/
67        </style>
68       
69</head>
70</head>
71<body>
72<?php
73    include (FS_COMMON_SKIN_DIRECTORY . '/header.php');
74?>
75<script type="text/javascript" src="http://www.google.com/recaptcha/api/js/recaptcha_ajax.js" ></script>
76<script type="text/javascript">
77        jQuery(function( $ ){
78        jQuery.ajax({
79        type: "GET",
80    url: "<?php echo RR_OMCOLLAB_DIRECTORY; ?>w/index.php?title=Special:UserLogin&type=signup&useAjaxSignup=1",
81    dataType: "html",
82        success: function(msg){jQuery('#signup_form').html($(msg).find('#userlogin').html());}
83        });
84       
85
86        });
87        </script>
88<div style="overflow: hidden; margin-bottom: 20px;">
89    <!-- Start Banner Wrapper -->
90    <div class="banner-wrapper">
91        <div class="button-wrapper">
92            <span id="am" class="active">About MIKE2.0</span>
93            <span id="gfwm" class="normal">Get Familiar with MIKE2.0</span>
94            <span id="sc" class="normal">Solutions</span>
95            <span id="faq" class="normal">FAQ</span>
96            <!-- <div id="more" class="morebutton noborder"><a href="/wiki">More</a></div> -->
97            <div class="clear"></div>
98        </div>
99        <div class="banner-content">
100            <div id="am-content" style="display: block;">
101                <table cellpadding="0" cellspacing="0" border="0">
102                    <tr><td height="200" valign="top">
103                        <br /><img src="<?php echo RR_COMMON_SKIN_DIRECTORY ?>/images/banner-tab1-title.png" />
104                        <p>MIKE2.0 which stands for Method for an Integrated Knowledge Environment, is an open source methodology for  Enterprise Information Management that provides a framework for information development . The MIKE2.0 Methodology is part of the overall Open Methodology Framework.</p>
105                    </td></tr>
106                    <tr><td align="right">
107                        <a href="/wiki/What_is_MIKE2.0"><img src="<?php echo RR_COMMON_SKIN_DIRECTORY ?>/images/find-out-more.png" /></a>&nbsp;&nbsp;
108                        <a href="http://mike2.openmethodology.org/wiki/What_is_MIKE2.0#integrated_with_a_Collaborative_Community..."><img src="<?php echo RR_COMMON_SKIN_DIRECTORY ?>/images/take-video-tour.png" /></a>
109                    </td></tr>
110                </table>
111            </div>
112            <div id="gfwm-content" style="display: none;">
113                <table cellpadding="0" cellspacing="0" border="0">
114                    <tr><td height="200" valign="top">
115                        <br /><img src="<?php echo RR_COMMON_SKIN_DIRECTORY ?>/images/banner-tab2-title.png" />
116                        <p>The era of ubiquitous technology has lead to a new challenge - managing ubiquitous information. We now find that almost every organisation has a major challenge with managing their data.  <br />The MIKE2.0 Methodology has been built to support our belief that information really is one of the most crucial assets of a business.  As a starting point to understanding MIKE2.0. read this <a href="/wiki/Structural_Overview_of_MIKE2.0">overview</a>.</p>
117                    </td></tr>
118                    <tr><td align="right">
119                        <a href="/wiki/Structural_Overview_of_MIKE2.0"><img src="<?php echo RR_COMMON_SKIN_DIRECTORY ?>/images/find-out-more.png" /></a>&nbsp;&nbsp;
120                        <a href="http://mike2.openmethodology.org/wiki/What_is_MIKE2.0#integrated_with_a_Collaborative_Community..."><img src="<?php echo RR_COMMON_SKIN_DIRECTORY ?>/images/take-video-tour.png" /></a>
121                    </td></tr>
122                </table>   
123            </div>
124            <div id="sc-content" style="display: none;">
125                <table cellpadding="0" cellspacing="0" border="0">
126                    <tr><td height="200" valign="top">
127                        <br /><img src="<?php echo RR_COMMON_SKIN_DIRECTORY ?>/images/banner-tab3-title.png" />
128                        <p>MIKE2.0 covers the complete information supply chain within an organisation: from how it is created, accessed, presented and used in decision-making to how it is kept secure, stored and destroyed.  <br />It covers areas such as Information Governance, Data Warehousing, Master Data Management, Information Lifecycle Management and Enterprise 2.0.  Read more about the <a href="/wiki/MIKE2:Solution_Offerings">different types of solutions in MIKE2.0</a> as well as how they are mapped into the overall methodology through <a href="/wiki/Usage_Model">usage models</a>.</p>
129                    </td></tr>
130                    <tr><td align="right">
131                        <a href="/wiki/MIKE2:Solution_Offerings"><img src="<?php echo RR_COMMON_SKIN_DIRECTORY ?>/images/find-out-more.png" /></a>&nbsp;&nbsp;
132                        <a href="http://mike2.openmethodology.org/wiki/What_is_MIKE2.0#integrated_with_a_Collaborative_Community..."><img src="<?php echo RR_COMMON_SKIN_DIRECTORY ?>/images/take-video-tour.png" /></a>
133                    </td></tr>
134                </table>   
135            </div>
136            <div id="faq-content" style="display: none;">
137                <table cellpadding="0" cellspacing="0" border="0">
138                    <tr><td height="200" valign="top">
139                        <br /><img src="<?php echo RR_COMMON_SKIN_DIRECTORY ?>/images/banner-tab4-title.png" />
140                        <p>We have compiled a list of <a href="/wiki/MIKE2:FAQs">Frequently Asked Question</a>s related to the MIKE2.0 Methodology. Feel to add your questions to <a href="/wiki/?title=Talk:FAQs&action=edit">this article's talk page</a> or within the <a href="/forum/">group discussions</a> area.  <br />You'll find a number of active users on the site that can help answer your questions about the approach and how it can be applied to provide a transformational approach to information management.</p>
141                    </td></tr>
142                    <tr><td align="right">
143                        <a href="/wiki/MIKE2:FAQs"><img src="<?php echo RR_COMMON_SKIN_DIRECTORY ?>/images/find-out-more.png" /></a>&nbsp;&nbsp;
144                        <a href="http://mike2.openmethodology.org/wiki/What_is_MIKE2.0#integrated_with_a_Collaborative_Community..."><img src="<?php echo RR_COMMON_SKIN_DIRECTORY ?>/images/take-video-tour.png" /></a>
145                    </td></tr>
146                </table>   
147            </div>
148        </div> 
149        <div class="arrow"></div> 
150    </div>
151    <!-- End Banner Wrapper -->
152    <!-- Start Signup Wrapper -->
153    <div class="signup-wrapper">
154        <div class="top"></div>
155        <div class="middle">
156            <div class="blockTitle" style="margin-left: 20px;">
157                Join MIKE2.0 today
158            </div>
159            <?php
160                $useragent = $_SERVER['HTTP_USER_AGENT'];
161                if( strstr($useragent,"MSIE")!=FALSE) {
162             ?>
163            <div style="margin-left:20px;font-weight:bold;">For IE user , please click <a href="<?php echo RR_OMCOLLAB_DIRECTORY; ?>w/index.php?title=Special:UserLogin&type=signup&returnto=/">here</a> to sign up.</div>     
164            <div style="margin-left: 20px;margin-right:20px;background-color:gray" id="signup_form">
165            <?php
166                } else {
167           ?>   
168            <div style="margin-left: 20px;" id="signup_form">
169            <?php
170                }
171           ?>   
172            </div>
173        </div>
174        <div class="bottom"></div>
175    </div>
176    <!-- End Signup Wrapper -->
177    <div class="clear"></div>
178</div>
179
180<div class="home-wrapper-left">
181    <div class="main-bg-top-public"></div>     
182    <div class="main-wrapper-public">
183            <table cellpadding="0" cellspacing="0">
184                    <tr>
185                    <!-- Column one -->
186                            <td id="column-one">
187                    <!-- Start Featured Article -->
188                                    <div class="features">
189                        <div class="blockTitle">Featured Article</div>
190                        <div class="articleTitle"><a href="<?php echo OMWIKI_SCRIPT_PATH; ?>/index.php/<?php echo $articlePortlet->getTitle(); ?>"><?php echo str_replace("_", " ", $articlePortlet->getTitle()); ?></a></div>
191                                            <div class="articleContent">
192                            <table cellpadding="0" cellspacing="0" width="100%"><tr><td>
193                                <?php echo $articlePortlet->getContent(); ?>
194                            </td></tr></table>
195                        </div>
196                                    </div>
197                    <!-- End Featured Article -->
198                            </td>
199                        <!-- Column Two -->
200                            <td id="content" class="contentWrapper">
201                                    <div id="bodyContent" style="padding-top: 7px;">
202                        <div id="portlet_template" class="portlet_">
203                            <div class='portletHeader'>
204                                <div class='portletTitle blockTitle' style="border-bottom: 1px solid #aaaaaa;">Recent Activities</div>
205                            </div>
206                            <div class='portletContent'>
207                                <?php include(dirname(__file__) . '/home/omcache/SiteActivity.html'); ?>
208                            </div>
209                        </div>
210                                    </div>
211                            </td>
212                    </tr>
213            </table>
214    </div>
215    <div class="main-bg-bottom-public"><div class="main-corner-bg"></div></div>   
216</div>
217<div class="home-wrapper-right">
218    <?php include('home/omcache/'.SkillPortlet.'.html'); ?>
219</div>
220<div class="clear"></div>
221<?php include (FS_COMMON_SKIN_DIRECTORY . '/footer.php');?>
222<?php //echo $oOmCollabHome->getGoogleAnalyticsJs(); ?>
223</body>
224</html>
Note: See TracBrowser for help on using the repository browser.