@@ 562-564 (lines=3) @@ | ||
559 | $return_value = ''; |
|
560 | $where = array('number'=>$number); |
|
561 | $account_res = (array)$this->CI->db->get_where("accounts", $where)->first_row(); |
|
562 | if ($account_res['type'] == 0) { |
|
563 | $return_value = '<div class="flx_font flx_magenta" title="Customer">C</div>'." <span title='Edit'>".$account_res['number']." </span>"; |
|
564 | } |
|
565 | if ($account_res['type'] == 3) { |
|
566 | $return_value = '<div class="flx_font flx_blue" title="Provider">P</div>'." <span title='Edit'>".$account_res['number']." </span>"; |
|
567 | } |
|
@@ 565-567 (lines=3) @@ | ||
562 | if ($account_res['type'] == 0) { |
|
563 | $return_value = '<div class="flx_font flx_magenta" title="Customer">C</div>'." <span title='Edit'>".$account_res['number']." </span>"; |
|
564 | } |
|
565 | if ($account_res['type'] == 3) { |
|
566 | $return_value = '<div class="flx_font flx_blue" title="Provider">P</div>'." <span title='Edit'>".$account_res['number']." </span>"; |
|
567 | } |
|
568 | if ($account_res['type'] == -1 || $account_res['type'] == 2) { |
|
569 | $return_value = '<div class="flx_font flx_pink" title="Admin">A</div>'." <span title='Edit'>".$account_res['number']." </span>"; |
|
570 | } |
|
@@ 568-570 (lines=3) @@ | ||
565 | if ($account_res['type'] == 3) { |
|
566 | $return_value = '<div class="flx_font flx_blue" title="Provider">P</div>'." <span title='Edit'>".$account_res['number']." </span>"; |
|
567 | } |
|
568 | if ($account_res['type'] == -1 || $account_res['type'] == 2) { |
|
569 | $return_value = '<div class="flx_font flx_pink" title="Admin">A</div>'." <span title='Edit'>".$account_res['number']." </span>"; |
|
570 | } |
|
571 | if ($account_res['type'] == 4) { |
|
572 | $return_value = '<div class="flx_font flx_purple" title="Subadmin">S</div>'." <span title='Edit'>".$account_res['number']." </span>"; |
|
573 | } |
|
@@ 571-573 (lines=3) @@ | ||
568 | if ($account_res['type'] == -1 || $account_res['type'] == 2) { |
|
569 | $return_value = '<div class="flx_font flx_pink" title="Admin">A</div>'." <span title='Edit'>".$account_res['number']." </span>"; |
|
570 | } |
|
571 | if ($account_res['type'] == 4) { |
|
572 | $return_value = '<div class="flx_font flx_purple" title="Subadmin">S</div>'." <span title='Edit'>".$account_res['number']." </span>"; |
|
573 | } |
|
574 | return $return_value; |
|
575 | } |
|
576 | function convert_to_currency_account($select = "", $table = "", $amount) { |