Show only visible tables

Signed-off-by: Bimal Yashodha <kb.yashodha@gmail.com>
PDF pages are managed from designer

Signed-off-by: Bimal Yashodha <kb.yashodha@gmail.com>
Pass constraints for hidden tables also

Signed-off-by: Bimal Yashodha <kb.yashodha@gmail.com>
Initially show all tables

Signed-off-by: Bimal Yashodha <kb.yashodha@gmail.com>
Remove references to designer_coords and designerwork

Signed-off-by: Bimal Yashodha <kb.yashodha@gmail.com>
Fix tests

Signed-off-by: Bimal Yashodha <kb.yashodha@gmail.com>
Close the dialog

Signed-off-by: Bimal Yashodha <kb.yashodha@gmail.com>
Remove unused function

Signed-off-by: Bimal Yashodha <kb.yashodha@gmail.com>
Better variable name

Signed-off-by: Bimal Yashodha <kb.yashodha@gmail.com>
Indent properly

Signed-off-by: Bimal Yashodha <kb.yashodha@gmail.com>
Improve queries

Signed-off-by: Bimal Yashodha <kb.yashodha@gmail.com>
Duplicate code

Signed-off-by: Bimal Yashodha <kb.yashodha@gmail.com>
Pass $db as a parameter

Signed-off-by: Bimal Yashodha <kb.yashodha@gmail.com>
Fix id of the input

Signed-off-by: Bimal Yashodha <kb.yashodha@gmail.com>
Unit tests for PMA_getPageIdsAndNames() and PMA_getHtmlForEditOrDeletePages()

Signed-off-by: Bimal Yashodha <kb.yashodha@gmail.com>
Tests for PMA_getHtmlForPageSaveAs()

Signed-off-by: Bimal Yashodha <kb.yashodha@gmail.com>
Tests for PMA_getHtmlForPageSaveAs()

Signed-off-by: Bimal Yashodha <kb.yashodha@gmail.com>
Test for PMA_getPageName()

Signed-off-by: Bimal Yashodha <kb.yashodha@gmail.com>
Test for PMA_getFirstPage

Signed-off-by: Bimal Yashodha <kb.yashodha@gmail.com>
Resolve issues reported by Scrutinizer

Signed-off-by: Bimal Yashodha <kb.yashodha@gmail.com>