Example #1
0
 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT        |
 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,   |
 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY   |
 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT     |
 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE   |
 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.    |
 |                                                                         |
 +-------------------------------------------------------------------------+
*/
require_once "include/session.php";
require_once "include/search_class.php";
if (!isset($_GET["id"])) {
    $error = new appError(100, "Passed Parameter not present.");
}
$_GET["id"] = mysql_real_escape_string($_GET["id"]);
$displayTable = new displaySearchTable($db);
//initialize the object
$displayTable->initialize($_GET["id"]);
if (isset($passedjoinclause)) {
    $_SESSION["passedjoinclause"] = $passedjoinclause;
}
if (isset($passedjoinwhere)) {
    $_SESSION["passedjoinwhere"] = $passedjoinwhere;
}
//process commands...
if (!isset($_POST["othercommands"])) {
    $_POST["othercommands"] = "";
}
if (!isset($_POST["relationship"])) {
    $_POST["relationship"] = "";
}
Example #2
0
 |                                                                         |
 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS     |
 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT       |
 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A |
 | PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT      |
 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,   |
 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT        |
 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,   |
 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY   |
 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT     |
 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE   |
 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.    |
 |                                                                         |
 +-------------------------------------------------------------------------+
*/
$displayTable = new displaySearchTable($db);
$displayTable->base = $base;
$displayTable->initialize("tbld:edb8c896-7ce3-cafe-1d58-5aefbcd5f3d7");
$displayTable->querywhereclause = $whereclause;
$displayTable->tableoptions["printex"] = 0;
$displayTable->tableoptions["othercommands"] = false;
$displayTable->tableoptions["select"] = 0;
if (isset($_POST["deleteCommand"])) {
    if ($_POST["deleteCommand"]) {
        $_POST["command"] = $_POST["deleteCommand"];
    }
}
if (isset($_POST["command"])) {
    switch ($_POST["command"]) {
        case $displayTable->thetabledef["deletebutton"]:
            //=====================================================================================================
Example #3
0
require_once "../../include/search_class.php";
include "include/clients_addresses.php";
if (isset($_GET["refid"])) {
    $_GET["id"] = $_GET["refid"];
}
if (!isset($_GET["id"])) {
    $error = new appError(300, "Passed variable not set (id)");
}
$clientAddress = new clientAddress($db, $_GET["id"]);
$pageTitle = $clientAddress->getPageTitle();
// clients table definition uuid
$reftableid = "tbld:6d290174-8b73-e199-fe6c-bcf3d4b61083";
$whereclause = "\n\t\ttabledefid = '" . $reftableid . "'\n\t\tAND recordid = '" . $clientAddress->clientuuid . "'";
$backurl = "../bms/clients_addresses.php";
$base = "../../";
$displayTable = new displaySearchTable($db);
$displayTable->base = $base;
$displayTable->initialize("tbld:e3ce122f-7c43-cfca-fd32-11c663567a2a");
$displayTable->querywhereclause = $whereclause;
if (isset($_POST["deleteCommand"])) {
    if ($_POST["deleteCommand"]) {
        $_POST["command"] = $_POST["deleteCommand"];
    }
}
if (!isset($_POST["othercommands"])) {
    $_POST["othercommands"] = "";
}
if ($_POST["othercommands"]) {
    $_POST["command"] = "other";
}
if (isset($_POST["command"])) {
Example #4
0
 |                                                                         |
 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS     |
 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT       |
 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A |
 | PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT      |
 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,   |
 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT        |
 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,   |
 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY   |
 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT     |
 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE   |
 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.    |
 |                                                                         |
 +-------------------------------------------------------------------------+
*/
$displayTable = new displaySearchTable($db);
$displayTable->base = $base;
$displayTable->initialize("tbld:a4cdd991-cf0a-916f-1240-49428ea1bdd1");
$displayTable->querywhereclause = $whereclause;
$displayTable->tableoptions["printex"] = 0;
$displayTable->tableoptions["othercommands"] = false;
$displayTable->tableoptions["select"] = 0;
if (isset($_POST["deleteCommand"])) {
    if ($_POST["deleteCommand"]) {
        $_POST["command"] = $_POST["deleteCommand"];
    }
}
if (isset($_POST["command"])) {
    switch ($_POST["command"]) {
        case $displayTable->thetabledef["deletebutton"]:
            //=====================================================================================================