defined('BASEPATH') or exit('No direct script access allowed'); // view.php Chris Dart Mar 17, 2015 2:45:59 PM chrisdart@cerebratorium.com if (!isset($inline_edit)) { $inline_edit = FALSE; } ?> <div> <?php $buttons[] = array("text" => "Edit", "href" => site_url("asset/edit/{$asset->id}"), "class" => array("edit", "dialog"), "style" => "edit"); if ($this->ion_auth->in_group(1)) { $buttons[] = array("text" => "Delete", "href" => site_url("asset/delete"), "id" => sprintf("delete-asset_%s", $asset->id), "class" => array("asset-delete", "delete", implode(" ", get_button_style("delete")))); } if (!$is_inline) { echo create_button_bar($buttons); } ?> <h4 class='asset-header' id='asset-header_<?php echo $asset->id; ?> '> <a href="<?php echo site_url("asset/view/{$asset->id}"); ?> " id='<?php echo $asset->id; ?> '> <?php echo $asset->product;
<?php defined('BASEPATH') or exit('No direct script access allowed'); $buttons[] = array("text" => "Timesheet <i class='fa fa-clock-o'></i>", "href" => site_url("timesheet"), "style" => "default"); $buttons[] = array("text" => "New PO", "href" => site_url("po/create"), "style" => "new", "class" => "create-po create dialog"); if ($this->ion_auth->in_group(1)) { $buttons[] = array("text" => "New Asset", "href" => site_url("asset/create"), "style" => "new", "class" => "create-asset create dialog"); } ?> <?php echo create_button_bar($buttons, "toolbar");
<?php defined('BASEPATH') or exit('No direct script access allowed'); // utility.php Chris Dart Mar 17, 2015 6:34:08 PM chrisdart@cerebratorium.com $user = $this->ion_auth->user()->row(); $buttons[] = array("text" => sprintf("%s %s", $user->first_name, $user->last_name), "class" => array("edit dialog"), "href" => site_url("auth/edit_user/" . $user->id), "style" => "link"); if ($this->ion_auth->in_group(1)) { $buttons[] = array("text" => "Manage Users", "style" => "link", "href" => site_url("auth")); } $buttons[] = array("text" => "Log Out", "href" => site_url("auth/logout"), "style" => "link"); echo create_button_bar($buttons, "toolbar", array("class" => "utility"));
<table class='table'> <tbody> <?php $current_day = FALSE; foreach ($entries as $entry) { ?> <tr> <td> <?php $inline_buttons = array(); $inline_buttons[] = array("text" => "Edit", "class" => "btn-sm edit dialog insert", "href" => base_url("timesheet/edit/{$entry->id}?ajax=1"), "style" => "edit"); $inline_buttons[] = array("text" => "Next <i class='fa fa-arrow-down'></i>", "class" => "btn-sm next", "href" => base_url("timesheet/next/{$entry->id}"), "title" => "Next time entry starting at {$entry->end_time}", "style" => "btn"); ?> <?php echo create_button_bar($inline_buttons); ?> </td> <td class='day'> <?php if ($current_day != $entry->day) { echo format_date($entry->day, 'standard'); $current_day = $entry->day; } ?> </td> <td> <?php echo date('g:i a', strtotime("{$entry->day} {$entry->start_time}")); ?> </td>
function create_toolbar($buttons, $options = NULL) { return create_button_bar($buttons, "toolbar", $options); }
<td style="text-align: right"><?php echo get_as_price($item->price); ?> </td> <td style="text-align: right"><?php echo get_as_price(strval($item->item_count) * strval($item->price)); ?> </td> <?php $grand_total += $total; ?> <td class="clear"> <?php echo !$print || !$hide_details && !$approved ? create_button_bar($buttons) : ""; ?> </td> </tr> <?php } ?> </tbody> <?php if (isset($item) && !$hide_details) { ?> <tfoot> <tr> <td style="text-align: right" colspan="6">Total: <span id="total_<?php echo $item->po;
<?php $buttons[] = array("text" => "New Code", "class" => "btn-xs new-code create inline", "id" => "new-code_{$asset_id}", "style" => "new", "href" => site_url("code/create/{$asset_id}")); print create_button_bar($buttons, "toolbar"); foreach ($codes as $code) { $this->load->view("code/row", array("code" => $code)); }