mirror of
https://github.com/Karaka-Management/oms-Admin.git
synced 2026-01-28 04:38:39 +00:00
Language is now no longer direct array access but provided through a function. This can be later used to hot load language files instead of pre-loading them.
88 lines
5.4 KiB
PHP
88 lines
5.4 KiB
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.0
|
|
*
|
|
* @category TBD
|
|
* @package TBD
|
|
* @author OMS Development Team <dev@oms.com>
|
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
* @copyright 2013 Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link http://orange-management.com
|
|
*/
|
|
/*
|
|
* UI Logic
|
|
*/
|
|
|
|
$account = $this->getData('account');
|
|
echo $this->getData('nav')->render(); ?>
|
|
|
|
<section class="box w-33 floatLeft">
|
|
<header><h1><?= $this->l11n->getText('Admin', 'Account') ?></h1></header>
|
|
<div class="inner">
|
|
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/account'); ?>" method="post">
|
|
<table class="layout wf-100">
|
|
<tbody>
|
|
<tr><td><label for="iId"><?= $this->l11n->getText(0, 'ID') ?></label>
|
|
<tr><td><input id="iId" name="id" type="text" value="<?= $account->getId(); ?>" disabled>
|
|
<tr><td><label for="iType"><?= $this->l11n->getText('Admin', 'Type') ?></label>
|
|
<tr><td><select id="iType" name="type">
|
|
<option value="<?= \phpOMS\Account\AccountType::USER; ?>"<?= $account->getType() === \phpOMS\Account\AccountType::USER ? ' selected' : ''; ?>><?= $this->l11n->getText('Admin', 'Person') ?>
|
|
<option value="<?= \phpOMS\Account\AccountType::GROUP; ?>"<?= $account->getType() === \phpOMS\Account\AccountType::GROUP ? ' selected' : ''; ?>><?= $this->l11n->getText('Admin', 'Organization') ?>
|
|
</select>
|
|
<tr><td><label for="iStatus"><?= $this->l11n->getText('Admin', 'Status') ?></label>
|
|
<tr><td><select id="iStatus" name="status">
|
|
<option value="<?= \phpOMS\Account\AccountStatus::ACTIVE; ?>"<?= $account->getStatus() === \phpOMS\Account\AccountStatus::ACTIVE ? ' selected' : ''; ?>><?= $this->l11n->getText('Admin', 'Active') ?>
|
|
<option value="<?= \phpOMS\Account\AccountStatus::INACTIVE; ?>"<?= $account->getStatus() === \phpOMS\Account\AccountStatus::INACTIVE ? ' selected' : ''; ?>><?= $this->l11n->getText('Admin', 'Inactive') ?>
|
|
<option value="<?= \phpOMS\Account\AccountStatus::TIMEOUT; ?>"<?= $account->getStatus() === \phpOMS\Account\AccountStatus::TIMEOUT ? ' selected' : ''; ?>><?= $this->l11n->getText('Admin', 'Timeout') ?>
|
|
<option value="<?= \phpOMS\Account\AccountStatus::BANNED; ?>"<?= $account->getStatus() === \phpOMS\Account\AccountStatus::BANNED ? ' selected' : ''; ?>><?= $this->l11n->getText('Admin', 'Banned') ?>
|
|
</select>
|
|
<tr><td><label for="iUsername"><?= $this->l11n->getText('Admin', 'Username') ?></label>
|
|
<tr><td><input id="iUsername" name="name" type="text" placeholder=" Fred" value="<?= $account->getEmail(); ?>" disabled>
|
|
<tr><td><label for="iName1"><?= $this->l11n->getText('Admin', 'Name1') ?></label>
|
|
<tr><td><input id="iName1" name="name1" type="text" placeholder=" Donald" value="<?= $account->getName1(); ?>" required>
|
|
<tr><td><label for="iName2"><?= $this->l11n->getText('Admin', 'Name2') ?></label>
|
|
<tr><td><input id="iName2" name="name2" type="text" placeholder=" Fauntleroy" value="<?= $account->getName2(); ?>">
|
|
<tr><td><label for="iName3"><?= $this->l11n->getText('Admin', 'Name3') ?></label>
|
|
<tr><td><input id="iName3" name="name3" type="text" placeholder=" Duck" value="<?= $account->getName3(); ?>">
|
|
<tr><td><label for="iEmail"><?= $this->l11n->getText('Admin', 'Email') ?></label>
|
|
<tr><td><input id="iEmail" name="email" type="email" placeholder=" d.duck@duckburg.com" value="<?= $account->getEmail(); ?>">
|
|
<tr><td><label for="iPassword"><?= $this->l11n->getText('Admin', 'Name3') ?></label>
|
|
<tr><td><input id="iPassword" name="password" type="text" placeholder=" Pa55ssw0rd?">
|
|
<tr><td><input type="submit" value="<?= $this->l11n->getText(0, 'Create') ?>">
|
|
</table>
|
|
</form>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="box w-66 floatLeft">
|
|
<header><h1><?= $this->l11n->getText('Admin', 'Groups') ?></h1></header>
|
|
<div class="inner">
|
|
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="post">
|
|
<table class="layout wf-100">
|
|
<tbody>
|
|
<tr><td><label for="iGroup"><?= $this->l11n->getText('Admin', 'Name') ?></label>
|
|
<tr><td><input id="iGroup" name="group" type="text" placeholder=" Guest">
|
|
<tr><td><input type="submit" value="<?= $this->l11n->getText(0, 'Add') ?>">
|
|
</table>
|
|
</form>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="box w-66 floatLeft">
|
|
<header><h1><?= $this->l11n->getText('Admin', 'Permissions') ?></h1></header>
|
|
<div class="inner">
|
|
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="post">
|
|
<table class="layout wf-100">
|
|
<tbody>
|
|
<tr><td><label for="iGroup"><?= $this->l11n->getText('Admin', 'Name') ?></label>
|
|
<tr><td><input id="iGroup" name="group" type="text" placeholder=" news_create">
|
|
<tr><td><input type="submit" value="<?= $this->l11n->getText(0, 'Add') ?>">
|
|
</table>
|
|
</form>
|
|
</div>
|
|
</section>
|