CRM-12351 Add .tpl for 4.3.1 upgrade and query to populate civicrm_dedupe_rule_group...
[civicrm-core.git] / install / template.html
CommitLineData
6a488035
TO
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3<head>
4<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
5<title>CiviCRM Installer</title>
6<script>
7function show(id) {
8 document.getElementById(id).style.display = '';
9}
10function hide(id) {
11 document.getElementById(id).style.display = 'none';
12}
13</script>
14<link rel="stylesheet" type="text/css" href=<?php echo $installURLPath . "template.css"?> />
15</head>
16
17<body>
18<div id="All">
19 <div style="float: right"><b>Version <?php echo "{$civicrm_version['version']} {$civicrm_version['cms']}" ?></b></br>
f47b6f54 20 <span><img src=<?php echo $installURLPath . "powered_by.png"?> /></span>
6a488035
TO
21 </div>
22<h1>CiviCRM Installer</h1>
23<div>Thanks for choosing to use CiviCRM! Please follow the instructions below to get CiviCRM installed.</div>
24</br><br>
25<form name="civicrm_form" method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>">
26<?php if(isset($hasErrorOtherThanDatabase)) { ?>
27<p class="error">We are not able to install the software. Please <a style="color: #CCF" href="#requirements">see below</a> for details.</p>
28<?php } else { ?>
29<?php if($req->hasWarnings()) { ?>
30<p class="warning">There are some issues that we recommend you look at before installing, however, you are still able to install the software. Please see below for details.</p>
31
32<?php } else if(!$dbReq->hasErrors()) { ?>
33<p class="good">You're ready to install! &nbsp;&nbsp;
34</p>
35
36<?php } ?>
37
38<p>
39 <input id="install_button" type="submit" name="go" value="Check Requirements and Install CiviCRM" onclick="document.getElementById('saving_top').style.display = ''; this.value = 'Installing CiviCRM...'" />
40
41 <span id="saving_top" style="display: none">
42 &nbsp;
43 <img src=<?php echo $installURLPath . "network-save.gif"?> />
44 (this will take a few minutes)
45 </span>
46</p>
47<?php } ?>
48
49
50<input type="hidden" name="database" value="MySQLDatabase" />
51
52<h2>Database Version and Connection Settings</h2>
53<p>
54CiviCRM stores its content in a MySQL database. Please provide the username
55and password to connect to the server here. If this account has permission to create databases, then we will
56create the database for you; otherwise, you must give the name of a database that already exists.
57</p>
58
59<?php if($dbReq->hasErrors()) { ?>
60<p class="error">Your database settings don't appear to be correct. Please check the <strong><a href="#dbDetails" style="color: white;">Database Details</a></strong> below for specific errors.</p>
61<?php } else { ?>
62<p class="good">Database version and connection settings have been verified and look correct!</p>
63<?php } ?>
64
65<h4>CiviCRM Database Settings</h4>
66<p style="margin-left: 2em" id="mysql_credentials" > <!--style="display: none"-->
67 <label for="mysql_server"> <span>MySQL server:</span> <input id="mysql_server" type="text" name="mysql[server]" value="<?php echo $databaseConfig['server'] ?>" /></label> <br />
68 <label for="mysql_username"> <span>MySQL username:</span> <input id="mysql_username" type="text" name="mysql[username]" value="<?php echo $databaseConfig['username'] ?>" /></label> <br />
69 <label for="mysql_password"> <span>MySQL password:</span> <input id="mysql_password" type="password" name="mysql[password]" value="<?php echo $databaseConfig['password'] ?>" /></label> <br />
70 <label for="mysql_database"><span>MySQL database:</span> <input id="mysql_database" type="text" name="mysql[database]" value="<?php echo $databaseConfig['database'] ?>" /></label> <br />
71</p>
72
73<?php if ($installType == 'drupal') { ?>
74<h4>Drupal Database Settings</h4>
75<p style="margin-left: 2em" id="drupal_credentials" > <!--style="display: none"-->
76 <label for="drupal_server"> <span>MySQL server:</span> <input id="drupal_server" type="text" name="drupal[server]" value="<?php echo $drupalConfig['server'] ?>" /></label> <br />
77 <label for="drupal_username"> <span>MySQL username:</span> <input id="drupal_username" type="text" name="drupal[username]" value="<?php echo $drupalConfig['username'] ?>" /></label> <br />
78 <label for="drupal_password"> <span>MySQL password:</span> <input id="drupal_password" type="password" name="drupal[password]" value="<?php echo $drupalConfig['password'] ?>" /></label> <br />
79 <label for="drupal_database"><span>MySQL database:</span> <input id="drupal_database" type="text" name="drupal[database]" value="<?php echo $drupalConfig['database'] ?>" /></label> <br />
80</p>
81<?php } ?>
82
83
84<h4>Other Settings</h4>
85<p style="margin-left: 2em" id="misc_credentials" >
86<!--style="display: none"-->
87<label for="seedLanguage"><span>Language of basic data:</span></label><select id="seedLanguage" name="seedLanguage">
88 <?php
89 foreach ($langs as $locale => $language) {
90 $selected = ($locale == $seedLanguage) ? 'selected="selected"' : '';
91 echo "<option value='$locale' $selected>$language</option>";
92 }
93 ?>
94</select>
95<span class="testResults">
96 <?php
97 if (count($langs) < 2) {
98 echo "(download the civicrm-{$civicrm_version['version']}-l10n.tar.gz file and unzip into CiviCRM’s directory to add languages here)";
99 }
100 ?>
101</span><br />
102 <label for="loadGenerated"><span>Load sample data:</span><input id="loadGenerated" type="checkbox" name="loadGenerated" value=1 <?php if ( $loadGenerated == 1 ) { echo "checked='checked'"; } ?> /></label> <br />
103 <span class="testResults">Check this box to pre-populate CiviCRM with sample English contact records, online contribution pages, profile forms, etc. These examples can help you learn about CiviCRM features.</span><br />
104</p>
105
106<p style="margin-left: 2em"><input type="submit" value="Re-check requirements" /></p>
107
108<a name="dbDetails">
109<h4>CiviCRM Database Details</h4>
110<?php $dbReq->showTable("MySQL CiviCRM Configuration"); ?>
111
112<?php if ($installType == 'drupal') {
113echo "<h4>Drupal Database Details</h4>";
114$dbReq->showTable("MySQL Drupal Configuration");
115}?>
116<br /><hr />
117
118<h2 id="requirements">Requirements</h2>
119<?php
120$req->showTable();
121?>
122
123</form>
124</div>
125</body>
126</html>