<?php
defined('_JEXEC') or die('Restricted access');

/**
* @package OS CCK
* @copyright 2020 OrdaSoft.
* @author Andrey Kvasnevskiy(akbet@mail.ru),Roman Akoev (akoevroman@gmail.com)
* @link http://ordasoft.com/cck-content-construction-kit-for-joomla.html
* @description OrdaSoft Content Construction Kit
*/

$fName = $field->db_field_name;
$rand =rand();

//var_dump($lParams);
//$limit = (isset($lParams['limit_'.$fName])) ? $lParams['limit_'.$fName] : '';
// var_dump($layout_params['views']['pagenator_limit']);
$pagenator = isset($layout_params['views']['pagenator_limit'])?$layout_params['views']['pagenator_limit']:'10';
// var_dump($pagenator);
$field_tag_selected = (isset($lParams['field_tag_'.$fName])) ? $lParams['field_tag_'.$fName] : "span";

$tags[]  = JHTML::_('select.option','span','span');
$tags[]  = JHTML::_('select.option','div','div');


?>
<div id="options-field-<?php echo $fName?>">
    <div>
        <label><?php echo cck_lang_text("COM_OS_CCK_LABEL_FIELD_SHELL")?></label>
        <?php echo JHTML::_('select.genericlist',$tags, 'fi_field_tag_'.$fName,
                'size="1" class="inputbox" ', 'value', 'text', $field_tag_selected)?>
    </div>
   <!-- <div class="category-options">
        <label><?php echo cck_lang_text("COM_OS_CCK_LAYOUT_INSTANCE_LIMIT"); ?> <i title="<?php echo cck_lang_text("COM_OS_CCK_LAYOUT_INSTANCE_LIMIT_TOOLTIP")?>" class="glyphicon glyphicon-info-sign date_tooltip"></i></label>
        <input type="number" name="fi_limit_<?php echo $fName; ?>" value="<?php echo $limit; ?>" />
      </div> -->
      <div class="category-options">
        <label><?php echo cck_lang_text("COM_OS_CCK_LAYOUT_PAGE"); ?></label>
        <input type="text" name="vi_pagenator_limit"
               value="<?php echo $pagenator; ?>">
      </div>
</div>
