Beispiel #1
0
function printStep0()
{
    $actual = Minz_Translate::language();
    $languages = Minz_Translate::availableLanguages();
    ?>
	<?php 
    $s0 = checkStep0();
    if ($s0['all'] == 'ok') {
        ?>
	<p class="alert alert-success"><span class="alert-head"><?php 
        echo _t('gen.short.ok');
        ?>
</span> <?php 
        echo _t('install.language.defined');
        ?>
</p>
	<?php 
    }
    ?>

	<form action="index.php?step=0" method="post">
		<legend><?php 
    echo _t('install.language.choose');
    ?>
</legend>
		<div class="form-group">
			<label class="group-name" for="language"><?php 
    echo _t('install.language');
    ?>
</label>
			<div class="group-controls">
				<select name="language" id="language" tabindex="1" >
				<?php 
    foreach ($languages as $lang) {
        ?>
				<option value="<?php 
        echo $lang;
        ?>
"<?php 
        echo $actual == $lang ? ' selected="selected"' : '';
        ?>
>
					<?php 
        echo _t('gen.lang.' . $lang);
        ?>
				</option>
				<?php 
    }
    ?>
				</select>
			</div>
		</div>

		<div class="form-group form-actions">
			<div class="group-controls">
				<button type="submit" class="btn btn-important" tabindex="2" ><?php 
    echo _t('gen.action.submit');
    ?>
</button>
				<button type="reset" class="btn" tabindex="3" ><?php 
    echo _t('gen.action.cancel');
    ?>
</button>
				<?php 
    if ($s0['all'] == 'ok') {
        ?>
				<a class="btn btn-important next-step" href="?step=1" tabindex="4" ><?php 
        echo _t('install.action.next_step');
        ?>
</a>
				<?php 
    }
    ?>
			</div>
		</div>
	</form>
<?php 
}
Beispiel #2
0
function printStep0()
{
    global $actual;
    ?>
	<?php 
    $s0 = checkStep0();
    if ($s0['all'] == 'ok') {
        ?>
	<p class="alert alert-success"><span class="alert-head"><?php 
        echo _t('ok');
        ?>
</span> <?php 
        echo _t('language_defined');
        ?>
</p>
	<?php 
    }
    ?>

	<form action="index.php?step=0" method="post">
		<legend><?php 
    echo _t('choose_language');
    ?>
</legend>
		<div class="form-group">
			<label class="group-name" for="language"><?php 
    echo _t('language');
    ?>
</label>
			<div class="group-controls">
				<select name="language" id="language">
				<?php 
    $languages = availableLanguages();
    ?>
				<?php 
    foreach ($languages as $short => $lib) {
        ?>
				<option value="<?php 
        echo $short;
        ?>
"<?php 
        echo $actual == $short ? ' selected="selected"' : '';
        ?>
><?php 
        echo $lib;
        ?>
</option>
				<?php 
    }
    ?>
				</select>
			</div>
		</div>

		<div class="form-group form-actions">
			<div class="group-controls">
				<button type="submit" class="btn btn-important"><?php 
    echo _t('save');
    ?>
</button>
				<button type="reset" class="btn"><?php 
    echo _t('cancel');
    ?>
</button>
				<?php 
    if ($s0['all'] == 'ok') {
        ?>
				<a class="btn btn-important next-step" href="?step=1"><?php 
        echo _t('next_step');
        ?>
</a>
				<?php 
    }
    ?>
			</div>
		</div>
	</form>
<?php 
}