]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_country.php
More XHTML-fied and extended header added to templates
[mailer.git] / inc / modules / admin / what-list_country.php
index 3d3c3806c968aa525e918cdbf4580d01cbcf6e55..b13b96105fe188b066792ba36523e8c37fc3b269 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Country codes verwalten                          *
  * -------------------------------------------------------------------- *
- *                                                                      *
+ * $Revision:: 856                                                    $ *
+ * $Date:: 2009-03-06 20:24:32 +0100 (Fr, 06. March 2009)             $ *
+ * $Tag:: 0.2.1-FINAL                                                 $ *
+ * $Author:: stelzi                                                   $ *
+ * Needs to be in all Files and every File needs "svn propset           *
+ * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2008 by Roland Haeder                           *
  * For more information visit: http://www.mxchange.org                  *
@@ -170,15 +175,16 @@ if ((REQUEST_ISSET_POST(('add'))) && (REQUEST_ISSET_POST(('code'))) && (REQUEST_
        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