public function page()
 {
     //create the model object
     $cal = new Page();
     //send the webclass
     $webClass = __CLASS__;
     //by pass the form
     $cmd = isset($_GET['cmd']) ? addslashes($_GET['cmd']) : 'read';
     if ($cmd == "edit") {
         //Crud::createForm($obj,$webClass);
         //die('edit');
         $id = isset($_GET['id']) ? addslashes($_GET['id']) : 0;
         if ($id) {
             $cal->getByID($id);
         }
         $mps['id'] = $id;
         $mps['obj'] = $cal;
         Mold::plugin("Page", "pageForm", $mps);
         exit;
     }
     $cid = addslashes($_GET['cid']);
     if ($cid != "") {
         $_SESSION['pageConID'] = $cid;
     } else {
         //unset($_SESSION['pageConID']);
     }
     $cal->read_filter_array = array("post_gallery_id" => $_SESSION['pageConID']);
     //echo $cid;
     //pr($cal);
     //run the crud utility
     Crud::run($cal, $webClass);
     //pr($mps);
 }
 public function qRRequestModel()
 {
     //create the model object
     $cal = new QRRequestModel();
     $webClass = __CLASS__;
     //run the crud utility
     Crud::run($cal, $webClass);
 }
 public function masterReceiptModel()
 {
     //create the model object
     $cal = new MasterReceiptModel();
     $webClass = __CLASS__;
     //run the crud utility
     Crud::run($cal, $webClass);
 }
 function MTranDetail()
 {
     $cal = new MTranDetail();
     //        $cal->printColumlistAsAttributes();
     //send the webclass
     $webClass = __CLASS__;
     Crud::run($cal, $webClass);
 }
 function PushLogger()
 {
     $cal = new PushLogger();
     //        $cal->printColumlistAsAttributes();
     //send the webclass
     $webClass = __CLASS__;
     //run the crud utility
     Crud::run($cal, $webClass);
 }
 public function masterRestaurantTagModel()
 {
     //create the model object
     $cal = new MasterRestaurantTagModel();
     //send the webclass
     $webClass = __CLASS__;
     //run the crud utileity
     Crud::run($cal, $webClass);
 }
 function DeviceModel()
 {
     $cal = new DeviceModel();
     //        $cal->printColumlistAsAttributes();
     //send the webclass
     $webClass = __CLASS__;
     //run the crud utility
     Crud::run($cal, $webClass);
 }
Exemplo n.º 8
0
 public function QuizIklan()
 {
     //create the model object
     $cal = new QuizIklan();
     //send the webclass
     $webClass = __CLASS__;
     //run the crud utility
     Crud::run($cal, $webClass);
 }
Exemplo n.º 9
0
 public function topicmap()
 {
     //create the model object
     $gr = new Topicmap();
     //send the webclass
     $webClass = __CLASS__;
     //run the crud utility
     Crud::run($gr, $webClass);
 }
Exemplo n.º 10
0
 function BlogCategory()
 {
     $cal = new BlogCategory();
     //        $cal->printColumlistAsAttributes();
     //send the webclass
     $webClass = __CLASS__;
     //run the crud utility
     Crud::run($cal, $webClass);
 }
Exemplo n.º 11
0
 public function CampaignModel()
 {
     //create the model object
     $cal = new CampaignModel();
     //send the webclass
     $webClass = __CLASS__;
     //run the crud utility
     Crud::run($cal, $webClass);
 }
 function Testing()
 {
     //create the model object
     $cal = new Testing();
     //send the webclass
     $webClass = __CLASS__;
     //run the crud utility
     Crud::run($cal, $webClass);
 }
Exemplo n.º 13
0
 public function SocmedPortal()
 {
     //create the model object
     $cal = new SocmedPortal();
     //send the webclass
     $webClass = __CLASS__;
     //run the crud utility
     Crud::run($cal, $webClass);
 }
 public function homesettingModel()
 {
     //create the model object
     $cal = new HomeSettingModel();
     //send the webclass
     $webClass = __CLASS__;
     //run the crud utility
     Crud::run($cal, $webClass);
     //pr($mps);
 }
 public function masterDishTagModel()
 {
     //create the model object
     $cal = new MasterDishTagModel();
     //send the webclass
     $webClass = __CLASS__;
     //run the crud utility
     Crud::run($cal, $webClass);
     //        pr($mps);
 }
