Esempio n. 1
0
 * Examples Index
 * @package jqmPhp
 * @filesource
 */
/**
 * Include the jqmPhp class.
 */
include '../lib/jqmPhp.php';
/**
 * Create a new jqmPhp object.
 */
$j = new jqmPhp();
/**
 * Config 'html' and 'head' tag.
 */
$j->head()->title('Examples');
/**
 * Create and config a jqmPage object.
 */
$p = new jqmPage('examples');
$p->theme('b')->title('Examples');
$p->header()->theme('a');
$p->header()->addButton('Home', './', '', 'home');
//Get the Button Added and Set Attributes
$p->header()->items()->get(1)->attribute('data-iconpos', 'notext')->attribute('rel', 'external');
/**
 * Create and config a new jqmListview object and add Items.
 */
$list1 = new jqmListview();
$list1->splitIcon('search')->splitTheme('c');
$list1->addDivider('Beginner', '2')->inset(true);
Esempio n. 2
0
 * Adding Custom JavaScript
 * @package jqmPhp
 * @filesource
 */
/**
 * Include the jqmPhp class.
 */
include '../lib/jqmPhp.php';
/**
 * Create a new jqmPhp object.
 */
$jqmPhp = new jqmPhp();
/**
 * Adding custom JavaScript to jqmHead in jqmPhp
 */
$jqmPhp->head()->title('Custom JS Example');
$jqmPhp->head()->add(new jqmScript('custom.js'));
/**
 * Create a new jqmPage object.
 */
$p = new jqmPage('custom-js');
$p->theme('b');
$p->title('Custom JS Example');
$p->header()->theme('a');
$bt = $p->header()->addButton('', 'index.php#', 'a', 'home', false, false, true);
$bt->rel('external')->attribute('data-iconpos', 'notext');
/**
 * Adding Content.
 */
$p->addContent('<h1>Adding Custom JavaScript</h1>');
$p->addContent('<p align="justify">To add a custom JS you need add the tag <b>' . htmlspecialchars('<script...></script>') . '</b>');
Esempio n. 3
0
/*
 * OpenUluh version 0.0.1
 *
 * Copyright (c) 2012-* ShadowEO / Toxus Communications Systems
 * Licensed under the GPLv3
 * You are free to modify, distribute or redistribute this code as you please
 * so long as the above copyright notice remains intact.
 */
include "lib/jqmPhp.php";
include "../libs/XBMCHelper.class.php";
include "../config/application.php";
$currentPage = basename(__FILE__);
$XBMC = new XBMCHelper();
$jqm = new jqmPhp();
$jqm->head()->title($config['AppTitle']);
$jqm->head()->add("<meta name='viewport' content='width=device-width, initial-scale=1'/>");
//	$jqm->head()->add(new jqmLink("themes/PandoraTV.min.css"));
$page = new jqmPage('index');
$page->theme('b')->title($config['AppTitle']);
$page->header()->theme('a');
$nav = $page->header()->add(new jqmNavbar(), true);
$nav->add(new jqmButton('', '', '', 'a', "index.php", 'Home', '', true));
$nav->add(new jqmButton('', '', '', 'a', 'shows.php?ac=sl', 'All Shows', '', false));
$nav->add(new jqmButton('', '', '', 'a', 'channels.php?ac=cl', 'Channels', '', false));
//$page->AddContent('<h1>Pandora TV</h1>');
$g = $page->addContent(new jqmGrid(), true);
$g->grid('b');
$ShowsList = $XBMC->RetrieveShowList();
$randshows = shuffle($ShowsList);
$column1 = 0;
Esempio n. 4
0
<?php

/*
 * OpenUluh version 0.0.1
 *
 * Copyright (c) 2012-* ShadowEO / Toxus Communications Systems
 * Licensed under the GPLv3
 * You are free to modify, distribute or redistribute this code as you please
 * so long as the above copyright notice remains intact.
 */
