*/ $t_subject = $this->getVar('t_subject'); $o_result_context = $this->getVar('result_context'); $va_forms = $this->getVar('form_codes'); $vs_form = $this->getVar('form'); // name of form to display $va_form_info = caGetInfoForAdvancedSearchForm($vs_form, $t_subject->tableName()); // // Set options for all form element here // $va_bundle_opts = array('values' => $o_result_context->getParameter('form_data')); // // List out form elements to display here // $va_form_fields = caGetAdvancedSearchFormElementNames($vs_form, $t_subject->tableName()); $va_form_field_with_subelements = caGetAdvancedSearchFormElementNames($vs_form, $t_subject->tableName(), array('includeSubElements' => true)); if (!$this->request->isAjax()) { if (sizeof($va_forms) > 1) { print "<div style='float: right;'><form action='#'>" . caHTMLSelect('form', $va_forms, array('onchange' => 'caLoadAdvancedSearchForm();', 'id' => 'caAdvancedSearchFormSelector'), array('value' => $vs_form)) . "</form></div>\n"; } ?> <H1 class="results" style="margin-top:15px;"><?php print _t("Advanced Search"); ?> </H1> <?php } if ($va_form_fields && is_array($va_form_fields) && sizeof($va_form_fields)) { ?> <div id="caAdvancedSearchForm"> <?php
* ---------------------------------------------------------------------- */ $t_subject = $this->getVar('t_subject'); $o_result_context = $this->getVar('result_context'); $va_forms = $this->getVar('form_codes'); $vs_form = $this->getVar('form'); // name of form to display $va_form_info = caGetInfoForAdvancedSearchForm($vs_form, $t_subject->tableName()); // // Set options for all form element here // $va_bundle_opts = array('values' => $o_result_context->getParameter('form_data')); // // List out form elements to display here // $va_form_fields = caGetAdvancedSearchFormElementNames($vs_form, $t_subject->tableName()); if (!$this->request->isAjax()) { if (sizeof($va_forms) > 1) { print "<div style='float: right;'><form action='#'>" . caHTMLSelect('form', $va_forms, array('onchange' => 'caLoadAdvancedSearchForm();', 'id' => 'caAdvancedSearchFormSelector'), array('value' => $vs_form)) . "</form></div>\n"; } ?> <H1><?php print _t("Advanced Search"); ?> </H1> <?php } if ($va_form_fields && is_array($va_form_fields) && sizeof($va_form_fields)) { ?> <div id="caAdvancedSearchForm"> <?php