Skip to content
Snippets Groups Projects
Commit 6b794f56 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

Merge branch 'update-valuestore-bowser' into 'master'

Update valuestore bowser

See merge request !95
parents cad6297f f53ec457
No related branches found
No related tags found
No related merge requests found
......@@ -292,3 +292,9 @@ span.replace{background:#fea; font-weight: bold;}
div.logs{ margin-top: 1em; padding: 0.5em 0;
text-align: left;
}
/* ----- valuestore browser ----- */
#tbldata th{background: #ace; border: none; float: none;}
#tbldata tr:hover{background: #fec;}
#tbldata td{border: none; padding: 0.2em; margin: none; float: none;}
\ No newline at end of file
......@@ -116,11 +116,15 @@ if(is_array($aData) && count($aData)){
// echo '<pre>' . print_r($aData, 1);
foreach ($aData as $aRow){
$sItemUrl='index.php?action=show&project='.$aRow['project'].'&package='.$aRow['package'].'&phase='.$aRow['phase'].'&host='.$aRow['host'].'&variable='.$aRow['variable'].'';
$sTable.='<tr onclick="location.href=\''.$sItemUrl.'\'">';
$sTable.='<tr ondblclick="location.href=\''.$sItemUrl.'\'">';
// $sTable.='<tr>';
foreach ($aRow as $sKey=>$sValue){
// $sTable.='<td class="'.$sKey.'"><a href="'.$sUrl.'">'.$sValue.'</a></td>';
$sTable.='<td class="'.$sKey.'">'.htmlentities($sValue).'</td>';
$sOnclick=strstr($sValue, '"')
? ''
: 'onclick="$(\'#eFilter\').val(\''.$sValue.'\');filterTable();" title="click to filter by ['.$sValue.']"'
;
$sTable.='<td class="'.$sKey.'" '.$sOnclick.'>'.htmlentities($sValue).'</td>'."\n";
}
$sTable.='<td>'
// . '<button onclick="location.href=\''.$sItemUrl.'&action=get\'">View</button>'
......@@ -129,7 +133,7 @@ if(is_array($aData) && count($aData)){
. '<button>Delete</button>'
. '</form>'
. '</td>'
. '</tr>';
. '</tr>'."\n";
}
foreach (array_keys($aRow) as $sKey){
......@@ -142,7 +146,7 @@ if(is_array($aData) && count($aData)){
. '</form><hr>'
. '<table id="tbldata"><thead>'
. '<tr>'.$sTableHead. '</tr>'
. '<tr>'.$sTableHead. '<th>action</th></tr>'
. '</thead>'
. '<tbody>'.$sTable.'</tbody></table>';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment