mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-18 23:42:17 +00:00
- Added UDF tab in fas
- Added global constant FAS_UDF
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
if (! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class UDF extends VileSci_Controller
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
// Loads the widget library
|
||||
$this->load->library('WidgetLib');
|
||||
|
||||
//
|
||||
$this->load->model('person/Person_model', 'PersonModel');
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$person_id = $this->input->get('person_id');
|
||||
|
||||
$person = $this->PersonModel->load($person_id);
|
||||
|
||||
$udfs = $this->PersonModel->getUDFs();
|
||||
|
||||
$udfs['person_id'] = 1;
|
||||
$udfs['prestudent_id'] = 1;
|
||||
$udfs['caller'] = 'system/UDF?person_id=1';
|
||||
|
||||
$data = array(
|
||||
'udfs' => $udfs
|
||||
);
|
||||
|
||||
$this->load->view('system/udf', $data);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user