33 lines
740 B
PHP
33 lines
740 B
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
/**
|
|
* Description of Activiteiten x doelgroepen model
|
|
*
|
|
* @author Liesbeth
|
|
* @date april 25 2013
|
|
*/
|
|
|
|
class ModKosten extends MY_Model{
|
|
|
|
protected $tablename = 'tbActKosten';
|
|
|
|
function __construct(){
|
|
parent::__construct();
|
|
//$models = array();
|
|
//$this->load->model($models);
|
|
}
|
|
function get_kosten_per_activiteit($actID){
|
|
$this->sql = "SELECT id, omschrijving, kosten, activiteitID as actID
|
|
FROM tbActKosten
|
|
WHERE activiteitID = $actID" ;
|
|
$results = $this->get_query_result();
|
|
if (! empty($results)) {
|
|
foreach ($results as $result) {
|
|
$result->kosten = mysql2bedrag($result->kosten);
|
|
};
|
|
};
|
|
return $results;
|
|
}
|
|
|
|
}
|