...

View Full Version : IPB Mod Modding



oxynical
02-16-2006, 04:03 AM
Ok, my name is Nic, I have a website.

I have a mod called Perfect Points, which is what it is. A points system. I have installed addons for the system and one thing I installed was a bank. In this bank you can send "GG Credits", my board currency. It works fine but I would like something more.
I would like it to have a donate in the url.
For example the url will be "username"
So, index.php?act=Bank_TPP&username=blah
It will automatically fill the select box with blah.
This isnt created yet, but what is created is a search form with select box. You just search for a username and it will give you alot of usernames that consists in it that term.
What I would like to do is still have the search form, and have the url get.
The url get feature is fully working but for some reason, it wont include it in the list of select.

Here is the code for it if anyone wants to help.

I included it in my next post becuase its too long in this one.

oxynical
02-16-2006, 04:04 AM
<?php
$username = (isset($_GET['username'])) ? htmlspecialchars(stripslashes($_GET['username'])) : '';

class skin_Bank_TPP_18 {


function Depositor_head() {

// Get members name, id number, & group
$name = $this->ipsclass->member['name'];
$id = $this->ipsclass->member['id'];
$mem_group = $this->ipsclass->member['g_id'];

//print ("Your Username: $name<br>Your Member Id: $id<br>Your Group Number: $mem_group");

return <<<EOF
<style type='text/css'>
<!--
.style1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 20px;
font-weight: bold;
}
-->
</style>
<table cellpadding='0' cellspacing='0' border='0' style='margin:auto;width:650px' align='center'>
<tr>
<td width='100%' height='29' class='maintitle'></td>
</tr>
</table>
EOF;
}

function DepositorBody($BankName, $Bank_Link, $TopRowDis, $TotalsRow) {
return <<<EOF

<table cellpadding='5' cellspacing='0' border='0' style='margin:auto;width:650px' align='center' class='row2'>
<tr>
<td align='center'><br><h2>$BankName</h2>$Bank_Link</td>
</tr>
<tr>
<td colspan='2' align='center'><span class='style1'>Depositors</span></td>
</tr>
<tr>
<td><table border='1' align='center' cellpadding='3' cellspacing='0'>
<tr align='center' valign='middle'>
<td width='160'><strong>MEMBER NAME</strong></td>
<td width='115'><strong>SAVINGS<br>ACCOUNTS</strong></td>
<td width='115'><strong>CERTIFICATES<br>of DEPOSIT</strong><sup>1</sup></td>
<td width='115'><strong>NET<br>DEPOSITS</strong><sup>2</sup></td>
</tr>
$TopRowDis
$TotalsRow
</table><br><sup>1</sup>Value of Certificates of Deposit at maturity.<br><sup>2</sup>Total of savings, and value of Certificates of Deposit at maturity.<br>&nbsp;</td>
</tr>
</table>
EOF;
}

function DepositorFoot() {
/*
return <<<EOF
<table cellpadding='0' cellspacing='0' border='0' style='margin:auto;width:650px' align='center'>
<tr>
<td style="padding: 0px" height='16px'><img src="style_images/tpp/ls_main_table_bottom.gif"></td>
<td style="padding: 0px; background: transparent url(style_images/tpp/clear.gif);" width="100%" class='uend' height='16px'>&nbsp;</td>
<td style="padding: 0px" height='16px'><img src="style_images/tpp/rs_main_table_bottom.gif"></td>
</tr>
</table>
EOF;
*/
}

function TransLog_head() {

// Get members name, id number, & group
$name = $this->ipsclass->member['name'];
$id = $this->ipsclass->member['id'];
$mem[group] = $this->ipsclass->member['g_id'];

return <<<EOF
<style type='text/css'>
<!--
.style1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 20px;
font-weight: bold;
}
-->
</style>
<table cellpadding='0' cellspacing='0' border='0' style='margin:auto;width:630px' align='center'>
<tr>
<td width='100%' height='29' class='maintitle'></td>
</tr>
</table>
EOF;
}

function TransLogBody($BankName, $Bank_Link, $TransLogDis, $DeleteData) {
return <<<EOF
<table cellpadding='5' cellspacing='0' border='0' style='margin:auto;width:630px' align='center' class='row2'>
<tr>
<td align='center'><br><h2>$BankName</h2>$Bank_Link</td>
</tr>
<tr>
<td colspan="2" align="center"><span class="style1">Transfer Log</span></td>
</tr>
<tr>
<td><table border='1' align='center' cellpadding='0' cellspacing='0'>
<tr align='center' valign='middle'>
<td width='75'>Transfer<br>
Number</td>
<td width='191'>Transfer<br>
Date/Time</td>
<td width='131'>Sender</td>
<td width='131'>Recipient</td>
<td width='75'>Transfer<br>
Amount</td>
</tr>
$TransLogDis
$DeleteData
</table></td>
</tr>
</table>
EOF;
}

