App-AutoCRUD
view release on metacpan or search on metacpan
lib/App/AutoCRUD/share/templates/src/table/search.tt view on Meta::CPAN
[% WRAPPER head %]
<style>
.param_group { font-weight: bold; color: firebrick; font-size: 120%; }
.groupname { font-weight: bold; color: navy; font-size: 110%; }
.check_column { float: right; }
.check_col_group { margin-right: 1.5em }
.check_all_groups { margin-right: 3em }
.clear_float { display:block;height:0;margin:0;
clear:both;visibility:hidden;}
#TN_tree { clear: right }
#criteria .TN_node { border-top: 1px dashed gray }
.TN_button { background-position-y: top; }
.focused_label { border-bottom: 1px dashed blue }
.pk { text-decoration: underline }
</style>
<script>
var tn_tree;
function setup() {
tn_tree = new GvaScript.TreeNavigator(
'TN_tree',
{selectFirstNode: false, tabIndex: -1}
);
var form = new GvaScript.Form('search_form', {
datatree: [% data.init_form %]
});
form.register('textarea, input', 'focus', on_focus_input);
form.register('textarea, input', 'blur', on_blur_input);
}
window.onload = setup;
function propagate_checkbox(main_box, id) {
var boxes = $$("#" + id + " input[type=checkbox]");
boxes.each(function(box) {
box.checked = main_box.checked;
});
}
function on_focus_input(event) {
var label = get_label(event);
if (label)
label.addClassName('focused_label');
// deselect treeNavigator
tn_tree.select(undefined);
}
function on_blur_input(event) {
var label = get_label(event);
if (label)
label.removeClassName('focused_label');
}
function get_label(event) {
var node = tn_tree.enclosingNode(event.element());
return node ? tn_tree.label(node) : undefined;
}
</script>
[% END; # WRAPPER head %]
[%# ---------- start body ---------- %]
( run in 0.410 second using v1.01-cache-2.11-cpan-5837b0d9d2c )