mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-24 10:22:18 +00:00
temp
This commit is contained in:
@@ -62,19 +62,26 @@ class Notiz extends FHC_Controller
|
|||||||
|
|
||||||
public function addNewNotiz($person_id)
|
public function addNewNotiz($person_id)
|
||||||
{
|
{
|
||||||
var_dump($this->input->post('titel'));
|
/* var_dump($this->input->post('titel'));
|
||||||
var_dump($this->input->post('anhang'));
|
var_dump($this->input->post('anhang'));*/
|
||||||
var_dump($_FILES);
|
var_dump($_FILES);
|
||||||
|
|
||||||
$this->load->library('form_validation');
|
$this->load->library('form_validation');
|
||||||
|
$this->load->library('DmsLib');
|
||||||
|
|
||||||
|
$name = $this->input->post('anhang')['name'];
|
||||||
|
|
||||||
|
|
||||||
$this->form_validation->set_rules('titel', 'titel', 'required');
|
//$this->DmsLib->add($name, $mimetype, $fileHandle);
|
||||||
|
|
||||||
|
|
||||||
|
/* $this->form_validation->set_rules('titel', 'titel', 'required');
|
||||||
$this->form_validation->set_rules('text', 'Text', 'required');
|
$this->form_validation->set_rules('text', 'Text', 'required');
|
||||||
|
|
||||||
if ($this->form_validation->run() == false)
|
if ($this->form_validation->run() == false)
|
||||||
{
|
{
|
||||||
return $this->outputJsonError($this->form_validation->error_array());
|
return $this->outputJsonError($this->form_validation->error_array());
|
||||||
}
|
}*/
|
||||||
|
|
||||||
$this->load->model('person/Notiz_model', 'NotizModel');
|
$this->load->model('person/Notiz_model', 'NotizModel');
|
||||||
|
|
||||||
|
|||||||
@@ -136,6 +136,7 @@ class Notiz_model extends DB_Model
|
|||||||
/**
|
/**
|
||||||
* Add a Notiz for a given person
|
* Add a Notiz for a given person
|
||||||
*/
|
*/
|
||||||
|
//TODO(manu) add type for Notizzuordnung
|
||||||
public function addNotizForPersonWithDoc($person_id, $titel, $text, $erledigt, $verfasser_uid, $von, $bis)
|
public function addNotizForPersonWithDoc($person_id, $titel, $text, $erledigt, $verfasser_uid, $von, $bis)
|
||||||
{
|
{
|
||||||
// Loads model Notizzuordnung_model
|
// Loads model Notizzuordnung_model
|
||||||
@@ -187,6 +188,7 @@ class Notiz_model extends DB_Model
|
|||||||
* gets all Notizen with Documententries for a person
|
* gets all Notizen with Documententries for a person
|
||||||
* @param $person_id
|
* @param $person_id
|
||||||
*/
|
*/
|
||||||
|
//Todo(Manu) rewrite in CI-Style
|
||||||
public function getNotizWithDocEntries($person_id)
|
public function getNotizWithDocEntries($person_id)
|
||||||
{
|
{
|
||||||
$qry = "
|
$qry = "
|
||||||
|
|||||||
Reference in New Issue
Block a user