| <?php |
| /******************************************************************************* |
| * Copyright (c) 2013 Eclipse Foundation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Christopher Guindon (Eclipse Foundation)- initial API and implementation |
| *******************************************************************************/ |
| |
| //if name of the file requested is the same as the current file, the script will exit directly. |
| if(basename(__FILE__) == basename($_SERVER['PHP_SELF'])){exit();} |
| |
| ?> |
| <div id="midcolumn"> |
| <h1>Thank you for your donation<?php ($showform) ? print ' of ' . $amount . 'US$' : print '!' ;?></h1> |
| <div class="homeitem"> |
| <?php if(!$showform){?> |
| <p>Your transaction has been completed and a receipt for your purchase has been emailed to you.</p> |
| <h3><b>Donation Details</b></h3> |
| <ul> |
| <li>Name: <?=$firstname;?> <?=$lastname;?> |
| </li> |
| <?if ($bugzillaEmail != "") { ?> |
| <li>Bugzilla Login: <?=$bugzillaEmail;?> |
| </li> |
| <? } ?> |
| <li>Amount: <?=$amount;?> |
| </li> |
| <li>Anonymity: <?=$anonymous;?> |
| </li> |
| <li>Comment: <?=$comment;?> |
| </li> |
| </ul> |
| <br/><br/><div align="middle"><b style="font-size:120%">View our <a href="http://www.eclipse.org/donate/donorlist.php">Donor List</a></b></div> |
| <? |
| if ($benefit == 1) { |
| include('en_friends_info.php'); |
| } |
| |
| }else{?> |
| |
| <?php if($updateinformation){?> |
| <div class="success">Your donation information was successfully updated!</div> |
| <?php }?> |
| <p>Do you want your name to be listed on our <a href="http://www.eclipse.org/donate/donorlist.php">donor list</a>?</p> |
| <form action="/site_login/thankyou.php" name="donateForm" method="POST"> |
| <table width="100%"> |
| <tr> |
| <td colspan="2"> |
| <p style="margin-left:25px;"><input type="radio" id="os1" name="os1"<?php if($anonymousValue == 0){ print(' checked="checked" ');}?>value="Public" style="float:left;margin:0px 3px;clear:left;"> Yes, please list me as <strong><?php print $firstname . ' ' . $lastname;?></strong>. |
| <br/><input type="radio" id="os1" name="os1" value="Anonymous"<?php if($anonymousValue == 1){ print(' checked="checked" ');}?>style="float:left;margin:2px 3px;clear:left;"> No, I prefer to remain anonymous.</p> |
| </td> |
| </tr> |
| <!-- <p>Donation Amount:<?php print $amount;?> US$</p> --> |
| |
| <!-- <tr> |
| <td>Message: <span style="font-size: 10px">(200 Characters)</span></td> |
| <td><input type="text" id="os0" name="os0" maxlength="200" size="30"></td> |
| </tr>--> |
| <? if ($benefit == 1 && $showform) { ?> |
| <tr> |
| <td colspan="2"><br /> <b>Friend Of Eclipse Login</b></td> |
| </tr> |
| <tr> |
| <td colspan="2"> |
| <div id="WhatsThis"> |
| Because you donated over 35$ you are now a friend of Eclipse. To acces our Friends download server please provide your Eclipse id. |
| If you need an account <a href="https://dev.eclipse.org/site_login/createaccount.php" target="_blank">click here</a> to launch the registration page in a new window. |
| |
| </div> |
| </td> |
| </tr> |
| <tr> |
| <td>Eclipse.org login: |
| <div id="verify"></div> |
| </td> |
| <td><input type="text" name="item_number" id="bugzilla" size="30" value="<?=$bugzillaEmail;?>"/> |
| </td> |
| </tr> |
| <?php }else{ ?> |
| <tr> |
| <td colspan="2"><div id="verify"></div> |
| <input type="hidden" name="item_number" id="bugzilla" value="<?=$bugzillaEmail;?>"/> |
| |
| </td> |
| </tr> |
| <?php }?> |
| |
| <tr> |
| |
| <td colspan="2"> |
| |
| <input type="hidden" id="os0" name="os0" value=""/> |
| <input type="hidden" name="last_name" id="last_name" value="<?php print $lastname;?>"/> |
| <input type="hidden" name="first_name" id="first_name" value="<?php print $firstname;?>"/> |
| <input type="hidden" name="tx_token" id="tx_token" value="<?php print $tx_token;?>" /> |
| <input type="hidden" name="amount" id="amount" value="<?php print $amount;?>" /> |
| <input type="hidden" name="txn_id" value="<?php print $transactionID;?>"/> |
| <input type="hidden" name="donation_information_form" value="<?php print $transactionID;?>"/> |
| <input type="hidden" name="payment_status" value="<?php print $paymentStatus;?>"/> |
| |
| <div class="required" style="display: none;">* Required</div> |
| <input type="button" value="Save" onclick="javascript:verifyBugzillaLogin();" /> |
| </td> |
| </tr> |
| </table> |
| |
| </form> |
| <?php |
| if ($benefit == 1) { |
| include('en_friends_info.php'); |
| } |
| } //end of donation information form. ?> |
| </div> |
| |
| <?php //print_r($keyarray); ?> |
| </div> |
| <?php include('en_thankyou_sidebar.php')?> |