diff options
author | James Meyer <james.meyer@operamail.com> | 2012-10-05 01:32:28 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-10-05 01:32:28 (GMT) |
commit | 02887d85ec58fe1a322f6c44bb6b4fba8dba27e8 (patch) | |
tree | 28ae5e5a425648bee8492356ed2b211a63f9dd20 /abs/core/supplemental-web/contents | |
parent | 6852a210cd602faa7c303ddeb9b5512003f33029 (diff) | |
download | linhes_pkgbuild-02887d85ec58fe1a322f6c44bb6b4fba8dba27e8.zip linhes_pkgbuild-02887d85ec58fe1a322f6c44bb6b4fba8dba27e8.tar.gz linhes_pkgbuild-02887d85ec58fe1a322f6c44bb6b4fba8dba27e8.tar.bz2 |
supplemental-web: search results for calls open in new windows. Seems google didn't like opening in an i-frame
Diffstat (limited to 'abs/core/supplemental-web/contents')
-rw-r--r-- | abs/core/supplemental-web/contents/calllog.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/abs/core/supplemental-web/contents/calllog.py b/abs/core/supplemental-web/contents/calllog.py index 9a13e14..0b2fb22 100644 --- a/abs/core/supplemental-web/contents/calllog.py +++ b/abs/core/supplemental-web/contents/calllog.py @@ -14,16 +14,16 @@ def main(argv): # create a cursor cursor = db.cursor() # execute SQL statement - cursor.execute("select name,number,count(number) as '# calls' from cid group by number,name order by '# calls' DESC limit 20;") - result = cursor.fetchall() + # cursor.execute("select name,number,count(number) as '# calls' from cid group by number,name order by '# calls' DESC limit 20;") + # result = cursor.fetchall() -#Top shows + #Top 20 callers #print '<div id="content"> <p></p>' print '<div> <p></p>' print '<table class="calllog">' print "Top 20 callers" - searchstring='''<td> <a href="http://www.google.com/search?q=%s" > %s </a> </td> ''' + searchstring='''<td> <a href="http://www.google.com/search?q=%s" target="_blank" > %s </a> </td> ''' cursor.execute("select name,number,count(number) from cid group by number,name order by count(number) DESC limit 20;") result = cursor.fetchall() for row in result: @@ -37,9 +37,9 @@ def main(argv): #print "%40s %26s %10s" %(row[0],row[2],row[1]) print "</table>" print "</div>" -#Top categorys + #last 20 calls print '<br>' print '<br>' #print '<div id="content"> <p></p>' |