fixed divs in appamin.html, thanks Anthony

This commit is contained in:
Massimo Di Pierro committed 2011-12-04 19:35:58 -06:00
1 parent bd37a78796
commit b71077608a
4 files changed
+97 -100

No files matched your search

+1 -1
View File
@@ -1 +1 @@
Version 1.99.3 (2011-12-04 19:24:54) dev Version 1.99.3 (2011-12-04 19:35:53) dev
+32 -33
View File
@@ -10,7 +10,7 @@ jQuery(document).ready(function(){
//--></script> //--></script>
{{if request.function=='index':}} {{if request.function=='index':}}
<h1>{{=T("Available databases and tables")}}</h1> <h2>{{=T("Available databases and tables")}}</h2>
{{if not databases:}}{{=T("No databases in this application")}}{{pass}} {{if not databases:}}{{=T("No databases in this application")}}{{pass}}
{{for db in sorted(databases):}} {{for db in sorted(databases):}}
{{for table in databases[db].tables:}} {{for table in databases[db].tables:}}
@@ -28,28 +28,29 @@ jQuery(document).ready(function(){
{{qry=''}} {{qry=''}}
{{pass}} {{pass}}
{{pass}} {{pass}}
<h2>{{=A("%s.%s" % (db,table),_href=URL('select',args=[db],vars=dict(query=qry)))}} <h3>
</h2> {{=A("%s.%s" % (db,table),_href=URL('select',args=[db],vars=dict(query=qry)))}}
</h3>
[ {{=A(str(T('insert new'))+' '+table,_href=URL('insert',args=[db,table]))}} ] [ {{=A(str(T('insert new'))+' '+table,_href=URL('insert',args=[db,table]))}} ]
<br /><br /> <br /><br />
{{pass}} {{pass}}
{{pass}} {{pass}}
{{elif request.function=='select':}} {{elif request.function=='select':}}
<h1>{{=XML(str(T("database %s select"))%A(request.args[0],_href=URL('index'))) }} <h2>{{=XML(str(T("database %s select"))%A(request.args[0],_href=URL('index'))) }}
</h1> </h2>
{{if table:}} {{if table:}}
[ {{=A(str(T('insert new %s'))%table,_href=URL('insert',args=[request.args[0],table]))}} ]<br/><br/> [ {{=A(str(T('insert new %s'))%table,_href=URL('insert',args=[request.args[0],table]))}} ]<br/><br/>
<h2>{{=T("Rows in table")}}</h2><br/> <h3>{{=T("Rows in table")}}</h3><br/>
{{else:}} {{else:}}
<h2>{{=T("Rows selected")}}</h2><br/> <h3>{{=T("Rows selected")}}</h3><br/>
{{pass}} {{pass}}
{{=form}} {{=form}}
<p>{{=T('The "query" is a condition like "db.table1.field1==\'value\'". Something like "db.table1.field1==db.table2.field2" results in a SQL JOIN.')}}<br/> <p>{{=T('The "query" is a condition like "db.table1.field1==\'value\'". Something like "db.table1.field1==db.table2.field2" results in a SQL JOIN.')}}<br/>
{{=T('Use (...)&(...) for AND, (...)|(...) for OR, and ~(...) for NOT to build more complex queries.')}}<br/> {{=T('Use (...)&(...) for AND, (...)|(...) for OR, and ~(...) for NOT to build more complex queries.')}}<br/>
{{=T('"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN')}}</p> {{=T('"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN')}}</p>
<br/><br/> <br/><br/>
<h3>{{=nrows}} {{=T("selected")}}</h3> <h4>{{=nrows}} {{=T("selected")}}</h4>
{{if start>0:}}[ {{=A(T('previous 100 rows'),_href=URL('select',args=request.args[0],vars=dict(start=start-100)))}} ]{{pass}} {{if start>0:}}[ {{=A(T('previous 100 rows'),_href=URL('select',args=request.args[0],vars=dict(start=start-100)))}} ]{{pass}}
{{if stop<nrows:}}[ {{=A(T('next 100 rows'),_href=URL('select',args=request.args[0],vars=dict(start=start+100)))}} ]{{pass}} {{if stop<nrows:}}[ {{=A(T('next 100 rows'),_href=URL('select',args=request.args[0],vars=dict(start=start+100)))}} ]{{pass}}
{{if rows:}} {{if rows:}}
@@ -59,7 +60,7 @@ jQuery(document).ready(function(){
{{=SQLTABLE(rows,linkto,upload,orderby=True,_class='sortable')}} {{=SQLTABLE(rows,linkto,upload,orderby=True,_class='sortable')}}
</div> </div>
{{pass}} {{pass}}
<br/><br/><h2>{{=T("Import/Export")}}</h2><br/> <br/><br/><h3>{{=T("Import/Export")}}</h3><br/>
[ <a href="{{=URL('csv',args=request.args[0],vars=dict(query=query))}}">{{=T("export as csv file")}}</a> ] [ <a href="{{=URL('csv',args=request.args[0],vars=dict(query=query))}}">{{=T("export as csv file")}}</a> ]
{{if table:}} {{if table:}}
{{=FORM(str(T('or import from csv file'))+" ",INPUT(_type='file',_name='csvfile'),INPUT(_type='hidden',_value=table,_name='table'),INPUT(_type='submit',_value='import'))}} {{=FORM(str(T('or import from csv file'))+" ",INPUT(_type='file',_name='csvfile'),INPUT(_type='hidden',_value=table,_name='table'),INPUT(_type='submit',_value='import'))}}
@@ -67,7 +68,7 @@ jQuery(document).ready(function(){
{{elif request.function=='insert':}} {{elif request.function=='insert':}}
<h1>{{=T("database")}} {{=A(request.args[0],_href=URL('index'))}} <h2>{{=T("database")}} {{=A(request.args[0],_href=URL('index'))}}
{{if hasattr(table,'_primarykey'):}} {{if hasattr(table,'_primarykey'):}}
{{fieldname=table._primarykey[0]}} {{fieldname=table._primarykey[0]}}
{{dbname=request.args[0]}} {{dbname=request.args[0]}}
@@ -77,14 +78,11 @@ jQuery(document).ready(function(){
{{else:}} {{else:}}
{{=T("table")}} {{=A(request.args[1],_href=URL('select',args=request.args[0],vars=dict(query='%s.%s.id>0'%tuple(request.args[:2]))))}} {{=T("table")}} {{=A(request.args[1],_href=URL('select',args=request.args[0],vars=dict(query='%s.%s.id>0'%tuple(request.args[:2]))))}}
{{pass}} {{pass}}
</h1> </h2>
<h2>{{=T("New Record")}}</h2><br/> <h3>{{=T("New Record")}}</h3><br/>
{{=form}} {{=form}}
{{elif request.function=='update':}} {{elif request.function=='update':}}
<h1>{{=T("database")}} {{=A(request.args[0],_href=URL('index'))}} <h2>{{=T("database")}} {{=A(request.args[0],_href=URL('index'))}}
{{if hasattr(table,'_primarykey'):}} {{if hasattr(table,'_primarykey'):}}
{{fieldname=request.vars.keys()[0]}} {{fieldname=request.vars.keys()[0]}}
{{dbname=request.args[0]}} {{dbname=request.args[0]}}
@@ -96,32 +94,32 @@ jQuery(document).ready(function(){
{{=T("table")}} {{=A(request.args[1],_href=URL('select',args=request.args[0],vars=dict(query='%s.%s.id>0'%tuple(request.args[:2]))))}} {{=T("table")}} {{=A(request.args[1],_href=URL('select',args=request.args[0],vars=dict(query='%s.%s.id>0'%tuple(request.args[:2]))))}}
{{=T("record id")}} {{=A(request.args[2],_href=URL('update',args=request.args[:3]))}} {{=T("record id")}} {{=A(request.args[2],_href=URL('update',args=request.args[:3]))}}
{{pass}} {{pass}}
</h1> </h2>
<h2>{{=T("Edit current record")}}</h2><br/><br/>{{=form}} <h3>{{=T("Edit current record")}}</h3><br/><br/>{{=form}}
{{elif request.function=='state':}} {{elif request.function=='state':}}
<h1>{{=T("Internal State")}}</h1> <h2>{{=T("Internal State")}}</h2>
<h2>{{=T("Current request")}}</h2> <h3>{{=T("Current request")}}</h3>
{{=BEAUTIFY(request)}} {{=BEAUTIFY(request)}}
<br/><h2>{{=T("Current response")}}</h2> <br/><h3>{{=T("Current response")}}</h3>
{{=BEAUTIFY(response)}} {{=BEAUTIFY(response)}}
<br/><h2>{{=T("Current session")}}</h2> <br/><h3>{{=T("Current session")}}</h3>
{{=BEAUTIFY(session)}} {{=BEAUTIFY(session)}}
{{elif request.function == 'ccache':}} {{elif request.function == 'ccache':}}
<h1>Cache</h1> <h2>Cache</h2>
<div class="wrapper">
<div class="list"> <div class="list">
<div class="list-header"> <div class="list-header">
<h2>Statistics</h2> <h3>Statistics</h3>
</div> </div>
<div class="content"> <div class="content">
<h3>Overview</h3> <h4>Overview</h4>
<p>Number of entries: <strong>{{=total['entries']}}</strong> <p>Number of entries: <strong>{{=total['entries']}}</strong>
{{if total['entries'] > 0:}} {{if total['entries'] > 0:}}
</p>
<p> <p>
Hit Ratio: Hit Ratio:
<strong>{{=total['ratio']}}%</strong> <strong>{{=total['ratio']}}%</strong>
@@ -152,9 +150,9 @@ jQuery(document).ready(function(){
<br /> <br />
{{pass}} {{pass}}
<h3>RAM</h3> <h4>RAM</h4>
<p>Number of entries: <strong>{{=ram['entries']}}</strong> <p>Number of entries: <strong>{{=ram['entries']}}</strong>
{{if ram['entries'] > 0:}} {{if ram['entries'] > 0:}}</p>
<p> <p>
Hit Ratio: Hit Ratio:
<strong>{{=ram['ratio']}}%</strong> <strong>{{=ram['ratio']}}%</strong>
@@ -185,9 +183,10 @@ jQuery(document).ready(function(){
<br /> <br />
{{pass}} {{pass}}
<h3>DISK</h3> <h4>DISK</h4>
<p>Number of entries: <strong>{{=disk['entries']}}</strong> <p>Number of entries: <strong>{{=disk['entries']}}</strong>
{{if disk['entries'] > 0:}} {{if disk['entries'] > 0:}}
</p>
<p> <p>
Hit Ratio: Hit Ratio:
<strong>{{=disk['ratio']}}%</strong> <strong>{{=disk['ratio']}}%</strong>
@@ -220,8 +219,9 @@ jQuery(document).ready(function(){
</div> </div>
<div class="list-header"> <div class="list-header">
<h2>Manage Cache</h2> <h3>Manage Cache</h3>
</div> </div>
<div class="content"> <div class="content">
<p> <p>
{{=form}} {{=form}}
@@ -229,5 +229,4 @@ jQuery(document).ready(function(){
</div> </div>
</div> </div>
<div class="clear"></div> <div class="clear"></div>
</div>
{{pass}} {{pass}}
+32 -33
View File
@@ -10,7 +10,7 @@ jQuery(document).ready(function(){
//--></script> //--></script>
{{if request.function=='index':}} {{if request.function=='index':}}
<h1>{{=T("Available databases and tables")}}</h1> <h2>{{=T("Available databases and tables")}}</h2>
{{if not databases:}}{{=T("No databases in this application")}}{{pass}} {{if not databases:}}{{=T("No databases in this application")}}{{pass}}
{{for db in sorted(databases):}} {{for db in sorted(databases):}}
{{for table in databases[db].tables:}} {{for table in databases[db].tables:}}
@@ -28,28 +28,29 @@ jQuery(document).ready(function(){
{{qry=''}} {{qry=''}}
{{pass}} {{pass}}
{{pass}} {{pass}}
<h2>{{=A("%s.%s" % (db,table),_href=URL('select',args=[db],vars=dict(query=qry)))}} <h3>
</h2> {{=A("%s.%s" % (db,table),_href=URL('select',args=[db],vars=dict(query=qry)))}}
</h3>
[ {{=A(str(T('insert new'))+' '+table,_href=URL('insert',args=[db,table]))}} ] [ {{=A(str(T('insert new'))+' '+table,_href=URL('insert',args=[db,table]))}} ]
<br /><br /> <br /><br />
{{pass}} {{pass}}
{{pass}} {{pass}}
{{elif request.function=='select':}} {{elif request.function=='select':}}
<h1>{{=XML(str(T("database %s select"))%A(request.args[0],_href=URL('index'))) }} <h2>{{=XML(str(T("database %s select"))%A(request.args[0],_href=URL('index'))) }}
</h1> </h2>
{{if table:}} {{if table:}}
[ {{=A(str(T('insert new %s'))%table,_href=URL('insert',args=[request.args[0],table]))}} ]<br/><br/> [ {{=A(str(T('insert new %s'))%table,_href=URL('insert',args=[request.args[0],table]))}} ]<br/><br/>
<h2>{{=T("Rows in table")}}</h2><br/> <h3>{{=T("Rows in table")}}</h3><br/>
{{else:}} {{else:}}
<h2>{{=T("Rows selected")}}</h2><br/> <h3>{{=T("Rows selected")}}</h3><br/>
{{pass}} {{pass}}
{{=form}} {{=form}}
<p>{{=T('The "query" is a condition like "db.table1.field1==\'value\'". Something like "db.table1.field1==db.table2.field2" results in a SQL JOIN.')}}<br/> <p>{{=T('The "query" is a condition like "db.table1.field1==\'value\'". Something like "db.table1.field1==db.table2.field2" results in a SQL JOIN.')}}<br/>
{{=T('Use (...)&(...) for AND, (...)|(...) for OR, and ~(...) for NOT to build more complex queries.')}}<br/> {{=T('Use (...)&(...) for AND, (...)|(...) for OR, and ~(...) for NOT to build more complex queries.')}}<br/>
{{=T('"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN')}}</p> {{=T('"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN')}}</p>
<br/><br/> <br/><br/>
<h3>{{=nrows}} {{=T("selected")}}</h3> <h4>{{=nrows}} {{=T("selected")}}</h4>
{{if start>0:}}[ {{=A(T('previous 100 rows'),_href=URL('select',args=request.args[0],vars=dict(start=start-100)))}} ]{{pass}} {{if start>0:}}[ {{=A(T('previous 100 rows'),_href=URL('select',args=request.args[0],vars=dict(start=start-100)))}} ]{{pass}}
{{if stop<nrows:}}[ {{=A(T('next 100 rows'),_href=URL('select',args=request.args[0],vars=dict(start=start+100)))}} ]{{pass}} {{if stop<nrows:}}[ {{=A(T('next 100 rows'),_href=URL('select',args=request.args[0],vars=dict(start=start+100)))}} ]{{pass}}
{{if rows:}} {{if rows:}}
@@ -59,7 +60,7 @@ jQuery(document).ready(function(){
{{=SQLTABLE(rows,linkto,upload,orderby=True,_class='sortable')}} {{=SQLTABLE(rows,linkto,upload,orderby=True,_class='sortable')}}
</div> </div>
{{pass}} {{pass}}
<br/><br/><h2>{{=T("Import/Export")}}</h2><br/> <br/><br/><h3>{{=T("Import/Export")}}</h3><br/>
[ <a href="{{=URL('csv',args=request.args[0],vars=dict(query=query))}}">{{=T("export as csv file")}}</a> ] [ <a href="{{=URL('csv',args=request.args[0],vars=dict(query=query))}}">{{=T("export as csv file")}}</a> ]
{{if table:}} {{if table:}}
{{=FORM(str(T('or import from csv file'))+" ",INPUT(_type='file',_name='csvfile'),INPUT(_type='hidden',_value=table,_name='table'),INPUT(_type='submit',_value='import'))}} {{=FORM(str(T('or import from csv file'))+" ",INPUT(_type='file',_name='csvfile'),INPUT(_type='hidden',_value=table,_name='table'),INPUT(_type='submit',_value='import'))}}
@@ -67,7 +68,7 @@ jQuery(document).ready(function(){
{{elif request.function=='insert':}} {{elif request.function=='insert':}}
<h1>{{=T("database")}} {{=A(request.args[0],_href=URL('index'))}} <h2>{{=T("database")}} {{=A(request.args[0],_href=URL('index'))}}
{{if hasattr(table,'_primarykey'):}} {{if hasattr(table,'_primarykey'):}}
{{fieldname=table._primarykey[0]}} {{fieldname=table._primarykey[0]}}
{{dbname=request.args[0]}} {{dbname=request.args[0]}}
@@ -77,14 +78,11 @@ jQuery(document).ready(function(){
{{else:}} {{else:}}
{{=T("table")}} {{=A(request.args[1],_href=URL('select',args=request.args[0],vars=dict(query='%s.%s.id>0'%tuple(request.args[:2]))))}} {{=T("table")}} {{=A(request.args[1],_href=URL('select',args=request.args[0],vars=dict(query='%s.%s.id>0'%tuple(request.args[:2]))))}}
{{pass}} {{pass}}
</h1> </h2>
<h2>{{=T("New Record")}}</h2><br/> <h3>{{=T("New Record")}}</h3><br/>
{{=form}} {{=form}}
{{elif request.function=='update':}} {{elif request.function=='update':}}
<h1>{{=T("database")}} {{=A(request.args[0],_href=URL('index'))}} <h2>{{=T("database")}} {{=A(request.args[0],_href=URL('index'))}}
{{if hasattr(table,'_primarykey'):}} {{if hasattr(table,'_primarykey'):}}
{{fieldname=request.vars.keys()[0]}} {{fieldname=request.vars.keys()[0]}}
{{dbname=request.args[0]}} {{dbname=request.args[0]}}
@@ -96,32 +94,32 @@ jQuery(document).ready(function(){
{{=T("table")}} {{=A(request.args[1],_href=URL('select',args=request.args[0],vars=dict(query='%s.%s.id>0'%tuple(request.args[:2]))))}} {{=T("table")}} {{=A(request.args[1],_href=URL('select',args=request.args[0],vars=dict(query='%s.%s.id>0'%tuple(request.args[:2]))))}}
{{=T("record id")}} {{=A(request.args[2],_href=URL('update',args=request.args[:3]))}} {{=T("record id")}} {{=A(request.args[2],_href=URL('update',args=request.args[:3]))}}
{{pass}} {{pass}}
</h1> </h2>
<h2>{{=T("Edit current record")}}</h2><br/><br/>{{=form}} <h3>{{=T("Edit current record")}}</h3><br/><br/>{{=form}}
{{elif request.function=='state':}} {{elif request.function=='state':}}
<h1>{{=T("Internal State")}}</h1> <h2>{{=T("Internal State")}}</h2>
<h2>{{=T("Current request")}}</h2> <h3>{{=T("Current request")}}</h3>
{{=BEAUTIFY(request)}} {{=BEAUTIFY(request)}}
<br/><h2>{{=T("Current response")}}</h2> <br/><h3>{{=T("Current response")}}</h3>
{{=BEAUTIFY(response)}} {{=BEAUTIFY(response)}}
<br/><h2>{{=T("Current session")}}</h2> <br/><h3>{{=T("Current session")}}</h3>
{{=BEAUTIFY(session)}} {{=BEAUTIFY(session)}}
{{elif request.function == 'ccache':}} {{elif request.function == 'ccache':}}
<h1>Cache</h1> <h2>Cache</h2>
<div class="wrapper">
<div class="list"> <div class="list">
<div class="list-header"> <div class="list-header">
<h2>Statistics</h2> <h3>Statistics</h3>
</div> </div>
<div class="content"> <div class="content">
<h3>Overview</h3> <h4>Overview</h4>
<p>Number of entries: <strong>{{=total['entries']}}</strong> <p>Number of entries: <strong>{{=total['entries']}}</strong>
{{if total['entries'] > 0:}} {{if total['entries'] > 0:}}
</p>
<p> <p>
Hit Ratio: Hit Ratio:
<strong>{{=total['ratio']}}%</strong> <strong>{{=total['ratio']}}%</strong>
@@ -152,9 +150,9 @@ jQuery(document).ready(function(){
<br /> <br />
{{pass}} {{pass}}
<h3>RAM</h3> <h4>RAM</h4>
<p>Number of entries: <strong>{{=ram['entries']}}</strong> <p>Number of entries: <strong>{{=ram['entries']}}</strong>
{{if ram['entries'] > 0:}} {{if ram['entries'] > 0:}}</p>
<p> <p>
Hit Ratio: Hit Ratio:
<strong>{{=ram['ratio']}}%</strong> <strong>{{=ram['ratio']}}%</strong>
@@ -185,9 +183,10 @@ jQuery(document).ready(function(){
<br /> <br />
{{pass}} {{pass}}
<h3>DISK</h3> <h4>DISK</h4>
<p>Number of entries: <strong>{{=disk['entries']}}</strong> <p>Number of entries: <strong>{{=disk['entries']}}</strong>
{{if disk['entries'] > 0:}} {{if disk['entries'] > 0:}}
</p>
<p> <p>
Hit Ratio: Hit Ratio:
<strong>{{=disk['ratio']}}%</strong> <strong>{{=disk['ratio']}}%</strong>
@@ -220,8 +219,9 @@ jQuery(document).ready(function(){
</div> </div>
<div class="list-header"> <div class="list-header">
<h2>Manage Cache</h2> <h3>Manage Cache</h3>
</div> </div>
<div class="content"> <div class="content">
<p> <p>
{{=form}} {{=form}}
@@ -229,5 +229,4 @@ jQuery(document).ready(function(){
</div> </div>
</div> </div>
<div class="clear"></div> <div class="clear"></div>
</div>
{{pass}} {{pass}}
+32 -33
View File
@@ -10,7 +10,7 @@ jQuery(document).ready(function(){
//--></script> //--></script>
{{if request.function=='index':}} {{if request.function=='index':}}
<h1>{{=T("Available databases and tables")}}</h1> <h2>{{=T("Available databases and tables")}}</h2>
{{if not databases:}}{{=T("No databases in this application")}}{{pass}} {{if not databases:}}{{=T("No databases in this application")}}{{pass}}
{{for db in sorted(databases):}} {{for db in sorted(databases):}}
{{for table in databases[db].tables:}} {{for table in databases[db].tables:}}
@@ -28,28 +28,29 @@ jQuery(document).ready(function(){
{{qry=''}} {{qry=''}}
{{pass}} {{pass}}
{{pass}} {{pass}}
<h2>{{=A("%s.%s" % (db,table),_href=URL('select',args=[db],vars=dict(query=qry)))}} <h3>
</h2> {{=A("%s.%s" % (db,table),_href=URL('select',args=[db],vars=dict(query=qry)))}}
</h3>
[ {{=A(str(T('insert new'))+' '+table,_href=URL('insert',args=[db,table]))}} ] [ {{=A(str(T('insert new'))+' '+table,_href=URL('insert',args=[db,table]))}} ]
<br /><br /> <br /><br />
{{pass}} {{pass}}
{{pass}} {{pass}}
{{elif request.function=='select':}} {{elif request.function=='select':}}
<h1>{{=XML(str(T("database %s select"))%A(request.args[0],_href=URL('index'))) }} <h2>{{=XML(str(T("database %s select"))%A(request.args[0],_href=URL('index'))) }}
</h1> </h2>
{{if table:}} {{if table:}}
[ {{=A(str(T('insert new %s'))%table,_href=URL('insert',args=[request.args[0],table]))}} ]<br/><br/> [ {{=A(str(T('insert new %s'))%table,_href=URL('insert',args=[request.args[0],table]))}} ]<br/><br/>
<h2>{{=T("Rows in table")}}</h2><br/> <h3>{{=T("Rows in table")}}</h3><br/>
{{else:}} {{else:}}
<h2>{{=T("Rows selected")}}</h2><br/> <h3>{{=T("Rows selected")}}</h3><br/>
{{pass}} {{pass}}
{{=form}} {{=form}}
<p>{{=T('The "query" is a condition like "db.table1.field1==\'value\'". Something like "db.table1.field1==db.table2.field2" results in a SQL JOIN.')}}<br/> <p>{{=T('The "query" is a condition like "db.table1.field1==\'value\'". Something like "db.table1.field1==db.table2.field2" results in a SQL JOIN.')}}<br/>
{{=T('Use (...)&(...) for AND, (...)|(...) for OR, and ~(...) for NOT to build more complex queries.')}}<br/> {{=T('Use (...)&(...) for AND, (...)|(...) for OR, and ~(...) for NOT to build more complex queries.')}}<br/>
{{=T('"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN')}}</p> {{=T('"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN')}}</p>
<br/><br/> <br/><br/>
<h3>{{=nrows}} {{=T("selected")}}</h3> <h4>{{=nrows}} {{=T("selected")}}</h4>
{{if start>0:}}[ {{=A(T('previous 100 rows'),_href=URL('select',args=request.args[0],vars=dict(start=start-100)))}} ]{{pass}} {{if start>0:}}[ {{=A(T('previous 100 rows'),_href=URL('select',args=request.args[0],vars=dict(start=start-100)))}} ]{{pass}}
{{if stop<nrows:}}[ {{=A(T('next 100 rows'),_href=URL('select',args=request.args[0],vars=dict(start=start+100)))}} ]{{pass}} {{if stop<nrows:}}[ {{=A(T('next 100 rows'),_href=URL('select',args=request.args[0],vars=dict(start=start+100)))}} ]{{pass}}
{{if rows:}} {{if rows:}}
@@ -59,7 +60,7 @@ jQuery(document).ready(function(){
{{=SQLTABLE(rows,linkto,upload,orderby=True,_class='sortable')}} {{=SQLTABLE(rows,linkto,upload,orderby=True,_class='sortable')}}
</div> </div>
{{pass}} {{pass}}
<br/><br/><h2>{{=T("Import/Export")}}</h2><br/> <br/><br/><h3>{{=T("Import/Export")}}</h3><br/>
[ <a href="{{=URL('csv',args=request.args[0],vars=dict(query=query))}}">{{=T("export as csv file")}}</a> ] [ <a href="{{=URL('csv',args=request.args[0],vars=dict(query=query))}}">{{=T("export as csv file")}}</a> ]
{{if table:}} {{if table:}}
{{=FORM(str(T('or import from csv file'))+" ",INPUT(_type='file',_name='csvfile'),INPUT(_type='hidden',_value=table,_name='table'),INPUT(_type='submit',_value='import'))}} {{=FORM(str(T('or import from csv file'))+" ",INPUT(_type='file',_name='csvfile'),INPUT(_type='hidden',_value=table,_name='table'),INPUT(_type='submit',_value='import'))}}
@@ -67,7 +68,7 @@ jQuery(document).ready(function(){
{{elif request.function=='insert':}} {{elif request.function=='insert':}}
<h1>{{=T("database")}} {{=A(request.args[0],_href=URL('index'))}} <h2>{{=T("database")}} {{=A(request.args[0],_href=URL('index'))}}
{{if hasattr(table,'_primarykey'):}} {{if hasattr(table,'_primarykey'):}}
{{fieldname=table._primarykey[0]}} {{fieldname=table._primarykey[0]}}
{{dbname=request.args[0]}} {{dbname=request.args[0]}}
@@ -77,14 +78,11 @@ jQuery(document).ready(function(){
{{else:}} {{else:}}
{{=T("table")}} {{=A(request.args[1],_href=URL('select',args=request.args[0],vars=dict(query='%s.%s.id>0'%tuple(request.args[:2]))))}} {{=T("table")}} {{=A(request.args[1],_href=URL('select',args=request.args[0],vars=dict(query='%s.%s.id>0'%tuple(request.args[:2]))))}}
{{pass}} {{pass}}
</h1> </h2>
<h2>{{=T("New Record")}}</h2><br/> <h3>{{=T("New Record")}}</h3><br/>
{{=form}} {{=form}}
{{elif request.function=='update':}} {{elif request.function=='update':}}
<h1>{{=T("database")}} {{=A(request.args[0],_href=URL('index'))}} <h2>{{=T("database")}} {{=A(request.args[0],_href=URL('index'))}}
{{if hasattr(table,'_primarykey'):}} {{if hasattr(table,'_primarykey'):}}
{{fieldname=request.vars.keys()[0]}} {{fieldname=request.vars.keys()[0]}}
{{dbname=request.args[0]}} {{dbname=request.args[0]}}
@@ -96,32 +94,32 @@ jQuery(document).ready(function(){
{{=T("table")}} {{=A(request.args[1],_href=URL('select',args=request.args[0],vars=dict(query='%s.%s.id>0'%tuple(request.args[:2]))))}} {{=T("table")}} {{=A(request.args[1],_href=URL('select',args=request.args[0],vars=dict(query='%s.%s.id>0'%tuple(request.args[:2]))))}}
{{=T("record id")}} {{=A(request.args[2],_href=URL('update',args=request.args[:3]))}} {{=T("record id")}} {{=A(request.args[2],_href=URL('update',args=request.args[:3]))}}
{{pass}} {{pass}}
</h1> </h2>
<h2>{{=T("Edit current record")}}</h2><br/><br/>{{=form}} <h3>{{=T("Edit current record")}}</h3><br/><br/>{{=form}}
{{elif request.function=='state':}} {{elif request.function=='state':}}
<h1>{{=T("Internal State")}}</h1> <h2>{{=T("Internal State")}}</h2>
<h2>{{=T("Current request")}}</h2> <h3>{{=T("Current request")}}</h3>
{{=BEAUTIFY(request)}} {{=BEAUTIFY(request)}}
<br/><h2>{{=T("Current response")}}</h2> <br/><h3>{{=T("Current response")}}</h3>
{{=BEAUTIFY(response)}} {{=BEAUTIFY(response)}}
<br/><h2>{{=T("Current session")}}</h2> <br/><h3>{{=T("Current session")}}</h3>
{{=BEAUTIFY(session)}} {{=BEAUTIFY(session)}}
{{elif request.function == 'ccache':}} {{elif request.function == 'ccache':}}
<h1>Cache</h1> <h2>Cache</h2>
<div class="wrapper">
<div class="list"> <div class="list">
<div class="list-header"> <div class="list-header">
<h2>Statistics</h2> <h3>Statistics</h3>
</div> </div>
<div class="content"> <div class="content">
<h3>Overview</h3> <h4>Overview</h4>
<p>Number of entries: <strong>{{=total['entries']}}</strong> <p>Number of entries: <strong>{{=total['entries']}}</strong>
{{if total['entries'] > 0:}} {{if total['entries'] > 0:}}
</p>
<p> <p>
Hit Ratio: Hit Ratio:
<strong>{{=total['ratio']}}%</strong> <strong>{{=total['ratio']}}%</strong>
@@ -152,9 +150,9 @@ jQuery(document).ready(function(){
<br /> <br />
{{pass}} {{pass}}
<h3>RAM</h3> <h4>RAM</h4>
<p>Number of entries: <strong>{{=ram['entries']}}</strong> <p>Number of entries: <strong>{{=ram['entries']}}</strong>
{{if ram['entries'] > 0:}} {{if ram['entries'] > 0:}}</p>
<p> <p>
Hit Ratio: Hit Ratio:
<strong>{{=ram['ratio']}}%</strong> <strong>{{=ram['ratio']}}%</strong>
@@ -185,9 +183,10 @@ jQuery(document).ready(function(){
<br /> <br />
{{pass}} {{pass}}
<h3>DISK</h3> <h4>DISK</h4>
<p>Number of entries: <strong>{{=disk['entries']}}</strong> <p>Number of entries: <strong>{{=disk['entries']}}</strong>
{{if disk['entries'] > 0:}} {{if disk['entries'] > 0:}}
</p>
<p> <p>
Hit Ratio: Hit Ratio:
<strong>{{=disk['ratio']}}%</strong> <strong>{{=disk['ratio']}}%</strong>
@@ -220,8 +219,9 @@ jQuery(document).ready(function(){
</div> </div>
<div class="list-header"> <div class="list-header">
<h2>Manage Cache</h2> <h3>Manage Cache</h3>
</div> </div>
<div class="content"> <div class="content">
<p> <p>
{{=form}} {{=form}}
@@ -229,5 +229,4 @@ jQuery(document).ready(function(){
</div> </div>
</div> </div>
<div class="clear"></div> <div class="clear"></div>
</div>
{{pass}} {{pass}}