示例#1
0
foreach ($formArray as $value) {
    echo '<li>' . $this->form->getLabel($value) . $this->form->getInput($value) . '</li>' . "\n";
}
?>
            </ul>

            <?php 
echo $this->form->getLabel('body');
?>
            <div class="clr"></div>

            <?php 
$jeditor = new JINCEditor('jform[body]');
$jeditor->content = $this->item->body;
if (!empty($this->item->tem_id)) {
    $jeditor->setTemplate($this->item->tem_id);
}
echo $jeditor->display();
?>
        </fieldset>
    </div>

    <div class="width-40 fltrt">

        <?php 
echo JHtml::_('sliders.start', 'jinc-sliders-' . $this->item->id, array('useCookie' => 1));
?>

        <?php 
echo JHtml::_('sliders.panel', JText::_('COM_JINC_BASIC_OPTIONS'), 'basic-options');
?>
示例#2
0
$formArray = array('id', 'name', 'subject');
foreach ($formArray as $value) {
    echo '<li>' . $this->form->getLabel($value) . $this->form->getInput($value) . '</li>' . "\n";
}
?>
            </ul>
            <?php 
echo $this->form->getLabel('body');
?>
            <div class="clr"></div>
            <?php 
jincimport('utility.jinceditor');
$editor_helper = new JINCEditor('jform[body]');
$editor_helper->content = $this->item->body;
if (!$isNew) {
    $editor_helper->setTemplate($this->item->id);
}
echo $editor_helper->display();
?>
        </fieldset>
    </div>

    <div class="width-40 fltrt">
        <fieldset class="adminform">
            <legend><?php 
echo JText::_('COM_JINC_EDIT_CSS');
?>
</legend>

            <?php 
if (!$isNew) {