if (SQL_NUMROWS($result) > 0) {
// List all countries
$OUT = ""; $SW = 2;
- while (list($id, $code, $descr, $active) = SQL_FETCHROW($result)) {
+ while ($content = SQL_FETCHARRAY($result)) {
// Prepare array for the template
+ // @TODO Rewritings: name->descr,status->is_active in template
$content = array(
- 'id' => $id,
- 'code' => $code,
- 'name' => $descr,
- 'active' => TRANSLATE_YESNO($active),
+ 'id' => $content['id'],
+ 'code' => $content['code'],
+ 'name' => $content['descr'],
+ 'active' => TRANSLATE_YESNO($content['is_active']),
'sw' => $SW,
- 'status' => $active,
+ 'status' => $content['is_active'],
);
// Load row template and switch colors