<commit_before><?php 
defined('BASEPATH') OR exit('No direct script access allowed');

class ManageAdmin extends CI_Controller {

    public function __construct(){
        parent::__construct();
        $this->load->model('documentsModel','Files');
        $this->load->model('usersModel','User');
        $this->load->model('positionsModel','Positions');
        $this->load->model('departmentsModel','Dept');
        $this->load->model('collegesModel','Colleges');
        $this->load->model('registrarDocumentsModel','regDoc');
        $this->load->model('contactUsModel','contact');
        if(!isset($_SESSION['username']))
        {
            redirect().'Dts/index';
        }
    }
    public function viewDocuments(){
        do{
            $tracknumber = rand(0,9).rand(0,9).rand(0,9).'-'.rand(0,9).rand(0,9).rand(0,9).'-'.rand(0,9).rand(0,9).rand(0,9);
            $condition = array('regTrackcode'=>$tracknumber);
            $rs = $this->regDoc->read($condition);
        }while($rs);
        $data['tracknumber'] = $tracknumber;   
        $documents_status = array();
        $condition = null;
        $documents_status = $this->regDoc->read($condition);
        $data['documents_status'] = $documents_status;
        $user = $this->session->userdata('username');
        //getting userdata
            $condition = array('username' => $user);
            $userdata = $this->User->read($condition);
            $data['userdata'] = $userdata; 
        $data['title'] = "Document Tracking System - Dashboard";
        $this->load->view('include/header',$data); 
        
            $this->load->view('profileAdmin',$data);
        
        $this->load->view('registrarDocuments', $data);
    }
    public function addRegDoc(){
        if($_SERVER['REQUEST_METHOD']=='POST'){
            $trackcode = $_POST['trackcode'];
            $file_type = $_POST['file_type'];
            $date_released = $_POST['date_released'];
            $date_admitted = $_POST['date_admitted'];
            $status = $_POST['status'];
            $record = array('regTrackcode'=>$trackcode,<commit_msg>naiwan sa manage admin<commit_after><?php 
defined('BASEPATH') OR exit('No direct script access allowed');

class ManageAdmin extends CI_Controller {

    public function __construct(){
        parent::__construct();
        $this->load->model('documentsModel','Files');
        $this->load->model('usersModel','User');
        $this->load->model('positionsModel','Positions');
        $this->load->model('departmentsModel','Dept');
        $this->load->model('collegesModel','Colleges');
        $this->load->model('registrarDocumentsModel','regDoc');
        $this->load->model('contactUsModel','contact');
        if(!isset($_SESSION['username']))
        {
            redirect().'Dts/index';
        }
    }
    public function viewDocuments(){
        do{
            $tracknumber = rand(0,9).rand(0,9).rand(0,9).'-'.rand(0,9).rand(0,9).rand(0,9).'-'.rand(0,9).rand(0,9).rand(0,9);
            $condition = array('regTrackcode'=>$tracknumber);
            $rs = $this->regDoc->read($condition);
        }while($rs);
        $data['tracknumber'] = $tracknumber;   
        $documents_status = array();
        $condition = null;
        $documents_status = $this->regDoc->read($condition);
        $data['documents_status'] = $documents_status;
        $user = $this->session->userdata('username');
        //getting userdata
            $condition = array('username' => $user);
            $userdata = $this->User->read($condition);
            $data['userdata'] = $userdata; 
        $data['title'] = "Document Tracking System - Dashboard";
        $this->load->view('include/header',$data); 
        $this->load->view('profileAdmin',$data);
        $this->load->view('registrarDocuments', $data);
    }
    public function addRegDoc(){
        if($_SERVER['REQUEST_METHOD']=='POST'){
            $trackcode = $_POST['trackcode'];
            $file_type = $_POST['file_type'];
            $date_released = $_POST['date_released'];
            $date_admitted = $_POST['date_admitted'];
            $status = $_POST['status'];
            $record = array('regTrackcode'=>$trackcode,
{'fraction_non_alphanumeric': 0.19106759016001912, 'fraction_numerical': 0.008598041557200859, 'mean_word_length': 2.807272727272727, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 65, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7574894', 'n_tokens_mistral': 1242, 'n_tokens_neox': 1202, 'n_words': 166}