Файловый менеджер - Редактировать - /home/gqdcvggs/go.imators.com/day.tar
Назад
composer.json 0000664 00000000073 15114741353 0007274 0 ustar 00 { "require": { "dompdf/dompdf": "^3.0" } } composer.lock 0000664 00000026011 15114741353 0007253 0 ustar 00 { "_readme": [ "This file locks the dependencies of your project to a known state", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], "content-hash": "13c2ea380f6f598f89b9cfcbd5fd6457", "packages": [ { "name": "dompdf/dompdf", "version": "v3.0.2", "source": { "type": "git", "url": "https://github.com/dompdf/dompdf.git", "reference": "baf4084b27c7f4b5b7a221b19a94d11327664eb8" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/dompdf/dompdf/zipball/baf4084b27c7f4b5b7a221b19a94d11327664eb8", "reference": "baf4084b27c7f4b5b7a221b19a94d11327664eb8", "shasum": "" }, "require": { "dompdf/php-font-lib": "^1.0.0", "dompdf/php-svg-lib": "^1.0.0", "ext-dom": "*", "ext-mbstring": "*", "masterminds/html5": "^2.0", "php": "^7.1 || ^8.0" }, "require-dev": { "ext-gd": "*", "ext-json": "*", "ext-zip": "*", "mockery/mockery": "^1.3", "phpunit/phpunit": "^7.5 || ^8 || ^9 || ^10 || ^11", "squizlabs/php_codesniffer": "^3.5", "symfony/process": "^4.4 || ^5.4 || ^6.2 || ^7.0" }, "suggest": { "ext-gd": "Needed to process images", "ext-gmagick": "Improves image processing performance", "ext-imagick": "Improves image processing performance", "ext-zlib": "Needed for pdf stream compression" }, "type": "library", "autoload": { "psr-4": { "Dompdf\\": "src/" }, "classmap": [ "lib/" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "LGPL-2.1" ], "authors": [ { "name": "The Dompdf Community", "homepage": "https://github.com/dompdf/dompdf/blob/master/AUTHORS.md" } ], "description": "DOMPDF is a CSS 2.1 compliant HTML to PDF converter", "homepage": "https://github.com/dompdf/dompdf", "support": { "issues": "https://github.com/dompdf/dompdf/issues", "source": "https://github.com/dompdf/dompdf/tree/v3.0.2" }, "time": "2024-12-27T20:27:37+00:00" }, { "name": "dompdf/php-font-lib", "version": "1.0.1", "source": { "type": "git", "url": "https://github.com/dompdf/php-font-lib.git", "reference": "6137b7d4232b7f16c882c75e4ca3991dbcf6fe2d" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/dompdf/php-font-lib/zipball/6137b7d4232b7f16c882c75e4ca3991dbcf6fe2d", "reference": "6137b7d4232b7f16c882c75e4ca3991dbcf6fe2d", "shasum": "" }, "require": { "ext-mbstring": "*", "php": "^7.1 || ^8.0" }, "require-dev": { "symfony/phpunit-bridge": "^3 || ^4 || ^5 || ^6" }, "type": "library", "autoload": { "psr-4": { "FontLib\\": "src/FontLib" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "LGPL-2.1-or-later" ], "authors": [ { "name": "The FontLib Community", "homepage": "https://github.com/dompdf/php-font-lib/blob/master/AUTHORS.md" } ], "description": "A library to read, parse, export and make subsets of different types of font files.", "homepage": "https://github.com/dompdf/php-font-lib", "support": { "issues": "https://github.com/dompdf/php-font-lib/issues", "source": "https://github.com/dompdf/php-font-lib/tree/1.0.1" }, "time": "2024-12-02T14:37:59+00:00" }, { "name": "dompdf/php-svg-lib", "version": "1.0.0", "source": { "type": "git", "url": "https://github.com/dompdf/php-svg-lib.git", "reference": "eb045e518185298eb6ff8d80d0d0c6b17aecd9af" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/dompdf/php-svg-lib/zipball/eb045e518185298eb6ff8d80d0d0c6b17aecd9af", "reference": "eb045e518185298eb6ff8d80d0d0c6b17aecd9af", "shasum": "" }, "require": { "ext-mbstring": "*", "php": "^7.1 || ^8.0", "sabberworm/php-css-parser": "^8.4" }, "require-dev": { "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5" }, "type": "library", "autoload": { "psr-4": { "Svg\\": "src/Svg" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "LGPL-3.0-or-later" ], "authors": [ { "name": "The SvgLib Community", "homepage": "https://github.com/dompdf/php-svg-lib/blob/master/AUTHORS.md" } ], "description": "A library to read, parse and export to PDF SVG files.", "homepage": "https://github.com/dompdf/php-svg-lib", "support": { "issues": "https://github.com/dompdf/php-svg-lib/issues", "source": "https://github.com/dompdf/php-svg-lib/tree/1.0.0" }, "time": "2024-04-29T13:26:35+00:00" }, { "name": "masterminds/html5", "version": "2.9.0", "source": { "type": "git", "url": "https://github.com/Masterminds/html5-php.git", "reference": "f5ac2c0b0a2eefca70b2ce32a5809992227e75a6" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/Masterminds/html5-php/zipball/f5ac2c0b0a2eefca70b2ce32a5809992227e75a6", "reference": "f5ac2c0b0a2eefca70b2ce32a5809992227e75a6", "shasum": "" }, "require": { "ext-dom": "*", "php": ">=5.3.0" }, "require-dev": { "phpunit/phpunit": "^4.8.35 || ^5.7.21 || ^6 || ^7 || ^8 || ^9" }, "type": "library", "extra": { "branch-alias": { "dev-master": "2.7-dev" } }, "autoload": { "psr-4": { "Masterminds\\": "src" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Matt Butcher", "email": "technosophos@gmail.com" }, { "name": "Matt Farina", "email": "matt@mattfarina.com" }, { "name": "Asmir Mustafic", "email": "goetas@gmail.com" } ], "description": "An HTML5 parser and serializer.", "homepage": "http://masterminds.github.io/html5-php", "keywords": [ "HTML5", "dom", "html", "parser", "querypath", "serializer", "xml" ], "support": { "issues": "https://github.com/Masterminds/html5-php/issues", "source": "https://github.com/Masterminds/html5-php/tree/2.9.0" }, "time": "2024-03-31T07:05:07+00:00" }, { "name": "sabberworm/php-css-parser", "version": "v8.7.0", "source": { "type": "git", "url": "https://github.com/MyIntervals/PHP-CSS-Parser.git", "reference": "f414ff953002a9b18e3a116f5e462c56f21237cf" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/MyIntervals/PHP-CSS-Parser/zipball/f414ff953002a9b18e3a116f5e462c56f21237cf", "reference": "f414ff953002a9b18e3a116f5e462c56f21237cf", "shasum": "" }, "require": { "ext-iconv": "*", "php": "^5.6.20 || ^7.0.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0" }, "require-dev": { "phpunit/phpunit": "5.7.27 || 6.5.14 || 7.5.20 || 8.5.40" }, "suggest": { "ext-mbstring": "for parsing UTF-8 CSS" }, "type": "library", "extra": { "branch-alias": { "dev-main": "9.0.x-dev" } }, "autoload": { "psr-4": { "Sabberworm\\CSS\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Raphael Schweikert" }, { "name": "Oliver Klee", "email": "github@oliverklee.de" }, { "name": "Jake Hotson", "email": "jake.github@qzdesign.co.uk" } ], "description": "Parser for CSS Files written in PHP", "homepage": "https://www.sabberworm.com/blog/2010/6/10/php-css-parser", "keywords": [ "css", "parser", "stylesheet" ], "support": { "issues": "https://github.com/MyIntervals/PHP-CSS-Parser/issues", "source": "https://github.com/MyIntervals/PHP-CSS-Parser/tree/v8.7.0" }, "time": "2024-10-27T17:38:32+00:00" } ], "packages-dev": [], "aliases": [], "minimum-stability": "stable", "stability-flags": [], "prefer-stable": false, "prefer-lowest": false, "platform": [], "platform-dev": [], "plugin-api-version": "2.6.0" } index.php 0000664 00000012435 15114741353 0006377 0 ustar 00 <?php require 'vendor/autoload.php'; use Dompdf\Dompdf; use Dompdf\Options; if ($_SERVER['REQUEST_METHOD'] === 'POST') { $options = new Options(); $options->set('isHtml5ParserEnabled', true); $options->set('defaultFont', 'Helvetica'); $dompdf = new Dompdf($options); $html = ' <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <style> @page { margin: 20mm; size: A4 landscape; } body { font-family: Helvetica, Arial, sans-serif; color: #333; line-height: 1.4; } .container { display: grid; grid-template-columns: repeat(7, 1fr); gap: 15px; } .day { border: 1px solid #ddd; padding: 15px; page-break-inside: avoid; border-radius: 5px; } .day-header { font-size: 16px; font-weight: bold; color: #1a1a1a; padding-bottom: 10px; border-bottom: 2px solid #f0f0f0; margin-bottom: 10px; } .section { margin: 12px 0; } .section-title { font-size: 12px; color: #666; margin-bottom: 5px; text-transform: uppercase; } .checkbox { width: 15px; height: 15px; border: 1.5px solid #999; display: inline-block; } .note-box { border: 1px solid #ddd; border-radius: 4px; padding: 8px; min-height: 25px; background: #fafafa; } .mood { display: flex; gap: 10px; } .mood-option { width: 20px; height: 20px; border: 1px solid #ccc; border-radius: 50%; } .tasks { margin-top: 8px; } .task-item { display: flex; align-items: center; gap: 8px; margin: 4px 0; } </style> </head> <body> <div class="container"> <div class="day"> <div class="day-header">Lundi</div> <div class="section"> <div class="section-title">Rappel</div> <div class="note-box"></div> </div> <div class="section"> <div class="section-title">Devoir</div> <div class="checkbox"></div> </div> <div class="section"> <div class="section-title">Motivation</div> <div class="note-box"></div> </div> <div class="section"> <div class="section-title">Humeur</div> <div class="mood"> <div class="mood-option"></div> <div class="mood-option"></div> <div class="mood-option"></div> </div> </div> <div class="section"> <div class="section-title">Tâches</div> <div class="tasks"> <div class="task-item"> <div class="checkbox"></div> <div class="note-box" style="flex-grow: 1;"></div> </div> <div class="task-item"> <div class="checkbox"></div> <div class="note-box" style="flex-grow: 1;"></div> </div> <div class="task-item"> <div class="checkbox"></div> <div class="note-box" style="flex-grow: 1;"></div> </div> </div> </div> </div> <!-- Répéter pour les autres jours --> </div> </body> </html>'; $dompdf->loadHtml($html); $dompdf->render(); $dompdf->stream("MyDayBetter.pdf", ["Attachment" => true]); exit; } ?> <!DOCTYPE html> <html lang="fr"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>MyDayBetter - Impression</title> <script src="https://cdn.tailwindcss.com"></script> </head> <body class="bg-gray-50 flex items-center justify-center min-h-screen"> <div class="text-center p-8"> <h1 class="text-4xl font-bold text-gray-900 mb-4">MyDayBetter</h1> <p class="text-gray-600 mb-8">Clique sur le bouton pour générer ton planning de la semaine à imprimer</p> <form method="POST"> <button type="submit" class="bg-blue-600 text-white px-8 py-4 rounded-lg font-semibold text-lg hover:bg-blue-700 transition-colors focus:outline-none focus:ring-4 focus:ring-blue-500 focus:ring-opacity-50"> Générer mon planning </button> </form> </div> </body> </html>