Esempio n. 1
0
<?php

$hola = "hola php mololongo waak";
function showView($text)
{
    require "vista.php";
}
showView($hola);
Esempio n. 2
0
<?php

$open = myUri(2);
$data = array('title' => 'Welcome', 'content' => 'article/tutor', 'uri' => $open);
showView('article/tutor_view', $data);
Esempio n. 3
0
} else {
    $Page = 1;
}
$tpl->setVariable('can_add', $canAdd);
$tpl->setVariable('can_read', $canRead);
$ezcommentsINI = eZINI::instance('ezcomments.ini');
$defaultNumPerPage = $ezcommentsINI->variable('CommentSettings', 'NumberPerPage');
$offset = ($Page - 1) * $defaultNumPerPage;
if ($Page < 1) {
    $tpl->setVariable('error_message', ezpI18n::tr('ezcomments/comment/view', 'The page parameter can\'t be minus.'));
    return showView($tpl);
}
$length = $defaultNumPerPage;
$defaultSortField = $ezcommentsINI->variable('CommentSettings', 'DefaultSortField');
$defaultSortOrder = $ezcommentsINI->variable('CommentSettings', 'DefaultSortOrder');
$sorts = array($defaultSortField => $defaultSortOrder);
$tpl->setVariable('current_page', $Page);
$tpl->setVariable('number_per_page', $defaultNumPerPage);
$tpl->setVariable('offset', $offset);
$tpl->setVariable('length', $length);
$tpl->setVariable('sort_field', $defaultSortField);
$tpl->setVariable('sort_order', $defaultSortOrder);
$uri = eZURI::instance(eZSys::requestURI());
$tpl->setVariable('uri_string', $uri->uriString());
return showView($tpl);
function showView($tpl)
{
    $Result['content'] = $tpl->fetch('design:comment/view/view.tpl');
    $Result['path'] = array(array('url' => false, 'text' => ezpI18n::tr('ezcomments/comment/view', 'Comment/View')));
    return $Result;
}
Esempio n. 4
0
<?php

$open = intval(myUri(2));
$data = array('title' => 'Welcome', 'content' => 'project/' . sprintf("%04s", $open));
showView('base_view', $data);
Esempio n. 5
0
	<option value=0>Hide
	<option value=1>Ditampilkan
	</select>
 </dd>
 </dl>
 <dl>
  <dt>Detail / Keterangan  </dt>
 <dd> 
	<textarea name='tutordetail' rows=3 class='tutordetail textbox'></textarea>
 </dd>
  <dt>Kode  </dt>
 <dd>
	<textarea name='tutorcode' rows=3 class='tutorcode textbox'></textarea>
 </dd>
 <dd style='text-align:right'><input class='btn' value='save ' type='button' onclick='saveForm()' /><br/></dd>
 </dl>
	
</form>
</div>
<div style='clear:both;padding:30px 0'></div>
<div style='width:800px;margin:auto'>

<textarea style='height:300px;width:600px'><?php 
ob_start();
showView('project/0005sql_view');
$post = ob_get_contents();
ob_end_clean();
echo htmlentities($post);
?>
</textarea>
</div>
Esempio n. 6
0
/**
 * Función maestra, a esta se llama para mostrar todo el componente
 */
function showComponent() {
  $db = dbManager::getInstance();
  showForm($db);
  showView($db);
}
Esempio n. 7
0
<?php

if (!checkLogin()) {
    redirect(my_url() . "login");
}
$data = array('title' => '%title%', 'content' => '%nama%/table_view', 'tab' => array(), 'nav' => array(), 'breadcrumb' => '%title% (%nama%)');
showView('index1_view', $data);
Esempio n. 8
0
echo my_url();
?>
assets/js/jquery-ui-1.10.3.custom.min.js"></script>
	 
	<link rel="stylesheet" href="<?php 
echo my_url();
?>
assets/css/main.css">
	<style type="text/css" title="currentStyle">
			@import "<?php 
echo my_url();
?>
assets/css/demo_page.css";
			@import "<?php 
echo my_url();
?>
assets/css/demo_table.css";
	</style>
</head>
<body>
<div class='container'> 
<?php 
showView($content . '_view');
?>
</div>
<script src="<?php 
echo my_url();
?>
assets/js/bootstrap.js"></script>
</body>
</html>
Esempio n. 9
0
            $responseExitMsg = "Exit Program!";
            session_destroy();
        } else {
            $num = (int) $getUSSD->getMessage();
            $data = json_decode(getSessionInfo($sessionId, $address), true);
            showView($USSDSessionID, getLyrics($data[$num]['track_id'], $API), $INFO);
            //deleteSessionInfo($sessionId);
        }
    } else {
        if ($getUSSD->getMessage() == 'P') {
            showView($USSDSessionID, getTracks(getContentInfo($sessionId, $address), $sessionId, $address, getPageInfo($sessionId, $address) - 1, $API), $INFO);
        } else {
            if ($getUSSD->getMessage() == 'N') {
                showView($USSDSessionID, getTracks(getContentInfo($sessionId, $address), $sessionId, $address, getPageInfo($sessionId, $address) + 1, $API), $INFO);
            } else {
                showView($USSDSessionID, getTracks($content, $sessionId, $address, 1, $API), $INFO);
            }
        }
    }
}
function getTracks($content, $sessionId, $address, $pagenum = 1, $API)
{
    $query = "http://api.musixmatch.com/ws/1.1/track.search?apikey={$API}&q=" . $content . "&page_size=10&f_has_lyrics=1&page=" . $pagenum;
    $jdata = file_get_contents($query);
    $data = json_decode($jdata, true);
    $result = "";
    $i = 1;
    $tem = "";
    foreach ($data["message"]["body"]["track_list"] as $t) {
        $result .= $i . ". " . $t["track"]["track_name"] . " - " . $t["track"]["artist_name"] . "\n";
        $tem[$i++] = array("track_id" => $t["track"]["track_id"]);
Esempio n. 10
0
<?php

ob_start();
echo '<pre>';
$f = '';
if (myUri(2) == 'edit') {
    $f = 'edit_view';
}
if (myUri(2) == 'baru') {
    $f = 'new_view';
}
if (myUri(2) == 'view') {
    $f = 'detail_view';
}
$data = array('id' => myUri(3));
showView('%nama%/' . $f, $data);
$post = ob_get_contents();
ob_end_clean();
echo $post;