v78
This commit is contained in:
parent
6adecbd6fa
commit
4716313903
@ -36,9 +36,11 @@ if (!$startup) {
|
||||
// Check if user is the founder or an investor
|
||||
$isFounder = ($_SESSION['user_id'] == $startup['founder_id']);
|
||||
$isInvestor = ($user['role'] == 'investor');
|
||||
$isAnyFounder = ($user['role'] == 'founder');
|
||||
|
||||
// Basic permissions check
|
||||
if (!$isFounder && $startup['status'] === 'private' && !$isInvestor) {
|
||||
// Allow if: is the founder, OR is an investor, OR is any founder (for partnership), OR startup is public
|
||||
if (!$isFounder && !$isInvestor && !$isAnyFounder && $startup['status'] === 'private') {
|
||||
die("You do not have permission to view this profile.");
|
||||
}
|
||||
|
||||
@ -485,6 +487,54 @@ $progress = ($goal > 0) ? round(($raised / $goal) * 100) : 0;
|
||||
</p>
|
||||
</section>
|
||||
|
||||
<!-- Partnership & Co-founder Info -->
|
||||
<?php if (!empty($startup["cofounder_equity_pct"]) || !empty($startup["cofounder_responsibilities"])): ?>
|
||||
<section class="card" style="margin-bottom: 40px; border-color: var(--accent-secondary) !important;">
|
||||
<h2 class="section-title"><i class="fas fa-handshake" style="color: var(--accent-secondary);"></i> Partnership & Co-founder Info</h2>
|
||||
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 25px;">
|
||||
<div style="padding: 20px; background: var(--bg-color); border-radius: 12px; border: 1px solid var(--border-color);">
|
||||
<div style="font-size: 11px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;">Co-founder Equity</div>
|
||||
<div style="font-size: 24px; font-weight: 900; color: var(--accent-secondary);"><?= number_format($startup["cofounder_equity_pct"] ?? 0, 1) ?>%</div>
|
||||
</div>
|
||||
<div style="padding: 20px; background: var(--bg-color); border-radius: 12px; border: 1px solid var(--border-color);">
|
||||
<div style="font-size: 11px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;">Equity Type</div>
|
||||
<div style="font-size: 24px; font-weight: 900; color: #fff;"><?= htmlspecialchars($startup["cofounder_equity_type"] ?: "Ordinary") ?></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if ($startup["cofounder_responsibilities"]): ?>
|
||||
<div style="margin-bottom: 20px;">
|
||||
<div class="data-label" style="color: var(--accent-secondary);">Core Responsibilities</div>
|
||||
<div style="font-size: 15px; line-height: 1.6; color: var(--text-primary); background: var(--bg-color); padding: 15px; border-radius: 12px; border: 1px solid var(--border-color);">
|
||||
<?= nl2br(htmlspecialchars($startup["cofounder_responsibilities"])) ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 20px;">
|
||||
<?php if ($startup["desired_cofounder_experience"]): ?>
|
||||
<div>
|
||||
<div class="data-label">Desired Experience</div>
|
||||
<div style="font-size: 14px; color: var(--text-secondary);"><?= htmlspecialchars($startup["desired_cofounder_experience"]) ?></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($startup["cofounder_commitment"]): ?>
|
||||
<div>
|
||||
<div class="data-label">Commitment Required</div>
|
||||
<div style="font-size: 14px; color: var(--text-secondary);"><?= htmlspecialchars($startup["cofounder_commitment"]) ?></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<?php if ($startup["other_partnership_details"]): ?>
|
||||
<div style="margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-color);">
|
||||
<div class="data-label">Other Details</div>
|
||||
<div style="font-size: 14px; color: var(--text-secondary);"><?= nl2br(htmlspecialchars($startup["other_partnership_details"])) ?></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Financial Health -->
|
||||
<section class="card" style="margin-bottom: 40px;">
|
||||
<h2 class="section-title"><i class="fas fa-chart-line" style="color: var(--accent-primary);"></i> Financial Health</h2>
|
||||
@ -709,4 +759,4 @@ function toggleFollow(startupId) {
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
Loading…
x
Reference in New Issue
Block a user