This commit is contained in:
Flatlogic Bot 2026-02-28 21:12:10 +00:00
parent 409309595e
commit ce4cf48902
2 changed files with 49 additions and 9 deletions

View File

@ -2,6 +2,7 @@
--bg-color: #0a0a0f;
--surface-color: #1a1a24;
--accent-blue: #00f2ff;
--accent-color: #00f2ff;
--accent-violet: #8a2be2;
--text-primary: #ffffff;
--text-secondary: #a0a0b0;

View File

@ -33,8 +33,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$other_partnership_details = $_POST['other_partnership_details'] ?? '';
$current_cash_balance = $_POST['current_cash_balance'] ?? 0.0;
$outstanding_debt = $_POST['outstanding_debt'] ?? '';
$accounts_receivable_payable = $_POST['accounts_receivable_payable'] ?? '';
$burn_rate = $_POST['burn_rate'] ?? 0.0;
$doc_fields = [
@ -116,7 +114,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$stmt = db()->prepare("UPDATE startups SET
name = ?, legal_name = ?, country = ?, industry = ?, sub_industry = ?, business_model = ?, product_service = ?, operational_stage = ?,
cofounder_equity_pct = ?, cofounder_equity_type = ?, cofounder_responsibilities = ?, desired_cofounder_experience = ?, cofounder_commitment = ?, other_partnership_details = ?,
current_cash_balance = ?, outstanding_debt = ?, accounts_receivable_payable = ?, burn_rate = ?,
current_cash_balance = ?, burn_rate = ?,
doc_income_statements = ?, doc_balance_sheets = ?, doc_cash_flow_statements = ?, doc_revenue_breakdown = ?, doc_gross_margin = ?,
recommended_return_rate = ?, recommended_return_reasoning = ?
WHERE id = ? AND founder_id = ?");
@ -124,7 +122,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$stmt->execute([
$name, $legal_name, $country, $industry, $sub_industry, $business_model, $product_service, $operational_stage,
$cofounder_equity_pct, $cofounder_equity_type, $cofounder_responsibilities, $desired_cofounder_experience, $cofounder_commitment, $other_partnership_details,
$current_cash_balance, $outstanding_debt, $accounts_receivable_payable, $burn_rate,
$current_cash_balance, $burn_rate,
$uploaded_paths['doc_income_statements'], $uploaded_paths['doc_balance_sheets'], $uploaded_paths['doc_cash_flow_statements'],
$uploaded_paths['doc_revenue_breakdown'], $uploaded_paths['doc_gross_margin'],
$recommended_return_rate, $recommended_return_reasoning, $existingStartup['id'], $_SESSION['user_id']
@ -134,7 +132,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$stmt = db()->prepare("INSERT INTO startups (
name, legal_name, country, industry, sub_industry, business_model, product_service, operational_stage,
cofounder_equity_pct, cofounder_equity_type, cofounder_responsibilities, desired_cofounder_experience, cofounder_commitment, other_partnership_details,
current_cash_balance, outstanding_debt, accounts_receivable_payable, burn_rate,
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')");
@ -142,7 +140,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$stmt->execute([
$name, $legal_name, $country, $industry, $sub_industry, $business_model, $product_service, $operational_stage,
$cofounder_equity_pct, $cofounder_equity_type, $cofounder_responsibilities, $desired_cofounder_experience, $cofounder_commitment, $other_partnership_details,
$current_cash_balance, $outstanding_debt, $accounts_receivable_payable, $burn_rate,
$current_cash_balance, $burn_rate,
$uploaded_paths['doc_income_statements'], $uploaded_paths['doc_balance_sheets'], $uploaded_paths['doc_cash_flow_statements'],
$uploaded_paths['doc_revenue_breakdown'], $uploaded_paths['doc_gross_margin'],
$_SESSION['user_id'], $recommended_return_rate, $recommended_return_reasoning
@ -170,7 +168,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
<head>
<meta charset="UTF-8">
<title><?= $existingStartup ? 'Edit' : 'Create' ?> Startup Profile | Venture Capitalist</title>
<link rel="stylesheet" href="assets/css/custom.css">
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
</head>
<body style="background: var(--bg-color); color: #fff;">
@ -287,7 +285,48 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
</div>
</section>
<button type="submit" style="width: 100%; padding: 16px; border-radius: 12px; background: var(--accent-color); color: #000; font-weight: 700; border: none; font-size: 18px; cursor: pointer;">
<!-- Partnership & Co-founder Info -->
<section style="background: var(--card-bg); padding: 30px; border-radius: 20px; border: 1px solid var(--border-color); margin-bottom: 30px;">
<h2 style="font-size: 20px; margin-bottom: 20px;"><i class="fas fa-handshake" style="color: var(--accent-color);"></i> Partnership & Co-founder Info</h2>
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 20px;">
<div>
<label style="display: block; margin-bottom: 8px; color: #aaa;">Co-founder Equity (%)</label>
<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;">
</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>
</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>
</div>
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px;">
<div>
<label style="display: block; margin-bottom: 8px; color: #aaa;">Commitment Required</label>
<select name="cofounder_commitment" style="width: 100%; padding: 12px; border-radius: 8px; background: #222; border: 1px solid #333; color: #fff;">
<option value="Full-time" <?= ($existingStartup['cofounder_commitment'] ?? '') === 'Full-time' ? 'selected' : '' ?>>Full-time</option>
<option value="Part-time" <?= ($existingStartup['cofounder_commitment'] ?? '') === 'Part-time' ? 'selected' : '' ?>>Part-time</option>
<option value="Flexible" <?= ($existingStartup['cofounder_commitment'] ?? '') === 'Flexible' ? 'selected' : '' ?>>Flexible</option>
</select>
</div>
<div>
<label style="display: block; margin-bottom: 8px; color: #aaa;">Other Partnership Details</label>
<input type="text" name="other_partnership_details" value="<?= htmlspecialchars($existingStartup['other_partnership_details'] ?? '') ?>" style="width: 100%; padding: 12px; border-radius: 8px; background: #222; border: 1px solid #333; color: #fff;">
</div>
</div>
</section>
<button type="submit" class="btn btn-primary" style="width: 100%; padding: 16px; border-radius: 12px; font-weight: 700; font-size: 18px;">
Save & Compute AI Recommendation
</button>
</form>
@ -295,4 +334,4 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
</div>
</body>
</html>
</html>