projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More fixes to changed access system, activated js confirm dialogs.
[fa-stable.git]
/
sales
/
manage
/
sales_areas.php
diff --git
a/sales/manage/sales_areas.php
b/sales/manage/sales_areas.php
index e8acb9120e85653a0880ab1f43d7e46dbeeb0712..3fd37dd23c1aed87d1965463e9faf8f18b16ddbf 100644
(file)
--- a/
sales/manage/sales_areas.php
+++ b/
sales/manage/sales_areas.php
@@
-9,8
+9,8
@@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
***********************************************************************/
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
***********************************************************************/
-$page_security =
3
;
-$path_to_root
=
"../..";
+$page_security =
'SA_SALESAREA'
;
+$path_to_root
=
"../..";
include($path_to_root . "/includes/session.inc");
page(_("Sales Areas"));
include($path_to_root . "/includes/session.inc");
page(_("Sales Areas"));
@@
-80,7
+80,7
@@
if ($Mode == 'RESET')
$selected_id = -1;
$sav = get_post('show_inactive');
unset($_POST);
$selected_id = -1;
$sav = get_post('show_inactive');
unset($_POST);
-
if ($sav) $_POST['show_inactive'] = 1
;
+
$_POST['show_inactive'] = $sav
;
}
//-------------------------------------------------------------------------------------------------
}
//-------------------------------------------------------------------------------------------------
@@
-93,12
+93,7
@@
start_form();
start_table("$table_style width=30%");
$th = array(_("Area Name"), "", "");
start_table("$table_style width=30%");
$th = array(_("Area Name"), "", "");
-
-if (check_value('show_inactive'))
- array_insert($th, 1 , _("Inactive"));
-if (get_post('_show_inactive_update')) {
- $Ajax->activate('_page_body');
-}
+inactive_control_column($th);
table_header($th);
$k = 0;
table_header($th);
$k = 0;
@@
-110,22
+105,19
@@
while ($myrow = db_fetch($result))
label_cell($myrow["description"]);
label_cell($myrow["description"]);
- inactive_
status
_cell($myrow["area_code"], $myrow["inactive"], 'areas', 'area_code');
+ inactive_
control
_cell($myrow["area_code"], $myrow["inactive"], 'areas', 'area_code');
edit_button_cell("Edit".$myrow["area_code"], _("Edit"));
delete_button_cell("Delete".$myrow["area_code"], _("Delete"));
end_row();
}
edit_button_cell("Edit".$myrow["area_code"], _("Edit"));
delete_button_cell("Delete".$myrow["area_code"], _("Delete"));
end_row();
}
-
show_inactive
_row($th);
+
inactive_control
_row($th);
end_table();
end_table();
-//end_form();
echo '<br>';
//-------------------------------------------------------------------------------------------------
echo '<br>';
//-------------------------------------------------------------------------------------------------
-//start_form();
-
start_table($table_style2);
if ($selected_id != -1)
start_table($table_style2);
if ($selected_id != -1)