bug 977:Changed layout if no result found bug-977
authorINOPIAE <inopiae@cacert.org>
Sun, 11 Nov 2012 20:44:40 +0000 (21:44 +0100)
committerINOPIAE <inopiae@cacert.org>
Sun, 11 Nov 2012 20:44:40 +0000 (21:44 +0100)
pages/account/49.php

index a5345e6..0218fa0 100644 (file)
                        $row = mysql_fetch_assoc($res);
                        $_GET['userid'] = intval($row['id']);
                } else {
-                       printf(_("No personal domains found matching %s"), sanitizeHTML($domain));
+                       ?><table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">
+                               <tr>
+                               <td colspan="5" class="title"><?printf(_("No personal domains found matching %s"), sanitizeHTML($domain));?></td>
+                       </tr>
+               </table><br><br><?
                }
 
                $query = "select `orgid`,`domain`,`id` from `orgdomains` where `domain` like '$domainsearch' or `id`='$domain' limit 100";
                        $row = mysql_fetch_assoc($res);
                        $_GET['userid'] = intval($row['id']);
                } else {
-                       printf(_("No organisational domains found matching %s"), sanitizeHTML($domain));
+                       ?><table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">
+                               <tr>
+                               <td colspan="5" class="title"><?printf(_("No organisational domains found matching %s"), sanitizeHTML($domain));?></td>
+                       </tr>
+               </table><br><br><?
                }
        }