$positions = array();
?>

<div class="seb-wrapper <?php 
echo $this->uix;
?>
">
    <div class="width-70 fltlft" id="seblod-main">
        <div class="seblod">
            <div class="legend top left"><?php 
echo JText::_('COM_CCK_CONSTRUCTION_' . $this->uix) . '<span class="mini">(' . JText::_('COM_CCK_FOR_VIEW_' . $this->item->client) . ')</span>';
?>
</div>
            <?php 
$style = array('1' => '', '2' => ' hide', '3' => ' hide', '4' => ' hide', '5' => ' hide', '6' => ' hide');
Helper_Workshop::displayHeader('search', $this->item->master);
echo '<ul class="sortable connected" id="sortable1" myid="1">';
if ($this->item->client == 'order') {
    Helper_Workshop::displayPositionStatic(1, 'mainbody', '# ' . JText::_('COM_CCK_ORDER_BY'));
    if (isset($this->fields['mainbody'])) {
        foreach ($this->fields['mainbody'] as $field) {
            $type_field = '';
            if (isset($this->type_fields[$field->id])) {
                $type_field = ' c-' . $this->type_fields[$field->id]->cc;
            }
            JCck::callFunc_Array('plgCCK_Field' . $field->type, 'onCCK_FieldConstruct_Search' . $this->item->master, array(&$field, $style, $data));
            Helper_Workshop::displayField($field, $type_field);
        }
    }
    Helper_Workshop::displayPositionEnd();
} else {
Example #2
0
    <div class="<?php 
echo $this->css['w70'];
?>
" id="seblod-main">
        <div class="seblod">
            <div id="linkage_wrap"><?php 
echo JCckDev::getForm($cck['core_linkage'], 1, $config);
?>
</div>
            <div class="legend top left"><?php 
echo JText::_('COM_CCK_CONSTRUCTION_' . $this->uix) . '<span class="mini">(' . JText::_('COM_CCK_FOR_VIEW_' . $this->item->client) . ')</span>';
?>
</div>
            <?php 
$style = array('1' => '', '2' => ' hide', '3' => ' hide', '4' => ' hide', '5' => ' hide', '6' => ' hide');
Helper_Workshop::displayHeader('type', $this->item->master);
echo '<ul class="sortable connected" id="sortable1" myid="1">';
foreach ($this->positions as $pos) {
    if (isset($this->fields[$pos->name])) {
        $this->setPosition($pos->name);
        foreach ($this->fields[$pos->name] as $field) {
            $type_field = '';
            if (isset($this->type_fields[$field->id])) {
                $type_field = ' c-' . $this->type_fields[$field->id]->cc;
            }
            JCck::callFunc_Array('plgCCK_Field' . $field->type, 'onCCK_FieldConstruct_Type' . $this->item->master, array(&$field, $style, $data));
            Helper_Workshop::displayField($field, $type_field);
        }
    } else {
        $positions[] = $pos->name;
    }