Example #1
0
			</td>
			<td class="sys">
				<?php 
    echo Form::label('field-' . $field->name . '-checkbox', $field->key);
    ?>
			</td>
			<td>
				<?php 
    echo HTML::anchor('/backend/hybrid/field/edit/' . $field->id, $field->header, array('target' => '_blank', 'class' => 'popup fancybox.iframe'));
    ?>
			</td>
			<td>
				<?php 
    $types = $field->widget_types();
    if ($types !== NULL and $fetch_widgets === TRUE) {
        $widgets = Widget_Manager::get_related($field->widget_types(), $field->from_ds);
        if (isset($widgets[$widget->id])) {
            unset($widgets[$widget->id]);
        }
        if (!empty($widgets)) {
            $widgets = array(__('--- Not set ---')) + $widgets;
            $selected = NULL;
            if (isset($widget->doc_fetched_widgets[$field->id])) {
                $selected = $widget->doc_fetched_widgets[$field->id];
            }
            echo Form::select('field[' . $field->id . '][fetcher]', $widgets, $selected);
        }
    }
    ?>
			</td>
		</tr>
Example #2
0
        ?>
</label></th>
			<?php 
    } else {
        ?>
			<td></td>
			<th><?php 
        echo $page['title'];
        ?>
</th>
			<?php 
    }
    ?>
			<td>
				<?php 
    $widgets = Widget_Manager::get_related(array());
    if (isset($widgets[$widget->id])) {
        unset($widgets[$widget->id]);
    }
    if (!empty($widgets)) {
        $widgets = array(__('--- Not set ---')) + $widgets;
        $selected = Arr::get($widget->fetched_widgets, $page['id']);
        echo Form::select('fetched_widgets[' . $page['id'] . ']', $widgets, $selected, array('class' => 'form-control'));
    }
    ?>
			</td>
		</tr>
		<?php 
}
?>
	</tbody>