Open GoogleCodeExporter opened 9 years ago
Maybe like this is better:
$condAction = isset($_GET['action']) && !isset($_GET['confirm']);
for($i=0; $i<sizeof($result); $i++)
{
if(substr($result[$i]['name'], 0, 7)!="sqlite_" && $result[$i]['name']!="")
{
$action = $condAction && $result[$i]['name'] !== $_GET['table'] ? $_GET['action'] : 'row_view';
echo "<span class='sidebar_table'>[".$lang[$result[$i]['type']=='table'?'tbl':'view']."]</span> ";
echo "<a href='".PAGE."?action=".$action."&table=".urlencode($result[$i]['name']).($result[$i]['type']=='view'?'&view=1':'')."'";
if(isset($_GET['table']) && $_GET['table']==$result[$i]['name'])
echo " class='active_table'";
echo ">".htmlencode($result[$i]['name'])."</a><br/>";
$j++;
}
}
I think that if `isset($_GET['action'])` is `true`, then
`isset($_GET['table'])` must be true too.
If I am wrong, to avoid errors, `$condAction` should be
$condAction = isset($_GET['table']) && isset($_GET['action']) && !isset($_GET['confirm']);
Original comment by Loiroor...@gmail.com
on 1 Sep 2013 at 12:23
Hmm. I am not sure if phpLiteAdmin really should remember the tab.
phpMyAdmin also does not do it. I am not sure I would find this intuitive or
useful.
Any other opinions?
Maybe we should add an extra link to allow users to switch to the row_view
action directly like phpMyAdmin does?
Original comment by crazy4ch...@gmail.com
on 24 Dec 2013 at 1:10
Original issue reported on code.google.com by
Loiroor...@gmail.com
on 30 Aug 2013 at 6:20