Exemplo n.º 16
0
 public function LL_Tnc()
 {
     //create the model object
     $cal = new LL_Tnc();
     //send the webclass
     $webClass = __CLASS__;
     //run the crud utility
     Crud::run($cal, $webClass);
     //pr($mps);
 }
 public function trackerNotificationModel()
 {
     //create the model object
     $cal = new TrackerNotificationModel();
     //send the webclass
     $webClass = __CLASS__;
     //run the crud utility
     Crud::run($cal, $webClass);
     //        pr($mps);
 }
Exemplo n.º 18
0
 function ParallaxModel()
 {
     //create the model object
     $cal = new ParallaxModel();
     //        $cal->printColumlistAsAttributes();
     //send the webclass
     $webClass = __CLASS__;
     //run the crud utility
     Crud::run($cal, $webClass);
 }
 public function restaurantUserModel()
 {
     //create the model object
     $cal = new RestaurantUserModel();
     //send the webclass
     $webClass = __CLASS__;
     //run the crud utility
     Crud::run($cal, $webClass);
     //        pr($mps);
 }
 public function quotes()
 {
     //echo "halo";
     //create the model object
     $cal = new Quotes();
     //send the webclass
     $webClass = __CLASS__;
     //run the crud utility
     Crud::run($cal, $webClass);
     //pr($mps);
 }
Exemplo n.º 21
0
 public function PaymentConfirm()
 {
     //create the model object
     $cal = new PaymentConfirm();
     $cal->printColumlistAsAttributes();
     //send the webclass
     $webClass = __CLASS__;
     //run the crud utility
     Crud::run($cal, $webClass);
     //pr($mps);
 }
Exemplo n.º 22
0
 public function LL_TransactionDetail()
 {
     //create the model object
     $cal = new LL_TransactionDetail();
     //        $cal->printColumlistAsAttributes();
     //send the webclass
     $webClass = __CLASS__;
     //run the crud utility
     Crud::run($cal, $webClass);
     //pr($mps);
 }
 public function StorePortalAccount()
 {
     //create the model object
     $cal = new StorePortalAccount();
     //send the webclass
     $webClass = __CLASS__;
     $cal->read_filter_array = array("admin_type" => '2');
     //run the crud utility
     Crud::run($cal, $webClass);
     //pr($mps);
 }
 public function PageContainer()
 {
     //create the model object
     $cal = new PageContainer();
     //send the webclass
     $webClass = __CLASS__;
     //filter only for active theme
     // $dir = ThemeItem::getTheme();
     // $cal->read_filter_array = array("set_theme_id"=>$dir);
     //run the crud utility
     Crud::run($cal, $webClass);
     //pr($mps);
 }
