<?PHP
//Filename : add_charge.php
//Description : Add charge to individual users or to entire chapter
//Author : darc
//Last modified : 2006.12.20
include '../includes/auth_ec.php';
include '../includes/db.php';
?>
<html>
<head><title>Gsys Treasury Administration :: Add Charge</title>
<link href="../includes/index.css" rel="stylesheet" type="text/css">
</head>
<body class="body">
<br />
<table width="810" height="626" border="0" align="center" cellpadding="15">
<tr>
<td height="128" colspan="2"><img src="../images/eg_banner.gif" width="810" height="172"></td>
</tr>
<tr>
<td width="27%" height="488" valign="top"> <?php include '../includes/nav.inc'; ?></td>
<td width="53%" valign="top">
<strong>Add organization wide charge</strong>
<br /><br />
<form method="post" action="treasury_functions.php?cat=add_wide">
<input type="hidden" name="added_by" value="<?php session_start(); echo $_SESSION[current_user]; ?>">
<strong>Amount:</strong>
<INPUT TYPE="text" NAME="amount" SIZE="3"><br /><br />
<strong>Description:</strong><br />
<textarea cols="40" rows="5" name="description"></textarea>
<br />
<INPUT TYPE="SUBMIT" NAME="submit" VALUE="Add Charge">
<br />
</form>
<br />
<hr>
<strong>Add pledge wide charge</strong>
<br /><br />
<form method="post" action="treasury_functions.php?cat=add_pledge_wide">
<input type="hidden" name="added_by" value="<?php session_start(); echo $_SESSION[current_user]; ?>">
<strong>Amount:</strong>
<INPUT TYPE="text" NAME="amount" SIZE="3"><br /><br />
<strong>Description:</strong><br />
<textarea cols="40" rows="5" name="description"></textarea>
<br />
<INPUT TYPE="SUBMIT" NAME="submit" VALUE="Add Charge">
<br />Add Checkbox for option to send new charge notification to mailing list with amount, description, and payment deadlines?
</form>
<br />
<hr>
<strong>Add rent charge for members living in the house.</strong>
<br /><br />
<form method="post" action="treasury_functions.php?cat=add_rent">
<input type="hidden" name="added_by" value="<?php session_start(); echo $_SESSION[current_user]; ?>">
<strong>Amount:</strong>
<INPUT TYPE="text" NAME="amount" SIZE="3"><br /><br />
<strong>Description:</strong><br />
<textarea cols="40" rows="5" name="description"></textarea>
<br />
<INPUT TYPE="SUBMIT" NAME="submit" VALUE="Add Charge">
<br />Add Checkbox for option to send new charge notification to mailing list with amount, description, and payment deadlines?
</form>
<br />
<hr>
<br />
<strong>Add charge for specific member:</strong>
<br /><br />
<form method="post" action="treasury_functions.php?cat=add_specific">
<input type="hidden" name="added_by" value="<?php session_start(); echo $_SESSION[current_user]; ?>">
<strong>Member Name:</strong><SELECT NAME="member_name">
<OPTION VALUE="">
<?php //populate list with active users
$sql = "SELECT pin_num, l_name, f_name, status FROM brothers WHERE l_name != \"\" && status != \"alumnus\" ORDER BY l_name;";
$result = mysql_query($sql,$connection) or die(mysql_error);
while($row =mysql_fetch_array($result))
{
$l_name = $row['l_name'];
$f_name = $row['f_name'];
$pin_num = $row['pin_num'];
echo "<OPTION VALUE=\"$pin_num\">$l_name, $f_name";
}
?>
</SELECT>
<br /><br />
<strong>Amount:</strong>
<INPUT TYPE="text" NAME="amount" SIZE="3"><br /><br />
<strong>Description:</strong><br />
<textarea cols="40" rows="5" name="description"></textarea>
<br />
<INPUT TYPE="SUBMIT" NAME="submit" VALUE="Add Charge">
</form>
<br /><br />
Add checkbox for option to send new charge notification to brothers.email with amount, description, and payment deadlines?
</td>
</tr>
</table>
</body>
</html>