1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-05-13 14:28:18 +03:00

Оформление установщика

This commit is contained in:
Denis Shakhov 2014-12-22 20:54:36 +07:00
parent 366106771a
commit 9a94b17988
17 changed files with 895 additions and 162 deletions

View file

@ -108,10 +108,14 @@ return array(
),
),
'updateVersion' => array(
'title' => 'Выбор текущей версии',
'errors' => array(
'not_found_convert' => 'Для данной версии нет возможности обновления',
),
),
'updateDb' => array(
'title' => 'Настройка базы данных',
),
),
'config' => array(
'errors' => array(
@ -137,7 +141,7 @@ return array(
)
),
),
'install_reset' => 'Начать установку сначала',
'install_reset' => 'Начать сначала',
'yes' => 'Да',
'no' => 'Нет',
);

View file

@ -0,0 +1,70 @@
/**
* Уведомления
*
* @module ls/alerts
*
* @license GNU General Public License, version 2
* @copyright 2013 OOO "ЛС-СОФТ" {@link http://livestreetcms.com}
* @author Denis Shakhov <denis.shakhov@gmail.com>
*/
.alert {
position: relative;
border: 1px solid #eed3d7;
background-color: #f2dede;
color: #b94a48;
padding: 10px 15px;
margin-bottom: 15px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
.alert:last-child {
margin-bottom: 0;
}
.alert li {
margin-bottom: 5px;
}
/* Заголовок */
.alert-title {
margin-bottom: 5px;
font-size: 14px;
font-weight: bold;
}
/**
* @modifier error Ошибка
*/
.alert.alert--error {
background-color: #f2dede;
color: #b94a48;
border-color: #eed3d7;
}
/**
* @modifier success Успешно завершено
*/
.alert.alert--success {
background-color: #dff0d8;
color: #468847;
border-color: #d6e9c6;
}
/**
* @modifier info Информация
*/
.alert.alert--info {
background-color: #d9edf7;
color: #3a87ad;
border-color: #bce8f1;
}
/**
* @modifier empty Пусто
*/
.alert.alert--empty {
background-color: #fafafa;
color: #777;
border-color: #eee;
}

View file

@ -0,0 +1,82 @@
/**
* Buttons
*
* @module ls/button
*
* @license GNU General Public License, version 2
* @copyright 2013 OOO "ЛС-СОФТ" {@link http://livestreetcms.com}
* @author Denis Shakhov <denis.shakhov@gmail.com>
*/
.button {
display: inline-block;
padding: 7px 13px;
margin: 0;
border: 1px solid #ddd;
text-align: center;
vertical-align: middle;
text-decoration: none;
font-size: 13px;
line-height: normal;
color: #444;
background: transparent;
font-family: Arial, sans-serif;
cursor: pointer;
position: relative;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
-webkit-transition: background .2s, color .2s;
-moz-transition: background .2s, color .2s;
transition: background .2s, color .2s;
}
.button:hover { text-decoration: none; background: #fafafa; color: #333; }
.button:active {
position: relative;
top: 1px;
}
.button:focus { outline: none; }
.button.active {
background: #eaeaea;
}
.button.pull-right { margin-left: 5px; }
/**
* Button Disabled
*/
.button.disabled,
.button.disabled:hover,
.button[disabled],
.button[disabled]:hover {
border-color: #ccc;
background: #eee;
color: #999;
}
.button.disabled:active,
.button[disabled]:active {
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
/**
* Button Primary
*/
.button--primary { border-color: #74A2FF; color: #777DFF; }
.button--primary:hover { background: #91B6FF; color: #fff; }
.button--primary.active { background: #006DCC; }
/**
* Button Large
*/
.button--large { height: 34px; font-size: 14px; }
a.button--large { padding-top: 8px; }
.button.button--large.button-icon { padding-left: 9px; padding-right: 9px; }

View file

@ -0,0 +1,67 @@
/**
* Forms
*
* @license GNU General Public License, version 2
* @copyright 2013 OOO "ЛС-СОФТ" {@link http://livestreetcms.com}
* @author Denis Shakhov <denis.shakhov@gmail.com>
*/
/* Input Text */
select,
input[type="password"],
input[type="text"] {
padding: 7px 8px;
border: 1px solid #ddd;
vertical-align: middle;
border-radius: 3px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
input[type="text"]:focus,
input[type="password"]:focus {
border-color: #4d90fe;
-webkit-box-shadow: 0 2px 4px rgba(0,0,0,.07) inset, 0 0 3px #4d90fe;
box-shadow: 0 2px 4px rgba(0,0,0,.07) inset, 0 0 3px #4d90fe;
outline: none;
}
select,
input[type="password"],
input[type="text"] {
line-height: 18px;
}
/* Checkboxes */
input[type="checkbox"] {
position: relative;
top: 1px;
margin: 0 2px 0 1px;
}
form p {
margin-bottom: 25px;
}
form label {
display: block;
margin-bottom: 4px;
color: #444;
}
/* Note */
.note {
display: block;
margin-top: 3px;
font-size: 12px;
color: #aaa;
}
/* Placeholder */
:-moz-placeholder { color: #afafaf; }
::-moz-placeholder { color: #afafaf; opacity: 1; }
::-webkit-input-placeholder { color: #afafaf; }
:-ms-input-placeholder { color: #afafaf; }

View file

@ -0,0 +1,65 @@
/**
* Helpers
*
* @license GNU General Public License, version 2
* @copyright 2013 OOO "ЛС-СОФТ" {@link http://livestreetcms.com}
* @author Denis Shakhov <denis.shakhov@gmail.com>
*/
/* Margins */
.mt-10 { margin-top: 10px !important; }
.mt-15 { margin-top: 15px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-30 { margin-top: 30px !important; }
.mb-10 { margin-bottom: 10px !important; }
.mb-15 { margin-bottom: 15px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-30 { margin-bottom: 30px !important; }
.m-0 { margin: 0 !important; }
/* Text Align */
.ta-c { text-align: center !important; }
.ta-r { text-align: right !important; }
/* Floats */
.fl-r, .float-right, .pull-right { float: right !important; }
.fl-l, .float-left, .pull-left { float: left !important; }
/* Clearfix */
.clearfix:before,
.clearfix:after { content: ""; display: table; line-height: 0; }
.clearfix:after { clear: both; }
/* Width */
.width-full { width: 100% !important; }
.width-50 { width: 50px !important; }
.width-100 { width: 100px !important; }
.width-150 { width: 150px !important; }
.width-200 { width: 200px !important; }
.width-250 { width: 250px !important; }
.width-300 { width: 300px !important; }
.width-350 { width: 350px !important; }
.width-400 { width: 400px !important; }
.width-450 { width: 450px !important; }
.width-500 { width: 500px !important; }
.width-550 { width: 550px !important; }
.width-600 { width: 600px !important; }
.width-650 { width: 650px !important; }
/* Loader */
/* TODO: Change gif */
.loading {
height: 100px;
margin-bottom: 20px;
background-image: url(../images/loader.gif);
background-position: 50% 50%;
background-repeat: no-repeat;
}

View file

@ -1,30 +1,88 @@
body {
font: 13px/1.3em Arial,sans-serif;
background: #fafafa;
}
h1, h2, h3, h4, h5, h6 {
font-family: 'Open Sans', Arial;
font-weight: 300;
}
a {
color: #1A80DB;
text-decoration: none;
}
a:hover {
color: #058;
}
/**
* Page header
*/
.page-header {
margin-bottom: 20px;
padding-bottom: 4px;
font-size: 18px;
border-bottom: 1px solid #eee;
}
.container {
max-width: 400px;
margin: 40px auto 40px;
padding: 30px;
background: #fff;
box-shadow: 0 1px 5px rgba(0,0,0,.3)
}
/**
* Header
*/
.header {
width: 100%;
height: 50;
border: 1px solid #93aee0;
text-align: center;
margin-bottom: 10px;
padding: 10px 20px;
margin-bottom: 30px;
text-align: center;
}
.footer {
width: 100%;
height: 50;
border: 1px solid #93aee0;
text-align: center;
margin-top: 10px;
.header h1 {
font-size: 25px;
}
.content {
width: 100%;
border: 1px solid #aa343c;
text-align: center;
.header h2 {
margin-top: 5px;
font-size: 16px;
color: #777;
}
.content-body {
width: 100%;
min-height: 100;
text-align: center;
margin-bottom: 10px;
margin-top: 10px;
/**
* Content
*/
.step-buttons {
padding-top: 20px;
}
/**
* Complete
*/
.complete h2, .complete p {
text-align: center;
}
.complete h2 {
font-size: 18px;
margin-bottom: 15px;
}
/**
* Index
*/
.groups {
padding-bottom: 15px;
text-align: center;
}
.groups li {
margin-bottom: 10px;
font-size: 18px;
font-family: 'Open Sans', Arial;
}
.groups li:last-child {
margin-bottom: 0;
}

View file

@ -0,0 +1,397 @@
/* Adapted from git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined in IE 8/9.
*/
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
nav,
section,
summary {
display: block;
}
/**
* Correct `inline-block` display not defined in IE 8/9.
*/
audio,
canvas,
video {
display: inline-block;
}
/**
* Prevent modern browsers from displaying `audio` without controls.
* Remove excess height in iOS 5 devices.
*/
audio:not([controls]) {
display: none;
height: 0;
}
/**
* Address styling not present in IE 8/9.
*/
[hidden] {
display: none;
}
/* ==========================================================================
Base
========================================================================== */
/**
* 1. Set default font family to sans-serif.
* 2. Prevent iOS text size adjust after orientation change, without disabling
* user zoom.
*/
html {
font-family: sans-serif; /* 1 */
-webkit-text-size-adjust: 100%; /* 2 */
-ms-text-size-adjust: 100%; /* 2 */
}
/**
* Remove default margin.
*/
body {
margin: 0;
}
/* ==========================================================================
Links
========================================================================== */
/**
* Address `outline` inconsistency between Chrome and other browsers.
*/
a:focus {
outline: 0;
}
/**
* Improve readability when focused and also mouse hovered in all browsers.
*/
a:active,
a:hover {
outline: 0;
}
/* ==========================================================================
Typography
========================================================================== */
/**
* Address variable `h1` font size within `section` and `article` contexts in
* Firefox 4+, Safari 5, and Chrome.
*/
h1, h2, h3, h4, h5, h6 {
font-size: 1em;
line-height: 1.6em;
font-weight: normal;
margin: 0;
font-family: sans-serif;
}
p { margin: 0; }
/**
* Address styling not present in IE 8/9, Safari 5, and Chrome.
*/
abbr[title],
acronym[title] {
border-bottom: 1px dotted;
cursor: help;
}
/**
* Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
*/
b,
strong {
font-weight: bold;
}
/**
* Address styling not present in Safari 5 and Chrome.
*/
dfn {
font-style: italic;
}
/**
* Address styling not present in IE 8/9.
*/
mark {
background: #ff0;
color: #000;
}
/**
* Correct font family set oddly in Safari 5 and Chrome.
*/
code,
kbd,
pre,
samp {
font-family: monospace, serif;
font-size: 1em;
}
/**
* Improve readability of pre-formatted text in all browsers.
*/
/* pre {
white-space: pre;
white-space: pre-wrap;
word-wrap: break-word;
} */
/**
* Set consistent quote types.
*/
q {
quotes: "\201C" "\201D" "\2018" "\2019";
}
/**
* Address inconsistent and variable font size in all browsers.
*/
small {
font-size: 80%;
}
/**
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}
/* =============================================================================
Lists
========================================================================== */
ul, ol, dl, dd, dt { margin: 0; padding: 0; }
ul, ol {
list-style: none;
list-style-image: none;
}
/* ==========================================================================
Embedded content
========================================================================== */
/**
* Remove border when inside `a` element in IE 8/9.
*/
img {
border: 0;
}
/**
* Correct overflow displayed oddly in IE 9.
*/
svg:not(:root) {
overflow: hidden;
}
iframe {
border: 0;
}
/* ==========================================================================
Figures
========================================================================== */
/**
* Address margin not present in IE 8/9 and Safari 5.
*/
figure {
margin: 0;
}
/* ==========================================================================
Forms
========================================================================== */
/**
* Define consistent border, margin, and padding.
*/
fieldset {
border: 0;
margin: 0 2px;
padding: 0;
}
/**
* 1. Correct `color` not being inherited in IE 8/9.
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
*/
legend {
border: 0; /* 1 */
padding: 0; /* 2 */
}
/**
* 1. Correct font family not being inherited in all browsers.
* 2. Correct font size not being inherited in all browsers.
* 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
*/
button,
input,
select,
textarea {
font-family: inherit; /* 1 */
font-size: 100%; /* 2 */
margin: 0; /* 3 */
}
/**
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
* the UA stylesheet.
*/
button,
input {
line-height: normal;
}
/**
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
* and `video` controls.
* 2. Correct inability to style clickable `input` types in iOS.
* 3. Improve usability and consistency of cursor style between image-type
* `input` and others.
*/
button,
html input[type="button"], /* 1 */
input[type="reset"],
input[type="submit"] {
-webkit-appearance: button; /* 2 */
cursor: pointer; /* 3 */
}
/**
* Re-set default cursor for disabled elements.
*/
button[disabled],
html input[disabled] {
cursor: default;
}
/**
* 1. Address box sizing set to `content-box` in IE 8/9.
* 2. Remove excess padding in IE 8/9.
*/
input[type="checkbox"],
input[type="radio"] {
box-sizing: border-box; /* 1 */
padding: 0; /* 2 */
}
/**
* 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
* 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
* (include `-moz` to future-proof).
*/
input[type="search"] {
-webkit-appearance: textfield; /* 1 */
-moz-box-sizing: content-box;
-webkit-box-sizing: content-box; /* 2 */
box-sizing: content-box;
}
/**
* Remove inner padding and search cancel button in Safari 5 and Chrome
* on OS X.
*/
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
/**
* Remove inner padding and border in Firefox 4+.
*/
button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
padding: 0;
}
/**
* 1. Remove default vertical scrollbar in IE 8/9.
* 2. Improve readability and alignment in all browsers.
*/
textarea {
overflow: auto; /* 1 */
vertical-align: top; /* 2 */
}
/* ==========================================================================
Tables
========================================================================== */
/**
* Remove most spacing between table cells.
*/
table {
border-collapse: collapse;
border-spacing: 0;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View file

@ -1 +1,3 @@
Ошибка: <?php echo $this->get('msg'); ?>
<div class="alert alert--error">
Ошибка: <?php echo $this->get('msg'); ?>
</div>

View file

@ -1,10 +1,9 @@
Нужно выбрать группу:
<br/>
<br/>
<?php
foreach ($this->get('groups') as $group) {
?>
<a href="?group=<?php echo $group; ?>"><?php echo $this->lang("groups.{$group}.title"); ?></a>
<?php } ?>
<ul class="groups">
<?php foreach ($this->get('groups') as $group) { ?>
<li>
<h2><a href="?group=<?php echo $group; ?>">
<?php echo $this->lang("groups.{$group}.title"); ?>
</a></h2>
</li>
<?php } ?>
</ul>

View file

@ -1,69 +1,76 @@
<html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Установка LiveStreet <?php echo VERSION; ?></title>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,700&subset=cyrillic,latin' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="./frontend/template/assets/css/reset.css"/>
<link rel="stylesheet" type="text/css" href="./frontend/template/assets/css/helpers.css"/>
<link rel="stylesheet" type="text/css" href="./frontend/template/assets/css/button.css"/>
<link rel="stylesheet" type="text/css" href="./frontend/template/assets/css/alert.css"/>
<link rel="stylesheet" type="text/css" href="./frontend/template/assets/css/forms.css"/>
<link rel="stylesheet" type="text/css" href="./frontend/template/assets/css/main.css"/>
<script type="text/javascript" src="./frontend/template/assets/js/jquery.min.js"></script>
<script type="text/javascript" src="./frontend/template/assets/js/main.js"></script>
</head>
<body>
<div class="header">
header - LiveStreet <?php echo VERSION; ?>
<br/>
<div class="container">
<div class="header">
<h1>Установка LiveStreet <?php echo VERSION; ?></h1>
<?php if (!$this->get('install_reset_hide')) { ?>
<a href="./?reset=1"><?php echo $this->lang('install_reset'); ?></a>
<?php } ?>
</div>
<?php if ($currentStep = $this->get('currentStep')) { ?>
<h2><?php echo $currentStep->getGroupTitle(); ?></h2>
<?php } ?>
</div>
<div class="content">
<form action="" method="post">
<div class="content">
<?php if ($currentStep = $this->get('currentStep')) { ?>
<h2 class="page-header">
<?php echo $currentStep->getStepTitle(); ?>
</h2>
<div>
<?php if ($currentStep = $this->get('currentStep')) { ?>
<?php echo $currentStep->getGroupTitle(); ?> &mdash; <?php echo $currentStep->getStepTitle(); ?>
<?php if ($errors = $currentStep->getErrors()) { ?>
<div class="alert alert--error">
<?php foreach ($errors as $sMsg) { ?>
<?php if ($errors = $currentStep->getErrors()) { ?>
<div class="errors">
<?php foreach ($errors as $sMsg) { ?>
<?php echo $sMsg; ?><br/>
<?php echo $sMsg; ?><br/>
<?php } ?>
</div>
<?php } ?>
<?php } ?>
<?php } ?>
</div>
<form action="" method="post">
<div class="content-body">
<?php echo $this->get('content'); ?>
</div>
<div class="step-buttons clearfix">
<?php if (!$this->get('install_reset_hide')) { ?>
<a href="./?reset=1" class="button"><?php echo $this->lang('install_reset'); ?></a>
<?php } ?>
<?php } ?>
</div>
<?php if (!$this->get('next_step_hide')) { ?>
<button type="submit" class="button button--primary pull-right" name="action_next" id="action_next"
<?php if ($this->get('next_step_disable')) { ?>disabled="disabled" <?php } ?> >Дальше
</button>
<?php } ?>
<div class="content-body">
<?php echo $this->get('content'); ?>
</div>
<div>
<?php if (!$this->get('previous_step_hide')) { ?>
<button type="submit" name="action_previous" id="action_previous"
<?php if ($this->get('previous_step_disable')) { ?>disabled="disabled" <?php } ?> >previous
</button>
<?php } ?>
<?php if (!$this->get('next_step_hide')) { ?>
<button type="submit" name="action_next" id="action_next"
<?php if ($this->get('next_step_disable')) { ?>disabled="disabled" <?php } ?> >next
</button>
<?php } ?>
</div>
</form>
</div>
<div class="footer">
footer
<?php if (!$this->get('previous_step_hide')) { ?>
<button type="submit" class="button pull-right" name="action_previous" id="action_previous"
<?php if ($this->get('previous_step_disable')) { ?>disabled="disabled" <?php } ?> >Назад
</button>
<?php } ?>
</div>
</form>
</div>
</div>
</body>
</html>

View file

@ -1,29 +1,30 @@
<?php
if ($requirements = $this->get('requirements')) {
?>
<?php if ($requirements = $this->get('requirements')) { ?>
Хостинг не удовлетворяет минимальным требованиям.<br/>
<div class="alert alert--error">
<div class="alert-title">Хостинг не удовлетворяет минимальным требованиям.</div>
<?php foreach ($requirements as $requirement) { ?>
<ul>
<?php foreach ($requirements as $requirement) { ?>
<li>
<div>
<?php echo $this->lang('steps.checkRequirements.requirements.' . $requirement['name'] . '.title'); ?> &mdash; <?php echo $requirement['current']; ?>
</div>
<div>
<div>
<?php echo $this->lang('steps.checkRequirements.requirements.' . $requirement['name'] . '.title'); ?> &mdash; <?php echo $requirement['current']; ?>
</div>
<div>
<?php echo $this->lang('steps.checkRequirements.requirements.' . $requirement['name'] . '.solution'); ?>
</div>
</div>
<?php } ?>
<div>
<?php echo $this->lang('steps.checkRequirements.requirements.' . $requirement['name'] . '.solution'); ?>
</div>
</li>
<?php } ?>
</ul>
</div>
<?php } else { ?>
Здесь показываем процесс-лоадер на пару секунд. Далее автоматически переходим на следующий шаг.
<div class="loading"></div>
<script type="text/javascript">
jQuery(function ($) {
install.goNextStep();
setTimeout(install.goNextStep, 1000);
});
</script>

View file

@ -1,10 +1,5 @@
<?php echo $this->lang('steps.installAdmin.form.mail.title'); ?>
<input type="text" name="admin_mail" value="<?php echo htmlspecialchars(InstallCore::getRequestStr('admin_mail')); ?>">
<p><label for=""><?php echo $this->lang('steps.installAdmin.form.mail.title'); ?></label>
<input type="text" name="admin_mail" value="<?php echo htmlspecialchars(InstallCore::getRequestStr('admin_mail')); ?>"></p>
<br/><br/>
<?php echo $this->lang('steps.installAdmin.form.passwd.title'); ?>
<input type="password" name="admin_passwd"
value="<?php echo htmlspecialchars(InstallCore::getRequestStr('admin_passwd')); ?>">
<br/><br/>
<p><label for=""><?php echo $this->lang('steps.installAdmin.form.passwd.title'); ?></label>
<input type="password" name="admin_passwd" value="<?php echo htmlspecialchars(InstallCore::getRequestStr('admin_passwd')); ?>"></p>

View file

@ -1,6 +1,9 @@
Установка завершена!
<br/>
<div class="complete">
<h2>Установка завершена!</h2>
Приятного использования LiveStreet!<br/>
<p>Приятного использования LiveStreet!<p>
Обязательно удалите каталог /application/install/
<div class="alert alert--info">
Обязательно удалите каталог /application/install/
</div>
</div>

View file

@ -1,39 +1,24 @@
<?php
$oCurrentStep = $this->get('currentStep');
?>
<?php $oCurrentStep = $this->get('currentStep'); ?>
<p><label for=""><?php echo $this->lang('steps.installDb.form.db_host.title'); ?></label>
<input type="text" name="db.params.host" class="width-full" value="<?php echo $oCurrentStep->getValue('db.params.host', 'localhost'); ?>"></p>
<?php echo $this->lang('steps.installDb.form.db_host.title'); ?>
<input type="text" name="db.params.host" value="<?php echo $oCurrentStep->getValue('db.params.host', 'localhost'); ?>">
<p><label for=""><?php echo $this->lang('steps.installDb.form.db_port.title'); ?></label>
<input type="text" name="db.params.port" class="width-full" value="<?php echo $oCurrentStep->getValue('db.params.port', 3306); ?>"></p>
<br/><br/>
<?php echo $this->lang('steps.installDb.form.db_port.title'); ?>
<input type="text" name="db.params.port" value="<?php echo $oCurrentStep->getValue('db.params.port', 3306); ?>">
<br/><br/>
<?php echo $this->lang('steps.installDb.form.db_name.title'); ?>
<input type="text" name="db.params.dbname" value="<?php echo $oCurrentStep->getValue('db.params.dbname', 'social'); ?>">
<p><label for=""><?php echo $this->lang('steps.installDb.form.db_name.title'); ?></label>
<input type="text" name="db.params.dbname" class="width-full" value="<?php echo $oCurrentStep->getValue('db.params.dbname', 'social'); ?>"></p>
<?php if (!$oCurrentStep->getParam('hide_create_db')) { ?>
<br/><br/>
<?php echo $this->lang('steps.installDb.form.db_create.title'); ?>
<input type="checkbox" name="db_create" value="1">
<p><label><input type="checkbox" name="db_create" value="1">
<?php echo $this->lang('steps.installDb.form.db_create.title'); ?></label></p>
<?php } ?>
<br/><br/>
<p><label for=""><?php echo $this->lang('steps.installDb.form.db_user.title'); ?></label>
<input type="text" name="db.params.user" class="width-full" value="<?php echo $oCurrentStep->getValue('db.params.user', 'root'); ?>"></p>
<?php echo $this->lang('steps.installDb.form.db_user.title'); ?>
<input type="text" name="db.params.user" value="<?php echo $oCurrentStep->getValue('db.params.user', 'root'); ?>">
<p><label for=""><?php echo $this->lang('steps.installDb.form.db_passwd.title'); ?></label>
<input type="password" name="db.params.pass" class="width-full" value="<?php echo $oCurrentStep->getValue('db.params.pass', ''); ?>"></p>
<br/><br/>
<?php echo $this->lang('steps.installDb.form.db_passwd.title'); ?>
<input type="text" name="db.params.pass" value="<?php echo $oCurrentStep->getValue('db.params.pass', ''); ?>">
<br/><br/>
<?php echo $this->lang('steps.installDb.form.db_prefix.title'); ?>
<input type="text" name="db.table.prefix" value="<?php echo $oCurrentStep->getValue('db.table.prefix', 'prefix_'); ?>">
<p><label for=""><?php echo $this->lang('steps.installDb.form.db_prefix.title'); ?></label>
<input type="text" name="db.table.prefix" class="width-full" value="<?php echo $oCurrentStep->getValue('db.table.prefix', 'prefix_'); ?>"></p>

View file

@ -1,6 +1,9 @@
Обновление успешно завершено!
<br/>
<div class="complete">
<h2>Обновление успешно завершено!</h2>
Приятного использования новой версией LiveStreet!<br/>
<p>Приятного использования новой версией LiveStreet!</p>
Обязательно удалите каталог /application/install/
<div class="alert alert--info">
Обязательно удалите каталог /application/install/
</div>
</div>

View file

@ -1,19 +1,14 @@
Здесь подробная информация об обновлении.
<br/>
<div class="alert alert--info">
<div class="alert-title">Внимание!</div>
Перед обновлением обязательно сделайте бекап БД
</div>
<ul>
<li>Обязательно бекап</li>
<li>Обязательно бекап</li>
<li>Обязательно бекап</li>
<li>Обязательно бекап</li>
<li>Обязательно бекап</li>
</ul>
<br/>
Ваша текущая версия:
<select name="from_version">
<option value=""></option>
<p><label for="">Ваша текущая версия:</label>
<select name="from_version" class="width-100">
<?php foreach ($this->get('convert_versions') as $version) { ?>
<option <?php if ($this->get('from_version') == $version) { ?> selected="selected" <?php } ?> ><?php echo $version ?></option>
<option <?php if ($this->get('from_version') == $version) { ?> selected="selected" <?php } ?> >
<?php echo $version ?>
</option>
<?php } ?>
</select>
</select></p>