コード例 #1
0
ファイル: notes_addedit.php プロジェクト: Jacquesvw/phpBMS
    goURL("../../noaccess.php");
}
if (isset($therecord["phpbmsStatus"])) {
    $statusmessage = $therecord["phpbmsStatus"];
}
$attachedtableinfo = $thetable->getAttachedTableDefInfo($therecord["attachedtabledefid"]);
$pageTitle = "Note/Task/Event";
$phpbms->cssIncludes[] = "pages/base/notes.css";
$phpbms->jsIncludes[] = "modules/base/javascript/notes.js";
//Form Elements
//==============================================================
$theform = new phpbmsForm();
$theform->onsubmit = "return submitForm(this)";
$theform->id = "record";
$temparray = array("Note" => "NT", "Task" => "TS", "Event" => "EV", "System Message" => "SM");
$theinput = new inputBasicList("thetype", $therecord["type"], $temparray, "type");
$theinput->setAttribute("class", "important");
$theinput->setAttribute("onchange", "changeType()");
$theform->addField($theinput);
$theinput = new inputField("subject", $therecord["subject"], "title", true);
$theform->addField($theinput);
$temparray = array("Highest" => 3, "High" => 2, "Medium" => 1, "Normal" => 0, "Low" => -1, "Lowest" => -2);
$theinput = new inputBasicList("importance", $therecord["importance"], $temparray, "importance", false);
$theform->addField($theinput);
$theinput = new inputCheckbox("private", $therecord["private"]);
$theform->addField($theinput);
$theinput = new inputDatePicker("startdate", $therecord["startdate"], "start date", false, 11, 15, false);
$theinput->setAttribute("onchange", "checkEndDate();");
$theform->addField($theinput);
$theinput = new inputTimePicker("starttime", $therecord["starttime"], "start time", false, 11, 15, false);
$theinput->setAttribute("onchange", "checkEndDate();");
コード例 #2
0
ファイル: tabledefs_custom.php プロジェクト: Jacquesvw/phpBMS
 function prepFields()
 {
     $settings = $this->settings;
     $theform = new phpbmsForm();
     for ($i = 1; $i < 9; $i++) {
         $theinput = new inputField("custom" . $i . "name", $settings["custom" . $i]["name"], "name");
         $theform->addField($theinput);
         $theinput = new inputRolesList($this->db, "custom" . $i . "roleid", $settings["custom" . $i]["roleid"], "access (role)");
         $theform->addField($theinput);
         $theinput = new inputField("custom" . $i . "displayorder", $settings["custom" . $i]["displayorder"], "display order", true, NULL, 10, 10);
         $theform->addField($theinput);
         switch ($i) {
             case 1:
             case 2:
                 $req = true;
                 $formatArray = array("integer" => "integer", "real" => "real", "currency" => "currency");
                 break;
             case 3:
             case 4:
                 $req = true;
                 $formatArray = array("date" => "date", "time" => "time");
                 break;
             case 5:
             case 6:
                 $req = true;
                 $formatArray = array("no formatting" => "", "phone number" => "phone", "e-mail address" => "email", "Web address (URL)" => "www", "modifiable drop down list" => "list");
                 break;
             case 7:
             case 8:
                 $req = false;
                 $formatArray = array("Not Applicable" => "");
                 break;
         }
         //endswitch
         $theinput = new inputBasicList("custom" . $i . "format", $settings["custom" . $i]["format"], $formatArray, "format");
         if (!$req) {
             $theinput->setAttribute("readonly", "readonly");
             $theinput->setAttribute("class", "uneditable");
         }
         //endif
         $theform->addField($theinput);
         $theinput = new inputCheckbox("custom" . $i . "required", $settings["custom" . $i]["required"], "required", !$req);
         $theform->addField($theinput);
         if ($req) {
             $theinput = new inputTextarea("custom" . $i . "generator", $settings["custom" . $i]["generator"], "generation javascript", false, 2, 84);
             $theform->addField($theinput);
         }
         //endif
     }
     //endfor i
     return $theform;
 }
