<h1><?php echo $this->translate('user.title.setup_auth'); ?></h1>

<h2><?php echo $this->user_data['name']; ?><?php echo $this->translate('user.caption.auth_info'); ?></h2>

<form action="<?php echo $this->appPath('controller'); ?>/setup_auth_commit" method="POST">
<input type="hidden" name="user_id" value="<?php echo $this->user_data['id']; ?>" />
<select name="role[]" size="<?php echo count($this->role_options); ?>" multiple>
<?php foreach ((array) $this->role_options as $key => $value) : ?>
<?php $selected = ""; ?>
<?php if (in_array($key, $this->user_roles)) $selected = "selected"; ?>
<option value="<?php echo $key; ?>" <?php echo $selected; ?>><?php echo $this->escape($value); ?></option>
<?php endforeach; ?>
</select>

<input type="submit" value="<?php echo $this->translate('common.operation.modify'); ?>" />
<input type="reset" value="<?php echo $this->translate('common.operation.reset'); ?>" />
</form>

<br/>
<ul>
<li>&gt;&gt;&nbsp;&nbsp;<a href="<?php echo $this->appPath('controller'); ?>"><?php echo $this->translate('user.operation.back_list'); ?></a></li>
</ul>