
<?php


/**

 * @package     pkg_dearflip
 * @subpackage  com_dearflip
 * @since       1.0.0
 * @copyright   Copyright © 2007 Free Software Foundation, Inc. All rights reserved.
 * @license   GNU General Public License version 3 or later; see https://www.gnu.org/licenses/gpl-3.0.en.html

 */

// No direct access to this file
defined('_JEXEC') or die('Restricted Access');
JHtml::_('formbehavior.chosen', 'select');


$document = JFactory::getDocument();
/*$listOrder     = $this->escape($this->filter_order);
$listDirn      = $this->escape($this->filter_order_Dir);*/
?>

    <script>
      jQuery(document).ready(function () {
        var comClass  = jQuery(".com_dearflip")
        var addnewbtn= comClass.children().find('.button-new');
        addnewbtn.addClass("df_addbtn_class");
        var editbtn= comClass.children().find('.button-edit');
        editbtn.addClass("df_toolbarbtn_class");
        var deletebtn= comClass.children().find('.button-delete');
        deletebtn.addClass("df_toolbarbtn_class");
        deletebtn.find('.icon-delete').addClass('df_icon_border')
        editbtn.find('.icon-edit').addClass('df_icon_border');
        var comHeader=comClass.children().find('.header');
        comHeader.addClass("df_header_class")





      });
    </script>

    <style>
        .df_addbtn_class{
            background: #3071a9 !important;
            border-color: white;
        }
        .df_header_class{
            background-color: #3071a9 !important;

        }
        .df_toolbarbtn_class{
            border-color: #3071a9 !important;
        }
        .df_icon_border{
            border-color: #3071a9 !important;

        }
        /*.df_code_block{
            padding: 3px 5px 2px 5px;
            margin: 0 1px;
            width: fit-content;
            background: #eaeaea;j
        background: rgba(0,0,0,.07);
            font-size: 13px;
            font-family: Consolas,Monaco,monospace
        }*/

        .add_dfcat{
            margin:auto;
            width: 50%;

        }




    </style>
    <div class="add_dfcat">
        <form action="index.php?option=com_dearflip&view=dearflipsettings" method="post" id="adminForm" name="adminForm">
          <div class="df_table-container" style="margin: auto; width:fit-content; border: 3px solid #3071a9; padding: 20px; min-height: 450px">
            <table class="table table-striped table-hover">
                <thead>
                <tr>
                 
                    
                    <th width="75%">
                        <?php echo JHtml::_('grid.sort', 'Parameters', 'parameters'); ?>
                    </th>
                    <th width="25%">
                        <?php echo JHtml::_( 'grid.sort' , 'Values', 'values'); ?>
                    </th>
                  
                </tr>
                </thead>
                
                <tbody>
                
                
                <?php
                



                if (!empty($this->items)) :
                  $firstrow=$this->items[0];

                   
    
                    $link = JRoute::_('index.php?option=com_dearflip&task=dearflipsetting.edit&id='  . $firstrow->id);
                    
                ?>

                <tr>
                 <!-- <td>
                    <?php /*echo $this->pagination->getRowOffset($i); */?>
                  </td>-->
                  <td>
                    <?php
                    echo JText::_("COM_DEARFLIP_MANAGER_DEARFLIP_SETTING_PARAMETERS_LIST_3D_2D");
                    ?>
                    
                  </td>
                  <td>
                    <span>                      <?php
                      echo $firstrow->dfx_setting_3d_2d;
                      ?></span>
                  </td>
                </tr>
                <tr>
                  <td>
                    <?php
                    echo JText::_('COM_DEARFLIP_MANAGER_DEARFLIP_SETTING_PARAMETERS_LIST_HARD_PAGES');
                    ?>

                  </td>
                  <td>
                    <span>                      <?php
                      echo $firstrow->dfx_setting_hardpages;
                      ?>
                        </span>
                  </td>
                </tr>
                  <tr>
                    <td>
                        <?php
                        echo JText::_('COM_DEARFLIP_MANAGER_DEARFLIP_SETTING_PARAMETERS_LIST_BOOK_THUMB_TYPE');
                        ?>

                    </td>
                    <td>
                    <span>
                      <?php
                      echo $firstrow->dfx_setting_thumb_type;
                      ?>
                    </span>
                    </td>
                  </tr>


                <tr>
                  
                  <td>
                    <?php
                    echo JText::_('COM_DEARFLIP_MANAGER_DEARFLIP_SETTING_PARAMETERS_LIST_PDF_PAGE_RENDER_SIZE');
                    ?>

                  </td>
                  <td>
                    <span>                      <?php
                      echo $firstrow->dfx_setting_pdfPagerenderSize;
                      ?></span>
                  </td>
                </tr>
                <tr>
                  <td>
                    <?php
                    echo JText::_('COM_DEARFLIP_MANAGER_DEARFLIP_SETTING_PARAMETERS_LIST_AUTO_ENABLE_SOUND');
                    ?>

                  </td>
                  <td>
                    <span>
                      <?php
                      echo $firstrow->dfx_setting_autoEnableSound;
                      ?></span>
                  </td>
                </tr>

                <tr>
                  <td>
                    <?php
                    echo JText::_('COM_DEARFLIP_MANAGER_DEARFLIP_SETTING_PARAMETERS_LIST_ENABLE_DOWNLOAD');
                    ?>

                  </td>
                  <td>
                    <span>
                      <?php
                      echo $firstrow->dfx_setting_enableDownload;
                      ?></span>
                  </td>

                </tr>

                <tr>
                  <td>
                    <?php
                    echo JText::_('COM_DEARFLIP_MANAGER_DEARFLIP_SETTING_PARAMETERS_LIST_PAGE_MODE');
                    ?>

                  </td>
                  <td>
                    <span>
                      <?php
                      echo $firstrow->dfx_setting_pageMode;
                      ?></span>
                  </td>
                </tr>

                <tr>
                  <td>
                    <?php
                    echo JText::_('COM_DEARFLIP_MANAGER_DEARFLIP_SETTING_PARAMETERS_LIST_SINGLE_PAGE_MODE');
                    ?>

                  </td>
                  <td>
                    <span>                      <?php
                      echo $firstrow->dfx_setting_singlePageMode;
                      ?> </span>
                  </td>
                </tr>

                <tr>
                  <td>
                    <?php
                    echo JText::_('COM_DEARFLIP_MANAGER_DEARFLIP_SETTING_PARAMETERS_LIST_CONTROL_POSITION');
                    ?>

                  </td>
                  <td>
                    <span>                      <?php
                      echo $firstrow->dfx_setting_controlsPosition;
                      ?> </span>
                  </td>
                </tr>

                <tr>
                  <td>
                    <?php
                    echo JText::_('COM_DEARFLIP_MANAGER_DEARFLIP_SETTING_PARAMETERS_LIST_ENABLE_AUTOPLAY');
                    ?>

                  </td>
                  <td>
                      <span>
                      <?php
                      echo $firstrow->dfx_setting_enableAutoPlay;
                      ?>
                      </span>
                  </td>
                </tr>
                  <tr>
                    <td>
                        <?php
                        echo JText::_('COM_DEARFLIP_DEARFLIP_AUTOPLAY_DURATION');
                        ?>

                    </td>
                    <td>
                    <span>
                      <?php
                      echo $firstrow->dfx_setting_autoplayDuration;
                      ?>
                    </span>
                    </td>
                  </tr>
                <tr>
                  <td>
                    <?php
                    echo JText::_('COM_DEARFLIP_MANAGER_DEARFLIP_SETTING_PARAMETERS_LIST_ENABLE_AUTOPLAY_AUTOMITICALLY');
                    ?>

                  </td>
                  <td>
                    <span>
                      <?php
                      echo $firstrow->dfx_setting_enableAutoPlayAutomatically;
                      ?>
                    </span>
                  </td>
                </tr>


                  <tr>
                    <td>
                        <?php
                        echo JText::_('COM_DEARFLIP_MANAGER_DEARFLIP_SETTING_PARAMETERS_LIST_ENABLE_ANALYTICS');
                        ?>

                    </td>
                    <td>
                    <span>
                      <?php
                      echo $firstrow->dfx_setting_enableAnalytics;
                      ?>
                    </span>
                    </td>
                  </tr>
                  <tr>
                    <td>
                        <?php
                        echo JText::_('COM_DEARFLIP_MANAGER_DEARFLIP_SETTING_PARAMETERS_LIST_ENABLE_ZOOM_ON_SCROLL');
                        ?>

                    </td>
                    <td>
                    <span>
                      <?php
                      echo $firstrow->dfx_setting_enableZoomOnScroll;
                      ?>
                    </span>
                    </td>
                  </tr>


                  <tr>
                    <td>
                        <?php
                        echo JText::_('COM_DEARFLIP_DEARFLIP_BACKGROUND_COLOR');
                        ?>

                    </td>
                    <td>
                    <span>
                      <?php
                      echo $firstrow->dfx_setting_bgColor;
                      ?>
                    </span>
                    </td>
                  </tr>


                  <tr>
                    <td>
                        <?php
                        echo JText::_('COM_DEARFLIP_DEARFLIP_BACKGROUND_IMAGE');
                        ?>

                    </td>
                    <td>
                    <span>
                      <?php
                      echo $firstrow->dfx_setting_bgImage;
                      ?>
                    </span>
                    </td>
                  </tr>

                  <tr>
                    <td>
                        <?php
                        echo JText::_('COM_DEARFLIP_DEARFLIP_CONTAINER_HEIGHT');
                        ?>

                    </td>
                    <td>
                    <span>
                      <?php
                      echo $firstrow->dfx_setting_containerHeight;
                      ?>
                    </span>
                    </td>
                  </tr>

                  <tr>
                    <td>
                        <?php
                        echo JText::_('COM_DEARFLIP_DEARFLIP_PADDING_LEFT');
                        ?>

                    </td>
                    <td>
                    <span>
                      <?php
                      echo $firstrow->dfx_setting_paddingLeft;
                      ?>
                    </span>
                    </td>
                  </tr>
                  <tr>
                    <td>
                        <?php
                        echo JText::_('COM_DEARFLIP_DEARFLIP_PADDING_RIGHT');
                        ?>

                    </td>
                    <td>
                    <span>
                      <?php
                      echo $firstrow->dfx_setting_paddingRight;
                      ?>
                    </span>
                    </td>
                  </tr>

                  <tr>
                    <td>
                        <?php
                        echo JText::_('COM_DEARFLIP_DEARFLIP_FLIP_DURATION');
                        ?>

                    </td>
                    <td>
                    <span>
                      <?php
                      echo $firstrow->dfx_setting_flipduration;
                      ?>
                    </span>
                    </td>
                  </tr>

                  <tr>
                    <td>
                        <?php
                        echo JText::_('COM_DEARFLIP_DEARFLIP_ZOOM_RATIO');
                        ?>

                    </td>
                    <td>
                    <span>
                      <?php
                      echo $firstrow->dfx_setting_zoomRatio;
                      ?>
                    </span>
                    </td>
                  </tr>

                  <tr>
                    <td>
                        <?php
                        echo JText::_('COM_DEARFLIP_DEARFLIP_PAPER_STIFFNESS');
                        ?>

                    </td>
                    <td>
                    <span>
                      <?php
                      echo $firstrow->dfx_setting_paperStiffness;
                      ?>
                    </span>
                    </td>
                  </tr>

                  <tr>
                    <td>
                        <?php
                        echo JText::_('COM_DEARFLIP_DEARFLIP_MORE_CONTROLS');
                        ?>

                    </td>
                    <td>
                    <span>
                      <?php
                      echo $firstrow->dfx_setting_moreControls;
                      ?>
                    </span>
                    </td>
                  </tr>
                  <tr>
                    <td>
                        <?php
                        echo JText::_('COM_DEARFLIP_DEARFLIP_HIDE_CONTROLS');
                        ?>

                    </td>
                    <td>
                    <span>
                      <?php
                      echo $firstrow->dfx_settings_hide_controls;
                      ?>
                    </span>
                    </td>
                  </tr>

                  <tr>
                    <td>
                        <?php
                        echo JText::_('COM_DEARFLIP_DEARFLIP_DISABLE_PARTIAL_LOADING');
                        ?>

                    </td>
                    <td>
                    <span>
                      <?php
                      echo $firstrow->dfx_setting_disablePartialLoading;
                      ?>
                    </span>
                    </td>
                  </tr>

                  <tr>
                    <td>
                        <?php
                        echo JText::_('COM_DEARFLIP_DEARFLIP_PDF_PARTIAL_LOADING_CHUNCK_SIZE');
                        ?>

                    </td>
                    <td>
                    <span>
                      <?php
                      echo $firstrow->dfx_setting_pdfPartialLoadingChunkSize;
                      ?>
                    </span>
                    </td>
                  </tr>



                  <tr>
                    <td>
                        <?php
                        echo JText::_('COM_DEARFLIP_DEARFLIP_PDF_LINK_OPEN_TARGET');
                        ?>

                    </td>
                    <td>
                    <span>
                      <?php
                      echo $firstrow->dfx_setting_pdfLinkOpenTarget;
                      ?>
                    </span>
                    </td>
                  </tr>
                  <?php
                  
                  
                  endif;
                 
                  
                
                
                
              ?>
                
                

           
                </tbody>
            </table>
            
          </div>

            <input type="hidden" name="task" value=""/>
            <input type="hidden" name="boxchecked" value="0"/>
          
            <?php echo JHtml::_('form.token'); ?>
        </form></div>
