list_admin.py 702 B

1234567891011121314151617181920212223
  1. from .tool.func import *
  2. def list_admin_2(conn):
  3. curs = conn.cursor()
  4. div = '<ul>'
  5. curs.execute("select id, acl, date from user where not acl = 'user' order by date desc")
  6. for data in curs.fetchall():
  7. name = ip_pas(data[0]) + ' <a href="/admin_plus/' + url_pas(data[1]) + '">(' + data[1] + ')</a>'
  8. if data[2] != '':
  9. name += '(' + data[2] + ')'
  10. div += '<li>' + name + '</li>'
  11. div += '</ul>'
  12. return easy_minify(flask.render_template(skin_check(),
  13. imp = [load_lang('admin_list'), wiki_set(), custom(), other2([0, 0])],
  14. data = div,
  15. menu = [['other', load_lang('return')]]
  16. ))