Esempio n. 1
0
 function footer()
 {
     $layout_id = "Menu_footer";
     $file = Layout::getFile($layout_id);
     //        echo "Pages/".$layout_id."/".$file;
     Mold::theme("Pages/" . $layout_id . "/" . $file, $arr);
 }
 function index()
 {
     $layout_id = "PageComment";
     $file = Layout::getFile($layout_id);
     //        echo "Pages/".$layout_id."/".$file;
     Mold::theme("Pages/" . $layout_id . "/" . $file, $arr);
 }
 function withFB()
 {
     if (Auth::isLogged()) {
         die('Hacking Attempt');
     }
     Mold::theme("Register/register_with_fb");
 }
 function map1()
 {
     $layout_id = "ContactUs";
     $file = Layout::getFile($layout_id);
     //        echo "Pages/".$layout_id."/".$file;
     Mold::theme("Pages/" . $layout_id . "/" . $file, $arr);
     //        Mold::theme("Pages/Contactus_map1");
 }
 public static function kerjakan($array)
 {
     global $template;
     ob_start();
     $layout_id = "Parallax";
     $file = Layout::getFile($layout_id);
     //       echo "Pages/".$layout_id."/".$file;
     Mold::theme("Pages/" . $layout_id . "/" . $file, $array);
     //        Mold::theme("Pages/ParallaxView1", $array);
     $str = ob_get_contents();
     ob_end_clean();
     $template->full_text .= $str;
     //exit();
 }
 function latest_deal()
 {
     $camp = new CampaignModel();
     $arr2 = $camp->getWhere("camp_active = 1 ORDER BY camp_pos_x ASC,camp_size DESC");
     //pr($arr);
     foreach ($arr2 as $cp) {
         $arrNachRow[$cp->camp_pos_x][] = $cp;
         $arrNachSize[$cp->camp_size][] = $cp;
     }
     $arr['arrNachRow'] = $arrNachRow;
     $arr['arrNachSize'] = $arrNachSize;
     $arr['camp'] = $camp;
     $layout_id = "eComm_latestdeal";
     $file = Layout::getFile($layout_id);
     //        echo "Pages/".$layout_id."/".$file;
     Mold::theme("Pages/" . $layout_id . "/" . $file, $arr);
 }
 function id($args)
 {
     list($id, $name) = $args;
     $id = tin($id);
     $gal = new Gallery();
     $gal->getByID($id);
     //        pr($gal);
     $gs = new Galleryphoto();
     $arrPic = $gs->getWhere("gallery_id = '{$id}' ORDER BY photo_zindex DESC");
     $arr['gal'] = $gal;
     $arr['id'] = $id;
     $arr['arrPic'] = $arrPic;
     $layout_id = "Gallery_id";
     $file = Layout::getFile($layout_id);
     //        echo "Pages/".$layout_id."/".$file;
     Mold::theme("Pages/" . $layout_id . "/" . $file, $arr);
     //        Mold::theme("Pages/Gallery_id",$arr);
 }
 function id($args)
 {
     list($id, $name) = $args;
     $cm = new CalendarModel();
     $ct = new CalendarTypeModel();
     $arrct = $ct->getAll();
     foreach ($arrct as $ct) {
         $arrc[$ct->cal_type_id] = $ct;
     }
     $cm->getByID(tin($id));
     $arr['entry'] = $cm;
     $arr['type'] = $arrc;
     $layout_id = "Calendar_id";
     $file = Layout::getFile($layout_id);
     //        echo "Pages/".$layout_id."/".$file;
     Mold::theme("Pages/" . $layout_id . "/" . $file, $arr);
     //        Mold::theme("Pages/Calendar_id",$arr);
 }
    function loginpage()
    {
        ?>
<html>
<head>

</head>
<body>
<?php 
        echo Lang::t($_GET['msg']);
        $layout_id = "Loginpage";
        $file = Layout::getFile($layout_id);
        //        echo "Pages/".$layout_id."/".$file;
        Mold::theme("Pages/" . $layout_id . "/" . $file, $arr);
        ?>
</body>
</html>
        <?php 
        die;
    }
