Exemplo n.º 1
0
function last_logged_change()
{
    $CI =& get_Instance();
    $module = $CI->uri->segment(2);
    if ($module == 'aboutUs' || $module == 'aboutus') {
        $module = "About Us";
    }
    if ($module == 'ceoMessage' || $module == 'ceomessage') {
        $module = "CEO Message";
    }
    if ($module == 'boardMembers' || $module == 'boardmembers') {
        $module = "Board Members";
    }
    if ($module == 'team') {
        $module = "Our Team";
    }
    if ($module == 'awards') {
        $module = "Awards";
    }
    if ($module == 'entities') {
        $module = "Entities";
    }
    if ($module == 'investmentPhilosophy') {
        $module = "Investment Philosophy";
    }
    if ($module == 'pressReleases') {
        $module = "PressReleases";
    }
    if ($module == 'conferences') {
        $module = "Conferences";
    }
    if ($module == 'contactUs' || $module == 'contactus') {
        $module = "Contact Us";
    }
    if ($module == 'careerVacancies') {
        $module = "Career Vacancies";
    }
    if ($module == 'careerCandidates') {
        $module = "Career Candidates";
    }
    if ($module == 'services') {
        $module = "Services";
    }
    if ($module == 'news') {
        $module = "news";
    }
    if ($module == 'meta') {
        $module = "Meta Keywords";
    }
    if ($module == 'statistics') {
        $module = "Statistics";
    }
    if ($module == 'cmsInUsers') {
        $module = "Cms Users";
    }
    if ($module == 'cmsInnGroups') {
        $module = "Cms Groups";
    }
    if ($module == 'Inlog') {
        $module = "Log";
    }
    if ($module == 'pages') {
        $module = "pages";
    }
    if ($module == 'heritage') {
        $module = "Heritage";
    }
    if ($module == 'partnership') {
        $module = "Partnership";
    }
    if ($module == 'social') {
        $module = "social";
    }
    $CI->load->model('ems/model_log');
    $result = $CI->model_log->last_log_data($module);
    if ($result) {
        return date('d F, Y', strtotime($result[0]['log_date']));
    } else {
        return '';
    }
}
Exemplo n.º 2
0
 public static function gridDisplayView($val, $field, $arr)
 {
     $arr = explode(':', $arr);
     $_this =& get_Instance();
     if (isset($arr['0']) && $arr['0'] == 1) {
         $row = $_this->db->query(" SELECT " . str_replace("|", ",", $arr['3']) . " FROM " . $arr['1'] . " WHERE " . $arr['2'] . " = '" . $val . "' ")->row();
         if (count($row) >= 1) {
             $fields = explode("|", $arr['3']);
             $v = '';
             $v .= isset($fields[0]) && $fields[0] != '' ? $row->{$fields}[0] . ' ' : '';
             $v .= isset($fields[1]) && $fields[1] != '' ? $row->{$fields}[1] . ' ' : '';
             $v .= isset($fields[2]) && $fields[2] != '' ? $row->{$fields}[2] . ' ' : '';
             return $v;
         } else {
             return '';
         }
     } else {
         return $val;
     }
 }