function index()
 {
     $layout_id = "PageComment";
     $file = Layout::getFile($layout_id);
     //        echo "Pages/".$layout_id."/".$file;
     Mold::theme("Pages/" . $layout_id . "/" . $file, $arr);
 }
 public function page3()
 {
     //create the model object
     $cal = new Page();
     //send the webclass
     $webClass = __CLASS__;
     $_SESSION['pageConID'] = "";
     //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;
     }
     //run the crud utility
     Crud::run($cal, $webClass);
     //pr($mps);
 }
 public function matapelajaran()
 {
     $klslevel = isset($_GET['klslevel']) ? addslashes($_GET['klslevel']) : 1;
     //$kls = new Kelas();
     //$kls->getByID($id);
     $mp = new Matapelajaran();
     $mp_id = isset($_GET['mp_id']) ? addslashes($_GET['mp_id']) : die('MP ID empty');
     $mp->getByID($mp_id);
     //get quizes
     $quiz = new Quiz();
     $whereClause = "quiz_guru_id = guru_id AND quiz_mp_id = '{$mp_id}' AND quiz_tingkatan = '{$klslevel}' ORDER BY quiz_create_date DESC";
     $arrTables = array("Guru");
     $arrQuiz = $quiz->getWhereFromMultipleTable($whereClause, $arrTables);
     //pr($arrQuiz);
     //get topicmaps
     $tm = new Topicmap();
     $whereClause = "tm_guru_id = guru_id AND tm_mp_id = '{$mp_id}'  AND tm_kelas_tingkatan  = '{$klslevel}' ORDER BY tm_updatedate DESC";
     $arrTables = array("Guru");
     $arrTM = $tm->getWhereFromMultipleTable($whereClause, $arrTables);
     //pr($arrTM);
     $return["mp"] = $mp;
     $return['kelas'] = $kls;
     $return['webClass'] = __CLASS__;
     $return['method'] = __FUNCTION__;
     $return['klslevel'] = $klslevel;
     $return['arrQuiz'] = $arrQuiz;
     $return['arrTM'] = $arrTM;
     Mold::both("elearning/mp_profile", $return);
     //pr($mp);
 }
 function withFB()
 {
     if (Auth::isLogged()) {
         die('Hacking Attempt');
     }
     Mold::theme("Register/register_with_fb");
 }
示例#5
0
 function footer()
 {
     $layout_id = "Menu_footer";
     $file = Layout::getFile($layout_id);
     //        echo "Pages/".$layout_id."/".$file;
     Mold::theme("Pages/" . $layout_id . "/" . $file, $arr);
 }
 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);
 }
 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 function myHomeroomTeacher()
 {
     $ta = TahunAjaran::ta();
     $kelas = Account::getMyKelas($ta);
     $guru = new Guru();
     $row = $guru->getHomeroomFromKelas($ta, $kelas->kelas_id);
     $guru->fill(toRow($row));
     //pr($guru);
     Mold::both("leap/homeroom_widget", array("guru" => $guru, "kelas" => $kelas));
 }
 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 loginForm()
 {
     //check apakah ada cookie untuk remember
     Auth::indexCheckRemember();
     if (Auth::isLogged()) {
         // kl sukses login pakai cookie
         //load school setting
         //$ss = new Schoolsetting();
         //$ss->loadToSession();
         Hook::processHook($this->login_hook);
         Account::setRedirection();
     }
     //kalau tidak ada keluarkan loginform
     Mold::plugin("AccountLogin", "loginform");
 }
 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);
 }
示例#14
0
    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;
    }
<h1><?php 
echo $kelas->kelas_name;
?>
    <small><?php 
echo $ta;
?>
</small>
</h1>
<?php 
//print if user is supervisor, so that he can select which class he want to see
if ($selectKelas) {
    ?>
    <div class="row" style="margin-bottom: 10px;">
        <div class="col-md-12">
            <?php 
    //select on kelas
    $urlOnChange = _SPPATH . $webClass . "/" . $method . "?d=1";
    Selection::kelasSelector($kelas, $urlOnChange);
    ?>
        </div>
    </div>
<?php 
}
// Iterate Students
foreach ($arrMurid as $murid) {
    //Molding design for each Students
    Mold::both("murid/printEinzelAsBadge", array("murid" => $murid, "nrRow" => $nrRow));
}
?>
<div style="clear: both;"></div>
                        $("#walllist<?=$t;?>").html('<?=Lang::t('No more result');?>');
                    } else {

                        $("#walllist<?=$t;?>").html(data);
                    }

                });
        });
    </script>*/
?>
    
    <div id="walllist">
        <?php 
