| 123456789101112131415161718192021222324252627 |
- from .tool.func import *
- async def list_admin():
- with get_db_connect() as conn:
- curs = conn.cursor()
- div = '<ul>'
- curs.execute(db_change(
- "select id, data from user_set where name = 'acl' and not data = 'user'"
- ))
- for data in curs.fetchall():
- name = '' + \
- await ip_pas(data[0]) + ' ' + \
- '<a href="/auth/list/add/' + url_pas(data[1]) + '">(' + data[1] + ')</a>' + \
- ''
- div += '<li>' + name + '</li>'
- div += '</ul>'
- return await render_template(
- await get_lang('admin_list'),
- div,
- 0,
- [['other', await get_lang('return')]]
- )
|