tbrehm
2010-01-20 5dc3d55f94b14474f436b7c96c0b92794e771f7e
interface/web/sites/web_domain_edit.php
@@ -111,13 +111,13 @@
         unset($tmp);
         
         // Fill the client select field
         $sql = "SELECT groupid, name FROM sys_group, client WHERE sys_group.client_id = client.client_id AND client.parent_client_id = ".$client['client_id'];
         $clients = $app->db->queryAllRecords($sql);
         $sql = "SELECT groupid, name FROM sys_group, client WHERE sys_group.client_id = client.client_id AND client.parent_client_id = ".$client['client_id']." ORDER BY name";
         $records = $app->db->queryAllRecords($sql);
         $client_select = '<option value="'.$client['client_id'].'">'.$client['contact_name'].'</option>';
         if(is_array($clients)) {
            foreach( $clients as $client) {
               $selected = @($client["groupid"] == $this->dataRecord["sys_groupid"])?'SELECTED':'';
               $client_select .= "<option value='$client[groupid]' $selected>$client[name]</option>\r\n";
         if(is_array($records)) {
            foreach( $records as $rec) {
               $selected = @($rec["groupid"] == $this->dataRecord["sys_groupid"])?'SELECTED':'';
               $client_select .= "<option value='$rec[groupid]' $selected>$rec[name]</option>\r\n";
            }
         }
         $app->tpl->setVar("client_group_id",$client_select);
@@ -166,7 +166,7 @@
         unset($ips);
         
         // Fill the client select field
         $sql = "SELECT groupid, name FROM sys_group WHERE client_id > 0";
         $sql = "SELECT groupid, name FROM sys_group WHERE client_id > 0 ORDER BY name";
         $clients = $app->db->queryAllRecords($sql);
         $client_select = "<option value='0'></option>";
         if(is_array($clients)) {