1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-05-30 06:38:12 +03:00
ifhub.club/application/install/frontend/template/steps/installDb.tpl.php
2014-12-22 20:54:36 +07:00

24 lines
1.6 KiB
PHP

<?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>
<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>
<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')) { ?>
<p><label><input type="checkbox" name="db_create" value="1">
<?php echo $this->lang('steps.installDb.form.db_create.title'); ?></label></p>
<?php } ?>
<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>
<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>
<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>