コード例 #1
0
    public function content()
    {
        global $CONFIG, $STRINGS;
        return '
		<section id="user-account" class="well min-table">
		' . MenuHelper::admin_submenu('account', $this->_data->user) . '
		<form action="' . $CONFIG->wwwroot . '/admin/users/' . $this->_data->user->id . '/updateaccount"  method="post">
		<label>' . Lang::get('uuid') . '</label>
		<input type="text" class="span4" name="uuid" placeholder="00000000-0000-0000-0000-000000000000">

		<label>' . $STRINGS['mac'] . '</label>
		<input type="text" class="span4" name="mac" placeholder="00:00:00:00:00:00">
		
		<label></label>
		<input type="submit" class="btn" value="' . Lang::get('update') . '">
		</form>
		<small>' . Lang::get('useraccountnotice') . '</small>
		<hr>
		<form action="' . $CONFIG->wwwroot . '/admin/users/' . $this->_data->user->id . '/delete" method="post">
		<input type="submit" class="btn btn-danger" value="' . $STRINGS['event:delete:account'] . '">
		<span class="help-inline">' . $STRINGS['event:delete:account:warning'] . '</span>
		</form>
		</section>
		';
    }
コード例 #2
0
    public function content()
    {
        global $CONFIG, $STRINGS;
        $selected_user = $this->_data->user->role == 'user' ? 'SELECTED' : '';
        $selected_admin = $this->_data->user->role == 'admin' ? 'SELECTED' : '';
        return '
		<section id="user-details" class="well">
		' . MenuHelper::admin_submenu('details', $this->_data->user) . '
		<form action="' . $CONFIG->wwwroot . '/admin/users/' . $this->_data->user->id . '/update"  method="post">
		<label>' . $STRINGS['firstname'] . '</label>
		<input type="text" name="firstname" value="' . $this->_data->user->firstname . '">

		<label>' . $STRINGS['lastname'] . '</label>
		<input type="text" name="lastname" value="' . $this->_data->user->lastname . '">

		<label>' . $STRINGS['identifier'] . '</label>
		<input type="text" name="identifier" value="' . $this->_data->user->identifier . '">

		<label>' . $STRINGS['position'] . '</label>
		<input type="text" name="position" value="' . $this->_data->user->position . '">

		<label>' . $STRINGS['role'] . '</label>
		<select name="role">
		<option ' . $selected_user . '>user</option>
		<option ' . $selected_admin . '>admin</option>
		</select>
		<label></label>
		<button type="submit" class="btn">' . $STRINGS['update'] . '</button>
		</form>
		</section>';
    }