Usability Enhancement: Click on list rows to Edit items.
This commit is contained in:
parent
fd918a10b8
commit
a117993264
|
|
@ -140,7 +140,7 @@ else {
|
|||
$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>".$text['table-extension']."</th>\n";
|
||||
echo "<th>".$text['table-tools']."</th>\n";
|
||||
|
|
@ -149,20 +149,14 @@ else {
|
|||
|
||||
if ($result_count > 0) {
|
||||
foreach($result as $row) {
|
||||
echo "<tr >\n";
|
||||
$tr_url = PROJECT_PATH."/app/calls/call_edit.php?id=".$row['extension_uuid'];
|
||||
$tr_link = (permission_exists('call_forward') || permission_exists('follow_me') || permission_exists('do_not_disturb')) ? " onclick=\"document.location.href='".$tr_url."';\"" : null;
|
||||
echo "<tr ".$tr_link.">\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['extension']."</td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>\n";
|
||||
if (permission_exists('call_forward')) {
|
||||
echo " <a href='".PROJECT_PATH."/app/calls/call_edit.php?id=".$row['extension_uuid']."&a=call_forward' alt='Call Forward'>".$text['label-call-forward']."</a> \n";
|
||||
echo " \n";
|
||||
}
|
||||
if (permission_exists('follow_me')) {
|
||||
echo " <a href='".PROJECT_PATH."/app/calls/call_edit.php?id=".$row['extension_uuid']."&a=follow_me' alt='Follow Me'>".$text['label-follow-me']."</a> \n";
|
||||
echo " \n";
|
||||
}
|
||||
if (permission_exists('do_not_disturb')) {
|
||||
echo " <a href='".PROJECT_PATH."/app/calls/call_edit.php?id=".$row['extension_uuid']."&a=do_not_disturb' alt='Do Not Disturb'>".$text['label-dnd']."</a> \n";
|
||||
}
|
||||
if (permission_exists('call_forward')) { echo "<a href='".$tr_url."'>".$text['label-call-forward']."</a> "; }
|
||||
if (permission_exists('follow_me')) { echo "<a href='".$tr_url."'>".$text['label-follow-me']."</a> "; }
|
||||
if (permission_exists('do_not_disturb')) { echo "<a href='".$tr_url."'>".$text['label-dnd']."</a>"; }
|
||||
echo " </td>\n";
|
||||
echo " <td valign='top' class='row_stylebg' width='40%'>".$row['description']." </td>\n";
|
||||
echo "</tr>\n";
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ $order = $_GET["order"];
|
|||
$row_style["1"] = "row_style1";
|
||||
|
||||
echo "<div align='left'>\n";
|
||||
echo "<table width='100%' border='0' cellpadding='2' cellspacing='0'>\n";
|
||||
echo "<table class='tr_hover' width='100%' border='0' cellpadding='2' cellspacing='0'>\n";
|
||||
echo "<tr>";
|
||||
echo th_order_by('rss_title', $text['label-title'], $order_by, $order);
|
||||
echo th_order_by('rss_link', $text['label-link'], $order_by, $order);
|
||||
|
|
@ -110,7 +110,8 @@ $order = $_GET["order"];
|
|||
if ($result_count > 0) {
|
||||
foreach($result as $row) {
|
||||
//print_r( $row );
|
||||
echo "<tr style='".$row_style[$c]."'>\n";
|
||||
$tr_link = " onclick=\"document.location.href='rssupdate.php?rss_uuid=".$row[rss_uuid]."';\"";
|
||||
echo "<tr style='".$row_style[$c]."' ".$tr_link.">\n";
|
||||
//echo "<td valign='top'><a href='rssupdate.php?rss_uuid=".$row[rss_uuid]."'>".$row[rss_uuid]."</a></td>";
|
||||
//echo "<td valign='top'>".$row[rss_category]."</td>";
|
||||
|
||||
|
|
|
|||
|
|
@ -163,7 +163,7 @@ else {
|
|||
}
|
||||
|
||||
echo "<div align='center'>";
|
||||
echo "<table border='0' width='90%' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<table border='0' width='100%' cellpadding='0' cellspacing='0'>\n";
|
||||
|
||||
echo "<tr class='border'>\n";
|
||||
echo " <td align=\"left\" width='100%'>\n";
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ else {
|
|||
$row_style["1"] = "row_style1";
|
||||
|
||||
echo "<div align='center'>\n";
|
||||
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('device_uuid', $text['label-device_uuid'], $order_by, $order);
|
||||
echo th_order_by('device_mac_address', $text['label-device_mac_address'], $order_by, $order);
|
||||
|
|
@ -164,7 +164,8 @@ else {
|
|||
$device_mac_address = $row[device_mac_address];
|
||||
$device_mac_address = substr($device_mac_address, 0,2).'-'.substr($device_mac_address, 2,2).'-'.substr($device_mac_address, 4,2).'-'.substr($device_mac_address, 6,2).'-'.substr($device_mac_address, 8,2).'-'.substr($device_mac_address, 10,2);
|
||||
|
||||
echo "<tr >\n";
|
||||
$tr_link = (permission_exists('device_edit')) ? " onclick=\"document.location.href='device_edit.php?id=".$row['device_uuid']."';\"" : null;
|
||||
echo "<tr ".$tr_link.">\n";
|
||||
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['device_uuid']." </td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>";
|
||||
if (permission_exists('device_edit')) {
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ require_once "resources/paging.php";
|
|||
$row_style["1"] = "row_style1";
|
||||
|
||||
echo "<div align='center'>\n";
|
||||
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('extension', $text['label-extension'], $order_by, $order);
|
||||
echo th_order_by('call_group', $text['label-call_group'], $order_by, $order);
|
||||
|
|
@ -152,7 +152,7 @@ require_once "resources/paging.php";
|
|||
|
||||
if ($result_count > 0) {
|
||||
foreach($result as $row) {
|
||||
$tr_link = (permission_exists('extension_edit')) ? "style='cursor: pointer;' onclick=\"document.location.href='extension_edit.php?id=".$row['extension_uuid']."';\"" : null;
|
||||
$tr_link = (permission_exists('extension_edit')) ? " onclick=\"document.location.href='extension_edit.php?id=".$row['extension_uuid']."';\"" : null;
|
||||
echo "<tr ".$tr_link.">\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>";
|
||||
if (permission_exists('extension_edit')) {
|
||||
|
|
@ -164,7 +164,7 @@ require_once "resources/paging.php";
|
|||
echo "</td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['call_group']." </td>\n";
|
||||
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['voicemail_mail_to']." </td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['enabled']."</td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".ucwords($row['enabled'])."</td>\n";
|
||||
echo " <td valign='top' class='row_stylebg' width='30%'>".$row['description']." </td>\n";
|
||||
echo " <td class='list_control_icons'>";
|
||||
if (permission_exists('extension_edit')) {
|
||||
|
|
|
|||
|
|
@ -144,7 +144,7 @@ else {
|
|||
$row_style["1"] = "row_style1";
|
||||
|
||||
echo "<div align='center'>\n";
|
||||
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('gateway', $text['label-gateway'], $order_by, $order);
|
||||
echo th_order_by('context', $text['label-context'], $order_by, $order);
|
||||
|
|
@ -164,7 +164,8 @@ else {
|
|||
|
||||
if ($num_rows > 0) {
|
||||
foreach($result as $row) {
|
||||
echo "<tr >\n";
|
||||
$tr_link = (permission_exists('gateway_edit')) ? " onclick=\"document.location.href='gateway_edit.php?id=".$row['gateway_uuid']."';\"" : null;
|
||||
echo "<tr ".$tr_link.">\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>";
|
||||
if (permission_exists('gateway_edit')) {
|
||||
echo "<a href='gateway_edit.php?id=".$row['gateway_uuid']."'>".$row["gateway"]."</a>";
|
||||
|
|
|
|||
|
|
@ -246,19 +246,18 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <select class='formfld' name='module_enabled'>\n";
|
||||
echo " <option value=''></option>\n";
|
||||
if ($module_enabled == "true") {
|
||||
echo " <option value='true' SELECTED >".$text['option-true']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='true'>".$text['option-true']."</option>\n";
|
||||
}
|
||||
if ($module_enabled == "false") {
|
||||
echo " <option value='false' SELECTED >".$text['option-false']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='false'>".$text['option-false']."</option>\n";
|
||||
}
|
||||
if ($module_enabled == "true") {
|
||||
echo " <option value='true' SELECTED >".$text['option-true']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='true'>".$text['option-true']."</option>\n";
|
||||
}
|
||||
echo " </select>\n";
|
||||
echo "<br />\n";
|
||||
echo "\n";
|
||||
|
|
@ -271,19 +270,18 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <select class='formfld' name='module_default_enabled'>\n";
|
||||
echo " <option value=''></option>\n";
|
||||
if ($module_default_enabled == "true") {
|
||||
echo " <option value='true' SELECTED >".$text['option-true']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='true'>".$text['option-true']."</option>\n";
|
||||
}
|
||||
if ($module_default_enabled == "false") {
|
||||
echo " <option value='false' SELECTED >".$text['option-false']."</option>\n";
|
||||
echo " <option value='false' selected='selected'>".$text['option-false']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='false'>".$text['option-false']."</option>\n";
|
||||
}
|
||||
if ($module_default_enabled == "true") {
|
||||
echo " <option value='true' selected='selected'>".$text['option-true']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='true'>".$text['option-true']."</option>\n";
|
||||
}
|
||||
echo " </select>\n";
|
||||
echo "<br />\n";
|
||||
echo "\n";
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ if (strlen($_GET["a"]) > 0) {
|
|||
$row_style["1"] = "row_style1";
|
||||
|
||||
echo "<div align='center'>\n";
|
||||
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";
|
||||
$tmp_module_header = "\n";
|
||||
$tmp_module_header .= "<tr>\n";
|
||||
$tmp_module_header .= "<th>".$text['label-label']."</th>\n";
|
||||
|
|
@ -156,7 +156,8 @@ if (strlen($_GET["a"]) > 0) {
|
|||
echo $tmp_module_header;
|
||||
}
|
||||
|
||||
echo "<tr >\n";
|
||||
$tr_link = (permission_exists('module_edit')) ? " onclick=\"document.location.href='module_edit.php?id=".$row["module_uuid"]."';\"" : null;
|
||||
echo "<tr ".$tr_link.">\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>";
|
||||
if (permission_exists('module_edit')) {
|
||||
echo "<a href='module_edit.php?id=".$row["module_uuid"]."'>".$row["module_label"]."</a>";
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ else {
|
|||
$row_style["1"] = "row_style1";
|
||||
|
||||
echo "<div align='center'>\n";
|
||||
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";
|
||||
|
||||
$tmp_var_header = '';
|
||||
$tmp_var_header .= "<tr>\n";
|
||||
|
|
@ -127,7 +127,8 @@ else {
|
|||
echo $tmp_var_header;
|
||||
}
|
||||
|
||||
echo "<tr >\n";
|
||||
$tr_link = (permission_exists('var_edit')) ? " onclick=\"document.location.href='var_edit.php?id=".$row['var_uuid']."';\"" : null;
|
||||
echo "<tr ".$tr_link.">\n";
|
||||
echo " <td valign='top' align='left' class='".$row_style[$c]."'>";
|
||||
if (permission_exists('var_edit')) {
|
||||
echo "<a href='var_edit.php?id=".$row['var_uuid']."'>".substr($row['var_name'],0,32)."</a>";
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
</table>
|
||||
<br />
|
||||
|
||||
<table width='100%' border='0' cellpadding='0' cellspacing='0'>
|
||||
<table class="tr_hover" width='100%' border='0' cellpadding='0' cellspacing='0'>
|
||||
<tr>
|
||||
<th><?php echo $text['label-profile_name']?></th>
|
||||
<th><?php echo $text['label-context']?></th>
|
||||
|
|
@ -29,12 +29,22 @@ $row_style["0"] = "row_style0";
|
|||
$row_style["1"] = "row_style1";
|
||||
|
||||
foreach($profiles_array as $profile){
|
||||
?>
|
||||
<tr>
|
||||
<td class='<?php echo $row_style[$c]; ?>'><?php echo $profile['profile_name']; ?> </td>
|
||||
$tr_link = (permission_exists('xmpp_edit')) ? " onclick=\"document.location.href='xmpp_profile_edit.php?id=".$profile['xmpp_profile_uuid']."';\"" : null;
|
||||
?>
|
||||
<tr <?php echo $tr_link; ?>>
|
||||
<td class='<?php echo $row_style[$c]; ?>'>
|
||||
<?php
|
||||
if (permission_exists('xmpp_edit')) {
|
||||
?><a href='xmpp_profile_edit.php?id=<?php echo $profile['xmpp_profile_uuid']; ?>'><?php echo $profile['profile_name']; ?></a><?php
|
||||
}
|
||||
else {
|
||||
echo $profile['profile_name'];
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<td class='<?php echo $row_style[$c]; ?>'><?php echo $profile['context']; ?> </td>
|
||||
<td class='<?php echo $row_style[$c]; ?>'><?php echo $profile['status']; ?> </td>
|
||||
<td class='<?php echo $row_style[$c]; ?>'><?php echo $profile['enabled']; ?> </td>
|
||||
<td class='<?php echo $row_style[$c]; ?>'><?php echo ucwords($profile['enabled']); ?> </td>
|
||||
<td class='<?php echo $row_style[$c]; ?>'><?php echo $profile['description']; ?> </td>
|
||||
<td class='list_control_icons'>
|
||||
<?php
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ require_once "resources/paging.php";
|
|||
$row_style["1"] = "row_style1";
|
||||
|
||||
echo "<div align='center'>\n";
|
||||
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('menu_name', $text['label-name'], $order_by, $order);
|
||||
echo th_order_by('menu_language', $text['label-language'], $order_by, $order);
|
||||
|
|
@ -117,7 +117,8 @@ require_once "resources/paging.php";
|
|||
|
||||
if ($result_count > 0) {
|
||||
foreach($result as $row) {
|
||||
echo "<tr >\n";
|
||||
$tr_link = " onclick=\"document.location.href='menu_edit.php?id=".$row['menu_uuid']."';\"";
|
||||
echo "<tr ".$tr_link.">\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'><a href='menu_edit.php?id=".$row['menu_uuid']."'>".$row['menu_name']."</a></td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['menu_language']."</td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['menu_description']."</td>\n";
|
||||
|
|
|
|||
|
|
@ -204,7 +204,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap='nowrap'>\n";
|
||||
echo " ".$text['label-name'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
|
|
@ -215,7 +215,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap='nowrap'>\n";
|
||||
echo " ".$text['label-language'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
|
|
|
|||
|
|
@ -399,6 +399,7 @@ else {
|
|||
}
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
$assigned_groups[] = $field['group_name'];
|
||||
}
|
||||
}
|
||||
echo "</table>\n";
|
||||
|
|
@ -412,15 +413,14 @@ else {
|
|||
echo "<option value=\"\"></option>\n";
|
||||
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||
foreach($result as $field) {
|
||||
if ($field['group_name'] == "superadmin") {
|
||||
//only show the superadmin group to other users in the superadmin group
|
||||
if (if_group("superadmin")) {
|
||||
if (!in_array($field['group_name'], $assigned_groups)) {
|
||||
if ($field['group_name'] == "superadmin" && if_group("superadmin")) {
|
||||
echo "<option value='".$field['group_name']."'>".$field['group_name']."</option>\n"; //only show the superadmin group to other users in the superadmin group
|
||||
}
|
||||
else {
|
||||
echo "<option value='".$field['group_name']."'>".$field['group_name']."</option>\n";
|
||||
}
|
||||
}
|
||||
else {
|
||||
echo "<option value='".$field['group_name']."'>".$field['group_name']."</option>\n";
|
||||
}
|
||||
}
|
||||
echo "</select>";
|
||||
echo "<input type=\"submit\" class='btn' value=\"".$text['button-add']."\">\n";
|
||||
|
|
@ -434,19 +434,18 @@ else {
|
|||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <select class='formfld' name='menu_item_protected'>\n";
|
||||
echo " <option value=''></option>\n";
|
||||
if ($menu_item_protected == "true") {
|
||||
echo " <option value='true' selected='selected' >".$text['label-true']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='true'>".$text['label-true']."</option>\n";
|
||||
}
|
||||
if ($menu_item_protected == "false") {
|
||||
echo " <option value='false' selected='selected' >".$text['label-false']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='false'>".$text['label-false']."</option>\n";
|
||||
}
|
||||
if ($menu_item_protected == "true") {
|
||||
echo " <option value='true' selected='selected' >".$text['label-true']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='true'>".$text['label-true']."</option>\n";
|
||||
}
|
||||
echo " </select><br />\n";
|
||||
echo $text['description-protected']."<br />\n";
|
||||
echo "\n";
|
||||
|
|
|
|||
|
|
@ -101,7 +101,8 @@ function build_db_child_menu_list ($db, $menu_item_level, $menu_item_uuid, $c) {
|
|||
}
|
||||
|
||||
//display the content of the list
|
||||
echo "<tr'>\n";
|
||||
$tr_link = (permission_exists('menu_edit')) ? " onclick=\"document.location.href='menu_item_edit.php?id=".$menu_uuid."&menu_item_uuid=".$row2['menu_item_uuid']."&menu_item_parent_uuid=".$row2['menu_item_parent_uuid']."';\"" : null;
|
||||
echo "<tr ".$tr_link.">\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>";
|
||||
echo " <table cellpadding='0' cellspacing='0' border='0'>";
|
||||
echo " <tr>";
|
||||
|
|
@ -117,16 +118,16 @@ function build_db_child_menu_list ($db, $menu_item_level, $menu_item_uuid, $c) {
|
|||
echo " </tr>";
|
||||
echo " </table>";
|
||||
echo "</td>";
|
||||
//echo "<td valign='top'> ".$menu_item_link." </td>";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'> ".$group_list." </td>";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'> ".$menu_item_category." </td>";
|
||||
//echo "<td valign='top'>".$menu_item_link." </td>";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>".$group_list." </td>";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>".$menu_item_category." </td>";
|
||||
//echo "<td valign='top'>".$row[menu_item_description]."</td>";
|
||||
//echo "<td valign='top'> ".$row[menu_item_order]." </td>";
|
||||
//echo "<td valign='top'>".$row[menu_item_order]." </td>";
|
||||
if ($menu_item_protected == "true") {
|
||||
echo "<td valign='top' class='".$row_style[$c]."'> <strong>".$text['label-true']."</strong> </td>";
|
||||
echo "<td valign='top' class='".$row_style[$c]."' style='text-align: center;'><strong>".$text['label-true']."</strong> </td>";
|
||||
}
|
||||
else {
|
||||
echo "<td valign='top' class='".$row_style[$c]."'> ".$text['label-false']." </td>";
|
||||
echo "<td valign='top' class='".$row_style[$c]."' style='text-align: center;'>".$text['label-false']." </td>";
|
||||
}
|
||||
echo "<td valign='top' align='center' nowrap class='".$row_style[$c]."'>";
|
||||
echo " ";
|
||||
|
|
@ -203,7 +204,7 @@ $order = $_GET["order"];
|
|||
$row_style["1"] = "row_style0";
|
||||
|
||||
echo "<div align='left'>\n";
|
||||
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";
|
||||
|
||||
if ($result_count == 0) {
|
||||
//no results
|
||||
|
|
@ -211,11 +212,11 @@ $order = $_GET["order"];
|
|||
}
|
||||
else {
|
||||
echo "<tr>";
|
||||
echo "<th align='left' nowrap> ".$text['label-title']." </th>";
|
||||
echo "<th align='left' nowrap> ".$text['label-groups']." </th>";
|
||||
echo "<th align='left'nowrap> ".$text['label-category']." </th>";
|
||||
echo "<th nowrap> ".$text['label-protected']." </th>";
|
||||
echo "<th nowrap width='70'> ".$text['label-menu_order']." </th>";
|
||||
echo "<th align='left' nowrap>".$text['label-title']."</th>";
|
||||
echo "<th align='left' nowrap>".$text['label-groups']."</th>";
|
||||
echo "<th align='left'nowrap>".$text['label-category']."</th>";
|
||||
echo "<th nowrap style='text-align: center;'>".$text['label-protected']."</th>";
|
||||
echo "<th nowrap width='70' style='text-align: center;'>".$text['label-menu_order']."</th>";
|
||||
echo "<td class='list_control_icons'>";
|
||||
if (permission_exists('menu_add')) {
|
||||
echo "<a href='menu_item_edit.php?id=".$menu_uuid."' alt='".$text['button-add']."'>$v_link_label_add</a>";
|
||||
|
|
@ -232,8 +233,7 @@ $order = $_GET["order"];
|
|||
$menu_item_protected = $row['menu_item_protected'];
|
||||
|
||||
//get the groups that have been assigned to the menu
|
||||
$sql = "";
|
||||
$sql .= "select group_name from v_menu_item_groups ";
|
||||
$sql = "select group_name from v_menu_item_groups ";
|
||||
$sql .= "where menu_uuid = '$menu_uuid' ";
|
||||
$sql .= "and menu_item_uuid = '$menu_item_uuid' ";
|
||||
$sub_prep_statement = $db->prepare(check_sql($sql));
|
||||
|
|
@ -269,23 +269,24 @@ $order = $_GET["order"];
|
|||
}
|
||||
|
||||
//display the content of the list
|
||||
echo "<tr style='".$row_style[$c]."'>\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'> ".$menu_item_title." </td>";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'> ".$group_list." </td>";
|
||||
//echo "<td valign='top' class='".$row_style[$c]."'> ".$menu_item_link." </td>";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'> ".$menu_item_category." </td>";
|
||||
$tr_link = (permission_exists('menu_edit')) ? " onclick=\"document.location.href='menu_item_edit.php?id=".$menu_uuid."&menu_item_uuid=".$row['menu_item_uuid']."&menu_uuid=".$menu_uuid."';\"" : null;
|
||||
echo "<tr style='".$row_style[$c]."' ".$tr_link.">\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>".$menu_item_title." </td>";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>".$group_list." </td>";
|
||||
//echo "<td valign='top' class='".$row_style[$c]."'>".$menu_item_link." </td>";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>".$menu_item_category." </td>";
|
||||
//echo "<td valign='top' class='".$row_style[$c]."'>".$row[menu_item_description]."</td>";
|
||||
//echo "<td valign='top' class='".$row_style[$c]."'> ".$row['menu_item_parent_uuid']." </td>";
|
||||
//echo "<td valign='top' class='".$row_style[$c]."'> ".$row['menu_item_order']." </td>";
|
||||
//echo "<td valign='top' class='".$row_style[$c]."'>".$row['menu_item_parent_uuid']." </td>";
|
||||
//echo "<td valign='top' class='".$row_style[$c]."'>".$row['menu_item_order']." </td>";
|
||||
|
||||
if ($menu_item_protected == "true") {
|
||||
echo "<td valign='top' class='".$row_style[$c]."'> <strong>".$text['label-true']."</strong> </td>";
|
||||
echo "<td valign='top' class='".$row_style[$c]."' style='text-align: center;'><strong>".$text['label-true']."</strong> </td>";
|
||||
}
|
||||
else {
|
||||
echo "<td valign='top' class='".$row_style[$c]."'> ".$text['label-false']." </td>";
|
||||
echo "<td valign='top' class='".$row_style[$c]."' style='text-align: center;'>".$text['label-false']." </td>";
|
||||
}
|
||||
|
||||
echo "<td valign='top' align='center' nowrap class='".$row_style[$c]."'>";
|
||||
echo "<td valign='top' nowrap class='".$row_style[$c]."' style='text-align: center;'>";
|
||||
echo " ".$row[menu_item_order]." ";
|
||||
echo "</td>";
|
||||
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ echo " <td align=\"center\">\n";
|
|||
|
||||
//show the data
|
||||
echo "<div align='center'>\n";
|
||||
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('username', $text['label-username'], $order_by, $order);
|
||||
|
|
@ -149,7 +149,8 @@ echo " <td align=\"center\">\n";
|
|||
if (if_superadmin($superadmins, $row['user_uuid']) && !if_group("superadmin")) {
|
||||
//hide
|
||||
} else {
|
||||
echo "<tr >\n";
|
||||
$tr_link = (permission_exists('user_edit')) ? " onclick=\"document.location.href='usersupdate.php?id=".$row['user_uuid']."';\"" : null;
|
||||
echo "<tr ".$tr_link.">\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>";
|
||||
if (permission_exists('user_edit')) {
|
||||
echo "<a href='usersupdate.php?id=".$row['user_uuid']."'>".$row['username']."</a>";
|
||||
|
|
|
|||
|
|
@ -278,6 +278,16 @@ input[type=text]::-ms-clear {
|
|||
padding: 4px 16px 4px 6px;
|
||||
}
|
||||
|
||||
table.tr_hover tr {
|
||||
background-color: transparent;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
table.tr_hover tr:hover td,
|
||||
table.tr_hover tr:hover td a {
|
||||
color: #5082ca;
|
||||
}
|
||||
|
||||
.row_style0 {
|
||||
border-bottom: 1px solid #c5d1e5;
|
||||
background-color: #e5e9f0;
|
||||
|
|
@ -286,7 +296,6 @@ input[type=text]::-ms-clear {
|
|||
padding: 5px 7px;
|
||||
}
|
||||
|
||||
|
||||
.row_style1 {
|
||||
border-bottom: 1px solid #c5d1e5;
|
||||
background-color: #fff;
|
||||
|
|
|
|||
Loading…
Reference in New Issue