A bunch of sqlform fixes

This commit is contained in:
Martin Kamerbeek 2006-12-19 18:10:12 +00:00
parent 4a67861792
commit 32662367ec
4 changed files with 155 additions and 3 deletions

View file

@ -11,6 +11,15 @@
- fix: CS Phishing Exploit.
- fix: Groups admin gui
- fix: Wiki does not show history correctly
- fix: SQLForm - Field Constraint (Martin Kamerbeek / Oqapi)
- fix: SQLForm - Default search template uses downloadUrl in stead of
templateUrl for displaying thumbnails. (Martin Kamerbeek / Oqapi)
- fix: SQLForm - Required file fields could be left open (Martin Kamerbeek /
Oqapi)
- fix: SQLForm - Using radio buttons would error when re-edited (Martin Kamerbeek /
Oqapi)
- fix: SQLForm - DBD Error handling (Martin Kamerbeek / Oqapi)
7.3.1
- Fixed a problem with IE and resizable text areas that caused IE to crash

View file

@ -0,0 +1,83 @@
#SQLFormSearchTmpl00001
<a name="id<tmpl_var assetId>"></a>
<tmpl_if session.var.adminOn>
<p><tmpl_var controls></p>
</tmpl_if>
<div class="SQLForm-contentBox">
<tmpl_if displayTitle>
<h1><tmpl_var title></h1>
</tmpl_if>
<tmpl_var managementLinks>
<h2>Search records</h2>
<a href="<tmpl_var superSearch.url>"><tmpl_var superSearch.label></a><br />
<tmpl_if errorOccurred>
Some error(s) occurred:
<ul>
<tmpl_loop errorLoop>
<li><tmpl_var error.message></li>
</tmpl_loop>
</ul>
</tmpl_if>
<tmpl_var searchForm>
<tmpl_if showFieldsDefined>
<tmpl_var searchResults.header>
<tmpl_var searchResults.actionButtons>
<table border="0">
<tr>
<th></th>
<tmpl_if showMetaData>
<th>Last update</th>
<th>Last update by</th>
</tmpl_if>
<tmpl_loop headerLoop>
<th <tmpl_if
header.sort.onThis>color="red"</tmpl_if>>
<a href="<tmpl_var header.sort.url>">
<tmpl_var header.title>
<tmpl_if header.sort.onThis><tmpl_if header.sort.ascending>(asc)<tmpl_else>(desc)</tmpl_if></tmpl_if></a></th>
</tmpl_loop>
</tr>
<tmpl_loop searchResults.recordLoop>
<tr>
<td><tmpl_var record.controls></td>
<tmpl_if showMetaData>
<td><tmpl_var record.updateDate></td>
<td><tmpl_var record.updatedBy></td>
</tmpl_if>
<tmpl_loop record.valueLoop>
<td>
<tmpl_if record.value.isFile>
<tmpl_if record.value>
<a href="<tmpl_var record.value.downloadUrl>">
<tmpl_if record.value.isImage>
<img width="100" src="<tmpl_var record.value.thumbnailUrl>" alt="<tmpl_var record.value.downloadUrl>" />
<tmpl_else>
Click here for file
</tmpl_if>
</a>
</tmpl_if>
<tmpl_else>
<tmpl_var record.value>
</tmpl_if>
</td>
</tmpl_loop>
</tr>
</tmpl_loop>
</table>
<tmpl_var searchResults.actionButtons>
<tmpl_var searchResults.footer>
<tmpl_else>
No fields are defined to be shown in the search results.
</tmpl_if>
</div>