Install pages updated to panels

This commit is contained in:
Mike Koch 2014-08-09 00:23:16 -04:00
parent 1ceea3d20b
commit ab8ac0edd3
2 changed files with 108 additions and 108 deletions

View File

@ -156,15 +156,17 @@ function hesk_iFinish()
?> ?>
<div class="row"> <div class="row">
<div class="col-md-4"> <div class="col-md-4">
<ul class="nav nav-tabs"> <div class="panel panel-default">
<li class="active"><a href="#" onclick="return false;">Summary</a></li> <div class="panel-heading">
</ul> <p>Summary</p>
<div class="summaryList"> </div>
<p>Congratulations, you have successfully completed HESK database setup!</p> <div class="panel-body">
</div> <p>Congratulations, you have successfully completed HESK database setup!</p>
</div>
</div>
</div> </div>
<div class="col-md-7"> <div class="col-md-8">
<div class="alert alert-success"><strong>Success!</strong> HESK Successfully installed</div> <div class="alert alert-success"><strong>Success!</strong> HESK Successfully installed</div>
<div class="h3">Next Steps:<br/><br/></div> <div class="h3">Next Steps:<br/><br/></div>
<ol> <ol>

View File

@ -342,96 +342,92 @@ function hesk_iDatabase($problem=0)
<br /> <br />
<div class="col-md-4"> <div class="col-md-4">
<ul class="nav nav-tabs"> <div class="panel panel-default">
<li class="active"><a href="#" onclick="return false;">Summary</a></li> <div class="panel-heading">
</ul> <p>Summary</p>
<div class="summaryList"> </div>
<div class="panel-body">
<?php
<?php if ($problem == 1)
if ($problem == 1) {
{ echo '<br /><br />Double-check all the information below. Contact your hosting company for the correct information to use!<br /><br /><b>MySQL said:</b> '.$mysql_log.'</p>', 'Database connection failed';
echo '<br /><br />Double-check all the information below. Contact your hosting company for the correct information to use!<br /><br /><b>MySQL said:</b> '.$mysql_log.'</p>', 'Database connection failed'; }
} elseif ($problem == 2)
elseif ($problem == 2) {
{ echo '<b>Database tables already exist!</b><br /><br />
echo '<b>Database tables already exist!</b><br /><br /> HESK database tables with <b>'.$hesk_settings['db_pfix'].'</b> prefix already exist in this database!<br /><br />
HESK database tables with <b>'.$hesk_settings['db_pfix'].'</b> prefix already exist in this database!<br /><br /> To upgrade an existing HESK installation select <a href="index.php">Update existing install</a> instead.<br /><br />
To upgrade an existing HESK installation select <a href="index.php">Update existing install</a> instead.<br /><br /> To install a new copy of HESK in use a unique table prefix.';
To install a new copy of HESK in use a unique table prefix.'; }
} elseif ($problem == 3)
elseif ($problem == 3) {
{ echo '<b>Old database tables not found!</b><br /><br />
echo '<b>Old database tables not found!</b><br /><br /> HESK database tables have not been found in this database!<br /><br />
HESK database tables have not been found in this database!<br /><br /> To install HESK use the <a href="index.php">New install</a> option instead.';
To install HESK use the <a href="index.php">New install</a> option instead.'; }
} elseif ($problem == 4)
elseif ($problem == 4) {
{ echo '<b>Version '.HESK_NEW_VERSION.' tables already exist!</b><br /><br />
echo '<b>Version '.HESK_NEW_VERSION.' tables already exist!</b><br /><br /> Your database seems to be compatible with HESK version '.HESK_NEW_VERSION.'<br /><br />
Your database seems to be compatible with HESK version '.HESK_NEW_VERSION.'<br /><br /> To install a new copy of HESK use the <a href="index.php">New install</a> option instead.';
To install a new copy of HESK use the <a href="index.php">New install</a> option instead.'; }
} else
else {
{ echo '<p style="padding: 10px;">To complete setup HESK needs to connect to your database. You can get this information from your hosting control panel.</p>';
echo '<p style="padding: 10px;">To complete setup HESK needs to connect to your database. You can get this information from your hosting control panel.</p>'; }
} ?>
?> </div>
</div>
</div>
<div class="col-md-7">
<div class="alert alert-warning"><strong>3. Database Settings</strong></div>
<form role="form" action="<?php echo INSTALL_PAGE; ?>" method="post">
<div class="h3">Database Settings</div>
<div class="footerWithBorder blankSpace"></div>
<div class="form-group">
<label for="host">Database Host</label>
<input type="text" class="form-control" name="host" id="host" placeholder="ex. localhost">
</div>
<div class="form-group">
<label for="name">Database Name</label>
<input type="text" class="form-control" name="name" id="name" placeholder="ex. hesk">
</div>
<div class="form-group">
<label for="user">Database User</label>
<input type="text" class="form-control" name="user" id="user" placeholder="ex. root">
</div>
<div class="form-group">
<label for="pass">Database User's Password</label>
<input type="password" class="form-control" name="pass" id="pass" placeholder="Password">
</div>
<?php
if (INSTALL_PAGE == 'install.php')
{
?>
<div class="form-group">
<label for="pfix">Table Prefix</label>
<input type="text" class="form-control" name="pfix" id="pfix" placeholder="ex. hesk_">
</div>
<br>
<div class="h3">HESK Login Details</div>
<div class="h6">Username and password you will use to login into HESK administration.</div>
<div class="footerWithBorder blankSpace"></div>
<div class="form-group">
<label for="admin_user">Choose a Username</label>
<input type="text" class="form-control" placeholder="Username" name="admin_user" value="<?php echo isset($_SESSION['admin_user']) ? stripslashes($_SESSION['admin_user']) : 'Administrator'; ?>" size="40" autocomplete="off" />
</div>
<div class="form-group">
<label for="admin_pass">Choose a Password</label>
<input type="text" class="form-control" placeholder="Password" name="admin_pass" id="admin_pass" value="<?php echo isset($_SESSION['admin_pass']) ? stripslashes($_SESSION['admin_pass']) : ''; ?>" size="40" autocomplete="off" />
</div> </div>
</div>
<div class="col-md-8">
<div class="alert alert-warning"><strong>3. Database Settings</strong></div>
<form role="form" action="<?php echo INSTALL_PAGE; ?>" method="post">
<div class="h3">Database Settings</div>
<div class="footerWithBorder blankSpace"></div>
<div class="form-group">
<label for="host">Database Host</label>
<input type="text" class="form-control" name="host" id="host" placeholder="ex. localhost">
</div>
<div class="form-group">
<label for="name">Database Name</label>
<input type="text" class="form-control" name="name" id="name" placeholder="ex. hesk">
</div>
<div class="form-group">
<label for="user">Database User</label>
<input type="text" class="form-control" name="user" id="user" placeholder="ex. root">
</div>
<div class="form-group">
<label for="pass">Database User's Password</label>
<input type="password" class="form-control" name="pass" id="pass" placeholder="Password">
</div>
<?php
if (INSTALL_PAGE == 'install.php')
{
?>
<div class="form-group">
<label for="pfix">Table Prefix</label>
<input type="text" class="form-control" name="pfix" id="pfix" placeholder="ex. hesk_">
</div>
<br>
<div class="h3">HESK Login Details</div>
<div class="h6">Username and password you will use to login into HESK administration.</div>
<div class="footerWithBorder blankSpace"></div>
<div class="form-group">
<label for="admin_user">Choose a Username</label>
<input type="text" class="form-control" placeholder="Username" name="admin_user" value="<?php echo isset($_SESSION['admin_user']) ? stripslashes($_SESSION['admin_user']) : 'Administrator'; ?>" size="40" autocomplete="off" />
</div>
<div class="form-group">
<label for="admin_pass">Choose a Password</label>
<input type="text" class="form-control" placeholder="Password" name="admin_pass" id="admin_pass" value="<?php echo isset($_SESSION['admin_pass']) ? stripslashes($_SESSION['admin_pass']) : ''; ?>" size="40" autocomplete="off" />
</div>
<?php <?php
} }
?> ?>
<p align="center"><input type="hidden" name="dbtest" value="1" /><button type="submit" class="btn btn-default btn-lg">Continue</button></p> <p align="center"><input type="hidden" name="dbtest" value="1" /><button type="submit" class="btn btn-default btn-lg">Continue</button></p>
</form> </form>
<?php <?php
hesk_iFooter(); hesk_iFooter();
@ -635,20 +631,22 @@ function hesk_iStart()
hesk_iHeader(); hesk_iHeader();
?> ?>
<div class="row"> <div class="row">
<div class="col-md-4"> <div class="col-md-4">
<ul class="nav nav-tabs"> <div class="panel panel-default">
<li class="active"><a href="#" onclick="return false;">Summary</a></li> <div class="panel-heading">
</ul> <p>Summary</p>
<div class="summaryList"> </div>
<ul> <div class="panel-body">
<li>The script is provided &quot;as is&quot;, without any warranty. Use at your own risk.<br />&nbsp;</li> <ul>
<li>HESK is a registered trademark, using the term HESK requires permission.<br />&nbsp;</li> <li>The script is provided &quot;as is&quot;, without any warranty. Use at your own risk.<br />&nbsp;</li>
<li>Do not redistribute this script without express written permission<br />&nbsp;</li> <li>HESK is a registered trademark, using the term HESK requires permission.<br />&nbsp;</li>
<li>If you wish to remove the &quot;Powered by&quot; links a <a href="https://www.hesk.com/buy.php" target="_blank">license is required</a>.</li> <li>Do not redistribute this script without express written permission<br />&nbsp;</li>
</ul> <li>If you wish to remove the &quot;Powered by&quot; links a <a href="https://www.hesk.com/buy.php" target="_blank">license is required</a>.</li>
</div> </ul>
</div>
</div>
</div> </div>
<div class="col-md-7"> <div class="col-md-8">
<div class="alert alert-warning"><strong>1. License Agreement</strong></div> <div class="alert alert-warning"><strong>1. License Agreement</strong></div>
<b>The entire agreement:</b> <b>The entire agreement:</b>
<div class="agreementBox"> <div class="agreementBox">