mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 09:03:49 +00:00
Unstack list control icons. Minor bug fix in schema_data_edit.php.
This commit is contained in:
@@ -353,7 +353,7 @@ else {
|
||||
//redirect user
|
||||
if ($action == "add") {
|
||||
$_SESSION["message"] = $text['message-add'];
|
||||
]
|
||||
}
|
||||
else if ($action == "update") {
|
||||
$_SESSION["message"] = $text['message-update'];
|
||||
}
|
||||
@@ -524,18 +524,16 @@ else {
|
||||
echo " ";
|
||||
echo "</td>\n";
|
||||
|
||||
echo "<form method='GET' name='frm_search' action='schema_data_edit.php'>\n";
|
||||
echo "<td width='45%' align='right' valign='top' nowrap='nowrap'>\n";
|
||||
echo " <form method='GET' name='frm_search' action='schema_data_edit.php'>\n";
|
||||
echo " <input type='hidden' name='schema_uuid' value='$schema_uuid'>\n";
|
||||
//echo " <input type='hidden' name='id' value='$schema_uuid'>\n";
|
||||
//echo " <input type='hidden' name='data_parent_row_uuid' value='$data_parent_row_uuid'>\n";
|
||||
//echo " <input type='hidden' name='data_row_uuid' value='$first_data_row_uuid'>\n";
|
||||
echo " <input class='formfld' type='text' name='search_all' value='$search_all'>\n";
|
||||
echo " <input class='btn' type='submit' name='submit' value='".$text['button-search_all']."'>\n";
|
||||
echo "</td>\n";
|
||||
echo "</form>\n";
|
||||
echo "<td width='5%' align='right' valign='top' nowrap='nowrap'>\n";
|
||||
echo " <input type='button' class='btn' name='' alt='".$text['button-back']."' onclick=\"window.location='schema_data_view.php?id=$schema_uuid'\" value='".$text['button-back']."'>\n";
|
||||
echo " <input type='button' class='btn' alt='".$text['button-back']."' onclick=\"window.location='schema_data_view.php?id=$schema_uuid'\" value='".$text['button-back']."'>\n";
|
||||
echo " </form>\n";
|
||||
echo "</td>\n";
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -302,9 +302,9 @@ if (strlen($_GET["id"]) > 0) {
|
||||
echo "<th valign='top' nowrap> ".$row['field_label']." </th>\n";
|
||||
}
|
||||
}
|
||||
echo "<td align='right' width='42'>\n";
|
||||
echo "<td class='list_control_icons'>";
|
||||
if (permission_exists('schema_data_add')) {
|
||||
echo " <a href='schema_data_edit.php?schema_uuid=".$schema_uuid."&data_parent_row_uuid=$data_parent_row_uuid' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
echo "<a href='schema_data_edit.php?schema_uuid=".$schema_uuid."&data_parent_row_uuid=$data_parent_row_uuid' alt='".$text['button-add']."'>$v_link_label_add</a>";
|
||||
}
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
@@ -355,17 +355,17 @@ if (strlen($_GET["id"]) > 0) {
|
||||
}
|
||||
}
|
||||
|
||||
echo "<td valign='top' align='right' nowrap='nowrap'>\n";
|
||||
echo "<td class='list_control_icons'>";
|
||||
if (permission_exists('schema_data_edit')) {
|
||||
if (strlen($data_parent_row_uuid) == 0) {
|
||||
echo " <a href='schema_data_edit.php?schema_uuid=".$row["schema_uuid"]."&data_parent_row_uuid=$data_parent_row_uuid&data_row_uuid=".$row['data_row_uuid']."&search_all=$search_all' alt='".$text['button-edit']."'>$v_link_label_edit</a>\n";
|
||||
echo "<a href='schema_data_edit.php?schema_uuid=".$row["schema_uuid"]."&data_parent_row_uuid=$data_parent_row_uuid&data_row_uuid=".$row['data_row_uuid']."&search_all=$search_all' alt='".$text['button-edit']."'>$v_link_label_edit</a>";
|
||||
}
|
||||
else {
|
||||
echo " <a href='schema_data_edit.php?schema_uuid=".$row["schema_uuid"]."&data_parent_row_uuid=$data_parent_row_uuid&data_row_uuid=".$row['data_row_uuid']."' alt='".$text['button-edit']."'>$v_link_label_edit</a>\n";
|
||||
echo "<a href='schema_data_edit.php?schema_uuid=".$row["schema_uuid"]."&data_parent_row_uuid=$data_parent_row_uuid&data_row_uuid=".$row['data_row_uuid']."' alt='".$text['button-edit']."'>$v_link_label_edit</a>";
|
||||
}
|
||||
}
|
||||
if (permission_exists('schema_delete')) {
|
||||
echo" <a href='schema_delete.php?data_row_uuid=".$row['data_row_uuid']."&data_parent_row_uuid=$data_parent_row_uuid&schema_uuid=".$schema_uuid."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>\n";
|
||||
echo"<a href='schema_delete.php?data_row_uuid=".$row['data_row_uuid']."&data_parent_row_uuid=$data_parent_row_uuid&schema_uuid=".$schema_uuid."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>";
|
||||
}
|
||||
echo "</td>\n";
|
||||
|
||||
@@ -380,9 +380,9 @@ if (strlen($_GET["id"]) > 0) {
|
||||
echo " <tr>\n";
|
||||
echo " <td width='33.3%' nowrap> </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('schema_data_add')) {
|
||||
echo " <a href='schema_data_edit.php?schema_uuid=".$schema_uuid."&data_parent_row_uuid=$data_parent_row_uuid' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
echo "<a href='schema_data_edit.php?schema_uuid=".$schema_uuid."&data_parent_row_uuid=$data_parent_row_uuid' alt='".$text['button-add']."'>$v_link_label_add</a>";
|
||||
}
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
|
||||
@@ -91,9 +91,9 @@ $order = $_GET["order"];
|
||||
echo th_order_by('field_order', $text['label-field_order'], $order_by, $order);
|
||||
echo th_order_by('field_order_tab', $text['label-field_tab_order'], $order_by, $order);
|
||||
echo th_order_by('field_description', $text['label-field_description'], $order_by, $order);
|
||||
echo "<td align='right' width='42'>\n";
|
||||
echo "<td class='list_control_icons'>";
|
||||
if (permission_exists('schema_view')) {
|
||||
echo " <a href='schema_field_edit.php?schema_uuid=".$schema_uuid."' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
echo "<a href='schema_field_edit.php?schema_uuid=".$schema_uuid."' alt='".$text['button-add']."'>$v_link_label_add</a>";
|
||||
}
|
||||
echo "</td>\n";
|
||||
echo "<tr>\n";
|
||||
@@ -154,12 +154,12 @@ $order = $_GET["order"];
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['field_order']."</td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['field_order_tab']."</td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['field_description']." </td>\n";
|
||||
echo " <td valign='top' align='right'>\n";
|
||||
echo " <td class='list_control_icons'>";
|
||||
if (permission_exists('schema_edit')) {
|
||||
echo " <a href='schema_field_edit.php?schema_uuid=".$row['schema_uuid']."&id=".$row['schema_field_uuid']."' alt='".$text['button-edit']."'>$v_link_label_edit</a>\n";
|
||||
echo "<a href='schema_field_edit.php?schema_uuid=".$row['schema_uuid']."&id=".$row['schema_field_uuid']."' alt='".$text['button-edit']."'>$v_link_label_edit</a>";
|
||||
}
|
||||
if (permission_exists('schema_delete')) {
|
||||
echo " <a href='schema_field_delete.php?schema_uuid=".$row['schema_uuid']."&id=".$row['schema_field_uuid']."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>\n";
|
||||
echo "<a href='schema_field_delete.php?schema_uuid=".$row['schema_uuid']."&id=".$row['schema_field_uuid']."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>";
|
||||
}
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
@@ -174,9 +174,9 @@ $order = $_GET["order"];
|
||||
echo " <tr>\n";
|
||||
echo " <td width='33.3%' nowrap> </td>\n";
|
||||
echo " <td width='33.3%' align='center' nowrap> </td>\n";
|
||||
echo " <td width='33.3%' align='right'>\n";
|
||||
echo " <td class='list_control_icons'>";
|
||||
if (permission_exists('schema_add')) {
|
||||
echo " <a href='schema_field_edit.php?schema_uuid=".$schema_uuid."' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
echo "<a href='schema_field_edit.php?schema_uuid=".$schema_uuid."' alt='".$text['button-add']."'>$v_link_label_add</a>";
|
||||
}
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
|
||||
@@ -331,7 +331,7 @@ if (count($_POST)>0) {
|
||||
echo " ".$text['label-import_data'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <textarea name='data' id='data' rows='7' class='txt' wrap='off'>$data</textarea>\n";
|
||||
echo " <textarea name='data' id='data' rows='7' class='formfld' style='width: 100%;' wrap='off'>$data</textarea>\n";
|
||||
echo "<br />\n";
|
||||
echo $text['description-import_data']."\n";
|
||||
echo "</td>\n";
|
||||
|
||||
@@ -106,9 +106,9 @@ require_once "resources/paging.php";
|
||||
echo th_order_by('schema_auth', $text['label-authentication'], $order_by, $order);
|
||||
echo th_order_by('schema_description', $text['label-description'], $order_by, $order);
|
||||
//echo "<th align='center'>View</th>\n";
|
||||
echo "<td align='right' width='42'>\n";
|
||||
echo "<td class='list_control_icons'>";
|
||||
if (permission_exists('schema_add')) {
|
||||
echo " <a href='schema_edit.php' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
echo "<a href='schema_edit.php' alt='".$text['button-add']."'>$v_link_label_add</a>";
|
||||
}
|
||||
echo "</td>\n";
|
||||
echo "<tr>\n";
|
||||
@@ -133,12 +133,12 @@ require_once "resources/paging.php";
|
||||
}
|
||||
echo " </td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['schema_description']." </td>\n";
|
||||
echo " <td valign='top' align='right'>\n";
|
||||
echo " <td class='list_control_icons'>";
|
||||
if (permission_exists('schema_edit')) {
|
||||
echo " <a href='schema_edit.php?id=".$row['schema_uuid']."' alt='".$text['button-edit']."'>$v_link_label_edit</a>\n";
|
||||
echo "<a href='schema_edit.php?id=".$row['schema_uuid']."' alt='".$text['button-edit']."'>$v_link_label_edit</a>";
|
||||
}
|
||||
if (permission_exists('schema_delete')) {
|
||||
echo " <a href='schema_delete.php?id=".$row['schema_uuid']."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>\n";
|
||||
echo "<a href='schema_delete.php?id=".$row['schema_uuid']."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>";
|
||||
}
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
@@ -153,9 +153,9 @@ require_once "resources/paging.php";
|
||||
echo " <tr>\n";
|
||||
echo " <td width='33.3%' nowrap> </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('schema_add')) {
|
||||
echo " <a href='schema_edit.php' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
echo "<a href='schema_edit.php' alt='".$text['button-add']."'>$v_link_label_add</a>";
|
||||
}
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
|
||||
Reference in New Issue
Block a user