49 lines
1.4 KiB
PHP
49 lines
1.4 KiB
PHP
|
|
<?
|
|||
|
|
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>
|
|||
|
|
|