function TransLogFoot() {
/*
return <<<EOF
<table cellpadding='0' cellspacing='0' border='0' style='margin:auto;width:630px' align='center'>
<tr>
<td style="padding: 0px" height='16px'><img src="style_images/tpp/ls_main_table_bottom.gif"></td>
<td style="padding: 0px; background: transparent url(style_images/tpp/clear.gif);" width="100%" class='uend' height='16px'>&nbsp;</td>
<td style="padding: 0px" height='16px'><img src="style_images/tpp/rs_main_table_bottom.gif"></td>
</tr>
</table>
EOF;
*/
}

function Bank_head() {

// Get members name, id number, & group
$name = $this->ipsclass->member['name'];
$id = $this->ipsclass->member['id'];
$mem[group] = $this->ipsclass->member['g_id'];

return <<<EOF

<style type='text/css'>
<!--
.style1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 20px;
font-weight: bold;
}
.style2 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #669900;
}
.style3 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
}
.style4 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 20px;
font-weight: bold;
color: #669900;
}
.style5 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
}
-->
</style>
<table cellpadding='0' cellspacing='0' border='0' style='margin:auto;width:700px' align='center'>
<tr>
<td width='100%' height='29' class='maintitle'></td>
</tr>
</table>
EOF;
}

function Bank_Manager_head() {

// Get members name, id number, & group
$name = $this->ipsclass->member['name'];
$id = $this->ipsclass->member['id'];
$mem[group] = $this->ipsclass->member['g_id'];

return <<<EOF

<style type='text/css'>
<!--
.style1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 20px;
font-weight: bold;
}
.style2 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #669900;
}
.style3 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
}
.style4 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 20px;
font-weight: bold;
color: #669900;
}
.style5 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
}
-->
</style>
<table cellpadding='0' cellspacing='0' border='0' style='margin:auto;width:700px' align='center'>
<tr>
<td width='100%' height='29' class='maintitle'></td>
</tr>
</table>
EOF;
}

