the menu itself is a sql table
so i readout the menu and use template assign_block_vars to do a loop in the template....
this is part of my html template
Code: Select all
<select name='role' onchange='this.form.submit()'>
<!-- BEGIN rolelist -->
<option value='{rolelist.ROLE_ID}'
<!-- IF rolelist.ROLE_ID = S_ROLE -->
selected
<!-- ENDIF -->
>{rolelist.ROLE_NAME}</option>
<!-- END rolelist -->
</select>
Is there an easier way to highlight the selected?
I hope you understand what you mean. Thank you!