""" account_list_searches: list the searches of the user
input: the user id
output: resume of the searches"""
out=""
# first detect number of queries:
nb_queries_total=0
res=run_sql("SELECT COUNT(*) FROM user_query WHERE id_user=%s",(uid,),1)
try:
nb_queries_total=res[0][0]
except:
pass
# load the right language
_=gettext_set_language(ln)
out+=_("You have made %(x_nb)s queries. A %(x_url_open)sdetailed list%(x_url_close)s is available with a possibility to (a) view search results and (b) subscribe to an automatic email alerting service for these queries.")%{'x_nb':nb_queries_total,'x_url_open':'<a href="../youralerts/display?ln=%s">'%ln,'x_url_close':'</a>'}