function Bank_Manager($Bank_Link,$BankName, $MinDeposit, $MinWithdrawal, $HitCount, $cd7intRateW, $cd14intRate, $cd21intRate, $cd28intRate, $cd60intRate, $cd90intRate, $cd120TS1intRate, $cd120TS2intRate, $cd120TS3intRate, $InterestChange, $cd7MaturityDays, $cd14MaturityDays, $cd21MaturityDays, $cd28MaturityDays, $cd60MaturityDays, $cd90MaturityDays, $cd120TS1MaturityDays, $cd120TS2MaturityDays, $cd120TS3MaturityDays,$CD7_Name,$CD14_Name,$CD21_Name,$CD28_Name,$CD60_Name,$CD90_Name,$CD120TS1_Nam e,$CD120TS2_Name,$CD120TS3_Name,$MinimumDeposit,$MinimumWithdrawal) {

return <<<EOF
<table align='center' style='margin:auto;width:700px' class="row2">
<tr>
<td align='center'><br><h2>$BankName</h2>$Bank_Link<br>
<hr width="300"></td>
</tr>
<tr>
<td><table border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" align="center" class="style1">Bank Management<br>&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="style2"><form action="" method="post" name="BankManagement" id="BankManagement">
Bank Name<br>
<input name="BankName" type="text" id="BankName" value="$BankName" size="50" maxlength="255">
</td>
</tr>
<tr align="center">
<td width="50%" class="style2">Minimum Deposit<br>
<input name="MinDeposit" type="text" id="MinDeposit" value="$MinimumDeposit" size="10" maxlength="10">
</td>
<td class="style2">Minimum Withdrawal<br>
<input name="MinWithdrawal" type="text" id="MinWithdrawal" value="$MinimumWithdrawal" size="10" maxlength="10"></td>
</tr>
<tr>
<td colspan="2"><table align='center' style='margin:auto;width:300px'>
<tr>
<td colspan="3" align="center"><span class="style3">Certificates of
Deposit<br>
Inerest Rates as percentage<br></span>
</td>
</tr>

oxynical
02-16-2006, 04:04 AM
<tr>
<td colspan="3"><span class="style5">Do not use a percent sign when
you change the CD interest rates.<br>
Example:&nbsp; For 10%, you would put 10.&nbsp; For 4.5% you
would put 4.5</span>
</td>
<tr align="center">
<td class="style2">$CD7_Name<br>
<input name="CD7Int" type="text" id="CD7Int" value="$cd7intRateW" size="4" maxlength="5">
</td>
<td class="style2">$CD14_Name<br>
<input name="CD14Int" type="text" id="CD14Int" value="$cd14intRate" size="4" maxlength="5"></td>
<td class="style2">$CD21_Name<br>
<input name="CD21Int" type="text" id="CD21Int" value="$cd21intRate" size="4" maxlength="5"></td>
</tr>
<tr align="center">
<td class="style2">$CD28_Name<br>
<input name="CD28Int" type="text" id="CD28Int" value="$cd28intRate" size="4" maxlength="5"></td>
<td class="style2">$CD60_Name<br>
<input name="CD60Int" type="text" id="CD60Int" value="$cd60intRate" size="4" maxlength="5"></td>
<td class="style2">$CD90_Name<br>
<input name="CD90Int" type="text" id="CD90Int" value="$cd90intRate" size="4" maxlength="5"></td>
</tr>
<tr align="center">
<td class="style2">$CD120TS1_Name<br>
<input name="CD120TS1Int" type="text" id="CD120TS1Int" value="$cd120TS1intRate" size="4" maxlength="5"></td>
<td class="style2">$CD120TS2_Name<br>
<input name="CD120TS2Int" type="text" id="CD120TS2Int" value="$cd120TS2intRate" size="4" maxlength="5"></td>
<td class="style2">$CD120TS3_Name<br>
<input name="CD120TS3Int" type="text" id="CD120TS3Int" value="$cd120TS3intRate" size="4" maxlength="5"></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2"><table width="550" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" class="style2">Change interest after<br>
this many page hits<br>
<input name="HitCounter" type="text" id="HitCounter" value="$InterestChange" size="7" maxlength="7">
<br>
<font color="#000000">Current Hit Count: $HitCount</font> </td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2"><table align='center' style='margin:auto;width:300px'>
<tr>
<td colspan="3" align="center"><span class="style3">Certificates of
Deposit<br>
Days until Muturity<br></span>
</td>
</tr>
<tr>
<td colspan="3"><span class="style5">Set number of days for CDs to
reach maturity.<br>
<span class="style2">WARNING</span>: This will affect the maturity
time for any CDs already owned.</span>
</td>
</tr>
<tr align="center">
<td class="style2">$CD7_Name<br>
<input name="CD7Days" type="text" id="CD7Days" value="$cd7MaturityDays" size="4" maxlength="4">
</td>
<td class="style2">$CD14_Name<br>
<input name="CD14Days" type="text" id="CD14Days" value="$cd14MaturityDays" size="4" maxlength="4"></td>
<td class="style2">$CD21_Name<br>
<input name="CD21Days" type="text" id="CD21Days" value="$cd21MaturityDays" size="4" maxlength="4"></td>
</tr>
<tr align="center">
<td class="style2">$CD28_Name<br>
<input name="CD28Days" type="text" id="CD28Days" value="$cd28MaturityDays" size="4" maxlength="4"></td>
<td class="style2">$CD60_Name<br>
<input name="CD60Days" type="text" id="CD60Days" value="$cd60MaturityDays" size="4" maxlength="4"></td>
<td class="style2">$CD90_Name<br>
<input name="CD90Days" type="text" id="CD90Days" value="$cd90MaturityDays" size="4" maxlength="4"></td>
</tr>
<tr align="center">
<td class="style2">$CD120TS1_Name<br>
<input name="CD120TS1Days" type="text" id="CD120TS1Days" value="$cd120TS1MaturityDays" size="4" maxlength="4"></td>
<td class="style2">$CD120TS2_Name<br>
<input name="CD120TS2Days" type="text" id="CD120TS2Days" value="$cd120TS2MaturityDays" size="4" maxlength="4"></td>
<td class="style2">$CD120TS3_Name<br>
<input name="CD120TS3Days" type="text" id="CD120TS3Days" value="$cd120TS3MaturityDays" size="4" maxlength="4"></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" align="center"><input name="SubmitManager" type="submit" value="Submit">
&nbsp;
<input name="ResetManager" type="reset" value="Reset">
</form>
</td>
</tr>
<tr>
<td colspan="2" align="center"><hr width="300">
<hr width="200">
<hr width="300">
</td>
</tr>
<tr>
<td colspan="2" align="center" class="style3">Delete Depositor from
Bank</td>
</tr>
<tr>
<td width="50%" align="center" class="style2"><form name="form1" method="post" action="">
&nbsp;<br>
<input name="DepositorName" type="text" id="DepositorName" value="Name of Depositor" size="25" maxlength="100">
<br>
<input name="SubmitDeleteDepositor" type="submit" id="SubmitDeleteDepositor" value="Delete">
&nbsp;
<input name="ResetDeleteDepositor" type="reset" id="ResetDeleteDepositor" value="Reset">
</form></td>
<td valign="middle" class="style3"><font color="#FF0000">WARNING:</font><br>
This action cannot be undone, and you will not be asked for confirmation.</td>
</tr>
<tr>
<td colspan="2" align="center"><hr width="300">
<hr width="200">
<hr width="300">
</td>
</tr>
<tr>
<tr>
<td colspan="2" align="center" class="style3">Delete Deadbeats from
Bank
</td>
</tr>
<td colspan="2" align="center">
This will delete all bank members with no<br>
saving accounts or Certificates of Deposit<br>
<form action='' method='post' name='DeleteDeadbeats' id='DeleteDeadbeats'>
<input name='ByeBye_Deadbeats' type='submit' id='ByeBye_Deadbeats' value='Delete Deadbeats'>
</form>
</td>
</tr>
</table></td>
</tr>
<tr>
<td align="left" class="style2">$Bank_Link</td>
</tr>
</table>
EOF;
}

