示例#1
0
			<input type="hidden" id="primaryRoleValidate" value="<?php 
echo $vItems['primaryRole'];
?>
" />
			<span id="primaryRoleMsg"></span>
		</td>
	</tr>

	<tr>
		<td class="account"><strong>Secondary&nbsp;Role:</strong></td>
		<td nowrap="y">
			&nbsp; &nbsp; &nbsp; <img id="secondaryRoleImg" src="/accounts/ajax/images/blank.gif" width="16" height="16" alt="valid indicator"/>
			<select name="secondaryRole">
				<option value="">-- select role --</option>
				<?php 
echo generate_roles_dropdown($thisUser['secondaryRole']);
?>
				<option value="" <?php 
if (!$thisUser['secondaryRole']) {
    echo " selected='y' ";
}
?>
 >None</option>
			</select> <em style="font-size:.9em;">(if applicable)</em><br/>
			<input type="hidden" id="secondaryRoleValidate" value="<?php 
echo $vItems['secondaryRole'];
?>
" />
			<span id="secondaryRoleMsg"></span>
		</td>
	</tr>
	<span id="primaryRoleMsg"></span>
  </td>
</tr>

<tr valign="top">
  <td>
  	<div align=right>
		<img id="primaryRoleImg" src="/accounts/ajax/images/blank.gif" width="16" height="16" alt="validation indicator" />
			<strong>Your Secondary Role:</strong>
		</div>
  </td>
  <td>
	<select name="secondaryRole">
		<option value="">-- select role --</option>
		<?php 
echo generate_roles_dropdown($User->secondaryRole);
?>
		<option value="" <?php 
if (!$User->secondaryRole) {
    echo " selected='y' ";
}
?>
 >None</option>
	</select><br/>
	<input type="hidden" id="secondaryRoleValidate" value="<?php 
echo $vItems['secondaryRole'];
?>
" />
	<span id="secondaryRoleMsg"></span>
  </td>
</tr>