[mhk] r1006 committed - adds person filter to advanced search attributes

0 views
Skip to first unread message

codesite...@google.com

unread,
Feb 27, 2012, 3:18:07 PM2/27/12
to mhk-dis...@googlegroups.com
Revision: 1006
Author: jmnca...@gmail.com
Date: Mon Feb 27 12:16:51 2012
Log: adds person filter to advanced search attributes
http://code.google.com/p/mhk/source/detail?r=1006

Modified:
/trunk/idb/etc/template/new/advanced_search_show.vm

=======================================
--- /trunk/idb/etc/template/new/advanced_search_show.vm Sat Nov 19 05:10:12
2011
+++ /trunk/idb/etc/template/new/advanced_search_show.vm Mon Feb 27 12:16:51
2012
@@ -162,6 +162,7 @@
<table id="table">
#set($th=0)
#set($rownumber = 1)
+#set($hidePersons=$req.getParameter("hide_persons"))

#foreach($attribute in $attributes)
#set($entidade=$attribute.entity)
@@ -196,17 +197,23 @@
#set($th=1)
#end

+
+#if ($ent.rclass == "person")
+ #isRID($entidade)
+#end
+
+#if(($hidePersons && $isRID == "yes") || (!$hidePersons && ($ent.rclass
== "person" || $ent.rclass == "rperson")))
+
<tr id="r${rownumber}">
<td><!-- $ent.fields.name -->
#if ($ent.rclass == "person")
-
<INPUT id="cb_${rownumber}" TYPE="CHECKBOX" NAME="personid"
VALUE="$entidade">
</td><td onClick="selectRow($rownumber)">
- #isRID($entidade)
+ ####isRID($entidade)
<span class="flag" id="ri${rownumber}"
onclick="Set_Cookie('$rownumber','IDList','$entidade','/');"><img
onmouseover="Tip(txt1)" title="Click to save this ID on your list"
src="${baseaddr}/images/flag.gif"></span>
$rpsymb
#end
-
+
#if($ent.fields.name)<a
href="$resp.encodeURL("${uri}?dbname=$!dbname&action=show&id=$entidade")"
title="$entidade"><span class="caps">$!ent.fields.name</span></a>
#else
<a
href="$resp.encodeURL("${uri}?dbname=$!dbname&action=show&id=$entidade")"
title="$entidade">$!entidade</a>
@@ -226,7 +233,7 @@
</td>
#if($attribute.obs)<td width="15%">$!attribute.obs</td>#end
</tr>
-
+#end ##closes rperson check
#set($rownumber = $rownumber + 1)

#end

Reply all
Reply to author
Forward
0 new messages