ikinci temizlik tamamlandı
This commit is contained in:
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
////$noRemoteOperations = true;
|
||||
if(!isset($requiredFields)) {
|
||||
$requiredFields = required_fields();
|
||||
}
|
||||
|
||||
if(isset($blockGroup)) {
|
||||
$blockGroupColumns = [];
|
||||
|
||||
foreach($blockGroup AS $blockTitle => $columns2) {
|
||||
foreach($columns2 AS $column) {
|
||||
$blockGroupColumns[] = $column;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
if(!isset($columns)) {
|
||||
if(isset($blockGroupColumns)) {
|
||||
$columns = $blockGroupColumns;
|
||||
} else {
|
||||
$columns = table_columns($tableName);
|
||||
}
|
||||
}
|
||||
|
||||
if(isset($_SESSION['select-columns'][$tableName])) {
|
||||
$_SESSION['select-columns'][$tableName] = $columns;
|
||||
}
|
||||
|
||||
if(getisset("select-columns")) {
|
||||
$_SESSION['select-columns'][$tableName] = $_POST['column'];
|
||||
}
|
||||
|
||||
if(isset($excepts)) {
|
||||
$columns = array_diff($columns, $excepts);
|
||||
} else {
|
||||
$excepts = [];
|
||||
}
|
||||
$columnsList = [];
|
||||
|
||||
foreach($columns AS $column) {
|
||||
$columnType = table_column_type($tableName, $column);
|
||||
if($column!="id") {
|
||||
$columnsList[$column] = [
|
||||
'name' => $column,
|
||||
'type' => isset($relationDatas[$column]) ? $relationDatas[$column]['type'] : $columnType,
|
||||
'relation' => isset($relationDatas[$column]) ? $relationDatas[$column] : ''
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
<?php if(!isset($summaryTable)) {
|
||||
?>
|
||||
<?php if(!isset($disableNewModal)) {
|
||||
if(!isset($newTitle)) {
|
||||
$newTitle = "New $title";
|
||||
}
|
||||
?>
|
||||
<?php } ?>
|
||||
|
||||
<?php } ?>
|
||||
<?php $options = [
|
||||
'export' => $tableName,
|
||||
];
|
||||
if(isset($summaryTable)) {
|
||||
$options = [];
|
||||
}
|
||||
if(!isset($topButtons)) $topButtons = [];
|
||||
if(!isset($columns)) $columns = [];
|
||||
?>
|
||||
{{col2("col-md-12", $title, 0, $options, $topButtons, $columns)}}
|
||||
@include("components.excel-file-input")
|
||||
|
||||
<?php
|
||||
//data-tables
|
||||
$tableType = isset($tableType) ? $tableType : "datagrid";
|
||||
?>
|
||||
@include("components.table.$tableType")
|
||||
|
||||
|
||||
{{_col2()}}
|
||||
|
||||
|
||||
@include("components.select-columns")
|
||||
Reference in New Issue
Block a user