<?php
/*
* Free IT Foundation
* Free Technology Serving Knowledge
* http://www.free-it-foundation.org
*
* This file is part of Knowledge Box.
*
* Knowledge Box is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Knowledge Box is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Knowledge Box. If not, see <http://www.gnu.org/licenses/>.
*/
// config
$configResultsPerPage = KBModuleConfig::getConfig (KB_BASE, KB_CONFIG_PROPERTY_RESULTS);
$configLastEntries = KBModuleConfig::getConfig (KB_BASE, KB_CONFIG_PROPERTY_LASTENTRIES);
$configDateFormat = KBModuleConfig::getConfig (KB_BASE, KB_CONFIG_PROPERTY_DATEFORMAT);
$configDateSeparator = KBModuleConfig::getConfig (KB_BASE, KB_CONFIG_PROPERTY_DATESEPARATOR);
$configWYSIWYGFormat = KBModuleConfig::getConfig (KB_BASE, KB_CONFIG_PROPERTY_WYSIWYG);
?>
<h2 style="background-color:#FFFFFF;padding-top:10px;padding-bottom:10px;padding-left:2px;"><?= $AppUI->_('titleConfiguration') ?></h2>
<form name="configForm" action="index.php?m=<?= KB_MODULE ?>" method="post">
<input type="hidden" name="dosql" value="config" />
<table cellspacing="0" cellpadding="4" border="0" width="100%" class="std">
<tr>
<td width="50%" valign="top">
<br />
<table cellspacing="0" cellpadding="2" border="0">
<tr>
<td align="right" nowrap="nowrap"><?= $AppUI->_('inputConfigurationSplitResults') ?></td>
<td width="20"> </td>
<td width="100%">
<input type="text" size="5" name="results_per_page" value="<?= $configResultsPerPage->getIntValue () ?>" maxlength="4" /> <?= $AppUI->_('inputConfigurationEntries') ?>
</td>
</tr>
<tr>
<td align="right" nowrap="nowrap"><?= $AppUI->_('inputConfigurationViewLast') ?></td>
<td> </td>
<td>
<input type="text" size="5" name="last_entries" value="<?= $configLastEntries->getIntValue () ?>" maxlength="4" /> <?= $AppUI->_('inputConfigurationEntries') ?>
</td>
</tr>
<tr>
<td colspan="3" height="10"></td>
</tr>
<tr>
<td align="right" nowrap="nowrap"><?= $AppUI->_('inputConfigurationDateFormat') ?></td>
<td> </td>
<td>
<select name="date_format">
<option value="<?= KB_DATE_FORMAT_1 ?>"<? if (KB_DATE_FORMAT_1 == $configDateFormat->getStringValue ()) print (' selected="selected"'); ?>>
<?= date (str_replace ('.', $configDateSeparator->getStringValue (), 'd.m.Y')) ?>
(dd<?= $configDateSeparator->getStringValue () ?>mm<?= $configDateSeparator->getStringValue () ?>yyyy)
</option>
<option value="<?= KB_DATE_FORMAT_2 ?>"<? if (KB_DATE_FORMAT_2 == $configDateFormat->getStringValue ()) print (' selected="selected"'); ?>>
<?= date (str_replace ('.', $configDateSeparator->getStringValue (), 'd.m.y')) ?>
(dd<?= $configDateSeparator->getStringValue () ?>mm<?= $configDateSeparator->getStringValue () ?>yy)
</option>
<option value="<?= KB_DATE_FORMAT_3 ?>"<? if (KB_DATE_FORMAT_3 == $configDateFormat->getStringValue ()) print (' selected="selected"'); ?>>
<?= date (str_replace ('.', $configDateSeparator->getStringValue (), 'j.n.Y')) ?>
(d<?= $configDateSeparator->getStringValue () ?>m<?= $configDateSeparator->getStringValue () ?>yyyy)
</option>
<option value="<?= KB_DATE_FORMAT_4 ?>"<? if (KB_DATE_FORMAT_4 == $configDateFormat->getStringValue ()) print (' selected="selected"'); ?>>
<?= date (str_replace ('.', $configDateSeparator->getStringValue (), 'j.n.y')) ?>
(d<?= $configDateSeparator->getStringValue () ?>m<?= $configDateSeparator->getStringValue () ?>yy)
</option>
<option value="<?= KB_DATE_FORMAT_5 ?>"<? if (KB_DATE_FORMAT_5 == $configDateFormat->getStringValue ()) print (' selected="selected"'); ?>>
<?= date (str_replace ('.', $configDateSeparator->getStringValue (), 'm.d.Y')) ?>
(mm<?= $configDateSeparator->getStringValue () ?>dd<?= $configDateSeparator->getStringValue () ?>yyyy)
</option>
<option value="<?= KB_DATE_FORMAT_6 ?>"<? if (KB_DATE_FORMAT_6 == $configDateFormat->getStringValue ()) print (' selected="selected"'); ?>>
<?= date (str_replace ('.', $configDateSeparator->getStringValue (), 'm.d.y')) ?>
(mm<?= $configDateSeparator->getStringValue () ?>dd<?= $configDateSeparator->getStringValue () ?>yy)
</option>
<option value="<?= KB_DATE_FORMAT_7 ?>"<? if (KB_DATE_FORMAT_7 == $configDateFormat->getStringValue ()) print (' selected="selected"'); ?>>
<?= date (str_replace ('.', $configDateSeparator->getStringValue (), 'n.j.Y')) ?>
(m<?= $configDateSeparator->getStringValue () ?>d<?= $configDateSeparator->getStringValue () ?>yyyy)
</option>
<option value="<?= KB_DATE_FORMAT_8 ?>"<? if (KB_DATE_FORMAT_8 == $configDateFormat->getStringValue ()) print (' selected="selected"'); ?>>
<?= date (str_replace ('.', $configDateSeparator->getStringValue (), 'n.j.y')) ?>
(m<?= $configDateSeparator->getStringValue () ?>d<?= $configDateSeparator->getStringValue () ?>yy)
</option>
<option value="<?= KB_DATE_FORMAT_9 ?>"<? if (KB_DATE_FORMAT_9 == $configDateFormat->getStringValue ()) print (' selected="selected"'); ?>>
<?= date (str_replace ('.', $configDateSeparator->getStringValue (), 'Y.m.d')) ?>
(yyyy<?= $configDateSeparator->getStringValue () ?>mm<?= $configDateSeparator->getStringValue () ?>dd)
</option>
<option value="<?= KB_DATE_FORMAT_10 ?>"<? if (KB_DATE_FORMAT_10 == $configDateFormat->getStringValue ()) print (' selected="selected"'); ?>>
<?= date (str_replace ('.', $configDateSeparator->getStringValue (), 'y.m.d')) ?>
(yy<?= $configDateSeparator->getStringValue () ?>mm<?= $configDateSeparator->getStringValue () ?>dd)
</option>
<option value="<?= KB_DATE_FORMAT_11 ?>"<? if (KB_DATE_FORMAT_11 == $configDateFormat->getStringValue ()) print (' selected="selected"'); ?>>
<?= date (str_replace ('.', $configDateSeparator->getStringValue (), 'Y.n.j')) ?>
(yyyy<?= $configDateSeparator->getStringValue () ?>m<?= $configDateSeparator->getStringValue () ?>d)
</option>
<option value="<?= KB_DATE_FORMAT_12 ?>"<? if (KB_DATE_FORMAT_12 == $configDateFormat->getStringValue ()) print (' selected="selected"'); ?>>
<?= date (str_replace ('.', $configDateSeparator->getStringValue (), 'y.n.j')) ?>
(yy<?= $configDateSeparator->getStringValue () ?>m<?= $configDateSeparator->getStringValue () ?>d)
</option>
</select>
</td>
</tr>
<tr>
<td align="right" nowrap="nowrap"><?= $AppUI->_('inputConfigurationDateSeparator') ?></td>
<td> </td>
<td>
<input type="text" size="5" name="date_separator" value="<?= str_replace ('&', '&', dPformSafe ($configDateSeparator->getStringValue ())) ?>" maxlength="1" />
</td>
</tr>
<tr>
<td colspan="3" height="10"></td>
</tr>
<tr>
<td align="right" nowrap="nowrap"><?= $AppUI->_('inputConfigurationWYSIWYGFormat') ?></td>
<td> </td>
<td>
<select name="wysiwyg_format">
<option value="<?= KB_WYSIWYG_SIMPLE ?>"<? if (KB_WYSIWYG_SIMPLE == $configWYSIWYGFormat->getStringValue ()) print (' selected="selected"'); ?>>
<?= $AppUI->_('wysiwygFormatSimple') ?>
</option>
<option value="<?= KB_WYSIWYG_ADVANCED ?>"<? if (KB_WYSIWYG_ADVANCED == $configWYSIWYGFormat->getStringValue ()) print (' selected="selected"'); ?>>
<?= $AppUI->_('wysiwygFormatAdvanced') ?>
</option>
<option value="<?= KB_WYSIWYG_FULL ?>"<? if (KB_WYSIWYG_FULL == $configWYSIWYGFormat->getStringValue ()) print (' selected="selected"'); ?>>
<?= $AppUI->_('wysiwygFormatFull') ?>
</option>
</select>
</td>
</tr>
</table>
</td>
<td></td>
</tr>
<tr>
<td> </td>
<td align="right">
<input class="button" type="submit" name="btnFuseAction" value="<?= $AppUI->_('actionSubmit') ?>"/>
</td>
</tr>
</table>
</form>
<div> </div>