phpBMS

Show
Ignore:
Timestamp:
03/26/07 16:50:25 (5 years ago)
Author:
brieb
Message:

Updated XHTML compliance

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/include/fields.php

    r204 r205  
    5858        ?><input id="<?php echo $name?>" name="<?php echo $name?>" type="text" value="<?php echo htmlQuotes($value) ?>" <?php  
    5959        if ($attributes) foreach($attributes as $attribute => $tvalue) echo " ".$attribute."=\"".$tvalue."\""; 
    60         ?> /><?php if ($required) { ?><script language="JavaScript" type="text/javascript">requiredArray[requiredArray.length]=new Array('<?php echo $name ?>','<?php echo $message ?>');</script><?php } //end required if  
    61         if ($type) {?><script language="JavaScript" type="text/javascript"><?php echo $type?>Array[<?php echo $type?>Array.length]=new Array('<?php echo $name ?>','<?php echo $message ?>');</script><?php }//end $type if 
     60        ?> /><?php if ($required) { ?><script language="JavaScript" type="text/javascript"><!--  
     61        requiredArray[requiredArray.length]=new Array("<?php echo $name ?>","<?php echo $message ?>"); 
     62        // --></script><?php } //end required if  
     63        if ($type) {?><script language="JavaScript" type="text/javascript"><!--  
     64                <?php echo $type?>Array[<?php echo $type?>Array.length]=new Array("<?php echo $name ?>","<?php echo $message ?>"); 
     65        // --></script><?php }//end $type if 
    6266}//end function 
    6367 
     
    7983         
    8084        ?><input name="<?php echo $name ?>" id="<?php echo $name ?>" type="checkbox" value="1" <?php  
    81         if ($value) echo "checked "; 
    82         if ($disabled) echo "disabled=\"true\" "; 
     85        if ($value) echo "checked=\"checked\" "; 
     86        if ($disabled) echo "disabled=\"disabled\" "; 
    8387        if ($attributes) foreach($attributes as $attribute => $tvalue) echo " ".$attribute."=\"".$tvalue."\""; 
    8488        ?> class="radiochecks" /><?php  
     
    101105                foreach($list as $theitem){ 
    102106                        $theitem["value"]=str_replace("\"","&quot;",$theitem["value"]); 
    103                         ?><option value="<?php echo $theitem["value"]?>" <?php if ($theitem["value"]==$value) echo " selected "?> ><?php echo $theitem["name"]?></option> 
     107                        ?><option value="<?php echo $theitem["value"]?>" <?php if ($theitem["value"]==$value) echo " selected=\"selected\" "?> ><?php echo $theitem["name"]?></option> 
    104108                        <?php 
    105109                } 
     
    164168        if(!$querystatement) reportError(100,"SQL Statement Could not be executed."); 
    165169 
    166         ?><select name="<?php echo $name?>" id="<?php echo $name?>" <?php if ($attributes) foreach($attributes as $attribute => $tvalue) echo " ".$attribute."=\"".$tvalue."\"";?> onchange="changeChoiceList(this,'<?php echo $_SESSION["app_path"]?>','<?php echo $listname?>','<?php echo $blankvalue?>');"  onFocus="setInitialML(this)"> 
     170        ?><select name="<?php echo $name?>" id="<?php echo $name?>" <?php if ($attributes) foreach($attributes as $attribute => $tvalue) echo " ".$attribute."=\"".$tvalue."\"";?> onchange="changeChoiceList(this,'<?php echo $_SESSION["app_path"]?>','<?php echo $listname?>','<?php echo $blankvalue?>');"  onfocus="setInitialML(this)"> 
    167171        <?php  
    168172                $inlist=false; 
     
    176180                        } 
    177181                        if($therecord["thevalue"]==$value){ 
    178                                 $selected=" selected "; 
     182                                $selected=" selected=\"selected\""; 
    179183                                $inlist=true; 
    180184                        } 
     
    191195                                $theclass=""; 
    192196                        } 
    193                         ?><option value="<?php echo $value?>" <?php echo $theclass?> selected><?php echo $display?></option><?php                                        
     197                        ?><option value="<?php echo $value?>" <?php echo $theclass?> selected="selected"><?php echo $display?></option><?php                                     
    194198                }//end if 
    195199        ?> 
     
    380384        if(!$queryresult) reportError(310,"Error Retrieving Roles"); 
    381385        ?><select id="<?php echo $name?>" name="<?php echo $name?>"> 
    382         <option value="0" <?php if($selected==0) echo "selected"?>>EVERYONE</option> 
     386        <option value="0" <?php if($selected==0) echo "selected=\"selected\""?>>EVERYONE</option> 
    383387        <?php while($therecord=mysql_fetch_array($queryresult)){ ?> 
    384         <option value="<?php echo $therecord["id"]?>" <?php if($selected==$therecord["id"]) echo "selected"?>><?php echo $therecord["name"]?></option>   
     388        <option value="<?php echo $therecord["id"]?>" <?php if($selected==$therecord["id"]) echo "selected=\"selected\""?>><?php echo $therecord["name"]?></option>      
    385389        <?php }?> 
    386         <option value="-100" <?php if($selected==-100) echo "selected"?>>Administrators</option> 
     390        <option value="-100" <?php if($selected==-100) echo "selected=\"selected\""?>>Administrators</option> 
    387391        </select><?php 
    388392} 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.