$menu[] = '-divider-'; if ($to->status != TIMEOFF_MODEL::STATUS_ACTIVE) { $menu[] = array('href' => ci_site_url(array('admin/timeoffs/save', $to->id, 'status', TIMEOFF_MODEL::STATUS_ACTIVE)), 'title' => '<i class="fa fa-check-square-o text-success"></i> ' . lang('common_approve')); } else { $menu[] = array('href' => ci_site_url(array('admin/timeoffs/save', $to->id, 'status', TIMEOFF_MODEL::STATUS_PENDING)), 'title' => '<i class="fa fa-eye text-warning"></i> ' . $to->prop_text('status', FALSE, TIMEOFF_MODEL::STATUS_PENDING)); } /* MENU - DENY */ $menu[] = array('href' => ci_site_url(array('admin/timeoffs/save', $to->id, 'status', TIMEOFF_MODEL::STATUS_DENIED)), 'title' => '<i class="fa fa-thumbs-o-down text-muted"></i> ' . lang('common_reject')); /* MENU - DELETE */ $menu[] = '-divider-'; $menu[] = array('href' => ci_site_url(array('admin/timeoffs/delete', $to->id)), 'title' => '<i class="fa fa-times text-danger"></i> ' . lang('common_delete'), 'class' => 'hc-confirm'); ?> <?php if (!isset($_skip_title)) { ?> <a class="<?php echo $class; ?> " href="#" data-toggle="dropdown"> <?php echo $title; ?> </a> <?php } ?> <?php echo Hc_html::dropdown_menu($menu);
if (isset($m['children']) && $m['children']) { ?> <a class="dropdown-toggle" data-toggle="dropdown" href="#" title="<?php echo $link_title; ?> "> <?php echo $link_icon; echo $link_title; ?> <b class="caret"></b> </a> <?php echo Hc_html::dropdown_menu($m['children']); ?> <?php } else { ?> <?php if (isset($m['external']) && $m['external']) { ?> <a target="_blank" href="<?php echo $m['link']; ?> " title="<?php echo $link_title;