Active Conferences: Fix list row click.
This commit is contained in:
parent
44e52559ab
commit
3bc38d3cf2
|
|
@ -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> </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'> </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>" : " ";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
if ($c==0) { $c=1; } else { $c=0; }
|
||||
$x++;
|
||||
}
|
||||
}
|
||||
echo "</table>\n";
|
||||
echo "<br /><br />";
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
Loading…
Reference in New Issue