示例#1
0
function app_page_view()
{
    $lang = admin_getLang();
    $p = gpost('page');
    if ($lang == 'en') {
        $fpage = VWDIR . 'en/' . $p . '.php';
        //log_print($fpage);
        if (file_exists($fpage)) {
            notifbox();
            require_once $fpage;
        } else {
            echo '<div class="warnbox">Page is currently not available.</div>';
        }
    } else {
        $fpage = VWDIR . $p . '.php';
        //log_print($fpage);
        if (file_exists($fpage)) {
            notifbox();
            require_once $fpage;
        } else {
            echo '<div class="warnbox">Halaman belum tersedia.</div>';
        }
    }
    //log_print('common: fpage='.$fpage);
}
示例#2
0
<?php

require_once MODDIR . 'control.php';
require_once MODDIR . 'apps/aka.php';
$dept = gpost('departemen');
$departemen = departemen_r($dept);
// Page Selection Bar
$PSBar = new PSBar_2();
$PSBar->begin();
$PSBar->selection_departemen('penempatan', $dept);
$PSBar->end();
if (count($departemen) > 0) {
    notifbox();
    ?>
<table cellspacing="0" cellpadding="0" width="100%"><tr valign="top">
<td width="45%" style="padding-right:10px">
	<div id="loader3" class="loader" style="display:none"></div>
	<div id="data_calon" style="width:100%">
	<?php 
    require_once APPDIR . 'penempatan_calon_get.php';
    ?>
	</div>
</td>
<td width="55%" style="border-left:1px solid #fff;padding-left:10px">
	<div id="loader2" class="loader" style="display:none"></div>
	<div id="data_kelas" style="width:100%">
	<?php 
    require_once APPDIR . 'penempatan_kelas_get.php';
    ?>
	</div>
</td>