Update the files names in hardware phones.

This commit is contained in:
Mark Crane
2012-11-24 02:30:55 +00:00
parent 3de176384d
commit 409161f4af
4 changed files with 10 additions and 11 deletions

View File

@@ -32,7 +32,7 @@
$apps[$x]['menu'][0]['uuid'] = 'f9dce498-b7f9-740f-e592-9e8ff3dac2a0';
$apps[$x]['menu'][0]['parent_uuid'] = 'bc96d773-ee57-0cdd-c3ac-2d91aba61b55';
$apps[$x]['menu'][0]['category'] = 'internal';
$apps[$x]['menu'][0]['path'] = '/app/hardware_phones/v_hardware_phones.php';
$apps[$x]['menu'][0]['path'] = '/app/hardware_phones/hardware_phones.php';
$apps[$x]['menu'][0]['groups'][] = 'admin';
$apps[$x]['menu'][0]['groups'][] = 'superadmin';

View File

@@ -39,8 +39,7 @@ if (count($_GET)>0) {
//delete the data
if (strlen($id)>0) {
$sql = "";
$sql .= "delete from v_hardware_phones ";
$sql = "delete from v_hardware_phones ";
$sql .= "where domain_uuid = '$domain_uuid' ";
$sql .= "and hardware_phone_uuid = '$id' ";
$prep_statement = $db->prepare(check_sql($sql));
@@ -53,7 +52,7 @@ if (count($_GET)>0) {
//redirect the user
require_once "includes/header.php";
echo "<meta http-equiv=\"refresh\" content=\"2;url=v_hardware_phones.php\">\n";
echo "<meta http-equiv=\"refresh\" content=\"2;url=hardware_phones.php\">\n";
echo "<div align='center'>\n";
echo "Delete Complete\n";
echo "</div>\n";

View File

@@ -173,7 +173,7 @@ require_once "includes/require.php";
//redirect the user
require_once "includes/header.php";
echo "<meta http-equiv=\"refresh\" content=\"2;url=v_hardware_phones.php\">\n";
echo "<meta http-equiv=\"refresh\" content=\"2;url=hardware_phones.php\">\n";
echo "<div align='center'>\n";
echo "Add Complete\n";
echo "</div>\n";
@@ -205,7 +205,7 @@ require_once "includes/require.php";
//redirect the user
require_once "includes/header.php";
echo "<meta http-equiv=\"refresh\" content=\"2;url=v_hardware_phones.php\">\n";
echo "<meta http-equiv=\"refresh\" content=\"2;url=hardware_phones.php\">\n";
echo "<div align='center'>\n";
echo "Update Complete\n";
echo "</div>\n";
@@ -261,7 +261,7 @@ require_once "includes/require.php";
if ($action == "update") {
echo "<td align='left' width='30%' nowrap='nowrap' align='left'><b>Hardware Phone Edit</b></td>\n";
}
echo "<td width='70%' align='right'><input type='button' class='btn' name='' alt='back' onclick=\"window.location='v_hardware_phones.php'\" value='Back'></td>\n";
echo "<td width='70%' align='right'><input type='button' class='btn' name='' alt='back' onclick=\"window.location='hardware_phones.php'\" value='Back'></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td colspan='2' align='left'>\n";

View File

@@ -99,7 +99,7 @@ echo th_order_by('phone_provision_enable', 'Enabled', $order_by, $order);
echo th_order_by('phone_description', 'Description', $order_by, $order);
echo "<td align='right' width='42'>\n";
if (permission_exists('phone_add')) {
echo " <a href='v_hardware_phones_edit.php' alt='add'>$v_link_label_add</a>\n";
echo " <a href='hardware_phone_edit.php' alt='add'>$v_link_label_add</a>\n";
}
echo "</td>\n";
echo "<tr>\n";
@@ -118,10 +118,10 @@ if ($result_count > 0) { //no results
echo " <td valign='top' class='row_stylebg'>".$row['phone_description']."&nbsp;</td>\n";
echo " <td valign='top' align='right'>\n";
if (permission_exists('phone_edit')) {
echo " <a href='v_hardware_phones_edit.php?id=".$row['hardware_phone_uuid']."' alt='edit'>$v_link_label_edit</a>\n";
echo " <a href='hardware_phone_edit.php?id=".$row['hardware_phone_uuid']."' alt='edit'>$v_link_label_edit</a>\n";
}
if (permission_exists('phone_delete')) {
echo " <a href='v_hardware_phones_delete.php?id=".$row['hardware_phone_uuid']."' alt='delete' onclick=\"return confirm('Do you really want to delete this?')\">$v_link_label_delete</a>\n";
echo " <a href='hardware_phone_delete.php?id=".$row['hardware_phone_uuid']."' alt='delete' onclick=\"return confirm('Do you really want to delete this?')\">$v_link_label_delete</a>\n";
}
echo " </td>\n";
echo "</tr>\n";
@@ -138,7 +138,7 @@ 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";
if (permission_exists('phone_add')) {
echo " <a href='v_hardware_phones_edit.php' alt='add'>$v_link_label_add</a>\n";
echo " <a href='hardware_phone_edit.php' alt='add'>$v_link_label_add</a>\n";
}
echo " </td>\n";
echo " </tr>\n";