|
|
@@ -248,12 +248,13 @@ window.location.href='{$redirectUrl}';
|
|
|
$backUrl = Request::getPathUri() . "index.php?_route=UrlAction_UserProNetMediaZaliczka";
|
|
|
UI::tag('a', ['href'=>$backUrl, 'class'=>"btn btn-primary"], "wróć");
|
|
|
|
|
|
+ $databaseName = DB::getPDO()->getDatabaseName();
|
|
|
UI::table([
|
|
|
'caption' => "Zaliczka",
|
|
|
'rows' => DB::getPDO()->fetchAll("
|
|
|
select t.TABLE_NAME, t.COLUMN_NAME, t.DATA_TYPE, t.COLUMN_TYPE
|
|
|
from `information_schema`.`COLUMNS` t
|
|
|
- where t.TABLE_SCHEMA = 'SES_USERS2'
|
|
|
+ where t.TABLE_SCHEMA = '{$databaseName}'
|
|
|
and (t.TABLE_NAME like 'ZALICZKA'
|
|
|
or t.TABLE_NAME like 'ZALICZKA\_\_%'
|
|
|
or t.TABLE_NAME like 'ZALICZKA_HIST'
|
|
|
@@ -268,7 +269,7 @@ window.location.href='{$redirectUrl}';
|
|
|
'rows' => DB::getPDO()->fetchAll("
|
|
|
select t.TABLE_NAME, t.COLUMN_NAME, t.DATA_TYPE, t.COLUMN_TYPE
|
|
|
from `information_schema`.`COLUMNS` t
|
|
|
- where t.TABLE_SCHEMA = 'SES_USERS2'
|
|
|
+ where t.TABLE_SCHEMA = '{$databaseName}'
|
|
|
and (t.TABLE_NAME like 'ZALICZKA_POZYCJA'
|
|
|
or t.TABLE_NAME like 'ZALICZKA_POZYCJA\_\_%'
|
|
|
or t.TABLE_NAME like 'ZALICZKA_POZYCJA_HIST'
|
|
|
@@ -285,7 +286,7 @@ window.location.href='{$redirectUrl}';
|
|
|
, DB::getPDO()->fetchAll("
|
|
|
select t.TABLE_NAME
|
|
|
from `information_schema`.`COLUMNS` t
|
|
|
- where t.TABLE_SCHEMA = 'SES_USERS2'
|
|
|
+ where t.TABLE_SCHEMA = '{$databaseName}'
|
|
|
and (t.TABLE_NAME like 'ZALICZKA'
|
|
|
or t.TABLE_NAME like 'ZALICZKA\_\_%'
|
|
|
or t.TABLE_NAME like 'ZALICZKA_HIST'
|