Usability Enhancement: Click on list rows to View/Edit items.
Misc other fixes.
This commit is contained in:
@@ -217,15 +217,14 @@ require_once "resources/paging.php";
|
||||
$row_style["0"] = "row_style0";
|
||||
$row_style["1"] = "row_style1";
|
||||
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo th_order_by('recording_filename', $text['label-file'], $order_by, $order);
|
||||
echo th_order_by('recording_name', $text['label-recording'], $order_by, $order);
|
||||
echo "<th width=\"10%\" class=\"listhdr\" nowrap>Size</th>\n";
|
||||
echo th_order_by('recording_name', $text['label-recording_name'], $order_by, $order);
|
||||
echo th_order_by('recording_filename', $text['label-file_name'], $order_by, $order);
|
||||
echo "<th class=\"listhdr\" nowrap>".$text['label-tools']."</th>\n";
|
||||
echo "<th class=\"listhdr\" nowrap>".$text['label-file-size']."</th>\n";
|
||||
echo th_order_by('recording_description', $text['label-description'], $order_by, $order);
|
||||
echo "<td align='right' width='42'>\n";
|
||||
echo " ";
|
||||
echo "</td>\n";
|
||||
echo "<td class='list_control_icons'> </td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
if ($result_count > 0) {
|
||||
@@ -233,17 +232,20 @@ require_once "resources/paging.php";
|
||||
$tmp_filesize = filesize($_SESSION['switch']['recordings']['dir'].'/'.$row['recording_filename']);
|
||||
$tmp_filesize = byte_convert($tmp_filesize);
|
||||
|
||||
echo "<tr >\n";
|
||||
$tr_link = (permission_exists('recording_edit')) ? "href='recording_edit.php?id=".$row['recording_uuid']."'" : null;
|
||||
echo "<tr ".$tr_link.">\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>";
|
||||
echo " <a href=\"recordings.php?a=download&type=rec&t=bin&filename=".base64_encode($row['recording_filename'])."\">\n";
|
||||
echo $row['recording_name'];
|
||||
echo "</td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>";
|
||||
echo " \n";
|
||||
echo $row['recording_filename'];
|
||||
echo " </a>";
|
||||
echo " </td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>";
|
||||
echo " <a href=\"javascript:void(0);\" onclick=\"window.open('recording_play.php?a=download&type=rec&filename=".base64_encode($row['recording_filename'])."', 'play',' width=420,height=40,menubar=no,status=no,toolbar=no')\">\n";
|
||||
echo $row['recording_name'];
|
||||
echo " </a>";
|
||||
echo "</td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]." tr_link_void'>";
|
||||
echo " <a href=\"javascript:void(0);\" onclick=\"window.open('recording_play.php?a=download&type=rec&filename=".base64_encode($row['recording_filename'])."', 'play',' width=420,height=40,menubar=no,status=no,toolbar=no')\">".$text['label-play']."</a> ";
|
||||
echo " <a href=\"recordings.php?a=download&type=rec&t=bin&filename=".base64_encode($row['recording_filename'])."\">".$text['label-download']."</a>";
|
||||
echo " </td>\n";
|
||||
echo " <td class='".$row_style[$c]."'>\n";
|
||||
echo " ".$tmp_filesize;
|
||||
echo " </td>\n";
|
||||
|
||||
Reference in New Issue
Block a user