public function getCentreCurrencySettings()
 {
     $result = $this->db->select('c.id as centre_id, c.name as centre_name, c.fullName as centre_fullName, ccs.exchange_rate, cy.country, cy.code_iso_4217 as currency_code, cy.symbol,cy.id as country_id')->from(IMS_DB_PREFIX . 'centre as c')->join(IMS_DB_PREFIX . 'centre_currency_settings as ccs', '(c.id = ccs.centre_id AND ccs.end_date = "2037-01-01 00:00:00")', 'left')->join(IMS_DB_PREFIX . 'countries as cy', 'cy.id = ccs.country_id', 'left')->where('c.status', 1)->where('c.archive', 0)->get()->result();
     debug_continue($this->db->last_query());
     return $result;
 }
示例#2
0
echo lang('level') . ' ' . lang('class');
?>
 
            </span>
        </div>
        <div class="da-panel-content " style="padding: 10px 0px;">
            <?php 
if (!empty($ClassLevel)) {
    ?>
                 <ul>
                    <?php 
    foreach ($ClassLevel as $key) {
        ?>
 
                     <?php 
        debug_continue($key);
        ?>
                        <li class="attendance_level">
                            <a <?php 
        echo (isset($classId) and $key->id == $classId) ? 'style="background: none repeat scroll 0 0 #616161; color: #FFF;"' : '';
        ?>
  class="change_class"  href="javascript:;" class_id="<?php 
        echo $key->id;
        ?>
"><?php 
        echo $key->level_name . "-" . $key->name;
        ?>
</a>
                        </li>
                    <?php 
    }