This commit is contained in:
Flatlogic Bot 2026-02-28 21:18:12 +00:00
parent ce4cf48902
commit 86b73d7d46
6 changed files with 38 additions and 19 deletions

View File

@ -8,6 +8,8 @@ if (!isset($_SESSION['user_id']) || $_SESSION['role'] !== 'founder') {
exit;
}
$countries = require_once 'includes/countries.php';
$success = '';
$error = '';
@ -135,7 +137,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
current_cash_balance, burn_rate,
doc_income_statements, doc_balance_sheets, doc_cash_flow_statements, doc_revenue_breakdown, doc_gross_margin,
founder_id, recommended_return_rate, recommended_return_reasoning, status
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 'private')");
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 'private')");
$stmt->execute([
$name, $legal_name, $country, $industry, $sub_industry, $business_model, $product_service, $operational_stage,
@ -206,7 +208,12 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
</div>
<div>
<label style="display: block; margin-bottom: 8px; color: #aaa;">Country of Incorporation *</label>
<input type="text" name="country" value="<?= htmlspecialchars($existingStartup['country'] ?? '') ?>" required style="width: 100%; padding: 12px; border-radius: 8px; background: #222; border: 1px solid #333; color: #fff;">
<select name="country" required style="width: 100%; padding: 12px; border-radius: 8px; background: #222; border: 1px solid #333; color: #fff;">
<option value="">Select Country</option>
<?php foreach ($countries as $c): ?>
<option value="<?= $c ?>" <?= ($existingStartup['country'] ?? '') === $c ? 'selected' : '' ?>><?= $c ?></option>
<?php endforeach; ?>
</select>
</div>
<div>
<label style="display: block; margin-bottom: 8px; color: #aaa;">Industry *</label>
@ -216,29 +223,35 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
<option value="HealthTech" <?= ($existingStartup['industry'] ?? '') === 'HealthTech' ? 'selected' : '' ?>>HealthTech</option>
<option value="E-commerce" <?= ($existingStartup['industry'] ?? '') === 'E-commerce' ? 'selected' : '' ?>>E-commerce</option>
<option value="AI/ML" <?= ($existingStartup['industry'] ?? '') === 'AI/ML' ? 'selected' : '' ?>>AI/ML</option>
<option value="CleanTech" <?= ($existingStartup['industry'] ?? '') === 'CleanTech' ? 'selected' : '' ?>>CleanTech</option>
<option value="EdTech" <?= ($existingStartup['industry'] ?? '') === 'EdTech' ? 'selected' : '' ?>>EdTech</option>
<option value="PropTech" <?= ($existingStartup['industry'] ?? '') === 'PropTech' ? 'selected' : '' ?>>PropTech</option>
<option value="Other" <?= ($existingStartup['industry'] ?? '') === 'Other' ? 'selected' : '' ?>>Other</option>
</select>
</div>
<div>
<label style="display: block; margin-bottom: 8px; color: #aaa;">Sub-Industry</label>
<input type="text" name="sub_industry" value="<?= htmlspecialchars($existingStartup['sub_industry'] ?? '') ?>" placeholder="e.g. Payments, CRM, Bioinformatics" style="width: 100%; padding: 12px; border-radius: 8px; background: #222; border: 1px solid #333; color: #fff;">
</div>
<div>
<label style="display: block; margin-bottom: 8px; color: #aaa;">Operational Stage *</label>
<select name="operational_stage" required style="width: 100%; padding: 12px; border-radius: 8px; background: #222; border: 1px solid #333; color: #fff;">
<option value="Idea/Prototype" <?= ($existingStartup['operational_stage'] ?? '') === 'Idea/Prototype' ? 'selected' : '' ?>>Idea/Prototype</option>
<option value="MVP/Early Traction" <?= ($existingStartup['operational_stage'] ?? '') === 'MVP/Early Traction' ? 'selected' : '' ?>>MVP/Early Traction</option>
<option value="Growth/Scaling" <?= ($existingStartup['operational_stage'] ?? '') === 'Growth/Scaling' ? 'selected' : '' ?>>Growth/Scaling</option>
<option value="Mature" <?= ($existingStartup['operational_stage'] ?? '') === 'Mature' ? 'selected' : '' ?>>Mature</option>
</select>
</div>
</div>
<div style="margin-top: 20px;">
<label style="display: block; margin-bottom: 8px; color: #aaa;">Business Model *</label>
<textarea name="business_model" required style="width: 100%; padding: 12px; border-radius: 8px; background: #222; border: 1px solid #333; color: #fff; height: 100px;"><?= htmlspecialchars($existingStartup['business_model'] ?? '') ?></textarea>
<textarea name="business_model" required style="width: 100%; padding: 12px; border-radius: 8px; background: #222; border: 1px solid #333; color: #fff; height: 100px;" placeholder="e.g. B2B Subscription, Marketplace, Freemium..."><?= htmlspecialchars($existingStartup['business_model'] ?? '') ?></textarea>
</div>
<div style="margin-top: 20px;">
<label style="display: block; margin-bottom: 8px; color: #aaa;">Product/Service Overview *</label>
<textarea name="product_service" required style="width: 100%; padding: 12px; border-radius: 8px; background: #222; border: 1px solid #333; color: #fff; height: 100px;"><?= htmlspecialchars($existingStartup['product_service'] ?? '') ?></textarea>
</div>
<div style="margin-top: 20px;">
<label style="display: block; margin-bottom: 8px; color: #aaa;">Operational Stage *</label>
<select name="operational_stage" required style="width: 100%; padding: 12px; border-radius: 8px; background: #222; border: 1px solid #333; color: #fff;">
<option value="Idea/Prototype" <?= ($existingStartup['operational_stage'] ?? '') === 'Idea/Prototype' ? 'selected' : '' ?>>Idea/Prototype</option>
<option value="MVP/Early Traction" <?= ($existingStartup['operational_stage'] ?? '') === 'MVP/Early Traction' ? 'selected' : '' ?>>MVP/Early Traction</option>
<option value="Growth/Scaling" <?= ($existingStartup['operational_stage'] ?? '') === 'Growth/Scaling' ? 'selected' : '' ?>>Growth/Scaling</option>
<option value="Mature" <?= ($existingStartup['operational_stage'] ?? '') === 'Mature' ? 'selected' : '' ?>>Mature</option>
</select>
<textarea name="product_service" required style="width: 100%; padding: 12px; border-radius: 8px; background: #222; border: 1px solid #333; color: #fff; height: 100px;" placeholder="Describe what your startup actually does..."><?= htmlspecialchars($existingStartup['product_service'] ?? '') ?></textarea>
</div>
</section>
@ -295,19 +308,25 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
<input type="number" step="0.1" name="cofounder_equity_pct" value="<?= htmlspecialchars($existingStartup['cofounder_equity_pct'] ?? 0) ?>" style="width: 100%; padding: 12px; border-radius: 8px; background: #222; border: 1px solid #333; color: #fff;">
</div>
<div>
<label style="display: block; margin-bottom: 8px; color: #aaa;">Equity Type (e.g. Ordinary, Restricted)</label>
<input type="text" name="cofounder_equity_type" value="<?= htmlspecialchars($existingStartup['cofounder_equity_type'] ?? '') ?>" style="width: 100%; padding: 12px; border-radius: 8px; background: #222; border: 1px solid #333; color: #fff;">
<label style="display: block; margin-bottom: 8px; color: #aaa;">Equity Type</label>
<select name="cofounder_equity_type" style="width: 100%; padding: 12px; border-radius: 8px; background: #222; border: 1px solid #333; color: #fff;">
<option value="Ordinary" <?= ($existingStartup['cofounder_equity_type'] ?? '') === 'Ordinary' ? 'selected' : '' ?>>Ordinary Shares</option>
<option value="Restricted" <?= ($existingStartup['cofounder_equity_type'] ?? '') === 'Restricted' ? 'selected' : '' ?>>Restricted Stock</option>
<option value="Phantom" <?= ($existingStartup['cofounder_equity_type'] ?? '') === 'Phantom' ? 'selected' : '' ?>>Phantom Equity</option>
<option value="Options" <?= ($existingStartup['cofounder_equity_type'] ?? '') === 'Options' ? 'selected' : '' ?>>Stock Options</option>
<option value="Other" <?= ($existingStartup['cofounder_equity_type'] ?? '') === 'Other' ? 'selected' : '' ?>>Other</option>
</select>
</div>
</div>
<div style="margin-top: 20px;">
<label style="display: block; margin-bottom: 8px; color: #aaa;">Co-founder Responsibilities</label>
<textarea name="cofounder_responsibilities" style="width: 100%; padding: 12px; border-radius: 8px; background: #222; border: 1px solid #333; color: #fff; height: 80px;"><?= htmlspecialchars($existingStartup['cofounder_responsibilities'] ?? '') ?></textarea>
<textarea name="cofounder_responsibilities" style="width: 100%; padding: 12px; border-radius: 8px; background: #222; border: 1px solid #333; color: #fff; height: 80px;" placeholder="What will the co-founder be responsible for?"><?= htmlspecialchars($existingStartup['cofounder_responsibilities'] ?? '') ?></textarea>
</div>
<div style="margin-top: 20px;">
<label style="display: block; margin-bottom: 8px; color: #aaa;">Desired Co-founder Experience</label>
<textarea name="desired_cofounder_experience" style="width: 100%; padding: 12px; border-radius: 8px; background: #222; border: 1px solid #333; color: #fff; height: 80px;"><?= htmlspecialchars($existingStartup['desired_cofounder_experience'] ?? '') ?></textarea>
<textarea name="desired_cofounder_experience" style="width: 100%; padding: 12px; border-radius: 8px; background: #222; border: 1px solid #333; color: #fff; height: 80px;" placeholder="What background should they have?"><?= htmlspecialchars($existingStartup['desired_cofounder_experience'] ?? '') ?></textarea>
</div>
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px;">
@ -334,4 +353,4 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
</div>
</body>
</html>
</html>