Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Guindon2014-06-04 20:39:00 +0000
committerChristopher Guindon2014-06-04 20:39:00 +0000
commite3ff4431b9b4dd1758ccbefe5d550e023ff5aa2f (patch)
treea260ac7967d08e4a2086c0316dd2f71603b3b839
parent7f19cc08bbebc5dddd7bf4b265b8d4a5f8c3a074 (diff)
downloaddonate-solstice.tar.gz
donate-solstice.tar.xz
donate-solstice.zip
use solstice themesolstice
Signed-off-by: Christopher Guindon <chris.guindon@eclipse.org>
-rw-r--r--donorlist.php45
-rw-r--r--faq.php2
-rw-r--r--index.php2
-rw-r--r--indexNova.php39
4 files changed, 43 insertions, 45 deletions
diff --git a/donorlist.php b/donorlist.php
index 4232f19..6f7a4a3 100644
--- a/donorlist.php
+++ b/donorlist.php
@@ -10,9 +10,9 @@
#
#
#****************************************************************************
-
+
#
- # Begin: page-specific settings. Change these.
+ # Begin: page-specific settings. Change these.
$pageTitle = "Donor List";
$pageKeywords = "friends of eclipse, donation, contribution";
$pageAuthor = "Nathan Gervais";
@@ -20,14 +20,14 @@
require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/smartconnection.class.php");
require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/classes/friends/friendsContributionsList.class.php");
require_once("functions.php");
- ob_start();
-
+ ob_start();
+
$showAll = $App->getHTTPParameter('showAll');
if ($showAll == NULL) {
$showAll = 1;
}
if ($showAll == 0)
- {
+ {
$showAll = 0;
$where = 'WHERE F.is_benefit = 1';
}
@@ -36,17 +36,17 @@
$where = NULL;
}
$start = $App->getHTTPParameter('start');
-
-
+
+
$pageValue = 25;
if ( (!$start) || (!preg_match('/^[0-9]+$/', $start))) {
$start = 0;
}
-
+
$totalContributionCount = new FriendsContributionsList();
$totalContributionCount->selectFriendsContributionsList(-1, -1 /*, 'WHERE F.is_benefit = 1'*/);
$pageCount = $totalContributionCount->getCount();
- $totalContributionCount = NULL;
+ $totalContributionCount = NULL;
?>
<link rel="stylesheet" type="text/css" href="style.css" media="screen" />
<div id="midcolumn">
@@ -66,10 +66,10 @@
<?
// Get total number of items so we can know whether to page or not.
-
+
$friendsContributionsList = new FriendsContributionsList();
$friendsContributionsList->selectFriendsContributionsList($start, $pageValue, $where);
-
+
$friend = new Friend();
$contribution = new Contribution();
$fcObject = new FriendsContributions();
@@ -82,19 +82,19 @@
$anonymous = $friend->getIsAnonymous();
if ($anonymous != 1)
$name = $friend->getFirstName() . " " . $friend->getLastName();
- else
+ else
$name = "Anonymous";
$benefit = $friend->getIsBenefit();
if ($benefit != 0)
$benefit = " <img src=\"images/star.jpg\">";
else
$benefit = "";
- $amount = $contribution->getAmount();
+ $amount = $contribution->getAmount();
if (strpos($amount, ".") == 0)
{
$amount = $amount . ".00";
}
- $comment = stripslashes(strip_tags($contribution->getMessage()));
+ $comment = stripslashes(strip_tags($contribution->getMessage()));
if (strlen($comment) > 80)
if (strpos($comment, ' ') == 0 )
{
@@ -109,21 +109,21 @@
$now = strtotime("now");
if ($date <= $now) {
$date = date("Y-m-d", $date);
- //$date = $friend->getDateJoined();
- if ($showAll == 1 || $benefit != "") {
+ //$date = $friend->getDateJoined();
+ if ($showAll == 1 || $benefit != "") {
?>
<tr class="donorRecord">
<td width="25"><?=$benefit;?></td>
<td width="59%"><b><?=$name;?></b><br/><?=$comment;?></td>
<td><?=$date;?></td>
<td align="right">$<?=$amount;?> USD</td>
- </tr>
- <? }
- }
+ </tr>
+ <? }
+ }
}?>
</table>
<?=displayPager($start, $pageValue, $pageCount, $showAll);?>
- <br/><br/>
+ <br/><br/>
</div>
<div id="rightcolumn">
<div style="text-align:center">
@@ -139,7 +139,7 @@
<img src="images/star.jpg" align="absbottom">Friend of Eclipse
</p>
</div>
- </div>
+ </div>
<?
header('Content-Type: text/html; charset=ISO-8859-1;');
$html = ob_get_clean();
@@ -148,6 +148,5 @@
$Nav->addCustomNav("Friends of Eclipse Login", "http://dev.eclipse.org/site_login", "_self", 1);
$Nav->addCustomNav("Donation FAQ", "faq.php", "_self", 1);
# Generate the web page
- $App->generatePage("Nova", $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html);
+ $App->generatePage("solstice", $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html);
?>
- \ No newline at end of file
diff --git a/faq.php b/faq.php
index 42130cd..af225d4 100644
--- a/faq.php
+++ b/faq.php
@@ -89,5 +89,5 @@
</div>
<? $html = ob_get_clean();
# Generate the web page
- $App->generatePage('Nova', $Menu, NULL, $pageAuthor, $pageKeywords, $pageTitle, $html);
+ $App->generatePage('solstice', $Menu, NULL, $pageAuthor, $pageKeywords, $pageTitle, $html);
?> \ No newline at end of file
diff --git a/index.php b/index.php
index 3b29f2f..a0c2b89 100644
--- a/index.php
+++ b/index.php
@@ -33,4 +33,4 @@
# Generate the web page
//$App->AddExtraHtmlHeader('<link rel="stylesheet" type="text/css" href="style.css" media="screen" />');
$App->AddExtraJSFooter('<script type="text/javascript" src="js/validate-donation.js"></script>');
- $App->generatePage("Nova", $Menu, NULL, $pageAuthor, $pageKeywords, $pageTitle, $html);
+ $App->generatePage("solstice", $Menu, NULL, $pageAuthor, $pageKeywords, $pageTitle, $html);
diff --git a/indexNova.php b/indexNova.php
index 22f75c3..977ce03 100644
--- a/indexNova.php
+++ b/indexNova.php
@@ -11,39 +11,39 @@
#
#
#****************************************************************************
-
+
#
- # Begin: page-specific settings. Change these.
+ # Begin: page-specific settings. Change these.
$pageTitle = "Support Eclipse";
$pageKeywords = "friends of eclipse, donation, contribution";
$pageAuthor = "Nathan Gervais";
- include ("functions.php");
- ob_start();
+ include ("functions.php");
+ ob_start();
?>
<script type="text/javascript" src="functions.js"></script>
<link rel="stylesheet" type="text/css" href="style.css" media="screen" />
<div id="fullcolumn">
<div id="midcolumn">
<h1><?=$pageTitle ?></h1>
-
+
<div >
<!-- <p>Financially contribute to the Eclipse Foundation and help support the vibrant Eclipse ecosystem and open source community.</p> -->
- <p>Support Eclipse and help the Eclipse Foundation provide services for the Eclipse community, such as*:
+ <p>Support Eclipse and help the Eclipse Foundation provide services for the Eclipse community, such as*:
<ul class="paddedList">
- <li>Providing more bandwidth for users and committers</li>
- <li>Purchasing additional servers to host Eclipse projects</li>
+ <li>Providing more bandwidth for users and committers</li>
+ <li>Purchasing additional servers to host Eclipse projects</li>
<li>Sending students to EclipseCon</li>
<li>Sponsoring Eclipse community events</li>
</ul>
</p>
<p>Feel free to donate any amount you'd like. Donations of $35 or more will receive special Friends of Eclipse benefits (described below). We have made it easy to use a credit card through <img src="images/paypal.gif" align="absbottom" alt="PayPal">.
- Please note, the Eclipse Foundation is a not-for-profit organization, not a charitable organization, so we are unable to provide charitable tax receipts.</p>
+ Please note, the Eclipse Foundation is a not-for-profit organization, not a charitable organization, so we are unable to provide charitable tax receipts.</p>
</div>
<div class="homeitem">
<h3>Donate</h3>
<form ACTION="https://www.paypal.com/cgi-bin/webscr" METHOD="POST" name="donateForm">
- <input type="hidden" name="business" value="lynn@eclipse.org">
+ <input type="hidden" name="business" value="lynn@eclipse.org">
<input type="hidden" name="item_name" value="Donation">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="on0" value="Comment">
@@ -63,7 +63,7 @@
<tr>
<td>Donation Amount<span class="required">*</span>:</td>
<td><input type="text" name="amount" id="amount" size=10 onkeyup="amountCheck();" onblur="amountCheck();">US$</td>
- </tr>
+ </tr>
<tr>
<td>Message:</td>
<td><input type="text" id="os0" name="os0" maxlength=200 size="30"></td>
@@ -78,7 +78,7 @@
<tr>
<td colspan=2>
<div id="WhatsThis">
- When you donate US$35 or more you will have access to the Friends of Eclipse Mirror Site. You will need a Bugzilla Login to gain you access to this mirror. If you need a Bugzilla ID <a href="https://bugs.eclipse.org/bugs/createaccount.cgi" target="_blank">click here</a> to launch the registration page in new window.
+ When you donate US$35 or more you will have access to the Friends of Eclipse Mirror Site. You will need a Bugzilla Login to gain you access to this mirror. If you need a Bugzilla ID <a href="https://bugs.eclipse.org/bugs/createaccount.cgi" target="_blank">click here</a> to launch the registration page in new window.
</div>
</td>
</tr>
@@ -91,12 +91,12 @@
</tr>
<tr>
<td><div class="required" style="display:inline;"> * Required</div></td>
- <td>
+ <td>
<input type="button" value="Donate" onclick="verifyBugzillaLogin();"/> <img src="images/paypal.gif" align="absbottom" alt="PayPal"></td>
</tr>
</table>
</form>
- </div>
+ </div>
<div class="homeitem">
<h3>Friend of Eclipse Benefits</h3>
@@ -119,21 +119,20 @@
<h6>Related Links</h6>
<ul>
<li><a href="faq.php">FAQ</a></li>
- <li><a href="http://dev.eclipse.org/site_login">Friends of Eclipse Login</a></li>
+ <li><a href="http://dev.eclipse.org/site_login">Friends of Eclipse Login</a></li>
</ul>
- </div>
+ </div>
<div class="sideitem">
<h6>Recent Donations</h6>
<ul>
<? sideDonorList(10); ?>
</ul>
</div>
-
- </div>
+
+ </div>
</div>
<?
$html = ob_get_clean();
# Generate the web page
- $App->generatePage("Nova", $Menu, NULL, $pageAuthor, $pageKeywords, $pageTitle, $html);
+ $App->generatePage("solstice", $Menu, NULL, $pageAuthor, $pageKeywords, $pageTitle, $html);
?>
- \ No newline at end of file

Back to the top