Exemple #1
0
 public static function convert($row)
 {
     $coautor = new Coautor();
     $coautor->id = $row['id'];
     $coautor->nome = $row['nome'];
     $coautor->email = $row['email'];
     $coautor->trabalho = Trabalho::find($row['trabalho_id']);
     return $coautor;
 }
Exemple #2
0
<?php

include_once dirname(__FILE__) . '/../../inc/config.inc.php';
include_once dirname(__FILE__) . '/../../inc/mensagens.inc.php';
include_once dirname(__FILE__) . '/../../model/Trabalho.class.php';
include_once dirname(__FILE__) . '/../../model/TipoTrabalho.class.php';
include_once dirname(__FILE__) . '/../../model/Area.class.php';
include_once dirname(__FILE__) . '/../../model/Coautor.class.php';
session_start();
if (!isset($_SESSION['usuario'])) {
    header("location: /" . $config['PATH'] . "/admin/form_login.php?syserror=AUTENTICACAO_NECESSARIA");
    exit;
}
$trabalho = Trabalho::find($_GET['id']);
$autor_principal = $trabalho->autor_principal;
$coautores = $trabalho->coautores();
?>

<!DOCTYPE HTML>
<html lang="pt-br">
	<head>
		<?php 
include_once dirname(__FILE__) . '/../../inc/head.inc.php';
?>
	</head>
	<body>
		<div class="container rounded-corners">
			<div class="header">
				<?php 
$active = 'admin';
?>