Skip to content
Snippets Groups Projects
Commit f53ec457 authored by hahn's avatar hahn
Browse files

update valuestore browser

parent cad6297f
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