}
// Add description as navigation point
-ADD_DESCR("admin", __FILE__);
+ADD_DESCR('admin', __FILE__);
// Add new code?
if ((REQUEST_ISSET_POST(('add'))) && (REQUEST_ISSET_POST(('code'))) && (REQUEST_ISSET_POST(('descr')))) {
}
// Display message
- LOAD_TEMPLATE("admin_settings_saved", false, $message);
+ LOAD_TEMPLATE('admin_settings_saved', false, $message);
} elseif ((REQUEST_ISSET_POST('change')) && (REQUEST_ISSET_POST(('id')))) {
// Change all status
ADMIN_CHANGE_ACTIVATION_STATUS(REQUEST_POST('id'), "countries", "is_active");
if (REQUEST_ISSET_POST('edit')) {
// Edit template
$row = "admin_list_country_edit_row";
- $post = "modify";
+ $post = 'modify';
$class = "admin_submit";
$submit = getMessage('ADMIN_COUNTRY_EDIT_NOW');
$title = getMessage('ADMIN_COUNTRY_EDIT_TITLE');
} else {
// Delete template
$row = "admin_list_country_del_row";
- $post = "remove";
+ $post = 'remove';
$class = "admin_delete";
$submit = getMessage('ADMIN_COUNTRY_DELETE_NOW');
$title = getMessage('ADMIN_COUNTRY_DELETE_TITLE');
- $reset = "";
+ $reset = '';
}
// Edit all selected country codes
- $OUT = ""; $SW = 2;
+ $OUT = ''; $SW = 2;
foreach (REQUEST_POST('id') as $id => $status) {
// Load data from DB
$result = SQL_QUERY_ESC("SELECT code, descr FROM `{!_MYSQL_PREFIX!}_countries` WHERE id=%s LIMIT 1",
'sw' => $SW,
);
- if ($post == "modify") {
+ if ($post == 'modify') {
// Generate default selection in edit-mode
$content['status'] = ADD_OPTION_LINES("/ARRAY/", array("Y","N"), array(YES, NO ), $status);
} else {
}
} else {
// Shall we modify / remove entries now?
- $message = ""; INIT_SQLS();
+ $message = ''; INIT_SQLS();
if ((REQUEST_ISSET_POST(('modify'))) && (REQUEST_ISSET_POST(('id')))) {
// Modify
foreach (REQUEST_POST('id') as $id => $sel) {
runFilterChain('run_sqls');
// Display message
- LOAD_TEMPLATE("admin_settings_saved", false, $message);
+ LOAD_TEMPLATE('admin_settings_saved', false, $message);
}
// Load currenty setup country codes to list
$result = SQL_QUERY("SELECT id, code, descr, is_active FROM `{!_MYSQL_PREFIX!}_countries` ORDER BY code", __FILE__, __LINE__);
if (SQL_NUMROWS($result) > 0) {
// List all countries
- $OUT = ""; $SW = 2;
+ $OUT = ''; $SW = 2;
while ($content = SQL_FETCHARRAY($result)) {
// Prepare array for the template
// @TODO Rewritings: name->descr,status->is_active in template