Esempio n. 1
0
 /**
  * A boolean radiolist that uses bootstrap
  *
  * @param unknown_type $name
  * @param unknown_type $attribs
  * @param unknown_type $selected
  * @param unknown_type $yes
  * @param unknown_type $no
  * @param unknown_type $id
  * @return string
  */
 public static function btbooleanlist($name, $attribs = null, $selected = null, $yes = 'JYES', $no = 'JNO', $id = false)
 {
     JHTML::_('script', 'bootstrapped-advanced-ui.js', 'media/citruscart/js/');
     JHTML::_('stylesheet', 'bootstrapped-advanced-ui.css', 'media/citruscart/css/');
     $arr = array(JHtml::_('select.option', '0', JText::_($no)), JHtml::_('select.option', '1', JText::_($yes)));
     $html = '<div class="control-group"><div class="controls"><fieldset id="' . $name . '" class="radio btn-group">';
     $html .= DSCGrid::btradiolist($arr, $name, $attribs, 'value', 'text', (int) $selected, $id);
     $html .= '</fieldset></div></div>';
     return $html;
 }
Esempio n. 2
0
        // fire plugin
        $dispatcher = JDispatcher::getInstance();
        $dispatcher->trigger('onDisplayConfigFormSliders', array($item, $this->row));
        echo $this->sliders->endPanel();
        if ($i == $count - 1) {
            // echo $this->sliders->endPane();
        }
    }
}
echo $this->sliders->endPane();
?>
					</td>
					<td style="vertical-align: top; max-width: 30%;">
						
						<?php 
echo DSCGrid::pagetooltip(JRequest::getVar('view'));
?>
						
						<div id='onDisplayRightColumn_wrapper'>
							<?php 
$dispatcher = JDispatcher::getInstance();
$dispatcher->trigger('onDisplayConfigFormRightColumn', array());
?>
						</div>

					</td>
                </tr>
            </tbody>
		</table>

		<div id='onAfterDisplay_wrapper'>
Esempio n. 3
0
echo DSCGrid::sort('ID', 'tbl.product_id', @$state->direction, @$state->order);
?>
			</th>
			<th style="width:50px;">
				<?php 
echo JText::_('COM_TIENDA_IMAGE');
?>
			</th>
			<th class="title">
				<?php 
echo DSCGrid::sort('Name', 'tbl.product_name', @$state->direction, @$state->order);
?>
			</th>
			<th class="title">
				<?php 
echo DSCGrid::sort('Description', 'tbl.product_description', @$state->direction, @$state->order);
?>
			</th>
		</tr>
	</thead>
	<tfoot>
		<tr>
			<td colspan="15"><?php 
echo $page->getListFooter();
?>
</td>
		</tr>
	</tfoot>
	<tbody>
	<?php 
$k = 0;
Esempio n. 4
0
<?php

defined('_JEXEC') or die('Restricted access');
$form = @$this->form;
$row = @$this->row;
?>

<form action="<?php 
echo JRoute::_(@$form['action']);
?>
" method="post" class="adminform" name="adminForm" >

	<?php 
echo DSCGrid::checkoutnotice(@$row);
?>
	
	<fieldset>
		<legend><?php 
echo JText::_('Form');
?>
</legend>
		<table class="invisible">
			<tbody>
                <tr>
					<td valign="top">

					<?php 
// display defaults
$pane = '1';
echo $this->sliders->startPane("pane_{$pane}");
$legend = JText::_("Default Information");
Esempio n. 5
0
                <td style="text-align: center;">
                    <?php 
    echo $item->itemid;
    ?>
                </td>
				<td style="text-align: center;">
					<?php 
    echo DSCGrid::order($item->item_id);
    ?>
					<?php 
    echo DSCGrid::ordering($item->item_id, $item->ordering);
    ?>
				</td>
				<td style="text-align: center;">
					<?php 
    echo DSCGrid::enable($item->enabled, $i, 'enabled.');
    ?>
				</td>
			</tr>
			<?php 
    $i = $i + 1;
    $k = 1 - $k;
    ?>
			<?php 
}
?>
			
			<?php 
if (!count(@$items)) {
    ?>
			<tr>
Esempio n. 6
0
    <table class="adminlist" cellspacing="1">
        <thead>
            <tr>
                <th style="width: 5px;">
                    <?php 
echo JText::_("Num");
?>
                </th>
                <th style="width: 50px;">
                    <?php 
echo DSCGrid::sort('ID', "tbl." . $keyname, $state->direction, $state->order);
?>
                </th>
                <th style="text-align: left;">
                    <?php 
echo DSCGrid::sort(ucfirst($title_key), "tbl." . $title_key, $state->direction, $state->order);
?>
                </th>
            </tr>
        </thead>
        <tfoot>
        <tr>
            <td colspan="15">
                <?php 
echo $this->pagination->getListFooter();
?>
            </td>
        </tr>
        </tfoot>
        <tbody>
        <?php 
Esempio n. 7
0
 /**
  * Basic methods for a form
  * @param $tpl
  * @return unknown_type
  */
 function _form($tpl = '')
 {
     $input = JFactory::getApplication()->input;
     $model = $this->getModel();
     // get the data
     $row = $model->getItem();
     JFilterOutput::objectHTMLSafe($row);
     $this->assign('row', $row);
     // form
     $form = array();
     $controller = strtolower($this->get('_controller', $input->getString('controller', $input->getString('view'))));
     $view = strtolower($this->get('_view', $input->getString('view')));
     $task = strtolower($this->get('_task', 'edit'));
     $form['action'] = $this->get('_action', "index.php?option={$this->_option}&controller={$controller}&view={$view}&task={$task}&id=" . $model->getId());
     $form['validation'] = $this->get('_validation', "index.php?option={$this->_option}&controller={$controller}&view={$view}&task=validate&format=raw");
     $validate = JSession::getFormToken();
     //if(DSC_JVERSION == '30') { $validate = JSession::getFormToken();} else {$validate = JSession::getFormToken();}
     $form['validate'] = "<input type='hidden' name='" . $validate . "' value='1' />";
     $form['id'] = $model->getId();
     $this->assign('form', $form);
     // set the required image
     // TODO Fix this
     $required = new stdClass();
     $required->text = JText::_('LIB_DSC_REQUIRED');
     $required->image = DSCGrid::required('LIB_DSC_REQUIRED');
     $this->assign('required', $required);
 }