Commit eb616d68 authored by François Jacquet's avatar François Jacquet
Browse files

Remove closing PHP tags ?> at end of files program wide

parent 74e9aafe
......@@ -9,6 +9,7 @@ Changes in 2.9
- Add RequestedDate() function in Date.php
- Add PHPMailer 5.2.10 class (email creation & (SMTP) transport) in classes/PHPMailer/
- Add .logo CSS class & bigger logo.png definition
- Remove closing PHP tags ?> at end of files program wide
Changes in 2.8.11
-----------------
......
......@@ -317,4 +317,3 @@ else
$help['Eligibility/StudentList.php'] = "<p><i>Student List</i> is a report that shows every course and eligibility grade assigned to your child.</p><p>You can specify the eligibility timeframe you want to view by choosing the timeframe from the pull-down menu at the top of the screen and clicking the \"Go\" button. Eligibility is entered once per week.</p>";
}
?>
......@@ -318,4 +318,3 @@ else
$help['Eligibility/StudentList.php'] = '<p><i>Lista de Estudiante</i> es un reporte que muestra todas las calificaciones y las calificaciones de elegibilidad de su estudiante.</p><p>Usted puede especificar el transcurso de elegibilidad que quiere ver escogiendo las fechas en el menú desplegable en la parte superior de la pantalla y presionando el botón «Ir». La elegibilidad está entrada cada semana.</p>';
}
?>
......@@ -98,4 +98,3 @@ if ( empty( $_ROSARIO['Menu'] ) )
unset( $_ROSARIO['Menu'][$modcat] );
}
}
?>
......@@ -27,4 +27,3 @@ function Linkify($text)
return '<a href="'.$url.'" target="_blank">'.$input.'</a>';
}, $text);
}
?>
......@@ -30,4 +30,3 @@ function MailingLabel($address_id)
return $_ROSARIO['MailingLabel'][$address_id][$student_id];
}
?>
......@@ -476,4 +476,3 @@ function makeFileAttached($value,$name)
return $return;
}
?>
......@@ -55,5 +55,3 @@ function SendEmail($to, $subject, $message, $from = null, $cc = null)
return @mail($to,$subject,$message,$headers);
}
?>
......@@ -420,4 +420,3 @@ function _makeSchoolInput($value,$column)
//FJ save new Student's Enrollment in Enrollment.inc.php
return '<input type="hidden" name="values[STUDENT_ENROLLMENT][new][SCHOOL_ID]" value="'.UserSchool().'" />'.$schools[UserSchool()][1]['TITLE'];
}
?>
......@@ -33,4 +33,3 @@ function _makeTeachers($value,$column)
$return .= $row.'<BR />';
return mb_substr($return,0,-4);
}
?>
......@@ -62,4 +62,3 @@ function ErrorMessage($errors,$code='error')
return $return;
}
}
?>
......@@ -216,4 +216,3 @@ function GetCurrentMP($mp,$date,$error=true)
elseif($error)
ErrorMessage(array(_('You are not currently in a marking period')),'fatal');
}
?>
......@@ -194,4 +194,3 @@ function makeLogin($value,$title='LAST_LOGIN')
return $value;
}
}
?>
......@@ -507,4 +507,3 @@ function appendSQL($sql,$extra=array())
return $sql;
}
?>
......@@ -23,5 +23,3 @@ function includeOnceColorBox($rt2colorBoxDiv = false)
$included = true;
return $return;
}
?>
......@@ -753,5 +753,3 @@ function _ReindexResults($array)
}
return $new;
}
?>
......@@ -68,4 +68,3 @@ function BackPrompt($message)
<?php exit();
}
?>
......@@ -94,4 +94,3 @@ function SaveData($iu_extra,$fields_done=false,$field_names=false)
}
}
}
?>
......@@ -19,4 +19,3 @@ function SchoolInfo($field=null){
else
return $_SESSION['SchoolData'];
}
?>
......@@ -250,4 +250,3 @@ function StaffWidgets($item,&$myextra=NULL)
$_ROSARIO['StaffWidgets'][$item] = true;
}
}
?>
......@@ -136,4 +136,3 @@ if(!$_REQUEST['modfunc'])
if(!$_REQUEST['print_statements'] && AllowEdit())
echo '</FORM>';
}
?>
......@@ -125,5 +125,3 @@ if(!$_REQUEST['modfunc'])
if(!$_REQUEST['print_statements'] && AllowEdit())
echo '</FORM>';
}
?>
......@@ -128,5 +128,3 @@ if(UserStaffID() && !$_REQUEST['modfunc'])
echo '</FORM>';
}
}
?>
......@@ -125,4 +125,3 @@ if(UserStaffID() && !$_REQUEST['modfunc'])
if(!$_REQUEST['print_statements'] && AllowEdit())
echo '</FORM>';
}
?>
......@@ -45,4 +45,3 @@ else
else
BackPrompt(_('No Staff were found.'));
}
?>
......@@ -193,4 +193,3 @@ function _makeChooseCheckbox($value,$title)
return '<INPUT type="checkbox" name="student['.$THIS_RET['STUDENT_ID'].']" value="Y" />';
}
?>
......@@ -453,4 +453,3 @@ function _makeStateValue($value,$name)
else
return TextInput($value,'attendance_day['.$THIS_RET['STUDENT_ID'].'][COMMENT]');
}
?>
......@@ -257,5 +257,3 @@ function _makeStateValue($value,$name)
else
return 'Full-Day';
}
?>
......@@ -205,4 +205,3 @@ function _makeCheckBoxInput($value,$name)
return CheckBoxInput($value,'values['.$id.']['.$name.']','','',$new);
}
?>
......@@ -294,4 +294,3 @@ function makeCodePulldown($value,$student_id,$date)
return SelectInput($value,'attendance['.$student_id.']['.$date.'][ATTENDANCE_CODE]','',$_ROSARIO['code_options']);
}
?>
......@@ -375,4 +375,3 @@ function _makeTeacher($teacher,$column)
{
return mb_substr($teacher,mb_strrpos(str_replace(' - ',' ^ ',$teacher),'^')+2);
}
?>
......@@ -39,4 +39,3 @@ if(Prompt(_('Confirm'),_('When do you want to recalculate the daily attendance?'
//FJ display notice while calculating daily attendance
echo '<script>var msg_done='.json_encode(ErrorMessage(array(_('The Daily Attendance for that timeframe has been recalculated.')), 'note')).'; document.getElementById("messageDIV").innerHTML = msg_done;</script>';
}
?>
......@@ -195,4 +195,3 @@ function _makeColor($value,$state_code)
$colors = array('P'=>'#FFCC00','A'=>'#FF0000','H'=>'#FFCC00','T'=>'#6666FF');
return '<div style="float:left;'.($colors[$state_code]?' background-color:'.$colors[$state_code].';':'').' padding:0 8px;">'.$value.'</div>';
}
?>
......@@ -314,4 +314,3 @@ function makeAttendanceReason($student_id,$column)
return $current_RET[$student_id][1]['ATTENDANCE_REASON'];
}
}
?>
......@@ -141,4 +141,3 @@ else
}
ListOutput($RET,array('FULL_NAME'=>_('Teacher'),'COURSE_TITLE'=>_('Course'),'COMPLETED'=>_('Completed')),sprintf(_('Teacher who takes %s attendance'),$period_title),sprintf(_('Teachers who take %s attendance'),$period_title),false,array('STAFF_ID'));
}
?>
......@@ -283,5 +283,3 @@ function _makeChooseCheckbox($value,$title)
{
return '<INPUT type="checkbox" name="st_arr[]" value="'.$value.'" checked />';
}
?>
......@@ -328,4 +328,3 @@ function _makeContactSelect($value,$column)
}
return $return;
}
?>
......@@ -101,4 +101,3 @@ function _makeTV($value,$column)
$i = mb_substr($column,6);
return $person_RET[$i][$tv];
}
?>
......@@ -157,4 +157,3 @@ function _makeChooseCheckbox($value,$title)
else
return '';
}
?>
......@@ -351,4 +351,3 @@ function PrepareAddress($temp)
$address['STREET'] = $temp;
return $address;
}
?>
......@@ -59,4 +59,3 @@
echo '</TR>';
}
echo '</TABLE>';
?>
......@@ -423,4 +423,3 @@ function _makeNumeric($number,$column)
return;
}
?>
......@@ -546,4 +546,3 @@ function _makeNumeric($number,$column)
return $number;
}
?>
......@@ -252,5 +252,3 @@ function _makeRemove($value,$column)
return $return;
}
?>
......@@ -237,4 +237,3 @@ if(UserStudentID() && $_REQUEST['student_id'])
echo '</FORM>';
}
?>
......@@ -122,4 +122,3 @@ else
else
BackPrompt(_('No Students were found.'));
}
?>
......@@ -303,4 +303,3 @@ function _make($value,$column)
return str_replace('||',',<BR />',trim($value,'|'));
}
?>
......@@ -433,4 +433,3 @@ function _makeNumeric($number,$column)
return;
}
?>
......@@ -74,5 +74,3 @@ function _makeChooseCheckbox($value,$title)
return '<INPUT type="checkbox" name="student['.$THIS_RET['STUDENT_ID'].']" value="Y">';
}
?>
......@@ -162,5 +162,3 @@ function makeRadio($value,$title)
else
return '<INPUT type="radio" name="values['.$THIS_RET['STUDENT_ID'].']" value="'.$title.'">';
}
?>
......@@ -114,4 +114,3 @@ if(!$_REQUEST['period'])
}
ListOutput($staff_RET,$columns,'Teacher who hasn\'t entered eligibility','Teachers who haven\'t entered eligibility');
?>
......@@ -143,4 +143,3 @@ function bump_items_count($value)
$types[$THIS_RET['TRANSACTION_SHORT_NAME']]['ITEMS'] += array($value=>array(1=>array('DESCRIPTION'=>'<span style="color:red">'.$value.'</span>','COUNT'=>1,'AMOUNT'=>$THIS_RET['AMOUNT'])));
return $value;
}
?>
......@@ -62,4 +62,3 @@ function _make_staff_school($value,$column)
return SelectInput($value,'staff['.$THIS_RET['TRANSACTION_ID'].']','',$schools_select[$THIS_RET['SYEAR']]);
}
?>
......@@ -190,4 +190,3 @@ function makeDescriptionInput($value,$name)
return TextInput($value,'food_service['.$THIS_RET['SCHOOL_DATE'].'][text]','','size=20');
}
?>
......@@ -86,4 +86,3 @@ if(count($items_RET))
}
//FJ remove WrapTabs params
echo '<span class="center">'.WrapTabs($cats,'Modules.php?modname='.$_REQUEST['modname'].'&cat_id='.$_REQUEST['cat_id']).'</span>';
?>
......@@ -290,4 +290,3 @@ function get_icons_select($path)
ksort($files);
return $files;
}
?>
......@@ -191,4 +191,3 @@ function makeTextInput($value,$name)
return TextInput($value,'values['.$id.']['.$name.']','',$extra);
}
?>
......@@ -37,4 +37,3 @@ function red($value)
else
return $value;
}
?>
......@@ -69,4 +69,3 @@ function red($value)
else
return $value;
}
?>
......@@ -118,4 +118,3 @@ function red($value)
else
return $value;
}
?>
......@@ -84,4 +84,3 @@ if(!$_REQUEST['modfunc'] && UserStudentID())
echo '</TD></TR>';
echo '</TABLE>';
}
?>
......@@ -154,4 +154,3 @@ if(UserStudentID() && empty($_REQUEST['modfunc']))
echo '<BR /><span class="center">'.SubmitButton(_('Save')).'</span>';
echo '</FORM>';
}
?>
......@@ -128,4 +128,3 @@ if(UserStudentID() && empty($_REQUEST['modfunc']))
ListOutput($RET,$columns,'Transaction','Transactions',$link,$group,array('save'=>false,'search'=>false,'print'=>false));
}
?>
......@@ -220,4 +220,3 @@ function reminder($student,$teacher,$xstudents,$target,$last_deposit,$note)
echo '</TD></TR>';
echo '<TR><TD colspan="3"><BR /><BR /><HR><BR /><BR /></TD></TR></TABLE>';
}
?>
......@@ -155,4 +155,3 @@ if(UserStudentID() && empty($_REQUEST['modfunc']))
else
ErrorMessage(array(_('This student does not have a valid Meal Account.')),'fatal');
}
?>
......@@ -117,4 +117,3 @@ if(UserStudentID() && empty($_REQUEST['modfunc']))
else
echo ErrorMessage(array(_('This student does not have a valid Meal Account.')));
}
?>
......@@ -121,4 +121,3 @@ if(UserStudentID() && empty($_REQUEST['modfunc']))
echo ErrorMessage(array(_('This student does not have a valid Meal Account.')));
echo '</FORM>';
}
?>
......@@ -210,4 +210,3 @@ function makeTextInput($value,$name)
$extra = 'size=6 maxlength=8';
return TextInput($value,'values['.$THIS_RET['ITEM_ID'].']['.$name.']','',$extra);
}
?>
......@@ -142,5 +142,3 @@ ListOutput($totals,array('DESCRIPTION'=>_('Item'),'COUNT'=>_('Total Count')),'It
echo '</TD></TR></TABLE>';
echo '</FORM>';
?>
......@@ -56,4 +56,3 @@ function is_money($value)
}
else return false;
}
?>
......@@ -155,4 +155,3 @@ function bump_amount($value,$column)
return $value;
}
?>
......@@ -66,4 +66,3 @@ if(!$_REQUEST['modfunc'] && UserStaffID())
echo '</TD></TR>';
echo '</TABLE>';
}
?>
......@@ -155,4 +155,3 @@ if(UserStaffID() && empty($_REQUEST['modfunc']))
echo '<BR /><span class="center">'.SubmitButton(_('Save')).'</span>';
echo '</FORM>';
}
?>
......@@ -128,4 +128,3 @@ if(UserStaffID() && empty($_REQUEST['modfunc']))
ListOutput($RET,$columns,'Transaction','Transactions',$link,$group,array('save'=>false,'search'=>false,'print'=>false));
}
?>
......@@ -146,4 +146,3 @@ function reminder($staff,$school,$target,$last_deposit,$note)
echo '</TD></TR>';
echo '<TR><TD colspan="3"><BR /><BR /><HR><BR /><BR /></TD></TR></TABLE>';
}
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment