jQuery4PHP Current Release: v1.7.0 - Stable

jQuery version: v1.8.2

jQueryUI version: Stable (1.8.24: jQuery 1.3.2+)

jQuery4php API

JqBooklet

Hide navigator Hide source code

Chapter selector


<?php
//For use the plugin
YsJQuery::usePlugin(YsJQueryConstant::PLUGIN_JQBOOKLET);
?>

<button id="btnOpenDialog">Show Demo</button>

<?php echo YsUIDialog::initWidget('dialogId','style="display:none" title="Basic dialog"') ?>
  <?php echo YsJQBooklet::menu('custom-menu') ?>
  <?php echo YsJQBooklet::initWidget('mybook') ?>
      <?php echo YsJQBooklet::initPage('My Page 1-1', 'Chapter 1') ?>
        <h3>Yay, Chapter 1 Page 1!</h3>
      <?php echo YsJQBooklet::endPage() ?>
      <?php echo YsJQBooklet::initPage() ?>
        <h3>Yay, Chapter 1 Page 2!</h3>
      <?php echo YsJQBooklet::endPage() ?>
      <?php echo YsJQBooklet::initPage('My Page 1-3') ?>
        <h3>Yay, Chapter 1 Page 3!</h3>
      <?php echo YsJQBooklet::endPage() ?>
      <?php echo YsJQBooklet::initPage() ?>
        <h3>Yay, Chapter 1 Page 4!</h3>
      <?php echo YsJQBooklet::endPage() ?>
      <?php echo YsJQBooklet::initPage('My Page 2-1', 'Chapter 2') ?>
        <h3>Yay, Chapter 2 Page 1!</h3>
      <?php echo YsJQBooklet::endPage() ?>
      <?php echo YsJQBooklet::initPage() ?>
        <h3>Yay, Chapter 2 Page 2!</h3>
      <?php echo YsJQBooklet::endPage() ?>
      <?php echo YsJQBooklet::initPage('My Page 2-3') ?>
        <h3>Yay, Chapter 2 Page 3!</h3>
      <?php echo YsJQBooklet::endPage() ?>
      <?php echo YsJQBooklet::initPage() ?>
        <h3>Yay, Chapter 2 Page 4!</h3>
      <?php echo YsJQBooklet::endPage() ?>
  <?php echo YsJQBooklet::endWidget() ?>
<?php echo YsUIDialog::endWidget() ?>

<?php
echo
YsJQuery::newInstance()
  ->onClick()
  ->in('#btnOpenDialog')
  ->execute(
    YsUIDialog::build('#dialogId')
      ->_modal(true)
      ->_width(650)
      ->_height(510)
      ->_buttons(array(
        'Ok' => new YsJsFunction('alert("Hello world")'),
        'Close' =>  new YsJsFunction(YsUIDialog::close('this')))
       ),
    YsJQBooklet::build('#mybook')
      ->_menu('#custom-menu')
      ->_chapterSelector(true)
      ->_pageSelector(true)
  );

?>

About

Demos

jQueryUI

Plugins Support - New!

Components - New!

Project Developed by The YepSua Team
SourceForge.net