mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
9c84558f5f
- Removed the private method _isAllowed from application/controllers/widgets/UDF.php - Removed required permissions from views application/views/system/fas_udf.php and application/views/system/infocenter/zgvpruefungen.php - Widget views application/views/widgets/checkbox, dropdown, textarea and textfield now they print the attribute disabled - Added constant DISABLED to application/widgets/html/HTMLWidget.php - Removed private property _requiredPermissions from application/widgets/udf/UDFWidget.php - application/widgets/udf/UDFWidget.php does not check permissions anymore and does not store them anymore - Added constants PERMISSION_TYPE_READ and PERMISSION_TYPE_WRITE to application/libraries/UDFLib.php - Removed constant PERMISSION_TYPE from application/libraries/UDFLib.php - Removed public method isAllowed from application/libraries/UDFLib.php - Added private methods _readAllowed, _writeAllowed, _setRequiredPermissions and _setReadOnly to application/libraries/UDFLib.php - UDFLib->displayUDFWidget now checks if permissions are declared in the UDF JSON and if the user is allowed to read and write such UDF - UDFLib->saveUDFs now checks if the user has the permissions to write such UDF - Now the UDFs are even displayed in read only mode
111 lines
2.4 KiB
PHP
111 lines
2.4 KiB
PHP
<?php
|
|
$this->load->view(
|
|
'templates/FHC-Header',
|
|
array(
|
|
'title' => 'InfocenterDetails',
|
|
'jquery' => true,
|
|
'bootstrap' => true,
|
|
'fontawesome' => true,
|
|
'jqueryui' => true,
|
|
'dialoglib' => true,
|
|
'ajaxlib' => true,
|
|
'udfs' => true,
|
|
'widgets' => true,
|
|
'sbadmintemplate' => true,
|
|
'customCSSs' => array(
|
|
'public/css/sbadmin2/admintemplate.css'
|
|
),
|
|
'customJSs' => array(
|
|
'public/js/bootstrapper.js'
|
|
)
|
|
)
|
|
);
|
|
?>
|
|
|
|
<body style="background-color: #eff0f1;">
|
|
|
|
<div class="div-table">
|
|
<div class="div-row">
|
|
<div class="div-cell" style="font-size: 20px; font-weight: bold;">
|
|
Zusatzfelder
|
|
</div>
|
|
</div>
|
|
<div class="div-row">
|
|
<div class="div-cell">
|
|
|
|
</div>
|
|
</div>
|
|
<div class="div-row">
|
|
<?php
|
|
if (isset($personUdfs))
|
|
{
|
|
?>
|
|
<div class="div-cell">
|
|
<?php
|
|
echo $this->udflib->UDFWidget(
|
|
array(
|
|
UDFLib::UDF_UNIQUE_ID => 'fasPersonUDFs',
|
|
UDFLib::SCHEMA_ARG_NAME => 'public',
|
|
UDFLib::TABLE_ARG_NAME => 'tbl_person',
|
|
UDFLib::PRIMARY_KEY_NAME => 'person_id',
|
|
UDFLib::PRIMARY_KEY_VALUE => $person_id,
|
|
UDFLib::UDFS_ARG_NAME => $personUdfs
|
|
)
|
|
);
|
|
?>
|
|
</div>
|
|
<div class="div-cell" style="width: 40px;">
|
|
|
|
</div>
|
|
<?php
|
|
}
|
|
?>
|
|
<?php
|
|
if (isset($prestudentUdfs))
|
|
{
|
|
?>
|
|
<div class="div-cell">
|
|
<?php
|
|
echo $this->udflib->UDFWidget(
|
|
array(
|
|
UDFLib::UDF_UNIQUE_ID => 'fasPrestudentUDFs',
|
|
UDFLib::SCHEMA_ARG_NAME => 'public',
|
|
UDFLib::TABLE_ARG_NAME => 'tbl_prestudent',
|
|
UDFLib::PRIMARY_KEY_NAME => 'prestudent_id',
|
|
UDFLib::PRIMARY_KEY_VALUE => $prestudent_id,
|
|
UDFLib::UDFS_ARG_NAME => $prestudentUdfs
|
|
)
|
|
);
|
|
?>
|
|
</div>
|
|
<?php
|
|
}
|
|
?>
|
|
</div>
|
|
<div class="div-row">
|
|
<div class="div-cell">
|
|
|
|
</div>
|
|
</div>
|
|
<div class="div-row halign-right">
|
|
<?php
|
|
if (isset($personUdfs) && isset($prestudentUdfs))
|
|
{
|
|
?>
|
|
<div class="div-cell">
|
|
|
|
</div>
|
|
<div class="div-cell">
|
|
|
|
</div>
|
|
<?php
|
|
}
|
|
?>
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
|
|
<?php $this->load->view("templates/footer"); ?>
|
|
|