Esempio n. 10
0
        <img style="margin-bottom:10px;" src="<?php 
echo _SPPATH;
?>
images/leaploader.gif"/>

        <div><?php 
echo Lang::t('lang_loading');
?>
</div>
    </div>
</div>


<?php 
Mold::theme("afterBodyJS");
Mold::theme("ajaxLoader");
?>
<!-- Navigation -->

<div class="pure-container" data-effect="pure-effect-push">
    <input type="checkbox" id="pure-toggle-left" class="pure-toggle" data-toggle="left"/>
    <label class="pure-toggle-label" for="pure-toggle-left" data-toggle-label="left"><span class="pure-toggle-icon"></span></label>

    <style>
        .account_details{
            padding-left: 15px;
            color: #ffffff;
            padding-top: 5px;
            padding-bottom: 5px;
        }
        .account_name{
    </header>
<?php 
}
?>
    <div class="container">
    <div id="lw_content" class="row" ></div>

    <div id="content_utama">
        <?php 
echo $content;
?>
    </div>
</div>

<?php 
Mold::theme("footer");
?>


<!-- cart modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog adddialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                        aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">Item(s) Added to Bag</h4>
            </div>
            <div class="modal-body" style="min-height: 230px;">
                <div id="modal_semuanya">
                    <!-- Image -->
        <div id="offcanvas_roy" class="wrapper row-offcanvas row-offcanvas-left">
            <!-- Left side column. contains the logo and sidebar -->
            <aside id='leftMainmenu' class="left-side sidebar-offcanvas hidden-print">
                <!-- sidebar: style can be found in sidebar.less -->
                <section class="sidebar">
                    <!-- Sidebar user panel -->
                    <!--<div class="user-panel">
                        
                        <div class="info" >
                    <?php 
echo Account::getMyName();
?>
                        </div>
                    </div>-->
                    <?php 
Mold::theme("leftmenu");
?>
                    <!-- sidebar menu: : style can be found in sidebar.less -->

                </section>
                <!-- /.sidebar -->
            </aside>

            <!-- Right side column. Contains the navbar and content of the page -->
            <aside id="section_content" class="right-side">


                <!-- Main content -->
                <section class="content">
                    <div id="lw_content" class="row"></div>
                    <div id="content_utama">
Esempio n. 13
0
 function viewme($id, $classname, $classID)
 {
     //        echo "List : ".$id." ".$classname." ".$classID;
     $id = tin($id);
     $list = new Lists();
     $list->getByID($id);
     $li = new ListItem();
     $arrLi = $li->getWhere("list_parent_id = '{$id}' ORDER BY list_urutan DESC");
     $arr['list'] = $list;
     $arr['arrLi'] = $arrLi;
     $layout_id = $list->list_layout;
     $file = Layout::getFile($layout_id);
     //        echo "Pages/".$layout_id."/".$file;
     Mold::theme("Pages/" . $layout_id . "/" . $file, $arr);
     //pr($list);
 }