function Bank_body($Richest, $PPsDis,$tppcurrencyname,$BankName,$SavingsIntRateDis,$MinimumDepositDis,$MinimumWithdrawalDis,$savi ngsbalDis,$lastintpymt,$Show_CDs,$show_this,$cd7daystomaturity,$cd14daystomaturity,$cd21daystomaturi ty,$cd28daystomaturity,$cd60daystomaturity,$cd90daystomaturity,$cd120TS1daystomaturity,$cd120TS2days tomaturity,$cd120TS3daystomaturity,$link,$CD7_Name,$CD14_Name,$CD21_Name,$CD28_Name,$CD60_Name,$CD90 _Name,$CD120TS1_Name,$CD120TS2_Name,$CD120TS3_Name,$cd120TS1maturedDis,$cd120TS2maturedDis,$cd120TS3 maturedDis,$cd7maturedDis,$cd7_1Dis,$cd7_2Dis,$cd7_3Dis,$cd14maturedDis,$cd14_1Dis,$cd14_2Dis,$cd14_ 3Dis,$cd21maturedDis,$cd21_1Dis,$cd21_2Dis,$cd21_3Dis,$cd28maturedDis,$cd28_1Dis,$cd28_2Dis,$cd28_3D is,$cd60maturedDis,$cd60_1Dis,$cd60_2Dis,$cd60_3Dis,$cd90maturedDis,$cd90_1Dis,$cd90_2Dis,$cd90_3Dis , $VeiwLog, $FoundNameBox) {

// Get members name, id number, & group
$name = $this->ipsclass->member['name'];
$id = $this->ipsclass->member['id'];
$mem[group] = $this->ipsclass->member['g_id'];

$date = date('F j, Y \- g:i a', time());

return <<<EOF
<table align='center' style='margin:auto;width:700px' class="row2">
<tr>
<td align='center'><br><h2>$BankName</h2><br>$link $Richest
<hr width="300"></td>
</tr>
<tr>
<td><table align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" align="center" class="style1">Savings<br>&nbsp;</td>
</tr>
<tr>
<td colspan="2" align="center" class="style5">$date<br>
&nbsp;</td>
</tr>
<tr>
<td colspan="2" align="center" class="style3">The current interest
rate is: $SavingsIntRateDis% (compounded daily)</td>
</tr>
<tr>
<td colspan="2" align="center">$name you have $PPsDis $tppcurrencyname onhand<br>
<table width="400"><tr><td align="center">
<fieldset><legend><font color="#000000">Make a deposit</font>&nbsp;</legend>
<form action="" method="post" name="Deposit" id="Deposit">
<input name="DepositAmt" type="text" id="DepositAmt" size="10" maxlength="20">
&nbsp;&nbsp;
<input name="SubmitDeposit" type="submit" id="SubmitDeposit" value="Deposit ">
</form>
<br>
<span class="style2">You <u>must</u> make a deposit to collect
your interest.</span><br>
Minimum Deposit: $MinimumDepositDis $tppcurrencyname<br>
<br>
Your savings account balance is $savingsbalDis $tppcurrencyname.<br>
<span class="style2">$lastintpymt</span></font></fieldset>
</td></tr></table>
</td>
</tr>
<tr>
<td colspan="2" align="center"><form name="Withdraw" method="post" action="">
&nbsp;
<input name="WithDrawAmt" type="text" id="WithDrawAmt" size="10" maxlength="20">
&nbsp;&nbsp;
<input name="SubmitWithdrawal" type="submit" id="SubmitWithdrawal" value="Withdraw">
</form>
<br>
Minimum Withdrawal: $MinimumWithdrawalDis $tppcurrencyname<br>
<br></td>
</tr>
<tr align="center">
<td colspan="2" align="center" class="style1">Certificates of
Deposit<br>&nbsp;</td>
</tr>
<tr align="center" valign="middle">
<td width="50%"><form action="" method="post" name="Select_CD_Form">
Select a CD to display<br>
<select name="Select_CD" id="Select_CD">
<option>$CD7_Name</option>
<option>$CD14_Name</option>
<option>$CD21_Name</option>
<option>$CD28_Name</option>
<option>$CD60_Name</option>
<option>$CD90_Name</option>
<option>$CD120TS1_Name</option>
<option>$CD120TS2_Name</option>
<option>$CD120TS3_Name</option>
<option selected>Select a CD</option>
</select>
&nbsp;
<input type="submit" name="DisplayCD" value="Display">
</form></td>
<td align="center" valign="middle" width="50%">$show_this</td>
</tr>
<tr>
<td colspan="2"><table align='center' style='margin:auto;width:540px'>
<tr align="center" valign="middle">
<td>$cd7daystomaturity</td>
<td>$cd14daystomaturity</td>
<td>$cd21daystomaturity</td>
</tr>
<tr align="center" valign="middle">
<td>$cd28daystomaturity</td>
<td>$cd60daystomaturity</td>
<td>$cd90daystomaturity</td>
</tr>
<tr align="center" valign="middle">
<td>$cd120TS1daystomaturity</td>
<td>$cd120TS2daystomaturity</td>
<td>$cd120TS3daystomaturity</td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td colspan="2" align="center" class="style3">Transfer $tppcurrencyname
to another member<br>
<span class="style2">(Transferred from your savings account)</span></td>
</tr>
<tr align='center'>
<td colspan="2"><form action='' method='post' name='FindMemberName' id='FindMemberName'>
<strong>Find Members Name</strong><br>
Name Contains:<input name='NameContains' type='text' id='NameContains' size='20' maxlength='25'>
<input name='SubmitFindName' type='submit' id='SubmitFindName' value='Find'>
</form></td>
</tr>
<tr align="center">
<td colspan="2">
<form action="" method="post" name="TransferFund" id="TransferFund">
Amount to Transfer:&nbsp;
<input name="TransferAmount" type="text" id="TransferAmount" size="6" maxlength="6">
&nbsp;&nbsp;&nbsp;Recipient:&nbsp;
<select name='TransferRecipient' id='TransferRecipient' value="<? echo $username;?>">
<option>$FoundNameBox</option>
<option>$username
</option>
</select>
<br>
<input name="SubmitTransfer" type="submit" id="SubmitTransfer" value="Transfer">
&nbsp;
<input name="ResetTransfer" type="reset" id="ResetTransfer" value="Reset">
</form></td>
</tr>
<tr>
<td colspan="2" align="center">$VeiwLog</td>
</tr>
</table></td>
</tr>
<tr>
<td align="left" class="style2">$link</td>
</tr>
</table>
EOF;
}

function Bank_foot() {
/*
return <<<EOF
<table cellpadding='0' cellspacing='0' border='0' style='margin:auto;width:700px' align='center'>
<tr>
<td style="padding: 0px" height='16px'><img src="cache/skin_cache/cacheid_18/style_images/tpp/ls_main_table_bottom.gif"></td>
<td style="padding: 0px; background: transparent url(/cache/skin_cache/cacheid_18/style_images/tpp/clear.gif);" width="100%" class='uend' height='16px'>&nbsp;</td>
<td style="padding: 0px" height='16px'><img src="cache/skin_cache/cacheid_18/style_images/tpp/rs_main_table_bottom.gif"></td>
</tr>
</table>
EOF;
*/
}

}
?>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum