oms-Profile/Theme/Backend/profile-single.tpl.php

548 lines
40 KiB
PHP

<?php
/**
* Orange Management
*
* PHP Version 7.4
*
* @package Modules\Profile
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
use Modules\Media\Models\NullMedia;
use phpOMS\Uri\UriFactory;
/**
* @var \phpOMS\Views\View $this
* @var \Modules\Profile\Models\Profile $profile
*/
$profile = $this->getData('account');
$settings = $this->getData('settings') ?? [];
$countryCodes = \phpOMS\Localization\ISO3166TwoEnum::getConstants();
$countries = \phpOMS\Localization\ISO3166NameEnum::getConstants();
$timezones = \phpOMS\Localization\TimeZoneEnumArray::getConstants();
$timeformats = \phpOMS\Localization\ISO8601EnumArray::getConstants();
$languages = \phpOMS\Localization\ISO639Enum::getConstants();
$currencies = \phpOMS\Localization\ISO4217Enum::getConstants();
$l11nDefinitions = \phpOMS\System\File\Local\Directory::list(__DIR__ . '/../../../../phpOMS/Localization/Defaults/Definitions');
$weights = \phpOMS\Utils\Converter\WeightType::getConstants();
$speeds = \phpOMS\Utils\Converter\SpeedType::getConstants();
$areas = \phpOMS\Utils\Converter\AreaType::getConstants();
$lengths = \phpOMS\Utils\Converter\LengthType::getConstants();
$volumes = \phpOMS\Utils\Converter\VolumeType::getConstants();
$temperatures = \phpOMS\Utils\Converter\TemperatureType::getConstants();
$account = $profile->getAccount();
$l11n = $account->getL11n();
echo $this->getData('nav')->render();
?>
<div class="tabview tab-2">
<div class="box wf-100 col-xs-12">
<ul class="tab-links">
<li><label for="c-tab-1"><?= $this->getHtml('General'); ?></label></li>
<?php if ($this->request->getHeader()->getAccount() === $account->getId()) : ?>
<li><label for="c-tab-2"><?= $this->getHtml('Localization'); ?></label></li>
<?php endif; ?>
</ul>
</div>
<div class="tab-content">
<input type="radio" id="c-tab-1" name="tabular-2" checked>
<div class="tab">
<div class="row">
<div class="col-xs-12 col-md-4">
<div class="portlet" itemscope itemtype="http://schema.org/Person" itemtype="http://schema.org/Organization">
<div class="portlet-head">
<?php if (!empty($account->getName3()) || !empty($account->getName2())) : ?>
<span itemprop="familyName" itemprop="legalName">
<?= $this->printHtml(empty($account->getName3()) ? $account->getName2() : $account->getName3()); ?></span>,
<?php endif; ?>
<span itemprop="givenName" itemprop="legalName">
<?= $this->printHtml($account->getName1()); ?>
</span>
</div>
<div class="portlet-body">
<span class="rf">
<img class="m-profile rf"
alt="<?= $this->getHtml('ProfileImage'); ?>"
itemprop="logo"
data-lazyload="<?=
$profile->getImage() instanceof NullMedia ?
UriFactory::build('Web/Backend/img/user_default_' . \mt_rand(1, 6) .'.png') :
UriFactory::build('{/prefix}' . $profile->getImage()->getPath()); ?>"
>
</span>
<table class="list" style="table-layout: fixed">
<tr>
<th><?= $this->getHtml('Occupation') ?>
<td itemprop="jobTitle">Sailor
<tr>
<th><?= $this->getHtml('Birthday') ?>
<td itemprop="birthDate" itemprop="foundingDate"><?= $profile->getBirthday() !== null ? $profile->getBirthday()->format('Y-m-d') : ''; ?>
<tr>
<th><?= $this->getHtml('Email') ?>
<td itemprop="email"><a href="mailto:>donald.duck@email.com<"><?= $this->printHtml($account->getEmail()); ?></a>
<tr>
<th><?= $this->getHtml('Address') ?>
<td>
<?php
$locations = $profile->getLocation();
if (empty($locations)) :
?>
<tr>
<th>
<td>No address specified
<?php endif; ?>
<?php foreach ($locations as $location) : ?>
<tr>
<th class="vT">Private
<td itemprop="address">SMALLSYS INC<br>795 E DRAGRAM<br>TUCSON AZ 85705<br>USA
<?php endforeach; ?>
<tr>
<th><?= $this->getHtml('Contact') ?>
<td>
<?php
$contacts = $profile->getContactElements();
if (empty($contacts)) :
?>
<tr>
<th>
<td>No contact specified
<?php endif; ?>
<?php foreach ($contacts as $location) : ?>
<tr>
<th>Private
<td itemprop="telephone">+01 12345-4567
<?php endforeach; ?>
<tr>
<th><?= $this->getHtml('Registered') ?>
<td><?= $this->printHtml($account->getCreatedAt()->format('Y-m-d')); ?>
<tr>
<th><?= $this->getHtml('LastLogin') ?>
<td><?= $this->printHtml($account->getLastActive()->format('Y-m-d')); ?>
<tr>
<th><?= $this->getHtml('Status') ?>
<td><span class="tag green"><?= $this->getHtml(':s' . $account->getStatus(), 'Admin'); ?></span>
</table>
</div>
</div>
</div>
<div class="col-xs-12 col-md-4">
<div class="portlet">
<div class="portlet-head"><?= $this->getHtml('Visibility') ?></div>
<div class="portlet-body">
<p>Define which users and user groups can see your profile</p>
<?= $this->getData('accGrpSelector')->render('iVisibility', 'visibility', true); ?>
</div>
</div>
</div>
<div class="col-xs-12 col-md-4">
<?= $this->getData('medialist')->render([]); ?>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-md-6">
<?= $this->getData('calendar')->render(null /* calendar object here */); ?>
</div>
</div>
</div>
<?php if ($this->request->getHeader()->getAccount() === $account->getId()) : ?>
<input type="radio" id="c-tab-2" name="tabular-2">
<div class="tab">
<div class="row">
<div class="col-xs-12 col-md-4">
<div class="portlet">
<form id="fLocalization" name="fLocalization" action="<?= UriFactory::build('{/api}admin/settings/localization'); ?>" method="post">
<div class="portlet-head"><?= $this->getHtml('Localization'); ?></div>
<div class="portlet-body">
<table class="layout wf-100">
<tbody>
<tr><td><label for="iDefaultLocalizations"><?= $this->getHtml('Defaults'); ?></label>
<tr><td>
<div class="ipt-wrap">
<div class="ipt-first"><select id="iDefaultLocalizations" name="defaultlocalizations">
<option selected disabled><?= $this->getHtml('Customized'); ?>
<?php foreach ($l11nDefinitions as $def) : ?>
<option value="<?= $this->printHtml(\explode('.', $def)[0]); ?>"><?= $this->printHtml(\explode('.', $def)[0]); ?>
<?php endforeach; ?>
</select>
</div>
<div class="ipt-second"><input type="submit" name="loadDefaultLocalization" value="<?= $this->getHtml('Load') ?>"></div>
</div>
<tr><td colspan="2"><label for="iCountries"><?= $this->getHtml('Country'); ?></label>
<tr><td colspan="2">
<select id="iCountries" name="settings_1000000019">
<?php foreach ($countryCodes as $code3 => $code2) : ?>
<option value="<?= $this->printHtml($code2); ?>"<?= $this->printHtml($code2 === $l11n->getCountry() ? ' selected' : ''); ?>><?= $this->printHtml($countries[$code3]); ?>
<?php endforeach; ?>
</select>
<tr><td colspan="2"><label for="iLanguages"><?= $this->getHtml('Language'); ?></label>
<tr><td colspan="2">
<select id="iLanguages" name="settings_1000000020">
<?php foreach ($languages as $code => $language) : $code = \strtolower(\substr($code, 1)); ?>
<option value="<?= $this->printHtml($code); ?>"<?= $this->printHtml($code === $l11n->getLanguage() ? ' selected' : ''); ?>><?= $this->printHtml($language); ?>
<?php endforeach; ?>
</select>
<tr><td colspan="2"><label for="iTemperature"><?= $this->getHtml('Temperature'); ?></label>
<tr><td colspan="2">
<select id="iTemperature" name="settings_1000000022">
<?php foreach ($temperatures as $code => $temperature) : ?>
<option value="<?= $this->printHtml($code); ?>"<?= $this->printHtml($temperature === $l11n->getTemperature() ? ' selected' : ''); ?>><?= $this->printHtml($temperature); ?>
<?php endforeach; ?>
</select>
</table>
</div>
<div class="portlet-foot"><input id="iSubmitLocalization" name="submitLocalization" type="submit" value="<?= $this->getHtml('Save', '0', '0'); ?>"></div>
</form>
</div>
</div>
<div class="col-xs-12 col-md-4">
<div class="portlet">
<div class="portlet-head"><?= $this->getHtml('Time'); ?></div>
<div class="portlet-body">
<form>
<table class="layout wf-100">
<tbody>
<tr><td colspan="2"><label for="iTimezones"><?= $this->getHtml('Timezone'); ?></label>
<tr><td colspan="2">
<select id="iTimezones" name="settings_1000000021">
<?php foreach ($timezones as $code => $timezone) : ?>
<option value="<?= $this->printHtml($code); ?>"<?= $this->printHtml($timezone === $l11n->getTimezone() ? ' selected' : ''); ?>><?= $this->printHtml($timezone); ?>
<?php endforeach; ?>
</select>
<tr><td colspan="2"><h2><?= $this->getHtml('Timeformat'); ?></h2>
<tr><td colspan="2"><label for="iVeryShort"><?= $this->getHtml('VeryShort'); ?></label>
<tr><td colspan="2"><input form="fLocalization" id="iDateDelim" name="settings_1000000027" type="text" value="<?= $this->printHtml($l11n->getDatetime()['very_short']); ?>" placeholder="Y" required>
<tr><td colspan="2"><label for="iShort"><?= $this->getHtml('Short'); ?></label>
<tr><td colspan="2"><input form="fLocalization" id="iDateDelim" name="settings_1000000027" type="text" value="<?= $this->printHtml($l11n->getDatetime()['short']); ?>" placeholder="Y" required>
<tr><td colspan="2"><label for="iMedium"><?= $this->getHtml('Medium'); ?></label>
<tr><td colspan="2"><input form="fLocalization" id="iDateDelim" name="settings_1000000027" type="text" value="<?= $this->printHtml($l11n->getDatetime()['medium']); ?>" placeholder="Y" required>
<tr><td colspan="2"><label for="iLong"><?= $this->getHtml('Long'); ?></label>
<tr><td colspan="2"><input form="fLocalization" id="iDateDelim" name="settings_1000000027" type="text" value="<?= $this->printHtml($l11n->getDatetime()['long']); ?>" placeholder="Y" required>
<tr><td colspan="2"><label for="iVeryLong"><?= $this->getHtml('VeryLong'); ?></label>
<tr><td colspan="2"><input form="fLocalization" id="iDateDelim" name="settings_1000000027" type="text" value="<?= $this->printHtml($l11n->getDatetime()['very_long']); ?>" placeholder="Y" required>
</table>
</form>
</div>
</div>
</div>
<div class="col-xs-12 col-md-4">
<div class="portlet">
<div class="portlet-head"><?= $this->getHtml('Numeric'); ?></div>
<div class="portlet-body">
<form>
<table class="layout wf-100">
<tr><td colspan="2"><label for="iCurrencies"><?= $this->getHtml('Currency'); ?></label>
<tr><td colspan="2">
<select form="fLocalization" id="iCurrencies" name="settings_1000000023">
<?php foreach ($currencies as $code => $currency) : $code = \substr($code, 1); ?>
<option value="<?= $this->printHtml($code); ?>"<?= $this->printHtml($code === $l11n->getCurrency() ? ' selected' : ''); ?>><?= $this->printHtml($currency); ?>
<?php endforeach; ?>
</select>
<tr><td colspan="2"><label><?= $this->getHtml('Currencyformat'); ?></label>
<tr><td colspan="2">
<select form="fLocalization">
<option value="0"<?= $this->printHtml('0' === $l11n->getCurrencyFormat() ? ' selected' : ''); ?>><?= $this->getHtml('Amount') , ' ' , $this->printHtml($l11n->getCurrency()); ?>
<option value="1"<?= $this->printHtml('1' === $l11n->getCurrencyFormat() ? ' selected' : ''); ?>><?= $this->printHtml($l11n->getCurrency()) , ' ' , $this->getHtml('Amount'); ?>
</select>
<tr><td colspan="2"><h2><?= $this->getHtml('Numberformat'); ?></h2>
<tr><td><label for="iDecimalPoint"><?= $this->getHtml('DecimalPoint'); ?></label>
<td><label for="iThousandSep"><?= $this->getHtml('ThousandsSeparator'); ?></label>
<tr><td><input form="fLocalization" id="iDecimalPoint" name="settings_1000000027" type="text" value="<?= $this->printHtml($l11n->getDecimal()); ?>" placeholder="." required>
<td><input form="fLocalization" id="iThousandSep" name="settings_1000000028" type="text" value="<?= $this->printHtml($l11n->getThousands()); ?>" placeholder="," required>
</table>
</form>
</div>
</div>
</div>
<div class="col-xs-12 col-md-4">
<div class="portlet">
<div class="portlet-head"><?= $this->getHtml('Weight'); ?></div>
<div class="portlet-body">
<form>
<table class="layout wf-100">
<tbody>
<tr><td><label for="iVeryLight"><?= $this->getHtml('VeryLight'); ?></label>
<tr><td>
<select form="fLocalization" id="iVeryLight" name="settings_1000001001">
<?php foreach ($weights as $code => $weight) : ?>
<option value="<?= $this->printHtml($weight); ?>"<?= $this->printHtml($weight === $l11n->getWeight()['very_light'] ? ' selected' : ''); ?>><?= $this->printHtml($weight); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iLight"><?= $this->getHtml('Light'); ?></label>
<tr><td>
<select form="fLocalization" id="iLight" name="settings_1000001002">
<?php foreach ($weights as $code => $weight) : ?>
<option value="<?= $this->printHtml($weight); ?>"<?= $this->printHtml($weight === $l11n->getWeight()['light'] ? ' selected' : ''); ?>><?= $this->printHtml($weight); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iMedium"><?= $this->getHtml('Medium'); ?></label>
<tr><td>
<select form="fLocalization" id="iMedium" name="settings_1000001003">
<?php foreach ($weights as $code => $weight) : ?>
<option value="<?= $this->printHtml($weight); ?>"<?= $this->printHtml($weight === $l11n->getWeight()['medium'] ? ' selected' : ''); ?>><?= $this->printHtml($weight); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iHeavy"><?= $this->getHtml('Heavy'); ?></label>
<tr><td>
<select form="fLocalization" id="iHeavy" name="settings_1000001004">
<?php foreach ($weights as $code => $weight) : ?>
<option value="<?= $this->printHtml($weight); ?>"<?= $this->printHtml($weight === $l11n->getWeight()['heavy'] ? ' selected' : ''); ?>><?= $this->printHtml($weight); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iVeryHeavy"><?= $this->getHtml('VeryHeavy'); ?></label>
<tr><td>
<select form="fLocalization" id="iVeryHeavy" name="settings_1000001005">
<?php foreach ($weights as $code => $weight) : ?>
<option value="<?= $this->printHtml($weight); ?>"<?= $this->printHtml($weight === $l11n->getWeight()['very_heavy'] ? ' selected' : ''); ?>><?= $this->printHtml($weight); ?>
<?php endforeach; ?>
</select>
</table>
</form>
</div>
</div>
</div>
<div class="col-xs-12 col-md-4">
<div class="portlet">
<div class="portlet-head"><?= $this->getHtml('Speed'); ?></div>
<div class="portlet-body">
<form>
<table class="layout wf-100">
<tbody>
<tr><td><label for="iVerySlow"><?= $this->getHtml('VerySlow'); ?></label>
<tr><td>
<select form="fLocalization" id="iVerySlow" name="settings_1000002001">
<?php foreach ($speeds as $code => $speed) : ?>
<option value="<?= $this->printHtml($speed); ?>"<?= $this->printHtml($speed === $l11n->getSpeed()['very_slow'] ? ' selected' : ''); ?>><?= $this->printHtml($speed); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iSlow"><?= $this->getHtml('Slow'); ?></label>
<tr><td>
<select form="fLocalization" id="iSlow" name="settings_1000002002">
<?php foreach ($speeds as $code => $speed) : ?>
<option value="<?= $this->printHtml($speed); ?>"<?= $this->printHtml($speed === $l11n->getSpeed()['slow'] ? ' selected' : ''); ?>><?= $this->printHtml($speed); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iMedium"><?= $this->getHtml('Medium'); ?></label>
<tr><td>
<select form="fLocalization" id="iMedium" name="settings_1000002003">
<?php foreach ($speeds as $code => $speed) : ?>
<option value="<?= $this->printHtml($speed); ?>"<?= $this->printHtml($speed === $l11n->getSpeed()['medium'] ? ' selected' : ''); ?>><?= $this->printHtml($speed); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iFast"><?= $this->getHtml('Fast'); ?></label>
<tr><td>
<select form="fLocalization" id="iFast" name="settings_1000002004">
<?php foreach ($speeds as $code => $speed) : ?>
<option value="<?= $this->printHtml($speed); ?>"<?= $this->printHtml($speed === $l11n->getSpeed()['fast'] ? ' selected' : ''); ?>><?= $this->printHtml($speed); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iVeryFast"><?= $this->getHtml('VeryFast'); ?></label>
<tr><td>
<select form="fLocalization" id="iVeryFast" name="settings_1000002005">
<?php foreach ($speeds as $code => $speed) : ?>
<option value="<?= $this->printHtml($speed); ?>"<?= $this->printHtml($speed === $l11n->getSpeed()['very_fast'] ? ' selected' : ''); ?>><?= $this->printHtml($speed); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iSeaSpeed"><?= $this->getHtml('Sea'); ?></label>
<tr><td>
<select form="fLocalization" id="iSeaSpeed" name="settings_1000002006">
<?php foreach ($speeds as $code => $speed) : ?>
<option value="<?= $this->printHtml($speed); ?>"<?= $this->printHtml($speed === $l11n->getSpeed()['sea'] ? ' selected' : ''); ?>><?= $this->printHtml($speed); ?>
<?php endforeach; ?>
</select>
</table>
</form>
</div>
</div>
</div>
<div class="col-xs-12 col-md-4">
<div class="portlet">
<div class="portlet-head"><?= $this->getHtml('Length'); ?></div>
<div class="portlet-body">
<form>
<table class="layout wf-100">
<tbody>
<tr><td><label for="iVeryShort"><?= $this->getHtml('VeryShort'); ?></label>
<tr><td>
<select form="fLocalization" id="iVeryShort" name="settings_1000003001">
<?php foreach ($lengths as $code => $length) : ?>
<option value="<?= $this->printHtml($length); ?>"<?= $this->printHtml($length === $l11n->getLength()['very_short'] ? ' selected' : ''); ?>><?= $this->printHtml($length); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iShort"><?= $this->getHtml('Short'); ?></label>
<tr><td>
<select form="fLocalization" id="iShort" name="settings_1000003002">
<?php foreach ($lengths as $code => $length) : ?>
<option value="<?= $this->printHtml($length); ?>"<?= $this->printHtml($length === $l11n->getLength()['short'] ? ' selected' : ''); ?>><?= $this->printHtml($length); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iMedium"><?= $this->getHtml('Medium'); ?></label>
<tr><td>
<select form="fLocalization" id="iMedium" name="settings_1000003003">
<?php foreach ($lengths as $code => $length) : ?>
<option value="<?= $this->printHtml($length); ?>"<?= $this->printHtml($length === $l11n->getLength()['medium'] ? ' selected' : ''); ?>><?= $this->printHtml($length); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iLong"><?= $this->getHtml('Long'); ?></label>
<tr><td>
<select form="fLocalization" id="iLong" name="settings_1000003004">
<?php foreach ($lengths as $code => $length) : ?>
<option value="<?= $this->printHtml($length); ?>"<?= $this->printHtml($length === $l11n->getLength()['long'] ? ' selected' : ''); ?>><?= $this->printHtml($length); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iVeryLong"><?= $this->getHtml('VeryLong'); ?></label>
<tr><td>
<select form="fLocalization" id="iVeryLong" name="settings_1000003005">
<?php foreach ($lengths as $code => $length) : ?>
<option value="<?= $this->printHtml($length); ?>"<?= $this->printHtml($length === $l11n->getLength()['very_long'] ? ' selected' : ''); ?>><?= $this->printHtml($length); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iSeaLength"><?= $this->getHtml('Sea'); ?></label>
<tr><td>
<select form="fLocalization" id="iSeaLength" name="settings_1000003006">
<?php foreach ($lengths as $code => $length) : ?>
<option value="<?= $this->printHtml($length); ?>"<?= $this->printHtml($length === $l11n->getLength()['sea'] ? ' selected' : ''); ?>><?= $this->printHtml($length); ?>
<?php endforeach; ?>
</select>
</table>
</form>
</div>
</div>
</div>
<div class="col-xs-12 col-md-4">
<div class="portlet">
<div class="portlet-head"><?= $this->getHtml('Area'); ?></div>
<div class="portlet-body">
<form>
<table class="layout wf-100">
<tbody>
<tr><td><label for="iVerySmall"><?= $this->getHtml('VerySmall'); ?></label>
<tr><td>
<select form="fLocalization" id="iVerySmall" name="settings_1000004001">
<?php foreach ($areas as $code => $area) : ?>
<option value="<?= $this->printHtml($area); ?>"<?= $this->printHtml($area === $l11n->getArea()['very_small'] ? ' selected' : ''); ?>><?= $this->printHtml($area); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iSmall"><?= $this->getHtml('Small'); ?></label>
<tr><td>
<select form="fLocalization" id="iSmall" name="settings_1000004002">
<?php foreach ($areas as $code => $area) : ?>
<option value="<?= $this->printHtml($area); ?>"<?= $this->printHtml($area === $l11n->getArea()['small'] ? ' selected' : ''); ?>><?= $this->printHtml($area); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iMedium"><?= $this->getHtml('Medium'); ?></label>
<tr><td>
<select form="fLocalization" id="iMedium" name="settings_1000004003">
<?php foreach ($areas as $code => $area) : ?>
<option value="<?= $this->printHtml($area); ?>"<?= $this->printHtml($area === $l11n->getArea()['medium'] ? ' selected' : ''); ?>><?= $this->printHtml($area); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iLarge"><?= $this->getHtml('Large'); ?></label>
<tr><td>
<select form="fLocalization" id="iLarge" name="settings_1000004004">
<?php foreach ($areas as $code => $area) : ?>
<option value="<?= $this->printHtml($area); ?>"<?= $this->printHtml($area === $l11n->getArea()['large'] ? ' selected' : ''); ?>><?= $this->printHtml($area); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iVeryLarge"><?= $this->getHtml('VeryLarge'); ?></label>
<tr><td>
<select form="fLocalization" id="iVeryLarge" name="settings_1000004005">
<?php foreach ($areas as $code => $area) : ?>
<option value="<?= $this->printHtml($area); ?>"<?= $this->printHtml($area === $l11n->getArea()['very_large'] ? ' selected' : ''); ?>><?= $this->printHtml($area); ?>
<?php endforeach; ?>
</select>
</table>
</form>
</div>
</div>
</div>
<div class="col-xs-12 col-md-4">
<div class="portlet">
<div class="portlet-head"><?= $this->getHtml('Volume'); ?></div>
<div class="portlet-body">
<form>
<table class="layout wf-100">
<tbody>
<tr><td><label for="iVerySmall"><?= $this->getHtml('VerySmall'); ?></label>
<tr><td>
<select form="fLocalization" id="iVerySmall" name="settings_1000005001">
<?php foreach ($volumes as $code => $volume) : ?>
<option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $l11n->getVolume()['very_small'] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iSmall"><?= $this->getHtml('Small'); ?></label>
<tr><td>
<select form="fLocalization" id="iSmall" name="settings_1000005002">
<?php foreach ($volumes as $code => $volume) : ?>
<option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $l11n->getVolume()['small'] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iMedium"><?= $this->getHtml('Medium'); ?></label>
<tr><td>
<select form="fLocalization" id="iMedium" name="settings_1000005003">
<?php foreach ($volumes as $code => $volume) : ?>
<option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $l11n->getVolume()['medium'] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iLarge"><?= $this->getHtml('Large'); ?></label>
<tr><td>
<select form="fLocalization" id="iLarge" name="settings_1000005004">
<?php foreach ($volumes as $code => $volume) : ?>
<option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $l11n->getVolume()['large'] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iVeryLarge"><?= $this->getHtml('VeryLarge'); ?></label>
<tr><td>
<select form="fLocalization" id="iVeryLarge" name="settings_1000005005">
<?php foreach ($volumes as $code => $volume) : ?>
<option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $l11n->getVolume()['very_large'] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iTeaspoon"><?= $this->getHtml('Teaspoon'); ?></label>
<tr><td>
<select form="fLocalization" id="iTeaspoon" name="settings_1000005006">
<?php foreach ($volumes as $code => $volume) : ?>
<option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $l11n->getVolume()['teaspoon'] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iTablespoon"><?= $this->getHtml('Tablespoon'); ?></label>
<tr><td>
<select form="fLocalization" id="iTablespoon" name="settings_1000005007">
<?php foreach ($volumes as $code => $volume) : ?>
<option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $l11n->getVolume()['tablespoon'] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iGlass"><?= $this->getHtml('Glass'); ?></label>
<tr><td>
<select form="fLocalization" id="iGlass" name="settings_1000005008">
<?php foreach ($volumes as $code => $volume) : ?>
<option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $l11n->getVolume()['glass'] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?>
<?php endforeach; ?>
</select>
</table>
</form>
</div>
</div>
</div>
</div>
<?php endif; ?>
</div>
</div>