Esempio n. 14
0
 public function p($arg)
 {
     list($id, $judul) = $arg;
     $arrkirim = array();
     if ($id < 1 || $id == "") {
         die("NO ID");
     }
     $_SESSION['hist_prod'] = array("id" => $id, "judul" => $judul);
     $_SESSION['hist_url'] = _LANGPATH . "pwa/p/{$id}/" . urlencode($judul);
     $p = new ProdModel();
     $p->getByID($id);
     if ($p->prod_active < 1) {
         header("Location:" . _LANGPATH . "p404");
         exit;
     }
     global $template;
     $template->title = $p->prod_name;
     $src = self::getMainPic($p);
     if ($p->prod_diskon > 0) {
         $hrgbaru = ceil((100 - $p->prod_diskon) / 100 * $p->prod_price);
     } else {
         $hrgbaru = $p->prod_price;
     }
     $cp = new CampaignProdMatrix();
     $arr = $cp->getWhere("cm_prod_id = '{$id}'");
     $cp_id = $arr[0]->cm_camp_id;
     $cp = new CampaignModel();
     $cp->getByID($cp_id);
     $cw = new Cw();
     //		$cw->campaign_header($cp_id, $cp);
     //process image
     $exp = explode(",", $p->prod_pic);
     $sudah = array();
     $arrImg = array();
     if (count($exp) > 1) {
         $if = new InputFileModel();
         foreach ($exp as $num => $img) {
             if (!in_array($img, $sudah)) {
                 $sudah[] = $img;
                 $srcs = _SPPATH . $if->upload_url . "thumbnail/" . $img;
                 $srcs_big = _SPPATH . $if->upload_url . $img;
                 $cl = 'class="nonaktif"';
                 if ($src["thumbs"] == $srcs) {
                     $cl = 'class="aktif"';
                 }
                 //                    $id = base64_encode($srcs);
                 $arrImg[$num] = array($srcs, $srcs_big, $cl);
             }
         }
     }
     //process category
     $cat = new ProdCat();
     $cat->getByID($p->prod_cat_id);
     $arrParent = array();
     $arrpp = ProdCat::getAllParents($cat->cat_parent_id, $arrParent);
     //pr($arrpp);
     $arrpp2 = array_reverse($arrpp);
     foreach ($arrpp2 as $bc) {
         $str[] = $bc->cat_name;
     }
     $str[] = $cat->cat_name;
     //        $str2 = "<a href='" . _LANGPATH . "pwa/category/" . urlencode($cat->cat_name) . "'>".$cat->cat_name . "</a>";
     //bypass roy
     //$str2 = $cat->cat_name;
     $arrCat = $str;
     $arrkirim['p'] = $p;
     $arrkirim['id'] = $id;
     $arrkirim['cp'] = $cp;
     $arrkirim['arrImg'] = $arrImg;
     $arrkirim['arrCat'] = $arrCat;
     $arrkirim['hargaafterdiskon'] = $hrgbaru;
     $arrkirim['src'] = $src;
     $layout_id = "eComm_product";
     $file = Layout::getFile($layout_id);
     //        echo "Pages/".$layout_id."/".$file;
     Mold::theme("Pages/" . $layout_id . "/" . $file, $arrkirim);
 }
Esempio n. 15
0
                </div>
            </div>
        </div>
    </div>
</div>


<script>
 new WOW().init();
