added sort option by own log date; fixed sorting by last log
This commit is contained in:
@@ -85,7 +85,7 @@
|
||||
<td width="46" height="13" bgcolor="#E6E6E6"><b>{t}D/T{/t}</b></td>
|
||||
<td width="448" height="13" bgcolor="#E6E6E6"><b>{t}Name{/t}</b></td>
|
||||
<td width="48" height="13" bgcolor="#E6E6E6"><b> </b></td>
|
||||
<td width="126" height="13" bgcolor="#E6E6E6"><b>{t}Last logs{/t}</b></td>
|
||||
<td width="126" height="13" bgcolor="#E6E6E6"><b style="display:{displaylastlogs}">{t}Last logs{/t}</b><b style="display:{displayownlogs}">{t}Own logs{/t}</b></td>
|
||||
</tr>
|
||||
<!--a-->{results}<!--z-->
|
||||
</table>
|
||||
|
||||
@@ -148,6 +148,8 @@ function sync_options(element)
|
||||
sortby = "bycreated";
|
||||
else if (document.optionsform.sort[3].checked == true)
|
||||
sortby = "bylastlog";
|
||||
else if (document.optionsform.sort[4].checked == true)
|
||||
sortby = "bymylastlog";
|
||||
|
||||
var tmpattrib = "";
|
||||
for (i = 0; i < maAttributes.length; i++)
|
||||
@@ -277,10 +279,11 @@ function switchAttributeCat2()
|
||||
<td style="vertical-align:top">{t}Sorting of result:{/t}</td>
|
||||
<td colspan="2">
|
||||
<div style="padding:0 0 5px 0">
|
||||
<input type="radio" name="sort" value="byname" index="0" id="l_sortbyname" class="radio" onclick="sync_options(this)" {byname_checked}> <label for="l_sortbyname">{t}Cachename{/t}</label>
|
||||
<input type="radio" name="sort" value="bydistance" index="1" id="l_sortbydistance" class="radio" onclick="sync_options(this)" {bydistance_checked} {bydistance_enabled} accept=""> <label for="l_sortbydistance">{t}Distance from <a href="myprofile.php">user-profile home coordinates</a>{/t}</label></div>
|
||||
<input type="radio" name="sort" value="byname" index="0" id="l_sortbyname" class="radio" onclick="sync_options(this)" {byname_checked} > <label for="l_sortbyname">{t}Cachename{/t}</label>
|
||||
<input type="radio" name="sort" value="bydistance" index="1" id="l_sortbydistance" class="radio" onclick="sync_options(this)" {bydistance_checked} {bydistance_enabled} accept=""{disable_nologin}"> <label for="l_sortbydistance" {grey_nologin}">{t}Distance from <a href="myprofile.php">user-profile home coordinates</a>{/t}</label></div>
|
||||
<input type="radio" name="sort" value="bycreated" index="2" id="l_sortbycreated" class="radio" onclick="sync_options(this)" {bycreated_checked}> <label for="l_sortbycreated">{t}Listed since{/t}</label>
|
||||
<input type="radio" name="sort" value="bylastlog" index="3" id="l_sortbylastlog" class="radio" onclick="sync_options(this)" {bylastlog_checked}> <label for="l_sortbylastlog">{t}Last log{/t}</label>
|
||||
<input type="radio" name="sort" value="bylastlog" index="3" id="l_sortbylastlog" class="radio" onclick="sync_options(this)" {bylastlog_checked}> <label for="l_sortbylastlog" >{t}Last log{/t}</label>
|
||||
<input type="radio" name="sort" value="bymylastlog" index="4" id="l_sortbymylastlog" class="radio" onclick="sync_options(this)" {bymylastlog_checked} {disable_nologin}> <label for="l_sortbymylastlog" {grey_nologin}>{t}My last log{/t}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -297,9 +300,9 @@ function switchAttributeCat2()
|
||||
<tr>
|
||||
<td>{t}Hide following caches:{/t}</td>
|
||||
<td colspan="2">
|
||||
<input type="checkbox" name="f_userowner" value="1" id="l_userowner" class="checkbox" onclick="sync_options(this)" {f_userowner_disabled} /> <label for="l_userowner">{t}My owned{/t}</label>
|
||||
<input type="checkbox" name="f_userfound" value="1" id="l_userfound" class="checkbox" onclick="sync_options(this)" {f_userfound_disabled} /> <label for="l_userfound">{t}My finds{/t}</label>
|
||||
<input type="checkbox" name="f_ignored" value="1" id="l_ignored" class="checkbox" onclick="sync_options(this)" {f_ignored_disabled} > <label for="l_ignored">{t}My ignored{/t}</label>
|
||||
<input type="checkbox" name="f_userowner" value="1" id="l_userowner" class="checkbox" onclick="sync_options(this)" {f_userowner_disabled} /> <label for="l_userowner" {grey_nologin}>{t}My owned{/t}</label>
|
||||
<input type="checkbox" name="f_userfound" value="1" id="l_userfound" class="checkbox" onclick="sync_options(this)" {f_userfound_disabled} /> <label for="l_userfound" {grey_nologin}>{t}My finds{/t}</label>
|
||||
<input type="checkbox" name="f_ignored" value="1" id="l_ignored" class="checkbox" onclick="sync_options(this)" {f_ignored_disabled} > <label for="l_ignored" {grey_nologin}>{t}My ignored{/t}</label>
|
||||
<img src="lang/de/ocstyle/images/misc/hint.gif" border="0" width="15" height="11" alt="{t}Notice{/t}" title="{t}Notice{/t}" align="middle">{t}Only usable if signed in.{/t}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user