]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - install/ready.php
Release 6.4.0
[Github/sugarcrm.git] / install / ready.php
1 <?php
2 if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 /*********************************************************************************
4  * SugarCRM Community Edition is a customer relationship management program developed by
5  * SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
6  * 
7  * This program is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU Affero General Public License version 3 as published by the
9  * Free Software Foundation with the addition of the following permission added
10  * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
11  * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
12  * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
13  * 
14  * This program is distributed in the hope that it will be useful, but WITHOUT
15  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16  * FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
17  * details.
18  * 
19  * You should have received a copy of the GNU Affero General Public License along with
20  * this program; if not, see http://www.gnu.org/licenses or write to the Free
21  * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22  * 02110-1301 USA.
23  * 
24  * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
25  * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
26  * 
27  * The interactive user interfaces in modified source and object code versions
28  * of this program must display Appropriate Legal Notices, as required under
29  * Section 5 of the GNU Affero General Public License version 3.
30  * 
31  * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
32  * these Appropriate Legal Notices must retain the display of the "Powered by
33  * SugarCRM" logo. If the display of the logo is not reasonably feasible for
34  * technical reasons, the Appropriate Legal Notices must display the words
35  * "Powered by SugarCRM".
36  ********************************************************************************/
37
38
39
40
41 if( !isset( $install_script ) || !$install_script ){
42         die($mod_strings['ERR_NO_DIRECT_SCRIPT']);
43 }
44 // $mod_strings come from calling page.
45
46 ///////////////////////////////////////////////////////////////////////////////
47 ////    START OUTPUT
48
49 $langHeader = get_language_header();
50 $out = <<<EOQ
51 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
52 <html {$langHeader}>
53 <head>
54 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
55 <meta http-equiv="Content-Style-Type" content="text/css">
56 <title>{$mod_strings['LBL_WIZARD_TITLE']} {$mod_strings['LBL_TITLE_ARE_YOU_READY']}</title>
57 <link REL="SHORTCUT ICON" HREF="include/images/sugar_icon.ico">
58 <link rel="stylesheet" href="install/install.css" type="text/css">
59 </head>
60
61 <body>
62         <form action="install.php" method="post" name="form" id="form">
63                 <table cellspacing="0" cellpadding="0" border="0" align="center" class="shell">
64                         <tr><td colspan="2" id="help"><a href="{$help_url}" target='_blank'>{$mod_strings['LBL_HELP']} </a></td></tr>
65                         <tr>
66                                 <th id="title" width="500">
67                                 <p>
68                                 <img src="{$sugar_md}" alt="SugarCRM" border="0">
69                                 </p>
70                                 </th>
71                                 <th width="200" height="30" style="text-align: right;"><a href="http://www.sugarcrm.com" target=
72                                 "_blank"><IMG src="include/images/sugarcrm_login.png" width="145" height="30" alt="SugarCRM" border="0"></a>
73                                 </th>
74                         </tr>
75                         <tr>
76                             <td colspan="2" id="ready">{$mod_strings['LBL_TITLE_ARE_YOU_READY']} </td>
77                         </tr>                   
78                         <tr>
79                                 <td colspan="2">
80                                     <p><strong>{$mod_strings['LBL_WELCOME_PLEASE_READ_BELOW']}</strong></p>
81                                                 
82                                         <table width="100%" cellpadding="0" cellpadding="0" border="0" class="Welcome">
83                                                 <tr>                                            
84                                                    <th>
85                                                       <span onclick="showtime('sys_comp');" style="cursor:pointer;cursor:hand">
86                                                           <span id='basic_sys_comp'><img alt="{$mod_strings['LBL_BASIC_SEARCH']}" src="themes/default/images/basic_search.gif" border="0"></span>
87                                                           <span id='adv_sys_comp' style='display:none'><img alt="{$mod_strings['LBL_ADVANCED_SEARCH']}" src="themes/default/images/advanced_search.gif" border="0"></span>
88                                                           &nbsp;{$mod_strings['REQUIRED_SYS_COMP']}
89                                                       </span>
90                                                    </th>
91                                                 </tr>
92                                                 <td>
93                                                         <div id='sys_comp' >{$mod_strings['REQUIRED_SYS_COMP_MSG']}</div>
94                                                 </td>
95                                         </table>                        
96                                 
97                                         <table width="100%" cellpadding="0" cellpadding="0" border="0" class="Welcome">
98                                                 <tr>
99                                                     <th>
100                                                         <span onclick="showtime('sys_check');" style="cursor:pointer;cursor:hand">
101                                                             <span id='basic_sys_check'><img alt="{$mod_strings['LBL_BASIC_SEARCH']}" src="themes/default/images/basic_search.gif" border="0"></span>
102                                                             <span id='adv_sys_check' style='display:none'><img alt="{$mod_strings['LBL_ADVANCED_SEARCH']}" src="themes/default/images/advanced_search.gif" border="0"></span>
103                                                             &nbsp;{$mod_strings['REQUIRED_SYS_CHK']}
104                                                         </span>
105                                                     </th>
106                                                 </tr>
107                                                 <td>
108                                                     <div id='sys_check' >{$mod_strings['REQUIRED_SYS_CHK_MSG']}</div>
109                                                 </td>
110                                         </table>                        
111                                 
112                                         <table width="100%" cellpadding="0" cellpadding="0" border="0" class="Welcome">
113                                                 <tr>
114                                                     <th>
115                                                             <span onclick="showtime('installType');" style="cursor:pointer;cursor:hand">
116                                                                     <span id='basic_installType'><img alt="{$mod_strings['LBL_BASIC_TYPE']}" src="themes/default/images/basic_search.gif" border="0"></span>
117                                                                     <span id='adv_installType' style='display:none'><img alt="{$mod_strings['LBL_ADVANCED_TYPE']}" src="themes/default/images/advanced_search.gif" border="0"></span>
118                                                                     &nbsp;{$mod_strings['REQUIRED_INSTALLTYPE']}
119                                                             </span>
120                                                     </th>
121                                                 </tr>
122                                                 <td>
123                                                     <div id='installType' >{$mod_strings['REQUIRED_INSTALLTYPE_MSG']}</div>
124                                                 </td>
125                                         </table>
126                             </td>
127                         </tr>
128                         
129                         <tr>
130                                 <td align="right" colspan="2" height="20">
131                                         <hr>
132                                         <table cellspacing="0" cellpadding="0" border="0" class="stdTable">
133                                                 <tr>
134                                                         <td>
135                                                             <input type="hidden" name="current_step" value="{$next_step}">
136                                                         </td>
137                                                     <td>
138                                                                 <input class="acceptButton" type="button" name="goto" value="{$mod_strings['LBL_BACK']}" id="button_back_ready" onclick="document.getElementById('form').submit();" />
139                                                                 <input class="button" type="submit" name="goto" value="{$mod_strings['LBL_NEXT']}" id="button_next2" />
140                                                 </td>
141                                         </tr>
142                                 </table>
143                             </td>
144                     </tr>
145             </table>
146     </form>
147     <script>
148         function showtime(div){
149
150             if(document.getElementById(div).style.display == ''){
151                 document.getElementById(div).style.display = 'none';
152                 document.getElementById('adv_'+div).style.display = '';
153                 document.getElementById('basic_'+div).style.display = 'none';
154             }else{
155                 document.getElementById(div).style.display = '';
156                 document.getElementById('adv_'+div).style.display = 'none';
157                 document.getElementById('basic_'+div).style.display = '';
158             }
159
160         }
161     </script>
162 </body>
163 </html>
164 EOQ;
165 echo $out;
166 ?>