</script>
<?php 
Mold::theme("modalLoader");
?>
<!-- Load JS here for greater good =============================-->
<?php 
Mold::theme("analytics");
?>
<script src="<?php 
echo _SPPATH;
echo _THEMEPATH;
?>
/js/bootstrap.min.js"></script>
<script type="text/javascript" src="<?php 
echo _SPPATH;
?>
js/viel-windows-jquery.js"></script>
<script type="text/javascript" src="<?php 
echo _SPPATH;
?>
js/salvattore.min.js"></script>
Esempio n. 16
0
 function campaign($args)
 {
     list($id, $title, $page) = $args;
     $pc = new CampaignProdMatrix();
     //pagination
     if ($page < 1 || $page == "") {
         $page = 1;
     }
     $limit = 21;
     $begin = ($page - 1) * $limit;
     $link = _SPPATH . "cw/campaign/{$id}/" . urlencode($title) . "/|x|";
     $jml = $pc->getJumlah("cm_camp_id = '{$cp->camp_id}'");
     $_SESSION['hist_url'] = _LANGPATH . "cw/campaign/{$id}/" . urlencode($title) . "/|x|";
     //end pagination
     $cp = new CampaignModel();
     $cp->getByID($id);
     //        $this->campaign_header($id,$cp);
     //pr($cp);
     $arr2 = $pc->getWhereFromMultipleTable("cm_camp_id = '{$id}' AND cm_prod_id = prod_id AND prod_active = 1 ORDER BY cm_latest_added DESC LIMIT {$begin},{$limit}", array("ProdModel"));
     $arr['cp'] = $cp;
     $arr['page'] = $page;
     $arr['jml'] = $jml;
     $arr['prods'] = $arr2;
     $arr['limit'] = $limit;
     $arr['link'] = $link;
     $layout_id = "eComm_campaign";
     $file = Layout::getFile($layout_id);
     //        echo "Pages/".$layout_id."/".$file;
     Mold::theme("Pages/" . $layout_id . "/" . $file, $arr);
 }
 public function id($args)
 {
     //        pr($args);
     /*
      * begin the calculation
      */
     $url = addslashes($_GET['jurusan']);
     //        echo $url;
     global $activeLang;
     //        pr($activeLang);
     $langtext = "";
     if (count($activeLang) > 0) {
         $sl = Lang::getLang();
         $langtext = "AND post_lang = '{$sl}'";
     }
     //        echo $langtext;
     $pg = new Page();
     $arrPage = $pg->getWhere("post_url = '{$url}' AND post_status = 'publish' {$langtext}");
     $pg = $arrPage[0];
     //pr($arrPage);
     if ($pg->post_url == "") {
         $pg = new Page();
         $arrPage = $pg->getWhere("post_url = '{$url}' AND post_status = 'publish'");
         if (count($arrPage) > 0) {
             $pg = $arrPage[0];
             if ($pg->post_link == "" || $pg->post_link == '0') {
                 ?>
                 <div class="alert alert-warning language_disclaimer" role="alert">
                     <?php 
                 echo Efiwebsetting::getData('Language_Disclaimer');
                 ?>
                 </div>
             <?php 
             }
         } else {
             Redirect::p404();
         }
     }
     //            Redirect::p404();
     //die('die');
     //pr($pg);
     $page = $pg;
     // isi semua meta tag dan title
     $this->isiMeta($pg);
     $json = "";
     if ($pg->post_attachments != "") {
         $json = json_decode(stripslashes($pg->post_attachments));
     }
     //pr($json);
     if ($pg->post_attachment_order == "") {
         $pa = \Efiwebsetting::getData('PageAttachment');
     } else {
         $pa = $pg->post_attachment_order;
     }
     $exp = explode(",", $pa);
     $dimatikan_animasi_header = 1;
     foreach ($exp as $p) {
         if ($p == "Page") {
             if ($pg->post_link != "" && $pg->post_link != '0') {
                 $_SESSION['pageObj'] = $page;
                 //kalau ada link
                 $arrSp = Registor::getFeatureStartPage();
                 list($cname, $fname) = $arrSp[$pg->post_link];
                 $new = new $cname();
                 $new->{$fname}();
             } else {
                 $arr['page'] = $page;
                 $arr['dimatikan_animasi_header'] = $dimatikan_animasi_header;
                 $layout_id = "Page_id";
                 $file = Layout::getFile($layout_id);
                 Mold::theme("Pages/" . $layout_id . "/" . $file, $arr);
             }
         } else {
             if (array_key_exists($p, $json) && $json->{$p} > 0) {
                 $paralax = new $p();
                 $paralax->viewme($json->{$p}, "Page", $page->ID);
                 if (contains($p, array("Parallax", "Carousel"))) {
                     $dimatikan_animasi_header = 0;
                 }
             }
         }
     }
     //
     //        //cek Parallax plg atas
     //        if(array_key_exists("ParallaxModel",$json) && $json->ParallaxModel>0){
     //            $paralax = new ParallaxModel();
     //            $paralax->viewme($json->ParallaxModel);
     //            $dimatikan_animasi_header = 0;
     //        }
     //
     //        //cek carousel
     //        if(array_key_exists("GalleryCarousel__view",$json) && $json->GalleryCarousel__view>0){
     //            $cr = new GalleryCarousel();
     //            $cr->viewme($json->GalleryCarousel__view);
     //            $dimatikan_animasi_header = 0;
     //        }
     //
     //
     //
     //        if(array_key_exists("Gallery__view",$json)&&$json->Gallery__view>0){
     //
     //            $cr = new Gallery();
     //            $cr->viewme($json->Gallery__view);
     //
     //        }
     //        if(array_key_exists("CalendarWeb__view",$json)&&$json->CalendarWeb__view>0){
     //
     //            $cr = new CalendarModel();
     //            $cr->viewme($json->CalendarWeb__view);
     //
     //        }
     //        if(array_key_exists("CalendarWeb__viewtype",$json)&&$json->CalendarWeb__viewtype>0){
     //
     //            $cr = new CalendarTypeModel();
     //            $cr->viewme($json->CalendarWeb__viewtype);
     //
     //        }
     //        if(array_key_exists("PageComment__loadcomment",$json)&&$json->PageComment__loadcomment>0){
     //
     //            $cr = new PageComment();
     //            $cr->viewme($json->PageComment__loadcomment,$pg->ID);
     //
     //        }
 }
