Ejemplo n.º 1
0
function checkResultValues($useragent, $majorArray, $minorArray)
{
    if (empty($majorArray)) {
        printDebug("MTB: majorArray empty");
    }
    if (empty($minorArray)) {
        printDebug("MTB: minorArray empty");
    }
    popArrayLists();
    if (getListStatus()) {
        /*
        $majorNames = Array();
        $majorNames = getMajorList();
        $length = count($majorNames);
        for ($i = 0; $i < $length; $i++) {
          printDebug("MTB: " . $majorNames[$i] . ": " . $majorArray[$i]);
        }
        */
        writeListsToFile($useragent, $majorArray, $minorArray);
    } else {
        printDebug("MTB: listStatus: ERROR");
    }
}
Ejemplo n.º 2
0
<?php

require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . '../template/header.php';
showHeader(['bootstrap-datetimepicker.min']);
require_once BASE_PATH . 'public/atividades/queries.php';
require_once BASE_PATH . 'public/setores/queries.php';
require_once BASE_PATH . 'public/usuarios/queries.php';
require_once BASE_PATH . 'public/status-atividade/queries.php';
require_once BASE_PATH . 'src/protectCSRF.php';
$plaintiffsList = getListUsers();
//Popula a selectbox Demandante;
$statusList = getListStatus();
//Popula a selectbox Staus Atividade;
if (isset($_REQUEST['id'])) {
    $action = 'update';
    $id = trim($_REQUEST['id']);
    $activity = getActivitiesById($id);
    $setor = getDepartmentById($activity['id_setor']);
    $idSetor = $activity['id_setor'];
    $setorName = $setor['nome'];
    $idDemandante = $activity['id_demandante'];
    $idResponsavel = $activity['id_responsavel'];
    $idStatus = $activity['id_status'];
    $titulo = $activity['titulo'];
    $descricao = nl2br($activity['descricao']);
    $data = date('d/m/Y', strtotime($activity['data']));
    $tempoGasto = $activity['tempo_gasto'];
} else {
    $action = 'insert';
    $id = null;
    $idDemandante = null;