Information Générales
IDENTITÉ ET STUD-BOOK
KAMILIA:
N° SIRE : 98550560
Race : AR
Robe : AL/RCM
Date de naissance : 16/03/1998
Pays de naissance : TUNISIE
Père:
ZEIDOUN (TN)
AR ,
GRIS ,
13/02/1987
Mère:
ECHABBA (TN)
AR ,
AL/CRM ,
1992
Père de Mère:
DYNAMITE III (TN)
AR ,
ALEZAN ,
1972
Naisseur :
M.MOHAMED MEDDEB
STUD Book Naissance :
TSB volume : 9
Muni d'un transpondeur électronique :
oui
Cet équidé est génotypé ADN :
...
Document d'accompagnement validé :
oui
Pedigree
Exporter en PDF
-- Génération --
1 génération
2 générations
3 générations
4 générations
5 générations
Reproduction
Carnet
Année
Nombre de cartes utilisées
Lieu
// CSV export functionality
document.getElementById('csvBtn')?.addEventListener('click', function() {
const table = document.getElementById('horseTable');
const rows = table.querySelectorAll('tr');
let csvContent = "data:text/csv;charset=utf-8,";
// Add headers
const headers = [];
table.querySelectorAll('thead th:not(:nth-child(8))').forEach(header => {
headers.push('"' + header.textContent.trim() + '"');
});
csvContent += headers.join(',') + '\n';
// Add rows
table.querySelectorAll('tbody tr').forEach(row => {
if (row.style.display !== 'none') { // Only include visible rows
const rowData = [];
row.querySelectorAll('td:not(:nth-child(8))').forEach(cell => {
// Remove HTML tags and extra whitespace
let text = cell.textContent.replace(/(<([^>]+)>)/gi, '').trim();
text = text.replace(/\s+/g, ' '); // Collapse multiple spaces
rowData.push('"' + text + '"');
});
csvContent += rowData.join(',') + '\n';
}
});
// Create download link
const encodedUri = encodeURI(csvContent);
const link = document.createElement('a');
link.setAttribute('href', encodedUri);
link.setAttribute('download', 'reproduction_chevaux.csv');
document.body.appendChild(link);
// Trigger download
link.click();
document.body.removeChild(link);
});
// Excel export functionality
document.getElementById('excelBtn')?.addEventListener('click', function() {
const table = document.getElementById('horseTable');
const data = [];
// Add headers
const headers = [];
table.querySelectorAll('thead th:not(:nth-child(8))').forEach(header => {
headers.push(header.textContent.trim());
});
data.push(headers);
// Add rows
table.querySelectorAll('tbody tr').forEach(row => {
if (row.style.display !== 'none') { // Only include visible rows
const rowData = [];
row.querySelectorAll('td:not(:nth-child(8))').forEach(cell => {
// Remove HTML tags and extra whitespace
let text = cell.textContent.replace(/(<([^>]+)>)/gi, '').trim();
text = text.replace(/\s+/g, ' '); // Collapse multiple spaces
rowData.push(text);
});
data.push(rowData);
}
});
// Create worksheet
const ws = XLSX.utils.aoa_to_sheet(data);
// Create workbook
const wb = XLSX.utils.book_new();
XLSX.utils.book_append_sheet(wb, ws, 'Reproduction Chevaux');
// Export to file
XLSX.writeFile(wb, 'reproduction_chevaux.xlsx');
});
// PDF export functionality
document.getElementById('pdfBtn')?.addEventListener('click', function() {
const { jsPDF } = window.jspdf;
const doc = new jsPDF();
// Add title
doc.setFontSize(16);
doc.text('Reproduction - Liste des chevaux', 14, 15);
// Get table data
const table = document.getElementById('horseTable');
const headers = [];
const rows = [];
// Extract headers
table.querySelectorAll('thead th:not(:nth-child(8))').forEach(header => {
headers.push(header.textContent.trim());
});
// Extract rows
table.querySelectorAll('tbody tr').forEach(row => {
if (row.style.display !== 'none') { // Only include visible rows
const rowData = [];
row.querySelectorAll('td:not(:nth-child(8))').forEach(cell => {
// Remove HTML tags and extra whitespace
let text = cell.textContent.replace(/(<([^>]+)>)/gi, '').trim();
text = text.replace(/\s+/g, ' '); // Collapse multiple spaces
rowData.push(text);
});
rows.push(rowData);
}
});
// Create table in PDF
doc.autoTable({
head: [headers],
body: rows,
startY: 25,
theme: 'grid',
styles: { fontSize: 8, cellPadding: 2 },
headerStyles: { fillColor: [78, 115, 223] },
margin: { top: 25 }
});
// Save the PDF
doc.save('reproduction_chevaux.pdf');
});
});
Production
Exporter en PDF
Cheval
Date de naissance
Père
Mère
Naisseur
hidden col
EL JANEH , AR, MALE, BB/GRI
08/02/2011
DAHESS (AR)
KAMILIA (AR)
M.KONI SAADAOUI
2011/02/08
DAHMA , AR, FEMELLE, ALEZAN
10/02/2010
DORMANE (AR)
KAMILIA (AR)
M.KONI SAADAOUI
2010/02/10
BAKHTA , AR, FEMELLE, ALEZAN
31/01/2008
HAJJAM (AR)
KAMILIA (AR)
M.HICHEM JALLOULI
2008/01/31
ZINJI , AR, MALE, AL/GRI
05/03/2006
GITPEN (AR)
KAMILIA (AR)
M.HICHEM JALLOULI
2006/03/05
RAYNINE , AR, FEMELLE, ALEZAN
02/02/2003
CHEIKH EL ARAB (AR)
KAMILIA (AR)
HAR. MEDDEB
2003/02/02
Diversité Génitique
Diversité Génitique