foreach ($arrWall as $m) {
    //pr($m);
    Mold::plugin("Wall", "einzel_post", array("m" => $m, "typ" => $type, "klsid" => $kelas_id, "newFor" => $newFor));
}
?>
    </div>
<?php 
$nmore = isset($_GET['nomoreresults']) ? addslashes($_GET['nomoreresults']) : 'no';
if ($nmore != "yes") {
    ?>
    <div class="loadmore" style="padding:10px; text-align: center;">
    <span style="padding:10px; cursor: pointer; color: #777; background-color: #fff; border-radius: 5px;"
          id="loadmoreb<?php 
    echo $t;
    ?>
">
        <?php 
    echo Lang::t('show more results');
 public function viewNilaiGraph()
 {
     $ta = isset($_GET['ta']) ? addslashes($_GET['ta']) : TahunAjaran::ta();
     $murid_id = $_GET['murid_id'];
     $matapelajaranID = $_GET['matapelajaranID'];
     $nilai = new Nilai($ta, "", $matapelajaranID, "");
     $return['webClass'] = __CLASS__;
     $return['method'] = __FUNCTION__;
     $return['ta'] = $ta;
     $return['murid_id'] = $murid_id;
     $return['matapelajaranID'] = $matapelajaranID;
     $return['graph'] = $nilai->getNilaiNachSubject($murid_id, $matapelajaranID, $ta);
     Mold::both("studentsetup/graphnilai", $return);
 }
    <script type="text/javascript">
        $("#commmentformv<?php 
echo $t;
?>
").click(function () {
            $('#myModalLabel').empty().append('<?php 
echo Lang::t('Write your reply');
?>
');
            $('#myModalBody').load('<?php 
echo _SPPATH;
?>
WallPortalWeb/viewcomment?cmd=form&typ=kelas&klsid=<?php 
echo $klsid;
?>
&wid=<?php 
echo $wall->wall_id;
?>
');
        });
    </script>
    <div style="padding: 10px;">
<?php 
foreach ($mwc as $c) {
    Mold::plugin("Wall", "einzel_comment", array("c" => $c));
}
//pr($arr);
?>
  <div class="clearfix"></div>
    </div>
    </div>
示例#19
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{
示例#20
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);
 }
 public function viewcomment()
 {
     //$ta = TahunAjaran::ta();
     $wid = isset($_GET['wid']) ? addslashes($_GET['wid']) : '';
     $klsid = isset($_GET['klsid']) ? addslashes($_GET['klsid']) : '';
     $typ = isset($_GET['typ']) ? addslashes($_GET['typ']) : '';
     $cmd = isset($_GET['cmd']) ? addslashes($_GET['cmd']) : 'view';
     $return['webClass'] = __CLASS__;
     $return['method'] = __FUNCTION__;
     //$return['ta'] = $ta;
     $return["klsid"] = $klsid;
     if ($cmd == "form") {
         $return["typ"] = $typ;
         $return['id'] = $wid;
         $return['mode'] = "viewcomment";
         Mold::plugin("Wall", "compose", $return);
         die;
     }
     if ($cmd == "add") {
         $json['bool'] = 0;
         $json['err'] = '';
         //pr($_POST);
         if (isset($_POST['wall_msg'])) {
             $wall_msg = trim(rtrim($_POST['wall_msg']));
         }
         if ($wall_msg == '') {
             $json['err'] .= Lang::t('Message is empty');
         }
         $id = isset($_GET['id']) ? addslashes($_GET['id']) : '';
         if ($id == '') {
             $json['err'] .= Lang::t('Id is empty');
         }
         if ($json['err'] == '') {
             // am 01.10.2014,insert <embed><iframe> vom Efindi
             //$wall_msg = addslashes(strip_tags(trim(rtrim ($_POST['wall_msg'])),'<p><a><br><b><i><img><hr>'));
             $wall_msg = strip_tags(trim(rtrim($_POST['wall_msg'])), '<p><a><br><b><i><img><hr><embed><iframe>');
             //if ($typ == "kelas") {
             $wall = new WallPortalComment();
             $wall->wid = $id;
             $wall->cid_admin_nama = Account::getMyName();
             $wall->cid_admin_foto = Account::getMyFoto();
             $wall->cid_admin_id = Account::getMyID();
             //create date
             //$tgl = Wall::getDateTime();
             $wall->c_date = leap_mysqldate();
             $wall->c_text = $wall_msg;
             $json['bool'] = $wall->save();
             if ($json['bool']) {
                 $wall2 = new WallPortal();
                 $wall2->getByID($id);
                 $wall2->wall_commentcount++;
                 $wall2->wall_update = $tgl;
                 $wall2->load = 1;
                 //spy update
                 $json['bool'] = $wall2->save();
             }
             // }
         }
         die(json_encode($json));
     }
     if ($cmd == "view") {
         $mwc = new WallPortalComment();
         $whereClause = "wid = '{$wid}' ORDER BY c_date DESC";
         $arrComment = $mwc->getWhere($whereClause);
         $wall = new WallPortal();
         $wall->getByID($wid);
         $acc = new Account();
         $acc->getByID($wall->wall_from);
         $wall->acc = $acc;
         $target = $typ . "___" . $wall->wall_id;
         $foto = new Fotoajax();
         $arrFoto = $foto->getWhere("photo_target_id = '{$target}' ORDER BY photo_date DESC");
         $wall->foto = $arrFoto;
         $return['newFor'] = $this->newFor;
         $return['wall'] = $wall;
         $return['mwc'] = $arrComment;
         Mold::plugin("Wall", "viewcomment", $return);
     }
 }
示例#22
0
 public static function kerjakan($array)
 {
     global $template;
     ob_start();
     Mold::both("Atasan", $array);
     $str = ob_get_contents();
     ob_end_clean();
     $template->full_text .= $str;
 }
        <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">
                </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>
echo $t;
?>
").click(function () {
            $('#myModalLabel').empty().append('<?php 
echo Lang::t('Write your reply');
?>
');
            $('#myModalBody').load('<?php 
echo _SPPATH;
?>
wallweb/viewcomment?cmd=form&typ=kelas&klsid=<?php 
echo $klsid;
?>
&wid=<?php 
echo $wall->wall_id;
?>
');
        });
    </script>
    <h1 style="padding-top: 20px;"><?php 
echo count($mwc);
?>
 <?php 
echo Lang::t('Comments');
?>
</h1>
<?php 
foreach ($mwc as $c) {
    Mold::both("wall/einzel_comment", array("c" => $c));
}
//pr($arr);
 public static function read($obj, $webClass)
 {
     if ($obj instanceof Model) {
         $mps = $obj->read();
         $mps['webClass'] = $webClass;
         $mps = $obj->overwriteRead($mps);
         Mold::plugin("Crud", "read", $mps);
     } else {
         die('Crud hanya bisa dipakai dengan object Crud');
     }
 }
?>
    <small><?php 
echo $ta;
?>
</small>
</h1>
<?php 
if (!$muridview) {
    ?>
    <div class="row" style="margin-bottom: 10px;">
        <div class="col-md-3 col-xs-12">
            <?php 
    //select on kelas
    $urlOnChange = _SPPATH . $webClass . "/" . $method . "?dummy=1";
    Selection::kelasSelector($kelas, $urlOnChange);
    ?>
        </div>
    </div>
<?php 
}
Mold::both("wall/class_wall_einzel", $arr);
?>


<?php 
//pr($arr);
/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
echo $nrHoliday;
?>
</b></div>
    <div class='col-md-4 col-xs-6 col-sm-6 absenlegend' id="weekendcontainer"><?php 
echo Lang::t('Weekend');
?>
 : <b
            id="nrWeekend"><?php 
echo $nrWeekend;
?>
</b></div>
</div>
<div class="table-responsive">
    <table id="absentable" class="table table-bordered">
        <?php 
Mold::both("studentsetup/makeEinzelAbsen", array("murid" => $murid, "calendar" => $calendar, "numDays" => $numDays, "mon" => $mon, "year" => $year, "arrMacemAbsens" => $arrMacemAbsens, "arrCl" => $arrCl, "limithari" => $limithari, "muridview" => 1));
?>
    </table>
</div>
<div class="row" style="margin-bottom: 10px;">
    <?php 
foreach ($arrMacemAbsens as $angka => $value) {
    echo "<div class='col-md-2 col-xs-4 col-sm-3 absenlegend'>" . substr($value, 0, 1) . " = " . $value . "</div>";
}
?>
</div>
<?php 
//pr($arr);
/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
示例#29
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);
 }
                        $("#walllist<?php 
echo $t;
?>
").html(data);
                    }

                });
        });
    </script>
    <div id="walllist<?php 
echo $t;
?>
">
        <?php 
foreach ($arrWall as $m) {
    Mold::both("wall/einzel_post", array("m" => $m, "typ" => "kelas", "klsid" => $kelas_id, "newFor" => $newFor));
}
?>
    </div>
<?php 
$nmore = isset($_GET['nomoreresults']) ? addslashes($_GET['nomoreresults']) : 'no';
if ($nmore != "yes") {
    ?>
    <div class="loadmore" style="padding:10px; text-align: center;">
    <span style="padding:10px; cursor: pointer; color: #777; background-color: #fff; border-radius: 5px;"
          id="loadmoreb<?php 
    echo $t;
    ?>
">
        <?php 
    echo Lang::t('show more results');