Commit c72f3d8d authored by Vinicius Ruoso's avatar Vinicius Ruoso

Created DEFAULTCOLUMNS variable.

Before, was impossible to define witch columns should be showned when
starting a new table.

With this variable, each table can have distinct column configuration.

The wwwsdi.conf configuration file example has been updated to show how
this varialble should be used.
Signed-off-by: default avatarVinicius Ruoso <vkr07@c3sl.ufpr.br>
parent 0bd51de8
......@@ -35,6 +35,7 @@ fi
: ${GENERATESUMMARY:=false}
: ${HISTORY:=true}
: ${HISTORYFILEFORMAT:="%Y%m%d%H%M"}
: ${DEFAULTCOLUMNS:="ID,Cidade,Escola,Status,Uptime"}
#Global variable, to avoid multiple generation of names
COLUMNNAMES=
......@@ -75,7 +76,7 @@ function starttable()
<div class=\"bar_right\">
<a href=\"#\" onmouseover=\"show_menu('${TID}_cols');\">
Selecionar colunas <img src=\"img/columns.jpg\" /></a>
<div class=\"hide\" id=\"${TID}_cols\" onmouseout=\"hide_menu(event, this);\">ID,Cidade,Escola,Status,Uptime</div>
<div class=\"hide\" id=\"${TID}_cols\" onmouseout=\"hide_menu(event, this);\">$DEFAULTCOLUMNS</div>
</div></div>
<div id=\"${TID}_div\">
<div id=\"${TID}_load\" class=\"loading\"></div>
......
......@@ -4,6 +4,7 @@ TYPEDIR=NRES
TYPENAME=NRE
WWWDIR=www
DATADIR=../sdi/coleta
DEFAULTCOLUMNS="ID,Cidade,Escola,Status,Uptime"
#Here we will define if generator must create a history of indexes from
#generated websites (for each file in $TYPEDIR)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment