Skip to content

Commit

Permalink
Merge pull request #159 from dbdipview/develop
Browse files Browse the repository at this point in the history
Clear bottom frame
  • Loading branch information
BorisDomajnko committed Jun 30, 2023
2 parents f0d9236 + 51f2b25 commit f74a26b
Show file tree
Hide file tree
Showing 9 changed files with 90 additions and 61 deletions.
57 changes: 35 additions & 22 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,24 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
## [Unreleased]
Generally, the master branch is always stable. You can use it for installation or updating.

## [3.3.4] - 2023-06-30
### Fixed
- access: clear bottom frame with previous report when a menu is shown again
### Changed
- access: modified main menu size setting
- access: default colours slightly modified

## [3.3.3] - 2023-06-21
### Fixed
- access: many, many fixes to enable use of visually impaired users
- access: added logo alt text in confighdr.php.template
- access: many fixes to enable use of screen reader by visually impaired users
- access: database column description description is now shown also for a columns without parenthesis (but this is not advised use)
### Added
- access: added logo alt text in confighdr.php.template

## [3.3.2] - 2023-05-26
### Fixed
- access: database column description description is now shown also for a column without table name and also when keyword AS is not present
### Added
- test suite: TestAndDemo 2 - Report 4, added use cases

## [3.3.1] - 2023-05-12
Expand All @@ -24,28 +33,31 @@ Generally, the master branch is always stable. You can use it for installation o
## [3.3.0] - 2023-04-17
### Added
- access: forwarded parameters as composite keys allow for search in more than one target table.
### Added
- test suite: TestAndDemo 3 - Report 2, an example of this functionality

## [3.2.0] - 2023-02-24
### Added
- packaging: list.xml allows null in CSV to be redefined as a string instead of default ''
### Added
- test suite: TestAndDemo 2 - Report 3, string NULL is used for the last table

## [3.1.1] - 2023-02-21
### Modifed
### Changed
- test suite: a single test case can also be deployed now (for faster experimenting)

## [3.1.0] - 2023-02-14
### Added
- access: Element Description added for each screen to be displayed in the top frame
### Added
- test suite: TestAndDemo 2 - Report 1, demonstration of Description element

## [3.0.1] - 2023-02-02
### Fixed
- deployment: DIPp incremental update should also use listN.xml

## [3.0.0] - 2022-10-28
### Modified
### Changed
- packaging: list.txt has been replaced with list.xml. list.txt in old packages is still processed.
### Added
- packaging: utility for preparing list.xml (utilityListTxt2Xml.php)
Expand All @@ -59,7 +71,7 @@ Generally, the master branch is always stable. You can use it for installation o
- all: PHPStan static code analyses has been introduced to increase the quality of the code

## [2.11.0] - 2022-09-16
### Modified
### Changed
- access: PHP PDO data-access abstraction layer is now used (but not in deployment scripts)

## [2.10.3] - 2022-08-23
Expand All @@ -73,6 +85,7 @@ Generally, the master branch is always stable. You can use it for installation o
## [2.10.1] - 2022-06-29
### Added
- access: query and subquery can be without SQL code, only title and subtitle will be displayed
### Added
- test suite: TestAndDemo 6 demonstrates this possibility
- test suite: TestAndDemo 2 - a parameter has been added

Expand All @@ -92,28 +105,28 @@ Generally, the master branch is always stable. You can use it for installation o
## [2.8.6] - 2022-06-01
### Added
- access: configurable multi-column view (preview)
### Modified
### Changed
- test suite: TestAndDemo 2 shows usage of multi-column view
- access: some CSS changes for tablet devices

## [2.8.5] - 2022-05-20
### Modified
### Changed
- access: Minor improvement in debugging information in area of hyperlink creation

## [2.8.4] - 2022-05-12
### Modified
### Changed
- access: Some corrections for messages in Czech language modified (by Martin Rechtorik from NACR)

## [2.8.3] - 2022-05-09
### Modified
### Changed
- some minor improvements