include "lib/jqmPhp.php";
include "../libs/XBMCHelper.class.php";
$XBMC = new XBMCHelper();
$jqm = new jqmPhp();
$jqm->head()->add('<meta name="viewport" content="width=device-width, initial-scale=1">');
$page = new jqmPage('episodes', array('data-add-back-btn=true'));
$currentPage = basename(__FILE__);
switch ($_GET['ac']) {
    case 'el':
        $ShowInfo = $XBMC->RetrieveShowInfo($_GET['id']);
        $page->theme('b')->title($ShowInfo['SeriesName']);
        $page->header()->theme('a');
        $page->AddContent("<h1>Episodes</h1>");
        //			$page->header()->addButton('Back',"#shows.php?ac=si&id=".$_GET['id'],'a', 'arrow-l');
        $list = new jqmListviem();
        $list->inset(true)->theme('a');
        //			$list->addDivider('Episodes', $XBMC->CountShows())->dividerTheme('a')->countTheme('b');
        $Shows = $XBMC->RetrieveEpisodesForShow($_GET['id']);
        foreach ($Shows as $k => $v) {
            $list->AddIcon("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;S" . $v['season'] . "E" . $v['episode'] . ": " . $v['EpisodeName'], 'episodes.php?ac=ei&id=' . $v['idEpisode'], '../getimage.php?ac=et&ri=1&w=400&h=400&id=' . $v['idEpisode']);
        }
Esempio n. 5
0
 * @package jqmPhp
 * @filesource
 */
/**
 * Include the jqmPhp class.
 */
include '../lib/jqmPhp.php';
/**
 * Create a new jqmPhp object.
 */
$j = new jqmPhp();
/**
 * Config 'html' and 'head' tag.
 */
$j->html()->doctype('html');
$j->head()->title('Example 3');
$j->head()->css('http://code.jquery.com/mobile/1.0a2/jquery.mobile-1.0a2.min.css');
$j->head()->jq('http://code.jquery.com/jquery-1.4.4.min.js');
$j->head()->jqm('http://code.jquery.com/mobile/1.0a2/jquery.mobile-1.0a2.min.js');
$j->head()->add(new jqmLink('css/custom.css'));
// Adding a custom CSS.
$j->head()->add(new jqmScript('js/custom.js'));
// Adding a custom JavaScript.
//$j->body()->attribute('onload', 'initCustom();');     // Adding a custom attribute to 'body' tag.
/**
 * Create and config a jqmPage object.
 * Most methods return the object itself allowing call
 * another method on the object in sequence.
 */
$p = new jqmPage('example-3');
$p->theme('b')->title('Example 3')->header()->addButton('Example 2', 'example-2.php#', 'a', 'arrow-l')->addButton('Example 4', 'example-4.php#', 'b', 'arrow-r')->theme('a');
Esempio n. 6
0
 * Adding custom CSS
 * @package jqmPhp
 * @filesource
 */
/**
 * Include the jqmPhp class.
 */
include '../lib/jqmPhp.php';
/**
 * Create a new jqmPhp object.
 */
$jqmPhp = new jqmPhp();
/**
 * Adding custom CSS to jqmHead in jqmPhp
 */
$jqmPhp->head()->title('Custom CSS Example');
$jqmPhp->head()->add(new jqmLink('custom.css'));
/**
 * Create a new jqmPage object.
 */
$p = new jqmPage('custom-css');
$p->theme('b');
$p->title('Custom CSS Example');
$p->header()->theme('a');
$bt = $p->header()->addButton('', 'index.php#', 'a', 'home', false, false, true);
$bt->rel('external')->attribute('data-iconpos', 'notext');
/**
 * Adding Content.
 */
$p->addContent('<h1>Adding Custom CSS</h1>');
$p->addContent('<p align="justify">To add a custom CSS you need add the tag <b>' . htmlspecialchars('<link...></link>') . '</b>');
Esempio n. 7
0
<?php

/*
 * OpenUluh version 0.0.1
 *
 * Copyright (c) 2012-* ShadowEO / Toxus Communications Systems
 * Licensed under the GPLv3
 * You are free to modify, distribute or redistribute this code as you please
 * so long as the above copyright notice remains intact.
 */
include 'lib/jqmPhp.php';
include '../libs/XBMCHelper.class.php';
include "../config/application.php";
$jqm = new jqmPhp();
$jqm->head()->title($config['AppTitle']);
$page = new jqmPage('channels');
$jqm->head()->add('<meta name="viewport" content="width=device-width, initial-scale=1">');
$page->theme('b')->title($config['AppTitle']);
$page->header()->theme('a');
$nav = $page->header()->add(new jqmNavbar(), true);
$nav->add(new jqmButton('', '', '', 'a', "index.php", 'Home', '', false));
$nav->add(new jqmButton('', '', '', 'a', 'shows.php?ac=sl', 'All Shows', '', false));
$nav->add(new jqmButton('', '', '', 'a', '#', 'Channels', '', true));
$XBMC = new XBMCHelper();
switch ($_GET['ac']) {
    case "cl":
        $list2 = new jqmListviem();
        $list2->inset(true)->theme('a');
        $list2->addDivider('Channels', $XBMC->RetrieveStudioCount())->dividerTheme('a')->countTheme('b');
        $Channels = $XBMC->RetrieveStudioList();
        $i = 0;
Esempio n. 8
0
<?php

/*
 * OpenUluh version 0.0.1
 *
 * Copyright (c) 2012-* ShadowEO / Toxus Communications Systems
 * Licensed under the GPLv3
 * You are free to modify, distribute or redistribute this code as you please
 * so long as the above copyright notice remains intact.
 */
include "lib/jqmPhp.php";
include "../libs/XBMCHelper.class.php";
include "../config/application.php";
$XBMC = new XBMCHelper();
$jqm = new jqmPhp();
$jqm->head()->add('<meta name="viewport" content="width=device-width, initial-scale=1"/>');
$jqm->head()->add('<style> .ui-content { padding: 0px; }</style>');
if ($_GET['ac'] == "si") {
    $page = new jqmPage('shows', array('data-add-back-btn=true'));
} elseif ($_GET['ac'] == "csl") {
    $page = new jqmPage('shows', array('data-add-back-btn' => 'true'));
} else {
    $page = new jqmPage('shows');
}
$currentPage = basename(__FILE__);
switch ($_GET['ac']) {
    case 'csl':
        $page->theme('b')->title('Shows');
        $page->header()->theme('a');
        $nav = $page->header()->add(new jqmNavbar(), true);
        //			$page->AddContent('<div style="padding: 15px;">');