[Devel] [GIT] OpenBioMaps GIT repository, branch master updated:

git at vocs.unideb.hu git at vocs.unideb.hu
Tue Apr 2 14:18:07 CEST 2019


    The project "OpenBioMaps GIT repository":

    The branch, master has been updated
       via  5e108778e4ef47ac93251d0c846187491cde0407 (commit)
       via  8c25353a2afea60603776ba11fde5cc700a5bcdc (commit)
      from  698cbae8560a324e81a97c116dc894a4604640ce (commit)


- Log -----------------------------------------------------------------
commit 5e108778e4ef47ac93251d0c846187491cde0407
Merge: 8c25353 698cbae
Author: Bán Miklós <banm at vocs.unideb.hu>
Date:   Tue Apr 2 14:18:02 2019 +0200

Merge branch 'master' of vocs.unideb.hu:openbiomaps

commit 8c25353a2afea60603776ba11fde5cc700a5bcdc
Author: Bán Miklós <banm at vocs.unideb.hu>
Date:   Tue Apr 2 13:55:14 2019 +0200

New module

read_table

This module let users to load a complete table or a view into a
fullsized dynamic html table and read all data online.

This module not handling special access rights of rows and columns. So
if you enabled this module for someone, the whole table will be readable
for them.

The table links are encrypted, therefore can be used only through special
links which genareted by the module itself.
Example:
http://localhost/biomaps/projects/dinpi/view-table/p4r494i4p584u2k5g4l4t5e4e474a4s5g2h3q43573n2q4u4j5i4h4p4k4g5e4/?orderby=faj ASC

It supports on the fly complex ordering (as you can see above)
Default order seetings can be given with module parameters.

Module settings example:

module_name
read_table
parameters
public.dinpi:faj DESC,szamossag
dinpi_extra.jeloles_visszafogas

Encryption for table names can be set using the new MyHASH global
variable in local_vars.php.inc. If it is missing, the module will generates a hash
string for encryption from the admin password.

The table access links are available on the mainpage_grid using the
view_table_links() function.
Example:
<div class='leftbox boxborder'><h3>Table views</h3>
<ul class='boxul'>
<li><?php echo $mf->view_table_links()?></li>
</ul>
</div>

The links (by default) using a masked url which assumes an additional
rewrite_rule setting in the .htaccess file:

RewriteRule ^view-table/(.*)/$ /biomaps/projects/dinpi/includes/modules/results_asTable.php?view&table=$1&%{QUERY_STRING} [NC,L]

-----------------------------------------------------------------------

Summary of changes:
 resources/css/roller.css                   |   2 +-
 resources/js/roller.js                     |  10 +-
 resources/libs/afuncs.php                  |  52 +++++-
 resources/libs/default_modules.php         |  24 ++-
 resources/libs/mainpage_functions.php      |  19 ++
 resources/libs/modules/read_table.php      |  52 ++++++
 resources/libs/modules/results_asTable.php | 274 ++++++++++++++++-------------
 resources/libs/results_builder.php         |  11 +-
 8 files changed, 298 insertions(+), 146 deletions(-)
 create mode 100644 resources/libs/modules/read_table.php

-- 
OpenBioMaps GIT repository


More information about the Devel mailing list