meraproject/module/core/columns/views/my.php
keboss-m 5c21d25d45 Initial commit: Merakomis portal, Docker stack and user-reader API.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-24 11:04:05 +03:00

49 lines
1.4 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?
use core\lang\structure\LangVariable as V;
?>
<div class="modal-header bg-primary">
<h5 class="modal-title">Расстановка столбцов</h5>
<button type="button" class="close" data-dismiss="modal">×</button>
</div>
<form >
<div class="modal-body">
<div class="sortable">
<?
$checked = array_keys($my);
$cols = $checked;
foreach ($info as $k=>$v) {
if(in_array($k,$cols)) continue;
$cols[] = $k;
}
foreach ($cols as $k){
$v = $info[$k];
$key = 'col'.strtolower($k);
echo '
<div class="form-check ">
<input class="form-check-input form-check-input-styled" type="checkbox" value="'.$k.'" id="'.$key.'" '.(in_array($k,$checked)?'checked':'').'>
<label class="form-check-label" for="'.$key.'">'.$v->getTh().'</label>
<i class="fa fa-bars mover" ></i>
</div>
';
/*
echo '
<div class="form-check">
<input class="form-check-input form-check-input-styled" type="checkbox" value="'.$k.'" id="'.$key.'" '.(in_array($k,$checked)?'checked':'').'>
<label class="form-check-label" for="'.$key.'">'.$v->getTh().'</label>
</div>
';
*/
}
?>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-primary" type="submit"><?=V::get(coreVars::$BUTTON_ACCEPT);?></button>
</div>
</form>