Stefan: images not displayed in firefox 3.0.1

Beitrag lesen

Hi!

I am using the following code to dynamically create a table displaying users stored in a database.

I am creating hyperlinks with small icons for actions you can perform on users.

This works fine in IE, but in Firefox (3.0.1) only the 'alt' text gets showed.

If I directly enter the url of an icon, firefox shows it.
Can someone figure out what might be the problem ?

function list_operators()  
 {  
  $query = mssql_init("OP_GetAllOperators");  
  $result = mssql_execute($query);  
  
  draw_operator_menu_caption();  
  
  create_menu_entry("?page=show_operators&add_user=1","add operator","447780","ffffff");  
  
  echo("<h4>");  
  echo("<br><br>");  
  echo("<table  border='0' cellspacing='0'>");  
        echo("<tr bgcolor='#99CCFF'><td width=414 colspan=6> Operators in System </td></tr>");  
        echo("<tr  bgcolor='#99CCFF'>");  
        echo("<td width=70> Name </td>");  
        echo("<td width=50> Pwd </td>");  
        echo("<td width=100> Roles </td>");  
        echo("<td width=140> Description </td>");  
        echo("<td width=60> Status </td>");  
        echo("<td> Option </td></tr>");  
  
  echo("<tr><td> &nbsp;</td></tr>");  
  
  for ($i=0; $i < mssql_num_rows($result); $i++)  
  {  
   $bgcol = ($i%2 == 0 ?  '#f0f0f0' : '#b0b0b0' );  
  
   $name =  mssql_result($result,$i,"OPName");  
   $pwd  =  mssql_result($result,$i,"OPPassword");  
   $desc =  mssql_result($result,$i,"Description");  
   $status =  mssql_result($result,$i,"Status");  
   $guid =  mssql_guid_string(mssql_result($result,$i,"PKOperator"));  
  
   $roles ="";  
  
   $q2 = mssql_init("ROLES_GetRolesForOperatorID");  
   mssql_bind($q2, "@opguid",   &$guid,   SQLVARCHAR,false,false,38);  
   $r2 = mssql_execute($q2);  
  
   for ($j=0; $j < mssql_num_rows($r2); $j++)  
   {  
    $roles .=  mssql_result($r2,$j,"RoleName");  
    $roles .= "<br>";  
   }  
  
   echo("<tr bgcolor=$bgcol>");  
  
   //echo("<td > $name </td>");  
   echo("<td ><a href='?page=show_operators&show_details=1&username=$name&userid=$guid'> $name </a></td>");  
  
   if ( GetUserPermissionLevel() > 0)  
   {  
    echo("<td > $pwd </td>");  
   }  
   else  
   {  
    echo("<td> ** </td>");  
   }  
  
   echo("<td > $roles </td>");  
   echo("<td > $desc  &nbsp;</td>");  
   echo("<td > $status </td>");  
  
   echo("<td>");  
  
   if ( GetUserPermissionLevel() > 0)  
   {  
    echo("<a href='?page=show_operators&delete_user=1&username=$name&userid=$guid'><img src='.\icons\action_delete.png' width='16' height='16' alt='delete' border='0' ></a>  &nbsp;&nbsp;");  
    echo("<a href='?page=show_operators&change_pwd=1&username=$name&userid=$guid'><img src='.\icons\login.png' width='16' height='16' alt='change password' border='0'></a>  &nbsp;&nbsp;");  
    echo("<a href='?page=show_operators&add_role=1&username=$name&userid=$guid'><img src='.\icons\maximize.png' width='16' height='16' alt='add role' border='0'></a> &nbsp;&nbsp;");  
    echo("<a href='?page=show_operators&rem_role=1&username=$name&userid=$guid'><img src='.\icons\minimize.png' width='16' height='16' alt='remove role' border='0'></a> &nbsp;&nbsp;");  
  
   }  
   echo("</td>");  
   echo("</tr>");  
  }  
  
  echo("</table>");  
  echo("<br>");  
  echo("</h4>");  
 }