mirror of
https://github.com/Karaka-Management/oms-RiskManagement.git
synced 2026-01-11 19:38:40 +00:00
Add html escaping
This commit is contained in:
parent
e93991e528
commit
5414720bf2
|
|
@ -19,22 +19,22 @@ echo $this->getData('nav')->render(); ?>
|
|||
<div class="col-xs-12">
|
||||
<div class="box wf-100">
|
||||
<table class="table red">
|
||||
<caption><?= $this->getText('Causes'); ?></caption>
|
||||
<caption><?= $this->getHtml('Causes') ?></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td><?= $this->getText('ID', 0, 0); ?>
|
||||
<td class="wf-100"><?= $this->getText('Title'); ?>
|
||||
<td><?= $this->getHtml('ID', 0, 0); ?>
|
||||
<td class="wf-100"><?= $this->getHtml('Title') ?>
|
||||
<tfoot>
|
||||
<tr><td colspan="3">
|
||||
<tbody>
|
||||
<?php $c = 0; foreach ($categories as $key => $value) : $c++;
|
||||
$url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/riskmanagement/category/single?{?}&id=' . $value->getId()); ?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $value->getTitle(); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= htmlspecialchars($value->getId(), ENT_COMPAT, 'utf-8'); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= htmlspecialchars($value->getTitle(), ENT_COMPAT, 'utf-8'); ?></a>
|
||||
<?php endforeach; ?>
|
||||
<?php if($c === 0) : ?>
|
||||
<tr><td colspan="3" class="empty"><?= $this->getText('Empty', 0, 0); ?>
|
||||
<tr><td colspan="3" class="empty"><?= $this->getHtml('Empty', 0, 0); ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -19,24 +19,24 @@ echo $this->getData('nav')->render(); ?>
|
|||
<div class="col-xs-12">
|
||||
<div class="box wf-100">
|
||||
<table class="table red">
|
||||
<caption><?= $this->getText('Causes'); ?></caption>
|
||||
<caption><?= $this->getHtml('Causes') ?></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td><?= $this->getText('ID', 0, 0); ?>
|
||||
<td class="wf-100"><?= $this->getText('Title'); ?>
|
||||
<td><?= $this->getText('Risk'); ?>
|
||||
<td><?= $this->getHtml('ID', 0, 0); ?>
|
||||
<td class="wf-100"><?= $this->getHtml('Title') ?>
|
||||
<td><?= $this->getHtml('Risk') ?>
|
||||
<tfoot>
|
||||
<tr><td colspan="3">
|
||||
<tbody>
|
||||
<?php $c = 0; foreach ($causes as $key => $value) : $c++;
|
||||
$url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/riskmanagement/cause/single?{?}&id=' . $value->getId()); ?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $value->getTitle(); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $value->getRisk()->getName(); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= htmlspecialchars($value->getId(), ENT_COMPAT, 'utf-8'); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= htmlspecialchars($value->getTitle(), ENT_COMPAT, 'utf-8'); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= htmlspecialchars($value->getRisk()->getName(), ENT_COMPAT, 'utf-8'); ?></a>
|
||||
<?php endforeach; ?>
|
||||
<?php if($c === 0) : ?>
|
||||
<tr><td colspan="3" class="empty"><?= $this->getText('Empty', 0, 0); ?>
|
||||
<tr><td colspan="3" class="empty"><?= $this->getHtml('Empty', 0, 0); ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -29,31 +29,31 @@ echo $this->getData('nav')->render(); ?>
|
|||
<div class="col-xs-12 col-md-9">
|
||||
<div class="box wf-100">
|
||||
<table class="table red">
|
||||
<caption><?= $this->getText('TopRisks'); ?></caption>
|
||||
<caption><?= $this->getHtml('TopRisks') ?></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td><?= $this->getText('Severity'); ?>
|
||||
<td class="wf-100"><?= $this->getText('Name'); ?>
|
||||
<td><?= $this->getText('Department'); ?>
|
||||
<td><?= $this->getText('Category'); ?>
|
||||
<td><?= $this->getText('Process'); ?>
|
||||
<td><?= $this->getText('Project'); ?>
|
||||
<td><?= $this->getText('Unit'); ?>
|
||||
<td><?= $this->getHtml('Severity') ?>
|
||||
<td class="wf-100"><?= $this->getHtml('Name') ?>
|
||||
<td><?= $this->getHtml('Department') ?>
|
||||
<td><?= $this->getHtml('Category') ?>
|
||||
<td><?= $this->getHtml('Process') ?>
|
||||
<td><?= $this->getHtml('Project') ?>
|
||||
<td><?= $this->getHtml('Unit') ?>
|
||||
<tfoot>
|
||||
<tr><td colspan="6"><?= $footerView->render(); ?>
|
||||
<tr><td colspan="6"><?= htmlspecialchars($footerView->render(), ENT_COMPAT, 'utf-8'); ?>
|
||||
<tbody>
|
||||
<?php $c = 0; foreach ([] as $key => $value) : $c++;
|
||||
$url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/admin/group/settings?{?}&id=' . $value->getId()); ?>
|
||||
<tr>
|
||||
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $value->getName(); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= htmlspecialchars($value->getId(), ENT_COMPAT, 'utf-8'); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= htmlspecialchars($value->getName(), ENT_COMPAT, 'utf-8'); ?></a>
|
||||
<td>
|
||||
<td>
|
||||
<td>
|
||||
<td>
|
||||
<?php endforeach; ?>
|
||||
<?php if($c === 0) : ?>
|
||||
<tr><td colspan="7" class="empty"><?= $this->getText('Empty', 0, 0); ?>
|
||||
<tr><td colspan="7" class="empty"><?= $this->getHtml('Empty', 0, 0); ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</div>
|
||||
|
|
@ -62,38 +62,38 @@ echo $this->getData('nav')->render(); ?>
|
|||
<div class="col-xs-12 col-md-3">
|
||||
<section class="box wf-100">
|
||||
<div class="inner">
|
||||
<a class="button" href="<?= \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/controlling/riskmanagement/risk/create'); ?>"><?= $this->getText('NewRisk'); ?></a>
|
||||
<a class="button" href="<?= \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/controlling/riskmanagement/risk/create'); ?>"><?= $this->getHtml('NewRisk') ?></a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="box wf-100">
|
||||
<header><h1><?= $this->getText('Statistics'); ?></h1></header>
|
||||
<header><h1><?= $this->getHtml('Statistics') ?></h1></header>
|
||||
<div class="inner">
|
||||
<table class="list">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?= $this->getText('Risks'); ?>
|
||||
<th><?= $this->getHtml('Risks') ?>
|
||||
<td>0
|
||||
<tr>
|
||||
<th><?= $this->getText('Causes'); ?>
|
||||
<th><?= $this->getHtml('Causes') ?>
|
||||
<td>0
|
||||
<tr>
|
||||
<th><?= $this->getText('Solutions'); ?>
|
||||
<th><?= $this->getHtml('Solutions') ?>
|
||||
<td>0
|
||||
<tr>
|
||||
<th><?= $this->getText('Department'); ?>
|
||||
<th><?= $this->getHtml('Department') ?>
|
||||
<td>0
|
||||
<tr>
|
||||
<th><?= $this->getText('Category'); ?>
|
||||
<th><?= $this->getHtml('Category') ?>
|
||||
<td>0
|
||||
<tr>
|
||||
<th><?= $this->getText('Process'); ?>
|
||||
<th><?= $this->getHtml('Process') ?>
|
||||
<td>0
|
||||
<tr>
|
||||
<th><?= $this->getText('Project'); ?>
|
||||
<th><?= $this->getHtml('Project') ?>
|
||||
<td>0
|
||||
<tr>
|
||||
<th><?= $this->getText('Total'); ?>
|
||||
<th><?= $this->getHtml('Total') ?>
|
||||
<td>0
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -19,22 +19,22 @@ echo $this->getData('nav')->render(); ?>
|
|||
<div class="col-xs-12">
|
||||
<div class="box wf-100">
|
||||
<table class="table red">
|
||||
<caption><?= $this->getText('Causes'); ?></caption>
|
||||
<caption><?= $this->getHtml('Causes') ?></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td><?= $this->getText('ID', 0, 0); ?>
|
||||
<td class="wf-100"><?= $this->getText('Title'); ?>
|
||||
<td><?= $this->getHtml('ID', 0, 0); ?>
|
||||
<td class="wf-100"><?= $this->getHtml('Title') ?>
|
||||
<tfoot>
|
||||
<tr><td colspan="3">
|
||||
<tbody>
|
||||
<?php $c = 0; foreach ($departments as $key => $value) : $c++;
|
||||
$url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/riskmanagement/department/single?{?}&id=' . $value->getId()); ?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $value->getDepartment()->getName(); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= htmlspecialchars($value->getId(), ENT_COMPAT, 'utf-8'); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= htmlspecialchars($value->getDepartment()->getName(), ENT_COMPAT, 'utf-8'); ?></a>
|
||||
<?php endforeach; ?>
|
||||
<?php if($c === 0) : ?>
|
||||
<tr><td colspan="3" class="empty"><?= $this->getText('Empty', 0, 0); ?>
|
||||
<tr><td colspan="3" class="empty"><?= $this->getHtml('Empty', 0, 0); ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -19,22 +19,22 @@ echo $this->getData('nav')->render(); ?>
|
|||
<div class="col-xs-12">
|
||||
<div class="box wf-100">
|
||||
<table class="table red">
|
||||
<caption><?= $this->getText('Causes'); ?></caption>
|
||||
<caption><?= $this->getHtml('Causes') ?></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td><?= $this->getText('ID', 0, 0); ?>
|
||||
<td class="wf-100"><?= $this->getText('Title'); ?>
|
||||
<td><?= $this->getHtml('ID', 0, 0); ?>
|
||||
<td class="wf-100"><?= $this->getHtml('Title') ?>
|
||||
<tfoot>
|
||||
<tr><td colspan="3">
|
||||
<tbody>
|
||||
<?php $c = 0; foreach ($processes as $key => $value) : $c++;
|
||||
$url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/riskmanagement/process/single?{?}&id=' . $value->getId()); ?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $value->getTitle(); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= htmlspecialchars($value->getId(), ENT_COMPAT, 'utf-8'); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= htmlspecialchars($value->getTitle(), ENT_COMPAT, 'utf-8'); ?></a>
|
||||
<?php endforeach; ?>
|
||||
<?php if($c === 0) : ?>
|
||||
<tr><td colspan="3" class="empty"><?= $this->getText('Empty', 0, 0); ?>
|
||||
<tr><td colspan="3" class="empty"><?= $this->getHtml('Empty', 0, 0); ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -19,22 +19,22 @@ echo $this->getData('nav')->render(); ?>
|
|||
<div class="col-xs-12">
|
||||
<div class="box wf-100">
|
||||
<table class="table red">
|
||||
<caption><?= $this->getText('Causes'); ?></caption>
|
||||
<caption><?= $this->getHtml('Causes') ?></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td><?= $this->getText('ID', 0, 0); ?>
|
||||
<td class="wf-100"><?= $this->getText('Title'); ?>
|
||||
<td><?= $this->getHtml('ID', 0, 0); ?>
|
||||
<td class="wf-100"><?= $this->getHtml('Title') ?>
|
||||
<tfoot>
|
||||
<tr><td colspan="3">
|
||||
<tbody>
|
||||
<?php $c = 0; foreach ($projects as $key => $value) : $c++;
|
||||
$url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/riskmanagement/project/single?{?}&id=' . $value->getId()); ?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $value->getProject()->getName(); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= htmlspecialchars($value->getId(), ENT_COMPAT, 'utf-8'); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= htmlspecialchars($value->getProject()->getName(), ENT_COMPAT, 'utf-8'); ?></a>
|
||||
<?php endforeach; ?>
|
||||
<?php if($c === 0) : ?>
|
||||
<tr><td colspan="3" class="empty"><?= $this->getText('Empty', 0, 0); ?>
|
||||
<tr><td colspan="3" class="empty"><?= $this->getHtml('Empty', 0, 0); ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -17,11 +17,11 @@ echo $this->getData('nav')->render(); ?>
|
|||
<div class="tabular-2">
|
||||
<div class="box">
|
||||
<ul class="tab-links">
|
||||
<li><label for="c-tab-1"><?= $this->getText('Risk') ?></label>
|
||||
<li><label for="c-tab-2"><?= $this->getText('RiskStatus') ?></label>
|
||||
<li><label for="c-tab-3"><?= $this->getText('RiskObjects') ?></label>
|
||||
<li><label for="c-tab-4"><?= $this->getText('RiskObjectStatus') ?></label>
|
||||
<li><label for="c-tab-5"><?= $this->getText('Solutions') ?></label>
|
||||
<li><label for="c-tab-1"><?= $this->getHtml('Risk'); ?></label>
|
||||
<li><label for="c-tab-2"><?= $this->getHtml('RiskStatus'); ?></label>
|
||||
<li><label for="c-tab-3"><?= $this->getHtml('RiskObjects'); ?></label>
|
||||
<li><label for="c-tab-4"><?= $this->getHtml('RiskObjectStatus'); ?></label>
|
||||
<li><label for="c-tab-5"><?= $this->getHtml('Solutions'); ?></label>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="tab-content">
|
||||
|
|
@ -30,27 +30,27 @@ echo $this->getData('nav')->render(); ?>
|
|||
<div class="row">
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<section class="box wf-100">
|
||||
<header><h1><?= $this->getText('Risk'); ?></h1></header>
|
||||
<header><h1><?= $this->getHtml('Risk') ?></h1></header>
|
||||
|
||||
<div class="inner">
|
||||
<form id="fRisk" method="POST" action="<?= \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/api/controlling/riskmanagement?{?}&csrf={$CSRF}'); ?>">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td><label for="iName"><?= $this->getText('Name'); ?></label>
|
||||
<tr><td><input type="text" id="iName" name="name" placeholder=" <?= $this->getText('Name'); ?>" required>
|
||||
<tr><td><label for="iDescription"><?= $this->getText('Description'); ?></label>
|
||||
<tr><td><label for="iName"><?= $this->getHtml('Name') ?></label>
|
||||
<tr><td><input type="text" id="iName" name="name" placeholder=" <?= $this->getHtml('Name') ?>" required>
|
||||
<tr><td><label for="iDescription"><?= $this->getHtml('Description') ?></label>
|
||||
<tr><td><textarea id="iDescription" name="description"></textarea>
|
||||
<tr><td><label for="iCategory"><?= $this->getText('Category'); ?></label>
|
||||
<tr><td><input type="text" id="iCategory" name="category" placeholder=" <?= $this->getText('Category'); ?>">
|
||||
<tr><td><label for="iDepartment"><?= $this->getText('Department'); ?></label>
|
||||
<tr><td><input type="text" id="iDepartment" name="department" placeholder=" <?= $this->getText('Department'); ?>">
|
||||
<tr><td><label for="iProcess"><?= $this->getText('Process'); ?></label>
|
||||
<tr><td><input type="text" id="iProcess" name="process" placeholder=" <?= $this->getText('Process'); ?>">
|
||||
<tr><td><label for="iProject"><?= $this->getText('Project'); ?></label>
|
||||
<tr><td><input type="text" id="iProject" name="project" placeholder=" <?= $this->getText('Project'); ?>">
|
||||
<tr><td><label for="iReview"><?= $this->getText('Review'); ?></label>
|
||||
<tr><td><input type="datetime-local" id="iReview" name="Review" value="<?= (new \DateTime('NOW'))->format('Y-m-d\TH:i:s') ?>">
|
||||
<tr><td><input type="submit" value="<?= $this->getText('Create', 0, 0); ?>">
|
||||
<tr><td><label for="iCategory"><?= $this->getHtml('Category') ?></label>
|
||||
<tr><td><input type="text" id="iCategory" name="category" placeholder=" <?= $this->getHtml('Category') ?>">
|
||||
<tr><td><label for="iDepartment"><?= $this->getHtml('Department') ?></label>
|
||||
<tr><td><input type="text" id="iDepartment" name="department" placeholder=" <?= $this->getHtml('Department') ?>">
|
||||
<tr><td><label for="iProcess"><?= $this->getHtml('Process') ?></label>
|
||||
<tr><td><input type="text" id="iProcess" name="process" placeholder=" <?= $this->getHtml('Process') ?>">
|
||||
<tr><td><label for="iProject"><?= $this->getHtml('Project') ?></label>
|
||||
<tr><td><input type="text" id="iProject" name="project" placeholder=" <?= $this->getHtml('Project') ?>">
|
||||
<tr><td><label for="iReview"><?= $this->getHtml('Review') ?></label>
|
||||
<tr><td><input type="datetime-local" id="iReview" name="Review" value="<?= htmlspecialchars((new \DateTime('NOW'))->format('Y-m-d\TH:i:s') , ENT_COMPAT, 'utf-8'); ?>">
|
||||
<tr><td><input type="submit" value="<?= $this->getHtml('Create', 0, 0); ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
|
@ -59,15 +59,15 @@ echo $this->getData('nav')->render(); ?>
|
|||
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<section class="box wf-100">
|
||||
<header><h1><?= $this->getText('Media'); ?></h1></header>
|
||||
<header><h1><?= $this->getHtml('Media') ?></h1></header>
|
||||
|
||||
<div class="inner">
|
||||
<form>
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td colspan="2"><label for="iMedia"><?= $this->getText('Media'); ?></label>
|
||||
<tr><td><input type="text" id="iMedia" placeholder=" File"><td><button><?= $this->getText('Select'); ?></button>
|
||||
<tr><td colspan="2"><label for="iUpload"><?= $this->getText('Upload'); ?></label>
|
||||
<tr><td colspan="2"><label for="iMedia"><?= $this->getHtml('Media') ?></label>
|
||||
<tr><td><input type="text" id="iMedia" placeholder=" File"><td><button><?= $this->getHtml('Select') ?></button>
|
||||
<tr><td colspan="2"><label for="iUpload"><?= $this->getHtml('Upload') ?></label>
|
||||
<tr><td><input type="file" id="iUpload" form="fTask"><input form="fTask" type="hidden" name="type"><td>
|
||||
</table>
|
||||
</form>
|
||||
|
|
@ -79,17 +79,17 @@ echo $this->getData('nav')->render(); ?>
|
|||
<div class="row">
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<section class="box wf-100">
|
||||
<header><h1><?= $this->getText('Responsibility'); ?></h1></header>
|
||||
<header><h1><?= $this->getHtml('Responsibility') ?></h1></header>
|
||||
|
||||
<div class="inner">
|
||||
<form>
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td><label for="iResponsibility"><?= $this->getText('Responsibility'); ?></label><td><label for="iUser"><?= $this->getText('UserGroup'); ?></label><td>
|
||||
<tr><td><label for="iResponsibility"><?= $this->getHtml('Responsibility') ?></label><td><label for="iUser"><?= $this->getHtml('UserGroup') ?></label><td>
|
||||
<tr><td><select id="iStatus" name="status">
|
||||
<option value="">
|
||||
</select>
|
||||
<td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input type="text" id="iUser" name="user" placeholder=""></span><td><button><?= $this->getText('Add', 0, 0); ?></button>
|
||||
<td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input type="text" id="iUser" name="user" placeholder=""></span><td><button><?= $this->getHtml('Add', 0, 0); ?></button>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
|
@ -102,31 +102,31 @@ echo $this->getData('nav')->render(); ?>
|
|||
<div class="row">
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<section class="box wf-100">
|
||||
<header><h1><?= $this->getText('RiskStatus'); ?></h1></header>
|
||||
<header><h1><?= $this->getHtml('RiskStatus') ?></h1></header>
|
||||
|
||||
<div class="inner">
|
||||
<form id="fRisk" method="POST" action="<?= \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/api/controlling/riskmanagement?{?}&csrf={$CSRF}'); ?>">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td><label for="iRiskConsequence"><?= $this->getText('RiskConsequence'); ?></label>
|
||||
<tr><td><label for="iRiskConsequence"><?= $this->getHtml('RiskConsequence') ?></label>
|
||||
<tr><td><select id="iRiskConsequence" name="riskconsequence">
|
||||
|
||||
</select>
|
||||
<tr><td><label for="iRiskLikelihood"><?= $this->getText('RiskLikelihood'); ?></label>
|
||||
<tr><td><label for="iRiskLikelihood"><?= $this->getHtml('RiskLikelihood') ?></label>
|
||||
<tr><td><select id="iRiskLikelihood" name="risklikelihood">
|
||||
|
||||
</select>
|
||||
<tr><td><label for="iRiskConsequence"><?= $this->getText('RiskConsequence'); ?></label>
|
||||
<tr><td><label for="iRiskConsequence"><?= $this->getHtml('RiskConsequence') ?></label>
|
||||
<tr><td><select id="iRiskConsequence" name="riskconsequence">
|
||||
|
||||
</select>
|
||||
<tr><td><label for="iRiskLikelihood"><?= $this->getText('RiskLikelihood'); ?></label>
|
||||
<tr><td><label for="iRiskLikelihood"><?= $this->getHtml('RiskLikelihood') ?></label>
|
||||
<tr><td><select id="iRiskLikelihood" name="risklikelihood">
|
||||
|
||||
</select>
|
||||
<tr><td><label for="iRiskStatusDescription"><?= $this->getText('Description'); ?></label>
|
||||
<tr><td><label for="iRiskStatusDescription"><?= $this->getHtml('Description') ?></label>
|
||||
<tr><td><textarea id="iRiskStatusDescription" name="riskstatusdescription"></textarea>
|
||||
<tr><td><input type="submit" value="<?= $this->getText('Create', 0, 0); ?>">
|
||||
<tr><td><input type="submit" value="<?= $this->getHtml('Create', 0, 0); ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
|
@ -135,15 +135,15 @@ echo $this->getData('nav')->render(); ?>
|
|||
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<section class="box wf-100">
|
||||
<header><h1><?= $this->getText('Media'); ?></h1></header>
|
||||
<header><h1><?= $this->getHtml('Media') ?></h1></header>
|
||||
|
||||
<div class="inner">
|
||||
<form>
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td colspan="2"><label for="iMedia"><?= $this->getText('Media'); ?></label>
|
||||
<tr><td><input type="text" id="iMedia" placeholder=" File"><td><button><?= $this->getText('Select'); ?></button>
|
||||
<tr><td colspan="2"><label for="iUpload"><?= $this->getText('Upload'); ?></label>
|
||||
<tr><td colspan="2"><label for="iMedia"><?= $this->getHtml('Media') ?></label>
|
||||
<tr><td><input type="text" id="iMedia" placeholder=" File"><td><button><?= $this->getHtml('Select') ?></button>
|
||||
<tr><td colspan="2"><label for="iUpload"><?= $this->getHtml('Upload') ?></label>
|
||||
<tr><td><input type="file" id="iUpload" form="fTask"><input form="fTask" type="hidden" name="type"><td>
|
||||
</table>
|
||||
</form>
|
||||
|
|
@ -157,17 +157,17 @@ echo $this->getData('nav')->render(); ?>
|
|||
<div class="row">
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<section class="box wf-100">
|
||||
<header><h1><?= $this->getText('RiskObjects'); ?></h1></header>
|
||||
<header><h1><?= $this->getHtml('RiskObjects') ?></h1></header>
|
||||
|
||||
<div class="inner">
|
||||
<form id="fRisk" method="POST" action="<?= \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/api/controlling/riskmanagement?{?}&csrf={$CSRF}'); ?>">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td><label for="iRiskObjectName"><?= $this->getText('Name'); ?></label>
|
||||
<tr><td><input type="text" id="iRiskObjectName" name="riskobjectname" placeholder=" <?= $this->getText('Name'); ?>">
|
||||
<tr><td><label for="iRiskObjectDescription"><?= $this->getText('Description'); ?></label>
|
||||
<tr><td><label for="iRiskObjectName"><?= $this->getHtml('Name') ?></label>
|
||||
<tr><td><input type="text" id="iRiskObjectName" name="riskobjectname" placeholder=" <?= $this->getHtml('Name') ?>">
|
||||
<tr><td><label for="iRiskObjectDescription"><?= $this->getHtml('Description') ?></label>
|
||||
<tr><td><textarea id="iRiskObjectDescription" name="riskobjectdescription"></textarea>
|
||||
<tr><td><input type="submit" value="<?= $this->getText('Create', 0, 0); ?>">
|
||||
<tr><td><input type="submit" value="<?= $this->getHtml('Create', 0, 0); ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
|
@ -176,15 +176,15 @@ echo $this->getData('nav')->render(); ?>
|
|||
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<section class="box wf-100">
|
||||
<header><h1><?= $this->getText('Media'); ?></h1></header>
|
||||
<header><h1><?= $this->getHtml('Media') ?></h1></header>
|
||||
|
||||
<div class="inner">
|
||||
<form>
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td colspan="2"><label for="iMedia"><?= $this->getText('Media'); ?></label>
|
||||
<tr><td><input type="text" id="iMedia" placeholder=" File"><td><button><?= $this->getText('Select'); ?></button>
|
||||
<tr><td colspan="2"><label for="iUpload"><?= $this->getText('Upload'); ?></label>
|
||||
<tr><td colspan="2"><label for="iMedia"><?= $this->getHtml('Media') ?></label>
|
||||
<tr><td><input type="text" id="iMedia" placeholder=" File"><td><button><?= $this->getHtml('Select') ?></button>
|
||||
<tr><td colspan="2"><label for="iUpload"><?= $this->getHtml('Upload') ?></label>
|
||||
<tr><td><input type="file" id="iUpload" form="fTask"><input form="fTask" type="hidden" name="type"><td>
|
||||
</table>
|
||||
</form>
|
||||
|
|
@ -198,21 +198,21 @@ echo $this->getData('nav')->render(); ?>
|
|||
<div class="row">
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<section class="box wf-100">
|
||||
<header><h1><?= $this->getText('RiskObjectStatus'); ?></h1></header>
|
||||
<header><h1><?= $this->getHtml('RiskObjectStatus') ?></h1></header>
|
||||
|
||||
<div class="inner">
|
||||
<form id="fRisk" method="POST" action="<?= \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/api/controlling/riskmanagement?{?}&csrf={$CSRF}'); ?>">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td><label for="iRiskObjectNameValue"><?= $this->getText('RiskObject'); ?></label>
|
||||
<tr><td><label for="iRiskObjectNameValue"><?= $this->getHtml('RiskObject') ?></label>
|
||||
<tr><td><select id="iRiskObjectNameValue" name="riskobjectnamevalue">
|
||||
|
||||
</select>
|
||||
<tr><td><label for="iRiskObjecValue"><?= $this->getText('Value'); ?></label>
|
||||
<tr><td><label for="iRiskObjecValue"><?= $this->getHtml('Value') ?></label>
|
||||
<tr><td><input type="text" id="iRiskObjecValue" name="riskobjectvalue">
|
||||
<tr><td><label for="iRiskObjecValueDescription"><?= $this->getText('Description'); ?></label>
|
||||
<tr><td><label for="iRiskObjecValueDescription"><?= $this->getHtml('Description') ?></label>
|
||||
<tr><td><textarea id="iRiskObjecValueDescription" name="riskobjectvaluedescription"></textarea>
|
||||
<tr><td><input type="submit" value="<?= $this->getText('Create', 0, 0); ?>">
|
||||
<tr><td><input type="submit" value="<?= $this->getHtml('Create', 0, 0); ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
|
@ -221,15 +221,15 @@ echo $this->getData('nav')->render(); ?>
|
|||
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<section class="box wf-100">
|
||||
<header><h1><?= $this->getText('Media'); ?></h1></header>
|
||||
<header><h1><?= $this->getHtml('Media') ?></h1></header>
|
||||
|
||||
<div class="inner">
|
||||
<form>
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td colspan="2"><label for="iMedia"><?= $this->getText('Media'); ?></label>
|
||||
<tr><td><input type="text" id="iMedia" placeholder=" File"><td><button><?= $this->getText('Select'); ?></button>
|
||||
<tr><td colspan="2"><label for="iUpload"><?= $this->getText('Upload'); ?></label>
|
||||
<tr><td colspan="2"><label for="iMedia"><?= $this->getHtml('Media') ?></label>
|
||||
<tr><td><input type="text" id="iMedia" placeholder=" File"><td><button><?= $this->getHtml('Select') ?></button>
|
||||
<tr><td colspan="2"><label for="iUpload"><?= $this->getHtml('Upload') ?></label>
|
||||
<tr><td><input type="file" id="iUpload" form="fTask"><input form="fTask" type="hidden" name="type"><td>
|
||||
</table>
|
||||
</form>
|
||||
|
|
@ -243,20 +243,20 @@ echo $this->getData('nav')->render(); ?>
|
|||
<div class="row">
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<section class="box wf-100">
|
||||
<header><h1><?= $this->getText('Solution'); ?></h1></header>
|
||||
<header><h1><?= $this->getHtml('Solution') ?></h1></header>
|
||||
|
||||
<div class="inner">
|
||||
<form id="fRisk" method="POST" action="<?= \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/api/controlling/riskmanagement?{?}&csrf={$CSRF}'); ?>">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td><label for="iSolutionName"><?= $this->getText('Name'); ?></label>
|
||||
<tr><td><label for="iSolutionName"><?= $this->getHtml('Name') ?></label>
|
||||
<tr><td><input type="text" id="iSolutionName" name="solutionname">
|
||||
<tr><td><label for="iSolutioType"><?= $this->getText('Type'); ?></label>
|
||||
<tr><td><label for="iSolutioType"><?= $this->getHtml('Type') ?></label>
|
||||
<tr><td><select id="iSolutioType" name="solutiontype">
|
||||
<option>Preventing
|
||||
<option>Disclosing
|
||||
</select>
|
||||
<tr><td><label for="iSolutioFrequency"><?= $this->getText('Frequency'); ?></label>
|
||||
<tr><td><label for="iSolutioFrequency"><?= $this->getHtml('Frequency') ?></label>
|
||||
<tr><td><select id="iSolutioFrequency" name="solutionfrequency">
|
||||
<option>Permanently
|
||||
<option>Daily
|
||||
|
|
@ -266,15 +266,15 @@ echo $this->getData('nav')->render(); ?>
|
|||
<option>Semiannual
|
||||
<option>Annual
|
||||
</select>
|
||||
<tr><td><label for="iSolutioAssessment"><?= $this->getText('Assessment'); ?></label>
|
||||
<tr><td><label for="iSolutioAssessment"><?= $this->getHtml('Assessment') ?></label>
|
||||
<tr><td><select id="iSolutioAssessment" name="solutionassessment">
|
||||
<option>Manual
|
||||
<option>IT-dependent
|
||||
<option>IT
|
||||
</select>
|
||||
<tr><td><label for="iSolutionDescription"><?= $this->getText('Description'); ?></label>
|
||||
<tr><td><label for="iSolutionDescription"><?= $this->getHtml('Description') ?></label>
|
||||
<tr><td><textarea id="iSolutionDescription" name="solutionDescription"></textarea>
|
||||
<tr><td><input type="submit" value="<?= $this->getText('Create', 0, 0); ?>">
|
||||
<tr><td><input type="submit" value="<?= $this->getHtml('Create', 0, 0); ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
|
@ -283,15 +283,15 @@ echo $this->getData('nav')->render(); ?>
|
|||
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<section class="box wf-100">
|
||||
<header><h1><?= $this->getText('Media'); ?></h1></header>
|
||||
<header><h1><?= $this->getHtml('Media') ?></h1></header>
|
||||
|
||||
<div class="inner">
|
||||
<form>
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td colspan="2"><label for="iMedia"><?= $this->getText('Media'); ?></label>
|
||||
<tr><td><input type="text" id="iMedia" placeholder=" File"><td><button><?= $this->getText('Select'); ?></button>
|
||||
<tr><td colspan="2"><label for="iUpload"><?= $this->getText('Upload'); ?></label>
|
||||
<tr><td colspan="2"><label for="iMedia"><?= $this->getHtml('Media') ?></label>
|
||||
<tr><td><input type="text" id="iMedia" placeholder=" File"><td><button><?= $this->getHtml('Select') ?></button>
|
||||
<tr><td colspan="2"><label for="iUpload"><?= $this->getHtml('Upload') ?></label>
|
||||
<tr><td><input type="file" id="iUpload" form="fTask"><input form="fTask" type="hidden" name="type"><td>
|
||||
</table>
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -19,28 +19,28 @@ echo $this->getData('nav')->render(); ?>
|
|||
<div class="col-xs-12">
|
||||
<div class="box wf-100">
|
||||
<table class="table red">
|
||||
<caption><?= $this->getText('Causes'); ?></caption>
|
||||
<caption><?= $this->getHtml('Causes') ?></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td><?= $this->getText('ID', 0, 0); ?>
|
||||
<td class="wf-100"><?= $this->getText('Title'); ?>
|
||||
<td><?= $this->getText('Causes'); ?>
|
||||
<td><?= $this->getText('Solutions'); ?>
|
||||
<td><?= $this->getText('RiskObjects'); ?>
|
||||
<td><?= $this->getHtml('ID', 0, 0); ?>
|
||||
<td class="wf-100"><?= $this->getHtml('Title') ?>
|
||||
<td><?= $this->getHtml('Causes') ?>
|
||||
<td><?= $this->getHtml('Solutions') ?>
|
||||
<td><?= $this->getHtml('RiskObjects') ?>
|
||||
<tfoot>
|
||||
<tr><td colspan="3">
|
||||
<tbody>
|
||||
<?php $c = 0; foreach ($risks as $key => $value) : $c++;
|
||||
$url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/riskmanagement/cause/single?{?}&id=' . $value->getId()); ?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $value->getName(); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= count($value->getCauses()) ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= count($value->getSolutions()) ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= count($value->getRiskObjects()) ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= htmlspecialchars($value->getId(), ENT_COMPAT, 'utf-8'); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= htmlspecialchars($value->getName(), ENT_COMPAT, 'utf-8'); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= htmlspecialchars(count($value->getCauses()) , ENT_COMPAT, 'utf-8'); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= htmlspecialchars(count($value->getSolutions()) , ENT_COMPAT, 'utf-8'); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= htmlspecialchars(count($value->getRiskObjects()) , ENT_COMPAT, 'utf-8'); ?></a>
|
||||
<?php endforeach; ?>
|
||||
<?php if($c === 0) : ?>
|
||||
<tr><td colspan="3" class="empty"><?= $this->getText('Empty', 0, 0); ?>
|
||||
<tr><td colspan="3" class="empty"><?= $this->getHtml('Empty', 0, 0); ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -20,26 +20,26 @@ echo $this->getData('nav')->render(); ?>
|
|||
<div class="col-xs-12">
|
||||
<div class="box wf-100">
|
||||
<table class="table red">
|
||||
<caption><?= $this->getText('Solutions'); ?></caption>
|
||||
<caption><?= $this->getHtml('Solutions') ?></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td><?= $this->getText('ID', 0, 0); ?>
|
||||
<td class="wf-100"><?= $this->getText('Title'); ?>
|
||||
<td><?= $this->getText('Risk'); ?>
|
||||
<td><?= $this->getText('Cause'); ?>
|
||||
<td><?= $this->getHtml('ID', 0, 0); ?>
|
||||
<td class="wf-100"><?= $this->getHtml('Title') ?>
|
||||
<td><?= $this->getHtml('Risk') ?>
|
||||
<td><?= $this->getHtml('Cause') ?>
|
||||
<tfoot>
|
||||
<tr><td colspan="4">
|
||||
<tbody>
|
||||
<?php $c = 0; foreach ($solutions as $key => $value) : $c++;
|
||||
$url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/riskmanagement/solution/single?{?}&id=' . $value->getId()); ?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $value->getTitle(); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $value->getRisk()->getName(); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $value->getCause()->getTitle(); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= htmlspecialchars($value->getId(), ENT_COMPAT, 'utf-8'); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= htmlspecialchars($value->getTitle(), ENT_COMPAT, 'utf-8'); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= htmlspecialchars($value->getRisk()->getName(), ENT_COMPAT, 'utf-8'); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= htmlspecialchars($value->getCause()->getTitle(), ENT_COMPAT, 'utf-8'); ?></a>
|
||||
<?php endforeach; ?>
|
||||
<?php if($c === 0) : ?>
|
||||
<tr><td colspan="4" class="empty"><?= $this->getText('Empty', 0, 0); ?>
|
||||
<tr><td colspan="4" class="empty"><?= $this->getHtml('Empty', 0, 0); ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user