Changeset 1585

Show
Ignore:
Timestamp:
05/05/06 18:17:10 (2 years ago)
Author:
pierre-gilles
Message:

Last commit for me now everything is perfect emacs bureau/admin/aws_add.php

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • alternc-awstats/trunk/bureau/admin/aws_add.php

    r1582 r1585  
    5858<?php  // TODO : put them on 2 columns (at least) 
    5959$hl=$aws->host_list(); 
     60$hatab=$aws->get_hostaliases($id); 
    6061foreach ($hl as $ho) { 
    6162  echo "<input type=\"checkbox\" name=\"hostaliases[]\" id=\"ha_$ho\" value=\"$ho\""; 
    62   if (in_array($ho,$aws->get_hostaliases($id))) echo " checked=\"checked\""; 
     63  if (in_array($ho,explode(" ",$hatab[0]))) echo " checked=\"checked\""; 
    6364  echo " /><label for=\"ha_$ho\">$ho</label><br />\n"; 
    6465}