Esempio n. 18
0
        </div>
      </div>

    </div> <!-- /container -->

<div
    class="fb-like"
    data-share="true"
    data-width="450"
    data-show-faces="true">
</div>

   


<?php 
Mold::theme("modalLoader");
?>
<!-- Load JS here for greater good =============================-->

<script src="<?php 
echo _SPPATH;
echo _THEMEPATH;
?>
/js/bootstrap.min.js"></script>
<script type="text/javascript" src="<?php 
echo _SPPATH;
?>
js/viel-windows-jquery.js"></script>
</body>
</html>
    public function details()
    {
        $po = addslashes($_GET['po']);
        if ($po < 1 || $po == "") {
            die("Hacking Attempt");
        }
        $CartModel = new CartModel();
        $CartModel->getByID($po);
        if (!Role::hasRole('admin')) {
            if (Account::getMyID() != $CartModel->userid) {
                die('Hacking Attempt');
            }
        }
        ?>

<html>
<head>
	<meta charset="UTF-8">
	<title>PO Nr.<?php 
        echo $CartModel->po_id;
        ?>
</title>


	<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no'
	      name='viewport'>
	<link href="<?php 
        echo _SPPATH;
        echo _THEMEPATH;
        ?>
/css/bootstrap.min.css"
	      rel="stylesheet">
	<link rel="icon"
	      type="image/png"
	      href="<?php 
        echo _SPPATH;
        ?>
kcfinder/favicon.ico" />
	<!--set all paths as javascript-->

	<script src="<?php 
        echo _SPPATH;
        ?>
js/jquery-1.11.1.js"></script>

	<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
	<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
	<!--[if lt IE 9]>
	<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
	<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
	<![endif]-->
	<?php 
        //load default css
        Mold::theme("css");
        //PortalTemplate::headercss();
        ?>
	<style>
		<?php 
        //load custon css
        echo ThemeReg::mod("custom_css", "", "text");
        ?>
                .order_detail{
                    padding-bottom: 5px;
                    font-size: 15px;
                    text-align: right;
                }
                .rp{
                    text-align: right
                }
                h3{
                    padding-top:30px;
                }
	</style>
</head>
<body>
 <div id="holderall"
     class="container">
	<div id="lw_content"></div>

	<div id="content_utama">

		<h1 class="beli" style="text-align: center; padding-bottom: 30px;">
                    <img src="<?php 
        echo _SPPATH;
        ?>
images/belicom-trans.png" height="40px" align="absmiddle"> &nbsp;
                    PO Nr.<?php 
        echo $CartModel->po_id;
        ?>
</h1>
<div class="col-md-8 col-md-offset-2 ">
    <div class="bb" style="padding-left: 30px; padding-right: 30px; padding-bottom: 30px;">

        <div class="order_detail">
            Order ID : <?php 
        echo $CartModel->po_id;
        ?>
        </div>
         <div class="order_detail">
             Order Date : <?php 
        echo indonesian_date($CartModel->po_date);
        ?>
        </div>


        <table class="table table-bordered">
            <thead>
                <tr>
                    <th>Nr.</th>
                    <th>Items</th>
                    <th>Qty</th>
                    <th>Harga</th>
                </tr>
            </thead>

                    <?php 
        $nr = 0;
        $arrbulk = json_decode($CartModel->po_pesanan_bulk);
        foreach ($arrbulk as $bulk) {
            $nr++;
            $ids = $bulk->id;
            $qty = $bulk->qty;
            $imp = explode(",", $ids);
            ?>
<tr>
                                <td><?php 
            echo $nr;
            ?>
</td>
                                <td><?php 
            $hargabulk = 0;
            foreach ($imp as $prod_id) {
                $p = new ProdModel();
                $p->getByID($prod_id);
                echo $p->prod_name . "<br>";
                $hargabulk += $p->prod_bulk_price;
            }
            ?>
                                </td>
                                <td><?php 
            echo $qty;
            ?>
</td>
                                <td class="rp">Rp.<?php 
            echo rupiah($hargabulk * $qty);
            ?>
</td>
                            </tr>
                               <?php 
        }
        $arrretail = json_decode($CartModel->po_pesanan_retail);
        //pr($arrretail);
        foreach ($arrretail as $bulk) {
            $nr++;
            $ids = $bulk->id;
            $qty = $bulk->qty;
            $p = new ProdModel();
            $p->getByID($ids);
            ?>
                            <tr>
                                <td><?php 
            echo $nr;
            ?>
</td>
                                <td><?php 
            echo $p->prod_name;
            ?>
                                </td>
                                <td><?php 
            echo $qty;
            ?>
</td>
                                <td class="rp">Rp.<?php 
            echo rupiah($p->prod_satuan_price * $qty);
            ?>
</td>
                            </tr>
                               <?php 
        }
        ?>

                            <tr>
                                <td colspan="3">

                                </td>
                                <td class="rp">Rp.<?php 
        echo rupiah($CartModel->total_goodcost);
        ?>
</td>
                            </tr>
                            <tr>
                                <td colspan="3">
                                    Shipping Cost (JNE <?php 
        echo strtoupper($CartModel->jne_type);
        ?>
)
                                </td>
                                <td class="rp">Rp.<?php 
        echo rupiah($CartModel->total_shipcost);
        ?>
</td>
                            </tr>
                            <tr>
                                <td colspan="3">
                                    Total Cost
                                </td>
                                <td class="rp">Rp.<?php 
        echo rupiah($CartModel->total_cost);
        ?>
</td>
                            </tr>
        </table>
        <h3>Penerima</h3>
        <table class="table table-bordered">
            <tr>
                <td>Nama</td>
                <td><?php 
        echo $CartModel->po_name;
        ?>
</td>
            </tr>
            <tr>
                <td>HP</td>
                <td><?php 
        echo $CartModel->po_mobile;
        ?>
</td>
            </tr>
            <tr>
                <td>Alamat</td>
                <td><?php 
        echo $CartModel->po_address;
        ?>
</td>
            </tr>

            <tr>
                <td>Kota</td>
                <td><?php 
        echo $CartModel->city;
        ?>
</td>
            </tr>
            <tr>
                <td>Propinsi</td>
                <td><?php 
        $prop = $CartModel->prop;
        $lok = new LokasiIndoModel();
        $arrp = $lok->getWhere("lokasi_propinsi='{$prop}' and lokasi_kabupatenkota=0 and lokasi_kecamatan=0 and lokasi_kelurahan=0");
        echo $arrp[0]->lokasi_nama;
        ?>
</td>
            </tr>
        </table>
        <h3>Pengirim</h3>
        <table class="table table-bordered">
            <tr>
                <td>Nama</td>
                <td><?php 
        echo $CartModel->pengirim_name;
        ?>
</td>
            </tr>
            <tr>
                <td>HP</td>
                <td><?php 
        echo $CartModel->pengirim_mobile;
        ?>
</td>
            </tr>

        </table>
    </div>


</div>
<div class="clearfix"></div>
	</div>
</div>

    </body>
</html>


         <?php 
    }
