Changeset 205 for trunk/phpbms/include/fields.php
- Timestamp:
- 03/26/07 16:50:25 (5 years ago)
- Files:
-
- 1 modified
-
trunk/phpbms/include/fields.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpbms/include/fields.php
r204 r205 58 58 ?><input id="<?php echo $name?>" name="<?php echo $name?>" type="text" value="<?php echo htmlQuotes($value) ?>" <?php 59 59 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 62 66 }//end function 63 67 … … 79 83 80 84 ?><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\" "; 83 87 if ($attributes) foreach($attributes as $attribute => $tvalue) echo " ".$attribute."=\"".$tvalue."\""; 84 88 ?> class="radiochecks" /><?php … … 101 105 foreach($list as $theitem){ 102 106 $theitem["value"]=str_replace("\"",""",$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> 104 108 <?php 105 109 } … … 164 168 if(!$querystatement) reportError(100,"SQL Statement Could not be executed."); 165 169 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?>');" on Focus="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)"> 167 171 <?php 168 172 $inlist=false; … … 176 180 } 177 181 if($therecord["thevalue"]==$value){ 178 $selected=" selected ";182 $selected=" selected=\"selected\""; 179 183 $inlist=true; 180 184 } … … 191 195 $theclass=""; 192 196 } 193 ?><option value="<?php echo $value?>" <?php echo $theclass?> selected ><?php echo $display?></option><?php197 ?><option value="<?php echo $value?>" <?php echo $theclass?> selected="selected"><?php echo $display?></option><?php 194 198 }//end if 195 199 ?> … … 380 384 if(!$queryresult) reportError(310,"Error Retrieving Roles"); 381 385 ?><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> 383 387 <?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> 385 389 <?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> 387 391 </select><?php 388 392 }