Ejemplo n.º 1
0
    if (isset($_GET['idProjet']) and $_GET['idProjet'] > 0 and $_GET['idProjet'] <= $projetManager->getLastId()) {
        $idProjet = $_GET['idProjet'];
        $projet = $projetManager->getProjetById($idProjet);
        $contratNumber = $contratsTravailManager->getContratsTravailNumberByIdProjet($idProjet);
        if ($contratNumber != 0) {
            $contratPerPage = 10;
            $pageNumber = ceil($contratNumber / $contratPerPage);
            $p = 1;
            if (isset($_GET['p']) and ($_GET['p'] > 0 and $_GET['p'] <= $pageNumber)) {
                $p = $_GET['p'];
            } else {
                $p = 1;
            }
            $begin = ($p - 1) * $contratPerPage;
            $pagination = paginate('contrats-travail.php?idProjet=' . $idProjet, '&p=', $pageNumber, $p);
            $contrats = $contratsTravailManager->getContratTravailsByIdProjetsByLimits($idProjet, $begin, $contratPerPage);
        }
    }
    ?>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!--> <html lang="en"> <!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
	<meta charset="utf-8" />
	<title>ImmoERP - Management Application</title>
	<meta content="width=device-width, initial-scale=1.0" name="viewport" />
	<meta content="" name="description" />
	<meta content="" name="author" />
	<link href="assets/bootstrap/css/bootstrap.min.css" rel="stylesheet" />