Exemple #1
0
<?php

defined('C5_EXECUTE') or die(_("Access Denied."));
$dh = Loader::helper('concrete/dashboard');
$ih = Loader::helper('concrete/interface');
echo $dh->getDashboardPaneHeaderWrapper('Colors', false, 'span8 offset2');
Loader::library('crud_display_table', 'automobiles');
$table = new CrudDisplayTable($this);
$table->addColumn('name');
$table->addAction('colors_edit', 'right', 'Edit', 'icon-pencil');
$table->addAction('colors_duplicate', 'right', 'Duplicate', 'icon-share-alt');
$table->addAction('colors_delete', 'right', 'Delete', 'icon-trash');
$table->display($colors);
echo '<p>' . $ih->button('Add New...', $this->action('colors_add'), false, 'primary') . '</p>';
echo '<hr>';
echo '<p>' . $ih->button('&lt; Back to Misc. Settings', $this->action('view'), false) . '</p>';
echo $dh->getDashboardPaneFooterWrapper();
Exemple #2
0
<?php

defined('C5_EXECUTE') or die(_("Access Denied."));
$dh = Loader::helper('concrete/dashboard');
$ih = Loader::helper('concrete/interface');
echo $dh->getDashboardPaneHeaderWrapper('Body Types', false, 'span8 offset2');
Loader::library('crud_display_table', 'automobiles');
$table = new CrudDisplayTable($this);
$table->addColumn('name');
$table->addAction('body_types_sort', 'left', 'Drag To Sort', 'icon-resize-vertical', true);
$table->addAction('body_types_edit', 'right', 'Edit', 'icon-pencil');
$table->addAction('body_types_duplicate', 'right', 'Duplicate', 'icon-share-alt');
$table->addAction('body_types_delete', 'right', 'Delete', 'icon-trash');
$table->display($body_types);
echo '<p>' . $ih->button('Add New...', $this->action('body_types_add'), false, 'primary') . '</p>';
echo '<hr>';
echo '<p>' . $ih->button('&lt; Back to Misc. Settings', $this->action('view'), false) . '</p>';
echo $dh->getDashboardPaneFooterWrapper();
Exemple #3
0
<?php

defined('C5_EXECUTE') or die(_("Access Denied."));
$dh = Loader::helper('concrete/dashboard');
$ih = Loader::helper('concrete/interface');
echo $dh->getDashboardPaneHeaderWrapper('Manufacturers', false, 'span8 offset2');
Loader::library('crud_display_table', 'automobiles');
$table = new CrudDisplayTable($this);
$table->addColumn('name', 'Name');
$table->addColumn('country', 'Country');
$table->addColumn('is_luxury', 'Luxury Brand?');
$table->addAction('manufacturers_edit', 'right', 'Edit', 'icon-pencil');
$table->addAction('manufacturers_duplicate', 'right', 'Duplicate', 'icon-share-alt');
$table->addAction('manufacturers_delete', 'right', 'Delete', 'icon-trash');
//Reformat boolean column to show "yes" or "no" instead of "1" or "0"
foreach ($manufacturers as $key => $mfg) {
    $manufacturers[$key]['is_luxury'] = $mfg['is_luxury'] ? 'yes' : 'no';
}
$table->display($manufacturers);
echo '<p>' . $ih->button('Add New...', $this->action('manufacturers_add'), false, 'primary') . '</p>';
echo '<hr>';
echo '<p>' . $ih->button('&lt; Back to Misc. Settings', $this->action('view'), false) . '</p>';
echo $dh->getDashboardPaneFooterWrapper();
Exemple #4
0
		<noscript><input type="submit" class="btn ccm-input-submit" value="Go"></noscript>
		<span class="loading-indicator" style="display:none;"><img src="<?php 
echo ASSETS_URL_IMAGES;
?>
/throbber_white_16.gif" width="16" height="16" alt="loading..." /></span>
	</form>

	<?php 
if (!empty($body_type_id)) {
    ?>
	
		<hr>
	
		<?php 
    Loader::library('crud_display_table', 'automobiles');
    $table = new CrudDisplayTable($this);
    $table->addColumn('manufacturer_name', 'Manufacturer');
    $table->addColumn('year', 'Model Year');
    $table->addColumn('name', 'Name');
    $table->addAction('edit', 'right', 'Edit', 'icon-pencil');
    $table->addAction('duplicate', 'right', 'Duplicate', 'icon-share-alt');
    $table->addAction('delete', 'right', 'Delete', 'icon-trash');
    $table->display($cars);
    ?>
	
		<p><?php 
    echo $ih->button("Add New {$body_type_options[$body_type_id]}...", $this->action('add', $body_type_id), false, 'primary');
    ?>
</p>
	
	<?php