Unstack list control icons. Fixed css class on user select box.

This commit is contained in:
Nate Jones
2014-02-26 05:39:02 +00:00
parent 90d5086843
commit 5bee3613bc
2 changed files with 14 additions and 14 deletions

View File

@@ -561,10 +561,10 @@ else {
echo " <td>\n";
//echo " <input type=\"submit\" class='btn' value=\"".$text['button-add']."\">\n";
echo " </td>\n";
echo " <td nowrap='nowrap'>\n";
echo " <td class='list_control_icons' style='width: 25px;'>";
if (strlen($row['ring_group_destination_uuid']) > 0) {
//echo " <a href='ring_group_destination_edit.php?id=".$row['ring_group_destination_uuid']."&ring_group_uuid=".$row['ring_group_uuid']."' alt='edit'>$v_link_label_edit</a>\n";
echo " <a href='ring_group_destination_delete.php?id=".$row['ring_group_destination_uuid']."&ring_group_uuid=".$row['ring_group_uuid']."&a=delete' alt='delete' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>\n";
//echo "<a href='ring_group_destination_edit.php?id=".$row['ring_group_destination_uuid']."&ring_group_uuid=".$row['ring_group_uuid']."' alt='edit'>$v_link_label_edit</a>";
echo "<a href='ring_group_destination_delete.php?id=".$row['ring_group_destination_uuid']."&ring_group_uuid=".$row['ring_group_uuid']."&a=delete' alt='delete' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>";
}
echo " </td>\n";
echo " </tr>\n";
@@ -682,7 +682,7 @@ else {
$sql .= "order by username asc ";
$prep_statement = $db->prepare(check_sql($sql));
$prep_statement->execute();
echo " <select name=\"user_uuid\" class='frm'>\n";
echo " <select name=\"user_uuid\" class='formfld' style='width: auto;'>\n";
echo " <option value=\"\"></option>\n";
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
foreach($result as $field) {

View File

@@ -87,9 +87,9 @@ require_once "resources/paging.php";
$rows_per_page = 150;
$param = "";
$page = $_GET['page'];
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }
list($paging_controls, $rows_per_page, $var3) = paging($num_rows, $param, $rows_per_page);
$offset = $rows_per_page * $page;
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }
list($paging_controls, $rows_per_page, $var3) = paging($num_rows, $param, $rows_per_page);
$offset = $rows_per_page * $page;
//get the list
$sql = "select * from v_ring_groups ";
@@ -118,9 +118,9 @@ require_once "resources/paging.php";
//echo th_order_by('ring_group_timeout_data', 'Timeout Data', $order_by, $order);
echo th_order_by('ring_group_enabled', $text['label-enabled'], $order_by, $order);
echo th_order_by('ring_group_description', $text['label-description'], $order_by, $order);
echo "<td align='right' width='42'>\n";
echo "<td class='list_control_icons'>";
if (permission_exists('ring_group_add')) {
echo " <a href='ring_group_edit.php' alt='add'>$v_link_label_add</a>\n";
echo "<a href='ring_group_edit.php' alt='add'>$v_link_label_add</a>";
}
echo "</td>\n";
echo "<tr>\n";
@@ -137,12 +137,12 @@ require_once "resources/paging.php";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['ring_group_timeout_data']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['ring_group_enabled']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['ring_group_description']."&nbsp;</td>\n";
echo " <td valign='top' align='right'>\n";
echo " <td class='list_control_icons'>";
if (permission_exists('ring_group_edit')) {
echo " <a href='ring_group_edit.php?id=".$row['ring_group_uuid']."' alt='edit'>$v_link_label_edit</a>\n";
echo "<a href='ring_group_edit.php?id=".$row['ring_group_uuid']."' alt='edit'>$v_link_label_edit</a>";
}
if (permission_exists('ring_group_delete')) {
echo " <a href='ring_group_delete.php?id=".$row['ring_group_uuid']."' alt='delete' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>\n";
echo "<a href='ring_group_delete.php?id=".$row['ring_group_uuid']."' alt='delete' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>";
}
echo " </td>\n";
echo "</tr>\n";
@@ -157,9 +157,9 @@ require_once "resources/paging.php";
echo " <tr>\n";
echo " <td width='33.3%' nowrap>&nbsp;</td>\n";
echo " <td width='33.3%' align='center' nowrap>$paging_controls</td>\n";
echo " <td width='33.3%' align='right'>\n";
echo " <td class='list_control_icons'>";
if (permission_exists('ring_group_add')) {
echo " <a href='ring_group_edit.php' alt='add'>$v_link_label_add</a>\n";
echo "<a href='ring_group_edit.php' alt='add'>$v_link_label_add</a>";
}
echo " </td>\n";
echo " </tr>\n";