blob: 9b2c48587b3e1fdfdb6e483f77457a83dd094803 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
<?php
// src/latex_templates/location.php
if($data['valeur'] != 0)
{
$data['valeur'] = ((string) $data['valeur']) . '€';
}
if($data['loyer_mensuel'] != 0)
{
$data['loyer_mensuel'] = ((string) $data['loyer_mensuel']) . '€';
}
ob_start();
?>
\documentclass{report}
\usepackage[french]{babel}
\usepackage{lmodern} % police latin modern
\usepackage[utf8]{inputenc} % encodage d'entrée (document)
\usepackage[T1]{fontenc} % encodage de sortie (rendu)
\usepackage[top=2cm, bottom=2cm, left=2cm, right=2cm]{geometry} % marges
\usepackage{graphicx} % insertions d'images
\usepackage{textcomp} % pour N°
\usepackage{xcolor} % texte en couleur
%\usepackage{wrapfig} % placer texte et image côte-à-côte
\usepackage{tabularx} % dimensions des tableaux automatique
\begin{document}
\setlength{\parindent}{0cm} % supprimer les alinéas
\large{}
\pagestyle{empty} % en-tête et pied de page vides
\definecolor{vert}{rgb}{0.07, 0.46, 0.13} % saisie en vert
\begin{center}
\includegraphics{latex_templates/ordipolo.png}\\
\Large\textbf{Dépannage informatique - Assistance à domicile}
\end{center}
2 A rue de l'île de Man, 29000 Quimper
SIRET : 814 320 610 00011
\begin{tabularx}{0.67\linewidth}{@{}X@{}@{}X@{}}
Tel : 06.63.85.48.82 & Courriel : ordipolo@gmx.fr
\end{tabularx}
Plus d'infos sur le site web: https\string://ordipolo.fr\\
% \string supprime l'espace devant les :
\begin{center}
\large\textbf{CONTRAT DE LOCATION}
\end{center}
PROPRIÉTAIRE\\
Mme, M : \textcolor{vert}{<?= Config::$business_guy ?>}\\
Adresse : \textcolor{vert}{<?php echo(Config::$business_address . ', ' . Config::$business_postcode . ' ' . Config::$business_city) ?>}\\
LOCATAIRE\\
\begin{tabularx}{\linewidth}{@{}X@{}@{}X@{}}
Mme, M : \textcolor{vert}{<?= $data['prenom_nom'] ?>} & tel : \textcolor{vert}{<?= $data['telephone'] ?>}\\
Adresse : \textcolor{vert}{<?php echo($data['adresse'] . ', ' . $data['code_postal'] . ' ' . $data['ville']); ?>} & courriel : \textcolor{vert}{<?= $data['courriel'] ?>}
\end{tabularx}\\\\
BIEN LOUÉ\\
Désignation : \textcolor{vert}{<?= $data['designation'] ?>}\\
Modèle, description : \textcolor{vert}{<?= $data['modele_description'] ?>}\\
Valeur : \textcolor{vert}{<?= $data['valeur'] ?>}\\\\
État des lieux initial : \textcolor{vert}{<?= $data['etat_des_lieux_debut'] ?>}\\\\\\
État des lieux final : \textcolor{vert}{<?= $data['etat_des_lieux_fin'] ?>}\\\\
CLAUSES\\
Durée du prêt : \textcolor{vert}{<?= $data['duree_location'] ?>}\\
Loyer mensuel : \textcolor{vert}{<?= $data['loyer_mensuel'] ?>}\\
\textbf{Le bénéficiaire de cette location s’engage à prendre soin du bien désigné et à en faire un usage strictement personnel.}\\
\begin{tabularx}{\linewidth}{@{}X@{}@{}X@{}}
Fait en deux exemplaires à : \textcolor{vert}{<?= Config::$business_city ?>} & le : \textcolor{vert}{<?= $date ?>} \\
\end{tabularx}\\
\begin{tabularx}{\linewidth}{@{}X@{}@{}X@{}}
Le bénéficiaire du prêt : \textcolor{vert}{<?= $data['prenom_nom'] ?>} &
Le loueur : \textcolor{vert}{<?= Config::$business_guy ?>}\\
\end{tabularx}\\
\normalsize(précéder la signature de la mention « lu et approuvé »)
\end{document}
<?php
$latex = ob_get_clean();
|