Exemplo n.º 25
0
 public function MProdModel()
 {
     $sortdb = "prod_kode ASC";
     if (!isset($_GET['sort'])) {
         $_GET['sort'] = $sortdb;
     }
     //create the model object
     $cal = new MProdModel();
     //send the webclass
     $webClass = __CLASS__;
     //run the crud utility
     Crud::run($cal, $webClass);
 }
 public function MProdModel()
 {
     $sortdb = "VariantID ASC";
     if (!isset($_GET['sort'])) {
         $_GET['sort'] = $sortdb;
     }
     //create the model object
     $cal = new MProdModel();
     //send the webclass
     $webClass = __CLASS__;
     Crud::run($cal, $webClass);
     /*
             $cmd = (isset($_GET['cmd']) ? addslashes($_GET['cmd']) : 'read');
             if ($cmd == "edit") {
     
                 $cal->createComplexForm($cal,$webClass);
     
             }else {
                 //run the crud utility
                 Crud::run($cal, $webClass);
             }*/
 }
 public function invitationModel()
 {
     $cal = new InvitationModel();
     $webClass = __CLASS__;
     Crud::run($cal, $webClass);
 }
 public function murid()
 {
     echo "Pertama";
     //create the model object
     $mp = new Murid();
     //send the webclass
     $webClass = __CLASS__;
     //run the crud utility
     Crud::run($mp, $webClass);
 }
    public function bankDiscountModel()
    {
        //create the model object
        $cal = new BankDiscountModel();
        //send the webclass
        $webClass = __CLASS__;
        //run the crud utility
        Crud::run($cal, $webClass);
        ?>
<h1><?php 
        echo Lang::t($webClass);
        ?>
</h1>
<div class="row hidden-print" style="margin-bottom: 10px;">
    <?php 
        if ($obj->crud_setting['search']) {
            Crud::searchBox($arr, $webClass);
        }
        ?>
    <div class="col-md-8 col-xs-12">
        <div class="btn-group">
            <?php 
        if ($obj->crud_setting['viewall']) {
            Crud::viewAll($arr, $webClass);
        }
        ?>
            <?php 
        if ($obj->crud_setting['export']) {
            Crud::exportExcel($arr, $webClass);
        }
        ?>
            <?php 
        if ($obj->crud_setting['import']) {
            Crud::importExcel($arr, $webClass);
        }
        ?>
            <?php 
        if ($obj->crud_setting['add']) {
            Crud::AddButton($arr, $webClass);
        }
        ?>
            <?php 
        if ($obj->crud_setting['toggle']) {
            Crud::filter($arr, $webClass, $t);
        }
        ?>
            <?php 
        if ($obj->crud_setting['webservice']) {
            Crud::listWebService($arr, $webClass);
        }
        ?>
        </div>
    </div>
    <?php 
        if ($obj->crud_setting['toggle']) {
            Crud::filterButton($arr, $webClass, $t);
        }
        ?>
</div>
<div class="table-responsive">
    <table class="table table-bordered table-striped table-hover crud-table" style="background-color: white;">

        <tr>
            <?php 
        if (isset($objs[0])) {
            foreach ($objs[0] as $colom => $isi) {
                if ($colom == "removeAutoCrudClick") {
                    continue;
                }
                ?>
                <th id="sort_<?php 
                echo $colom;
                echo $t;
                ?>
"><?php 
                echo Lang::t($colom);
                ?>
</th>

                <?php 
                Crud::sortBy($arr, $webClass, "sort_" . $colom . $t, $colom);
            }
        }
        ?>
        </tr>

        <?php 
        foreach ($objs as $num => $obj) {
            ?>
            <tr id="<?php 
            echo $c;
            ?>
_<?php 
            echo $obj->{$main_id};
            ?>
">

                <?php 
            foreach ($obj as $colom => $isi) {
                if ($colom == "removeAutoCrudClick") {
                    continue;
                }
                ?>
                    <td id="<?php 
                echo $colom;
                ?>
_<?php 
                echo $obj->{$main_id};
                ?>
">
                        <?php 
                echo stripslashes($isi);
                ?>
                    </td>
                    <?php 
                if (!in_array($colom, $obj->removeAutoCrudClick)) {
                    ?>
                    <script type="text/javascript">
                        $("#<?php 
                    echo $colom;
                    ?>
_<?php 
                    echo $obj->{$main_id};
                    ?>
").click(function () {
                            openLw('<?php 
                    echo $webClass;
                    ?>
View', '<?php 
                    echo _SPPATH;
                    echo $webClass;
                    ?>
/<?php 
                    echo $c;
                    ?>
?cmd=edit&id=<?php 
                    echo $obj->{$main_id};
                    ?>
&parent_page=' + window.selected_page+'&loadagain='+$.now(), 'fade');
                        });
                    </script>
                    <?php 
                }
                ?>
                <?php 
            }
            ?>
            </tr>


        <?php 
        }
        ?>

    </table>
</div>
<div class="row hidden-print">
    <div class="col-md-12">
        <?php 
        Crud::pagination($arr, $webClass);
        ?>
    </div>
</div>
<?php 
        //        pr($mps);
    }
Exemplo n.º 30
0
 function CalendarTypeModel()
 {
     //create the model object
     $cal = new CalendarTypeModel();
     //        $cal->printColumlistAsAttributes();
     //send the webclass
     $webClass = __CLASS__;
     //run the crud utility
     Crud::run($cal, $webClass);
     //pr($mps);
 }