Active Conferences: Fix list row click.

This commit is contained in:
Nate 2019-11-02 20:13:40 -06:00
parent 44e52559ab
commit 3bc38d3cf2
1 changed files with 29 additions and 19 deletions

View File

@ -71,13 +71,16 @@
$row_style["0"] = "row_style0";
$row_style["1"] = "row_style1";
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<th>".$text['label-name']."</th>\n";
echo "<th>".$text['label-participant-pin']."</th>\n";
echo "<th>".$text['label-member-count']."</th>\n";
echo "<th>&nbsp;</th>\n";
echo "<table class='list'>\n";
echo "<tr class='list-header'>\n";
echo " <th>".$text['label-name']."</th>\n";
echo " <th>".$text['label-participant-pin']."</th>\n";
echo " <th>".$text['label-member-count']."</th>\n";
if (permission_exists('conference_interactive_view')) {
echo " <td class='action-button'>&nbsp;</td>\n";
}
echo "</tr>\n";
$x = 0;
foreach ($xml->conference as $row) {
//set the variables
$name = $row['name'];
@ -126,24 +129,31 @@
}
if (permission_exists('conference_interactive_view')) {
$td_onclick = "onclick=\"document.location.href='conference_interactive.php?c=".urlencode($conference_name)."'\"";
$list_row_url = 'conference_interactive.php?c='.urlencode($conference_uuid);
$list_row_onclick = "onclick=\"document.location.href='".$list_row_url."';\"";
}
echo "<tr class='list-row' href='".$list_row_url."'>\n";
echo " <td ".$list_row_onclick.">";
if (permission_exists('conference_interactive_view')) {
echo " <a href='".$list_row_url."'>".escape($conference_name)."</a>";
}
else {
echo escape($conference_name);
}
echo " </td>\n";
echo " <td ".$list_row_onclick.">".escape($participant_pin)."</td>\n";
echo " <td ".$list_row_onclick.">".escape($member_count)."</td>\n";
if (permission_exists('conference_interactive_view')) {
echo " <td class='action-button'>";
echo button::create(['type'=>'button','title'=>$text['button-view'],'icon'=>$_SESSION['theme']['button_icon_view'],'link'=>$list_row_url]);
echo " </td>\n";
}
echo "<tr>\n";
echo "<td valign='top' class='".$row_style[$c]."' ".$td_onclick.">";
echo (permission_exists('conference_interactive_view')) ? "<a href='conference_interactive.php?c=".urlencode($conference_uuid)."'>".escape($conference_name)."</a>" : escape($conference_name);
echo "</td>\n";
echo "<td valign='top' class='".$row_style[$c]."' ".$td_onclick.">".escape($participant_pin)."</td>\n";
echo "<td valign='top' class='".$row_style[$c]."' ".$td_onclick.">".escape($member_count)."</td>\n";
echo "<td valign='top' class='".$row_style[$c]."' ".$td_onclick.">";
echo (permission_exists('conference_interactive_view')) ? "<a href='conference_interactive.php?c=".urlencode($conference_uuid)."'>".$text['button-view']."</a>" : "&nbsp;";
echo "</td>\n";
echo "</tr>\n";
if ($c==0) { $c=1; } else { $c=0; }
$x++;
}
}
echo "</table>\n";
echo "<br /><br />";
}
?>
?>