コード例 #1
0
$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');
}
print $advsearch->render();
print "</td><td style=\"width: 5%;\"></td></tr></table>";
print "</center></body>";
print "</HTML>";
コード例 #2
0
    }
} else {
    exit("Error: no advanced scope permission detected.");
}
include_once XOOPS_ROOT_PATH . "/class/xoopsformloader.php";
print "<HTML>";
print "<head>";
print "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=" . _CHARSET . "\" />";
print "<title>" . _formulize_DE_PICKASCOPE . "</title>\n";
scopeJavascript();
print "<link rel=\"stylesheet\" type=\"text/css\" media=\"screen\" href=\"" . XOOPS_URL . "/xoops.css\" />\n";
$themecss = xoops_getcss();
//$themecss = substr($themecss, 0, -6);
//$themecss .= ".css";
print "<link rel=\"stylesheet\" type=\"text/css\" media=\"screen\" href=\"{$themecss}\" />\n";
print "</head>\n";
print "<body style=\"background: white; margin-top:20px;\"><center>";
print "<table style=\"width: 100%;\"><tr><td style=\"width: 5%;\"></td><td style=\"width: 90%;\">";
$advscope = new xoopsThemeForm(_formulize_DE_PICKASCOPE, 'advscope', XOOPS_URL . "/modules/formulize/include/advscope.php?fid={$fid}&frid={$frid}");
$gcount = count($availgroups);
$size = $gcount < 10 ? $gcount : 10;
$grouplist = new xoopsFormSelect(_formulize_DE_AVAILGROUPS, 'newscope', $curgroups, $size, true);
$grouplist->addOptionArray($availgroups);
$doneButton = new xoopsFormButton('', 'done', _formulize_DE_USETHISSCOPE, 'button');
$doneButton->setExtra("onclick=\"javascript:updateScope(this.form);return false;\"");
$advscope->addElement($grouplist);
$advscope->addElement($doneButton);
print $advscope->render();
print "</td><td style=\"width: 5%;\"></td></tr></table>\n";
print "</center></body>\n";
print "</HTML>";
コード例 #3
0
ファイル: setnot.php プロジェクト: LeeGlendenning/formulize
        }
        $text .= ".";
        if ($thisnot['not_cons_template']) {
            $text .= "<br />" . _formulize_DE_NOT_TEMPTEXT . $thisnot['not_cons_template'] . ".";
        }
        if ($thisnot['not_cons_subject']) {
            $text .= "<br />" . _formulize_DE_NOT_SUBJTEXT . "'" . str_replace(array("[", "]"), " ", $thisnot['not_cons_subject']) . "'.";
        }
        $delbutton = new xoopsFormButton('', 'delete_' . $thisnot['not_cons_id'], _formulize_DELETE, 'submit');
        $anot = new xoopsFormLabel($delbutton->render(), $text);
        $notlist->addElement($anot);
        unset($anot);
        unset($delbutton);
        $text = "";
    }
    print $notlist->render();
}
print "</td><td width=5%></td></tr></table>";
print "</center></body>";
print "</HTML>";
// this function returns all the current notifications for a form, including notifications for other groups if the user has permission to set such things
// does not return other user's own personal notifications
function getCurNots($fid, $setNots = false, $uid)
{
    global $xoopsDB;
    if ($setNots) {
        $getNoGroups = " OR not_cons_uid=0";
    } else {
        $getNoGroups = "";
    }
    $notsq = q("SELECT * FROM " . $xoopsDB->prefix("formulize_notification_conditions") . " WHERE not_cons_fid=" . intval($fid) . " AND (not_cons_uid=" . intval($uid) . " {$getNoGroups}) ORDER BY not_cons_id");
コード例 #4
0
ファイル: save.php プロジェクト: LeeGlendenning/formulize
    $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;
    }
    foreach ($s_reports as $report) {
        if ($viewselection == "sold_" . $report['report_id'] or $viewselection == "pold_" . $report['report_id']) {
            //		$saveoptions["sold_" . $report['report_id']] = ".  " . _formulize_DE_SAVE_UPDATE . $report['report_name'];