Added alternative php. Part 12

This commit is contained in:
Alexey Berezhok
2025-02-01 23:48:29 +03:00
parent 93ccae3f18
commit 06fa9cb9c2
7 changed files with 204 additions and 82 deletions

View File

@@ -28,26 +28,26 @@ if (!empty($error_message)) {
<div class="units-table js-units-container">
<div class="units-table-header">
<div class="units-table-cell" style="width: 60%;"><?= _("PHP version") ?></div>
<div class="units-table-cell u-text-center"><?= _("Modules") ?></div>
<div class="units-table-cell u-text-center"><?= _("PHP version") ?></div>
<div class="units-table-cell u-text-center"><?= _("Action") ?></div>
</div>
<?php
foreach ($phps as $key => $value) {
?>
<div class="units-table-ro js-unit">
<div class="units-table-cell u-text-center" style="width: 60%;">
<span class="u-hide-desktop"><?= _("PHP version") ?>:</span>
<?php echo "PHP ".$phps[$key]["PHPVER"]; ?>
</div>
<div class="units-table-cell u-text-center-desktop">
<span class="u-hide-desktop"><?= _("Modules") ?>:</span>
<a href="/extm/php_brepo_modules/edit/?ver=<?= urlencode($phps[$key]['PHPVER']) ?>" title="<?= $phps[$key]['PHPVER'] ?>">
<?= _("Change PHP modules list") ?>
</a>
</div>
<div class="units-table-row js-unit">
<div class="units-table-cell u-text-center">
<span class="u-hide-desktop"><?= _("PHP version") ?>:</span>
<?php echo "PHP ".$phps[$key]["PHPVER"]; ?>
</div>
<div class="units-table-cell u-text-center-desktop">
<span class="u-hide-desktop"><?= _("Action") ?>:</span>
<?= _("Change modules list") ?>
<a href="/extm/php_brepo_modules/edit/?ver=<?= urlencode($phps[$key]['PHPVER']) ?>" title="<?= _("Change modules list for PHP") ?><?= $phps[$key]['PHPVER'] ?>">
<i class="fa-solid fa-gear icon-purple"></i>
</a>
</div>
</div>
<?php } ?>
</div>

View File

@@ -2,7 +2,7 @@
<div class="toolbar">
<div class="toolbar-inner">
<div class="toolbar-buttons">
<a class="button button-secondary button-back js-button-back" href="/list/server/">
<a class="button button-secondary button-back js-button-back" href="/extm/php_brepo_modules/edit/">
<i class="fas fa-arrow-left icon-blue"></i><?= _("Back") ?>
</a>
</div>
@@ -29,19 +29,22 @@ if (!empty($error_message)) {
?>
<h1 class="u-text-center u-hide-desktop u-mt20 u-pr30 u-mb20 u-pl30"><?= _("Available modules list for version PHP") ?> <?= $php_vers ?></h1>
<h1 class="u-text-center u-mt20 u-pr30 u-mb20 u-pl30"><?= _("Available modules list for version PHP") ?> <?= $php_vers ?></h1>
<form id="main-form" name="v_ruby_path" method="post">
<input type="hidden" name="save" value="save">
<div class="units-table js-units-container">
<div class="units-table-header">
<div class="units-table-cell u-text-center"><?= _("PHP module name") ?></div>
<div class="units-table-cell u-text-center"><?= _("Description") ?></div>
</div>
<?php
foreach ($phps_modules as $key => $value) {
?>
<div class="units-table-ro js-unit">
<div class="units-table-row js-unit">
<div class="units-table-cell js-unit">
<span class="u-hide-desktop"><?= _("PHP module name") ?>:</span>
<div class="form-check">
<input
class="form-check-input"
@@ -53,7 +56,7 @@ if (!empty($error_message)) {
if ($phps_modules[$key]["STATE"] != "disabled") {
echo " value=\"" . $phps_modules[$key]["STATE"] . "\"";
} else {
echo " value=\"\"";
echo " value=\"" . $phps_modules[$key]["MODNAME"] ."\"";
}
?>
>
@@ -61,7 +64,12 @@ if (!empty($error_message)) {
<?= $phps_modules[$key]["MODNAME"] ?>
</label>
</div>
</div>
</div>
<div class="units-table-cell">
<span class="u-hide-desktop"><?= _("Description") ?>:</span>
<?= $phps_modules[$key]["DESCR"] ?>
</div>
</div>
<?php } ?>
</div>
</form>