$openBracketButton = new xoopsFormButton('', 'openb', "(", 'submit'); $closeBracketButton = new xoopsFormButton('', 'closeb', ")", 'submit'); $andButton = new xoopsFormButton('', 'and', "AND", 'submit'); $orButton = new xoopsFormButton('', 'or', "OR", 'submit'); $notButton = new xoopsFormButton('', 'not', "NOT", 'submit'); $addOtherTray->addElement($andButton); $addOtherTray->addElement($orButton); $addOtherTray->addElement($notButton); $addOtherTray->addElement($openBracketButton); $addOtherTray->addElement($closeBracketButton); // add hidden items... foreach ($hidden as $oneHidden) { $advsearch->addElement($oneHidden); unset($oneHidden); } $advsearch->insertBreak("<div style=\"font-weight: normal;\">" . _formulize_DE_AS_DEPRECATED . "</div>", "head"); // advanced search officially deprecated with work on version 3.1 $advsearch->addElement($opterm); $advsearch->addElement($columns); // order change April 4 2007 $advsearch->addElement($addButton); $advsearch->addElement($addOtherTray); if ($items['as_0']) { $removeButton = new xoopsFormButton('', 'remove', _formulize_DE_AS_REMOVE, 'submit'); $doneButton = new xoopsFormButton('', 'done', _formulize_DE_SEARCHGO, 'button'); $doneButton->setExtra("onclick=\"javascript:sendSearch(this.form);return false;\""); $advsearch->insertBreak("</td></tr></table><table class=outer><tr><th colspan=2>" . _formulize_DE_AS_QUERYSOFAR . "</th></tr><tr><td class=even colspan=2><center>" . $doneButton->render() . "</center>", ""); $qstring = writableQuery($items, 1); // 1 flag indicates to not translate special terms $advsearch->insertBreak("<p>{$qstring}" . "<br />" . $removeButton->render() . "</p>", 'head'); }
$yes = new xoopsFormRadio('', 'lockcontrols', $currentlock); $yes->addOption("1", _YES); $no = new xoopsFormRadio('', 'lockcontrols', $currentlock); $no->addOption("0", _NO); $lockcontrols->addElement($yes); $lockcontrols->addElement($no); $saveform->addElement($pubgrouplist); $saveform->addElement($lockcontrols); } $viewselection = new xoopsFormHidden("viewselection", ""); $saveform->addElement($viewselection); $subButton = new xoopsFormButton('', 'submitx', _formulize_DE_SAVE_BUTTON, 'button'); $subButton->setExtra("onclick=\"javascript:saveSettings(this.form);\""); $saveform->addElement($subButton); if ($pubflag) { $saveform->insertBreak(_formulize_DE_SAVE_LOCKCONTROLS_HELP1 . " " . _formulize_DE_SAVE_LOCKCONTROLS_HELP2, "head"); } saveJavascript($pubflag); print $saveform->render(); print "</td><td width=5%></td></tr></table>"; print "</center></body>"; print "</HTML>"; // THIS FUNCTION RETURNS THE ARRAY OF OPTIONS FOR THE SAVE BOX, PLUS THE DEFAULT SELECTION function makeSaveList($s_reports, $ns_reports, $other_p_reports, $other_np_reports, $lastloaded, $viewselection) { // reports to include in the list are the saved ones, plus the other_p/np ones // default value is only derived from the actual reports, so if viewselection is anything other than a valid report name, then the initial [save as new] option gets selected $saveoptions["new"] = _formulize_DE_SAVE_AS; if ($s_reports[0] != "" or $ns_reports[0] != "") { $saveoptions["x1"] = _formulize_DE_SAVED_VIEWS; }