Conferences Inter/Active: Button updates.

This commit is contained in:
Nate
2020-01-13 13:54:08 -07:00
parent b8a08419ad
commit dbbcefe2c7
5 changed files with 157 additions and 103 deletions
@@ -26,7 +26,7 @@
*/
//includes
include "root.php";
require_once "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
@@ -67,15 +67,11 @@
//echo $e->getMessage();
}
$c = 0;
$row_style["0"] = "row_style0";
$row_style["1"] = "row_style1";
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";
echo " <th class='center'>".$text['label-member-count']."</th>\n";
if (permission_exists('conference_interactive_view')) {
echo " <td class='action-button'>&nbsp;</td>\n";
}
@@ -130,10 +126,9 @@
if (permission_exists('conference_interactive_view')) {
$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.">";
echo " <td>";
if (permission_exists('conference_interactive_view')) {
echo " <a href='".$list_row_url."'>".escape($conference_name)."</a>";
}
@@ -141,9 +136,9 @@
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>".escape($participant_pin)."</td>\n";
echo " <td class='center'>".escape($member_count)."</td>\n";
if (permission_exists('conference_interactive_view') && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') {
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";