<!-- Control Sidebar Toggle Button -->
<!--<li>-->
<!--    <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>-->
<!--</li>-->
</ul>
</div>

</nav>
</header>
<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">

        <?php 
Mold::theme("leftmenu_home");
?>

    </section>
    <!-- /.sidebar -->
</aside>

<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">

    <!-- baru dari roy 17 dec 2015 -->
    <div id="success_permanent" class="lw_alert" style="display: none;">
    <div id="success_permanent_alert" class="alert alert-success">
        <a href="#" class="close" data-hide="alert" aria-label="close">&times;</a>
        <span id="success_permanent_span"></span>
    </div>
 function viewme($id, $classname, $classID)
 {
     $this->getByID($id);
     $gp = new Galleryphoto();
     $arrCar = $gp->getWhere("photo_filename !='' AND gallery_id = '{$this->gallery_id}'  ORDER BY photo_zindex DESC ");
     //pr($arrCar);
     $arr['id'] = $id;
     $arr['arrCar'] = $arrCar;
     //        Mold::theme("Pages/Carousel_attachment",$arr);
     $layout_id = "Carousel_attachment";
     $file = Layout::getFile($layout_id);
     //        echo "Pages/".$layout_id."/".$file;
     Mold::theme("Pages/" . $layout_id . "/" . $file, $arr);
 }
    <script src="<?php 
