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

Custom navigation


<?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 YsUIButton::buttonTag('btnPrev', 'Anterior') ?>
  <?php echo YsUIButton::buttonTag('btnNext', 'Siguiente') ?>

  <?php echo YsJQBooklet::initWidget('mybook') ?>
      <?php echo YsJQBooklet::initPage() ?>
        <h3>Yay, Page 1!</h3>
      <?php echo YsJQBooklet::endPage() ?>
      <?php echo YsJQBooklet::initPage() ?>
        <h3>Yay, Page 2!</h3>
      <?php echo YsJQBooklet::endPage() ?>
      <?php echo YsJQBooklet::initPage() ?>
        <h3>Yay, Page 3!</h3>
      <?php echo YsJQBooklet::endPage() ?>
      <?php echo YsJQBooklet::initPage() ?>
        <h3>Yay, 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')
      ->_next('#btnNext')               
      ->_prev('#btnPrev')
  );

echo
YsUIButton::build('#btnNext, #btnPrev')->execute();
?>

About

Demos

jQueryUI

Plugins Support - New!

Components - New!

Project Developed by The YepSua Team
SourceForge.net