| Server IP : 173.209.174.21 / Your IP : 216.73.216.89 Web Server : Apache/2.4.58 (Ubuntu) System : Linux wcfs-server 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64 User : nodor ( 1000) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/wcfs/tabs/Backups/ |
Upload File : |
<?php
$last_export = file_exists('last_export_range.txt') ? trim(file_get_contents('last_export_range.txt')) : 'No exports yet';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Export to QuickBooks (CSV)</title>
<style>
body {
font-family: 'Segoe UI', sans-serif;
background-color: #f9f9f9;
padding: 30px;
color: #333;
}
.container {
max-width: 600px;
margin: auto;
background: #fff;
padding: 25px 30px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
h1 {
margin-top: 0;
}
form {
margin-top: 20px;
}
label {
display: block;
margin: 10px 0 5px;
}
input[type="date"] {
padding: 6px 10px;
width: 100%;
max-width: 250px;
font-size: 16px;
}
input[type="submit"] {
margin-top: 20px;
padding: 10px 16px;
background-color: #4CAF50;
color: white;
border: none;
font-size: 16px;
cursor: pointer;
}
input[type="submit"]:hover {
background-color: #45a049;
}
.last-export {
margin-top: 20px;
padding: 10px;
background: #f0f0f0;
border-left: 5px solid #2196F3;
}
.back-link {
display: inline-block;
margin-top: 25px;
}
</style>
</head>
<body>
<div class="container">
<h1>Export to QuickBooks</h1>
<form method="get" action="export_qbo.php">
<label for="start">Start Date:</label>
<input type="date" id="start" name="start" value="<?= date('Y-m-01') ?>" required>
<label for="end">End Date:</label>
<input type="date" id="end" name="end" value="<?= date('Y-m-t') ?>" required>
<input type="submit" value="Download CSV Export">
</form>
<div class="last-export">
<strong>Last Export:</strong> <?= htmlspecialchars($last_export) ?>
</div>
<p class="back-link"><a href="index.php">← Back to Dashboard</a></p>
</div>
</body>
</html>