## [2.8.2] - 2022-04-22
### Modified
### Changed
- administration module: config files moved to config folder

## [2.8.1] - 2022-04-07
### Modified
### Changed
- access: changed the way how the attachments are downloaded

## [2.8.0] - 2022-01-31
Expand All @@ -123,7 +136,7 @@ Generally, the master branch is always stable. You can use it for installation o
## [2.7.3] - 2021-11-09
### Added
- access: read-only fields are now marked with an asterisk
### Modified
### Changed
- packaging: relative folders can be used for input and output parameters
- access: customizable CSS; preview version

Expand All @@ -139,13 +152,13 @@ Generally, the master branch is always stable. You can use it for installation o
### Added
- access: macro has been introduced to display number of records in each table instead of a DBMS specific script
- access: "Page loading" animation has been added for cases of long search in the database
### Modified
### Changed
- test suite: TestAndDemo 2 now uses the new macro
### Fixed
- access: non-public database can now be accessed only via a ticket code

## [2.6.2] - 2021-08-25
### Modified
### Changed
- access: debugg messages for query parameters
- access: main query before subqueries can be skipped (i.e. empty) now
### Fixed
Expand All @@ -161,7 +174,7 @@ Generally, the master branch is always stable. You can use it for installation o
### Added
- access: composite keys for links from one report to another one (values from more source columns used as parameters for matching a record)
- access: print button for report in list view
### Modified
### Changed
- test suite: TestAndDemo 3 enhanced to test new functionality
### Fixed
- access: passing parameters from multiple input fields down to subqueries
Expand All @@ -171,31 +184,31 @@ Generally, the master branch is always stable. You can use it for installation o
### Added
- access: nested treeview for menu with avaiable reports
- access: in the list view it is possible to choose between showing all lines or non-empty lines
### Modified
### Changed
- test suite: TestAndDemo 2 and 6 enhanced to test new functionality
### Fixed
- access: copy to clipboard will now exclude the question mark icon

## [2.4.0] - 2021-05-15
### Added
- access: database column descriptions are shown as infotip
### Modified
### Changed
- test suite: TestAndDemo 2 enhanced to test new functionality

## [2.3.6] - 2021-04-20
### Fixed
- access: exact parameter match for subquery call instead of LIKE

## [2.3.5] - 2021-04-08
### Modified
### Changed
- access: link download as CSV moved to the first line of the header

## [2.3.4] - 2021-01-30
### Modified
### Changed
- access: toggle between table and list view is now possible before any search

## [2.3.3] - 2021-01-22
### Modified
### Changed
- test suite: run all options -v (verbose) and -r (remove only), no need to remove twice because of dependencies in TestAndDemo 4,5 and 6
- packaging: stop processing sooner if a file missing (for easier debugging)

Expand All @@ -219,7 +232,7 @@ Generally, the master branch is always stable. You can use it for installation o
- packaging: in addition to already available redacting, DDV package can now contain definitions of VIEWs for already existing database
- administration module: VIEWs from DDV can now also be configured (not only from EXT DDV)
- test suite: TestAndDemo5 now contains an example of VIEW to another table
### Modified
### Changed
- access: improved search parameters passing (as forwarded values) for subqueries ( e.g. date >=, date < )

## [2.2.0] - 2020-09-07
Expand All @@ -230,7 +243,7 @@ Generally, the master branch is always stable. You can use it for installation o
- access: the <overview> element has been added as a short alternative to description.txt
- test suite: TestAndDemo2 report show number of records in each table added as a template
- test suite: a sample control report has been added to display number of records in each table in a single report
### Modified
### Changed
- administration module: the folder for attachment files (LOBs) is now created for each DBC/DDV pair, before it was for each DDV

## [2.1.0] - 2020-05-13
Expand Down
2 changes: 1 addition & 1 deletion admin/version.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php

$version = "3.3.3";
$version = "3.3.4";
1 change: 0 additions & 1 deletion www/config/config.php.template
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ $password = "ddvreader";
$timezone='Europe/Ljubljana';
$debugCode = "123"; //activate debug: .../dbdipview/login.htm?debug=123