コード例 #3
0
ファイル: clients_addedit.php プロジェクト: Jacquesvw/phpBMS
if ($therecord["inactive"]) {
    $pageTitle = "Inactive " . $pageTitle;
}
$phpbms->cssIncludes[] = "pages/client.css";
$phpbms->jsIncludes[] = "modules/bms/javascript/client.js";
//Form Elements
//==============================================================
$theform = new phpbmsForm();
$theinput = new inputCheckbox("inactive", $therecord["inactive"]);
$theform->addField($theinput);
if (moduleExists("mod:58c60122-9d08-af17-e95b-765d74c7c422", $phpbms->modules)) {
    $name = "subscribed to mailchimp";
}
$theinput = new inputCheckbox("canemail", $therecord["canemail"], "can email");
$theform->addField($theinput);
$theinput = new inputBasicList("type", $therecord["type"], array("prospect" => "prospect", "client" => "client"), "type");
$theinput->setAttribute("class", "important");
$theinput->setAttribute("onchange", "changeClientType(this)");
$disabled = false;
if ($therecord["type"] == "client" && $therecord["id"]) {
    $disabled = $thetable->checkForInvoices($therecord["id"]);
    if ($disabled) {
        $theinput->setAttribute("disabled", "disabled");
    }
}
//endif
$theform->addField($theinput);
$theinput = new inputChoiceList($db, "category", $therecord["category"], "clientcategories");
$theform->addField($theinput);
$theinput = new inputSmartSearch($db, "salesmanagerid", "Pick Active User", $therecord["salesmanagerid"], "sales person");
$theform->addField($theinput);
コード例 #4
0
include "../../include/session.php";
include "include/tables.php";
include "include/fields.php";
include "include/tabledefs.php";
$thetable = new tableDefinitions($db, "tbld:5c9d645f-26ab-5003-b98e-89e9049f8ac3");
$therecord = $thetable->processAddEditPage();
if (isset($therecord["phpbmsStatus"])) {
    $statusmessage = $therecord["phpbmsStatus"];
}
$pageTitle = "Table Definition";
$phpbms->cssIncludes[] = "pages/tabledefs.css";
$phpbms->jsIncludes[] = "modules/base/javascript/tabledefs.js";
//Form Elements
//==============================================================
$theform = new phpbmsForm();
$theinput = new inputBasicList("type", $therecord["type"], $list = array("table" => "table", "view" => "view", "system" => "system"));
$theinput->setAttribute("class", "important");
$theform->addField($theinput);
$theinput = new inputCheckbox("canpost", $therecord["canpost"], "can post records");
$theform->addField($theinput);
$theinput = new inputCheckbox("hascustomfields", $therecord["hascustomfields"], "has custom fields");
$theform->addField($theinput);
$theinput = new inputCheckbox("apiaccessible", $therecord["apiaccessible"], "api accessible");
$theform->addField($theinput);
$theinput = new inputDataTableList($db, "moduleid", $therecord["moduleid"], "modules", "uuid", "displayname", "", "", false, "module");
$theform->addField($theinput);
$theinput = new inputField("displayname", $therecord["displayname"], "display name", true, NULL, 50, 64, false);
$theinput->setAttribute("class", "important");
$theform->addField($theinput);
$theinput = new inputField("prefix", $therecord["prefix"], "uuid prefix", false, NULL, 10, 4);
$theform->addField($theinput);
コード例 #5
0
}
if ($therecord["userid"]) {
    $username = $phpbms->getUserName($therecord["userid"], true);
} else {
    $username = "******";
}
$pageTitle = "Saved Searches";
$phpbms->cssIncludes[] = "pages/usersearches.css";
//Form Elements
//==============================================================
$theform = new phpbmsForm();
$theinput = new inputField("id", $therecord["id"], NULL, false, NULL, 5);
$theinput->setAttribute("class", "uneditable");
$theinput->setAttribute("readonly", "readonly");
$theform->addField($theinput);
$theinput = new inputBasicList("typeDisplay", $therecord["type"], array("Search" => "SCH", "Sort" => "SRT"), "type");
$theinput->setAttribute("disabled", "disabled");
$theform->addField($theinput);
if ($therecord["userid"] === "") {
    $theinput = new inputRolesList($db, "roleid", $therecord["roleid"], "access (role)");
    $theform->addField($theinput);
}
//endif
$theinput = new inputField("name", $therecord["name"], NULL, true, NULL, 64, 128);
$theinput->setAttribute("class", "important");
$theform->addField($theinput);
$theform->jsMerge();
//==============================================================
//End Form Elements
include "header.php";
?>