%#--- Arguments ---# <%args> $widget $object $disp_field $use_form_tag %#--- Initialization ---# <%init> my $agent = $m->comp("/widgets/util/detectAgent.mc"); my $spacerRow = ($agent->{browser} eq "Internet Explorer") ? '' : ""; my $advanced_search = get_state_data($widget, 'advanced_search') || 0; % if ($use_form_tag) {
% } % unless ($advanced_search) { % } else { % }
SEARCH [ Advanced Search ]ADVANCED SEARCH [ Simple Search ]
<% $spacerRow %> % unless ($advanced_search) { % } else { % my @cur = localtime; $cur[5] += 1900; $cur[4]++; % my $today = sprintf('%04d-%02d-%02d %02d:%02d:%02d', @cur[5,4,3,2,1,0]); % }
<& /widgets/profile/text.mc, name => $widget.'|simple', value => get_state_data($widget, 'simple') || '', useTable => 0 &> %# This hidden field is required to make the form submit when the user hits %# the "enter" key.
Title: <& /widgets/profile/text.mc, name => $widget.'|name', value => get_state_data($widget, 'name') || '', useTable => 0 &>
URI: <& /widgets/profile/text.mc, name => $widget.'|uri', value => get_state_data($widget, 'uri') || '', useTable => 0 &>
Cover Date
From: <& '/widgets/select_time/select_time.mc', base_name => "$widget|cover_date_start", indent => 1, no_hour => 1, no_min => 1, repopulate => 0, def_date => get_state_data($widget, 'cover_date_start')||'', compact => 1, style => 'inline', &> To: <& '/widgets/select_time/select_time.mc', base_name => "$widget|cover_date_end", indent => 1, no_hour => 1, no_min => 1, repopulate => 0, def_date => get_state_data($widget, 'cover_date_end')||'', compact => 1, style => 'inline', &>
Publish Date
From: <& '/widgets/select_time/select_time.mc', base_name => "$widget|publish_date_start", indent => 1, no_hour => 1, no_min => 1, repopulate => 0, def_date => get_state_data($widget, 'publish_date_start')||'', compact => 1, style => 'inline', &> To: <& '/widgets/select_time/select_time.mc', base_name => "$widget|publish_date_end", indent => 1, no_hour => 1, no_min => 1, repopulate => 0, def_date => get_state_data($widget, 'publish_date_end')||'', compact => 1, style => 'inline', &>
Expire Date
From: <& '/widgets/select_time/select_time.mc', base_name => "$widget|expire_date_start", indent => 1, no_hour => 1, no_min => 1, repopulate => 0, def_date => get_state_data($widget, 'expire_date_start')||'', compact => 1, style => 'inline', &> To: <& '/widgets/select_time/select_time.mc', base_name => "$widget|expire_date_end", indent => 1, no_hour => 1, no_min => 1, repopulate => 0, def_date => get_state_data($widget, 'expire_date_end')||'', compact => 1, style => 'inline', &>
% if ($advanced_search) {

% } %#--- Log History ---# % if ($use_form_tag) {
% }