//$menuFrameHeight = 250; //height of menu frame with available reports in pixels
1 change: 0 additions & 1 deletion www/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ table.sortable tbody tr:nth-child(even) td {

.box {
background-color: var(--main-boxbg-color);
border: 0.1rem solid var(--main-boxborder-color);
padding: 0.3rem;
display: none;
position: absolute;
Expand Down
15 changes: 7 additions & 8 deletions www/mainVar.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* can be overriden by a copy of this file as local/mainVar.css */

:root {
--main-font-size: 0.9rem; /* font size */
--main-font-size: 0.9rem; /* font size */
--main-font-h1-size: 1.4rem; /* font size */
--main-font-h2-size: 1.2rem; /* font size */
--main-font-h3-size: 1.0rem; /* font size */
Expand All @@ -15,18 +15,17 @@

--main-a-color: #4D4D4D; /* link */
--main-a-hoover-color: FireBrick; /* link hoover */
--main-background-color: #D7E1EB; /* main background */
--main-background-color: #F0F7FA; /* main background */
--main-body-color: Black; /* text */
--main-boxbg-color: MintCream; /* hoover text for help */
--main-boxborder-color: #CCC; /* ? */
--main-buttonbg-color: Gainsboro; /* big buttons */
--main-buttonhoover-color: DarkGray; /* big buttons when hoover */
--main-boxbg-color: MintCream; /* hoover text for infotip help */
--main-buttonbg-color: #B7D8E7; /* big buttons */
--main-buttonhoover-color: #C0C5C8; /* big buttons when hoover */
--main-fontfamily: Arial,Helvetica,sans-serif; /* main font */
--main-hrborder-color: LightGray; /* loading circle */
--main-htext-color: #00578F; /* header lines, titles, subtitles */

--mydbtable-color: #4D4D4D; /* table/list view text */
--mydbtable-td-background-color: #F5F5F5; /* table/list view background color */
--mydbtable-color: Black; /* table/list view text */
--mydbtable-td-background-color: White; /* table/list view background color */

--sortable-background-color: MintCream; /* table view: background color for every 2nd row, 2,4,6 */
--sortable-td-background-color: White; /* table view: background color for every 2nd row, 1,3,5 */
Expand Down
26 changes: 21 additions & 5 deletions www/prog1.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@
<script language="JavaScript" src="js/calendar_db.js" /></script>
<link rel="stylesheet" href="js/calendar.css" />
</head>
<body>
<?php

include "utils/dbDipDbView.php";
include "utils/dbUtilsInputFnc.php";
include "utils/ColumnDescriptions.php";
Expand All @@ -132,6 +132,11 @@

include "messagesw.php";

if( strcmp($submit_cycle, "ShowMenu") == 0 )
echo '<body onload="bodyOnLoad()">';
else
echo "<body>";

if ( empty($myXMLfile) ) {
echo "<br /><h3>$MSGSW06_ErrorSessionExpired</h3><br />";
$submit_cycle = "noSession";
Expand All @@ -147,7 +152,7 @@
<div style="display: table-row;">
<div style="display: table-cell; text-align: left;">
<a href="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]) .'?submit_cycle=Logout';?>"
><img src="img/gnome_go_home.png" height="18" width="18" alt="<?php echo $MSGSW27_HOME; ?>" /></a>
><img src="img/gnome_go_home.png" height="18" width="18" title="<?php echo $MSGSW27_HOME; ?>" alt="<?php echo $MSGSW27_HOME . ' '; ?>" /></a>
</div>
<div style="display: table-cell; text-align: center;">
<h1 style="display:table-cell; align: center;"><?php echo $INSTITUTION; ?></h1>
Expand All @@ -156,7 +161,7 @@
<?php
echo debugReturn($dbName . "&#8672;" . rtrim($myXMLfile, ".xml") . "&nbsp;&nbsp;");
echo "<a href=\"" . htmlspecialchars($_SERVER["PHP_SELF"]) .
"?submit_cycle=Logout\"><img src=\"img/closeX.png\" height=\"16\" width=\"18\" alt=\"$MSGSW09_Logout\"/></a>";
"?submit_cycle=Logout\"><img src=\"img/closeX.png\" height=\"18\" title=\"$MSGSW09_Logout\" alt=\"$MSGSW09_Logout \"/></a>";
?>
</div>
</div>
Expand Down Expand Up @@ -195,7 +200,7 @@

if( strcmp($submit_cycle, "noSession") !== 0 )
connectToDB();

switch ($submit_cycle) {
case "ShowMenu":
case "CheckLogin":
Expand All @@ -218,7 +223,11 @@
<input type="hidden" name="submit_cycle" value="ShowMenu"/>
<input type="hidden" name="targetQueryNum" value=<?php echo "\"$targetQueryNum\""; ?>/>
<div>
<input id="idback" type="submit" class='button' value="&#x25c0;" alt="<?php echo $MSGSW10_Back ?>" aria-label="<?php echo $MSGSW10_Back; ?>"/>
<input id="idback" type="submit" class='button'
value="&#x25c0;"
title="<?php echo $MSGSW10_Back ?>"
alt="<?php echo $MSGSW10_Back . ' ' ?>"
aria-label="<?php echo $MSGSW10_Back; ?>"/>
</div>
</form>
</span>
Expand Down Expand Up @@ -282,5 +291,12 @@ function debugReturn($mytxt): string {
return("");
}
?>

<script>
function bodyOnLoad() {
top.frames['bottomframe'].location.href = 'empty.htm';
}
</script>

</body>
</html>
18 changes: 13 additions & 5 deletions www/utils/QueryData.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,24 @@ class QueryData {
public $viewData = null;

/**
* @param string $end
* Display title and subtitle for the report
* @var boolan
**/
public function showHeader(string $end): void {
public function showHeader($inline): void {
if ( $inline )
print ('<h3 style="display: inline;">');
else
print ("<h3>");

if ( strlen($this->title) > 0 )
print($this->title);
print($end);
print($this->title . "<br />");
print ("</h3>");

if ( strlen($this->subTitle) > 0 )
print($this->subTitle . "<br/>");
print($this->subTitle . "<br />");
}


/**
* @param SimpleXMLElement $xml[]
*/
Expand Down
15 changes: 4 additions & 11 deletions www/utils/fillCreateQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -467,8 +467,7 @@ function fillCreateQuery() {
print ('<h2 style="display: inline;">');
print($MSGSW18_ReportDescription . " " . $screen->id . ": " . $screen->selectDescription . "</h2>");

print ("<h3>");
$queryInfo->showHeader("</h3>");
$queryInfo->showHeader(false);

if ( !empty($screenQuery) )
$newlist = qToTableWithLink($queryInfo, $totalCount, "M");
Expand All @@ -482,8 +481,7 @@ function fillCreateQuery() {
print '<h2 style="display: inline;">';
print $MSGSW18_ReportDescription . ": " . $screen->id . "-" . $screen->selectDescription . "</h2>";

print ("<h3>");
$queryInfo->showHeader("</h3>");
$queryInfo->showHeader(false);
print ("<br/>");

if ( !empty($screenQuery) )
Expand Down Expand Up @@ -514,15 +512,10 @@ function fillCreateQuery() {
$cQD->query,
$csvfilename);
}
print ('<h3 style="display: inline;">');
$cQD->showHeader("</h3>");

$cQD->showHeader(true);
$newlist = qToTableWithLink($cQD, 0, (string)$sqindexLoop ); //0: no counting of lines
} else {
print("<h3>");
$cQD->showHeader("</h3>");
print("<br/>");

$cQD->showHeader(false);
$newlist = qToListWithLink($cQD, 0); //0: no counting of lines
}

Expand Down

0 comments on commit f74a26b

Please sign in to comment.