Rev | Line | |
---|
[13182] | 1 | <select name="identification" id="identification" data-icon="grid" data-iconpos="notext" data-native-menu="false"> |
---|
| 2 | |
---|
[13234] | 3 | <option></option> |
---|
| 4 | <optgroup label="{'Identification'|@translate}"> |
---|
[13182] | 5 | |
---|
| 6 | {if isset($U_REGISTER)} |
---|
| 7 | <option value="{$U_REGISTER}">{'Register'|@translate}</option> |
---|
| 8 | {/if} |
---|
| 9 | {if isset($U_LOGIN)} |
---|
| 10 | <option value="{$U_LOGIN}">{'Login'|@translate}</option> |
---|
| 11 | {/if} |
---|
| 12 | {if isset($U_LOGOUT)} |
---|
| 13 | <option value="{$U_LOGOUT}">{'Logout'|@translate}</option> |
---|
| 14 | {/if} |
---|
| 15 | {if isset($U_PROFILE)} |
---|
| 16 | <option value="{$U_PROFILE}">{'Customize'|@translate}</option> |
---|
| 17 | {/if} |
---|
| 18 | {if isset($U_ADMIN)} |
---|
| 19 | <option value="{$U_ADMIN}">{'Administration'|@translate}</option> |
---|
| 20 | {/if} |
---|
| 21 | |
---|
[13234] | 22 | </optgroup> |
---|
| 23 | |
---|
[13182] | 24 | </select> |
---|
| 25 | |
---|
| 26 | {footer_script}{literal} |
---|
| 27 | $(document).ready(function() { |
---|
| 28 | $('#identification').change(function() { |
---|
| 29 | window.location = this.value; |
---|
| 30 | }); |
---|
| 31 | }); |
---|
| 32 | {/literal}{/footer_script} |
---|
Note: See
TracBrowser
for help on using the repository browser.