echo _SPPATH;
?>
js/jquery-1.11.1.js"></script>
    <?php 
$this->getHeadfiles();
?>
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->
    <?php 
//load default css
Mold::theme("css");
//PortalTemplate::headercss();
?>
    <style>
        body{
            font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
        }
        .container{
            width: 1050px;
        }
        /* Extra small devices (phones, less than 768px) */
        /* No media query since this is the default in Bootstrap */

        /* Small devices (tablets, 768px and up) */
        @media (max-width: 768px) {
            .monly{
 function viewme($active, $classname, $classID)
 {
     $layout_id = "PageComment";
     $file = Layout::getFile($layout_id);
     //        echo "Pages/".$layout_id."/".$file;
     Mold::theme("Pages/" . $layout_id . "/" . $file, $arr);
     //        echo "comentar ".$active." ".$classname." ".$classID;
 }
Esempio n. 24
0
 function category($args)
 {
     list($id) = $args;
     $id = urldecode($id);
     $page = isset($_GET['page']) ? tin($_GET['page']) : 1;
     $limit = 10;
     $begin = ($page - 1) * $limit;
     //echo "<br><br><br><br>ID ".$id;
     $bm = new BlogModel();
     $arrB = $bm->getWhere("topic_category LIKE '%{$id}%' AND topic_status = 'publish' ORDER BY topic_date DESC LIMIT {$begin},{$limit}");
     $jml = $bm->getJumlah("topic_category LIKE '%{$id}%' AND topic_status = 'publish'");
     $bc = new BlogCategory();
     $bc->getByID($id);
     //categort
     $this->isiMetaCategory($bc);
     $dis = $bc->getWhere("cat_active=1");
     $jmlpage = ceil($jml / $limit);
     //        pr($arrB);
     //        pr($dis);
     $arr['posts'] = $arrB;
     $arr['cat'] = $dis;
     $arr['page'] = $page;
     $arr['begin'] = $begin;
     $arr['limit'] = $limit;
     $arr['jmlpage'] = $jmlpage;
     $arr['jml'] = $jml;
     $arr['bc'] = $bc;
     $directory = get_called_class() . "_" . __FUNCTION__;
     //        echo "<br><br><br>";
     //        echo $directory;
     //        Mold::theme("Pages/".$directory.)
     $layout_id = "Blog_category";
     $file = Layout::getFile($layout_id);
     //        echo "Pages/".$layout_id."/".$file;
     Mold::theme("Pages/" . $layout_id . "/" . $file, $arr);
     //        Mold::theme("Pages/Blog_index",$arr);
 }