Exemple #1
0
<?php

/// Copyright (c) 2004-2012, Needlworks  / Tatter Network Foundation
/// All rights reserved. Licensed under the GPL.
/// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT)
define('__TEXTCUBE_IPHONE__', true);
require ROOT . '/library/preprocessor.php';
requireView('iphoneView');
$context = Model_Context::getInstance();
printMobileHTMLHeader();
if (empty($suri['id']) && empty($suri['value'])) {
    printMobileHTMLMenu('', 'list');
    $blog['entriesOnList'] = 8;
    if (!($listWithPaging = getEntriesWithPaging($blogid, $suri['page'], $blog['entriesOnList']))) {
        $listWithPaging = array(array(), array('total' => 0));
    }
    $list = array('title' => empty($suri['value']) ? getCategoryLabelById($blogid, 0) : $suri['value'], 'items' => $listWithPaging[0], 'count' => $listWithPaging[1]['total']);
    $paging = $listWithPaging[1];
    print printMobileEntryListView($list['items'], 'blog_posts_' . $suri['page'], _text('글목록'), $paging, $list['count']);
    print printMobileListNavigation($paging, 'entry');
} else {
    if (!empty($suri['id'])) {
        list($entries, $paging) = getEntryWithPaging($blogid, $suri['id']);
    } else {
        if (!empty($suri['value'])) {
            $entryPrint = true;
            list($entries, $paging) = getEntryWithPagingBySlogan($blogid, $suri['value']);
            //	printMobileHTMLHeader();
        }
    }
    printMobileHTMLMenu('', 'list');
Exemple #2
0
function printMobileSimpleMessage($message, $redirectMessage, $redirectURL, $title = '')
{
    printMobileHTMLHeader();
    printMobileHTMLMenu();
    ?>
	<div id="postSuccess" title="Successfully" class="panel">
		<div class="content ui-bar">
			<?php 
    echo htmlspecialchars($message);
    ?>
		</div>
		<a data-role="button" data-transition="reverse slide" href="<?php 
    echo $redirectURL;
    ?>
"><?php 
    echo htmlspecialchars($redirectMessage);
    ?>
</a>
	</div>
<?php 
    printMobileHTMLFooter();
}