示例#1
0
<?php

$sdl = new StoresDataLoader($db);
$stores = new Stores($db);
$pos = new POS($db);
$getset->setStandardValue("exact_search", false);
switch ($getset->header(FORM_ACTION)) {
    case FORM_ACTION_SAVE . "_store":
        require_once __DIR__ . '/edit/save_store.php';
        $result = $sdl->get($getset->header("search"), $getset->header("value"), $getset->header("exact_search"));
        break;
    case FORM_ACTION_SAVE . "_pos":
        require_once __DIR__ . '/edit/save_pos.php';
        $result = $sdl->get($getset->header("search"), $getset->header("value"), $getset->header("exact_search"));
        break;
    case FORM_ACTION_CREATE:
        $result = $sdl->get("", "");
        break;
    case FORM_ACTION_DELETE . "_store":
        $stores->delete_Store($getset->header("delete_id"));
        $result = $sdl->get($getset->header("search"), $getset->header("value"), $getset->header("exact_search"));
        $result = null;
        break;
    case FORM_ACTION_DELETE . "_pos":
        $pos->delete_POS($getset->header("delete_id"));
        $result = $sdl->get($getset->header("search"), $getset->header("value"), $getset->header("exact_search"));
        break;
    case FORM_ACTION_SEARCH:
        $result = $sdl->get($getset->header("search"), $getset->header("value"), $getset->header("exact_search"));
        break;
    default:
示例#2
0
<?php

$stores = new StoresDataLoader($db);
$sList = $stores->get("store_id", "");
//print_r($sList);
?>

<style type="text/css">

</style>

<?php 
foreach ($sList as $store) {
    if ($store->get("monitor") != null && $store->get("monitor") > 0) {
        require 'pos.php';
    }
}
?>

<div class="streamer container">
<?php 
require_once 'messages.php';
?>
</div>
示例#3
0
<?php

$sdl = new StoresDataLoader($db);
switch ($getset->header(FORM_ACTION)) {
    case FORM_ACTION_SAVE:
        $f = new Franchisers($db);
        $f->set_Input("franchiser", $getset->header("franchiser"));
        $f->set_Input("country_id", $getset->header("country_id"));
        $f->set_Input("email", $getset->header("email"));
        $f->set_Input("phone_number", $getset->header("phone_number"));
        $f->set_Input("address", $getset->header("address"));
        $f->set_Input("city", $getset->header("city"));
        $f->set_Input("zipcode", $getset->header("zipcode"));
        if ($sys_users->hasAccess("Admin")) {
            $f->save_Franchiser($getset->header("id"));
        }
        break;
    case FORM_ACTION_DELETE:
        $f = new Franchisers($db);
        $f->delete_Franchiser($getset->header("delete_id"));
        break;
    default:
        break;
}
$f = $sdl->get_Franchiser("franchiser", "");
?>


<?php 
require __DIR__ . '/views/create.php';
if ($f != null) {