Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
François Jacquet
rosariosis
Commits
d2bce64e
Commit
d2bce64e
authored
Oct 30, 2015
by
François Jacquet
Browse files
HTML tags to lowercase
parent
8e3d2e66
Changes
206
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
75 changed files
with
1374 additions
and
1373 deletions
+1374
-1373
CHANGES.md
CHANGES.md
+1
-0
Help.php
Help.php
+19
-19
ProgramFunctions/MailingLabel.fnc.php
ProgramFunctions/MailingLabel.fnc.php
+2
-2
ProgramFunctions/PortalPollsNotes.fnc.php
ProgramFunctions/PortalPollsNotes.fnc.php
+39
-39
ProgramFunctions/StudentsUsersInfo.fnc.php
ProgramFunctions/StudentsUsersInfo.fnc.php
+16
-16
ProgramFunctions/miscExport.fnc.php
ProgramFunctions/miscExport.fnc.php
+1
-1
Side.php
Side.php
+40
-40
Warehouse.php
Warehouse.php
+1
-1
assets/themes/WPadmin/stylesheet.css
assets/themes/WPadmin/stylesheet.css
+1
-1
assets/themes/WPadmin/stylesheet_wkhtmltopdf.css
assets/themes/WPadmin/stylesheet_wkhtmltopdf.css
+1
-1
classes/Parsedown.php
classes/Parsedown.php
+1
-1
database.inc.php
database.inc.php
+15
-15
diagnostic.php
diagnostic.php
+3
-3
functions/CustomFields.fnc.php
functions/CustomFields.fnc.php
+4
-4
functions/DrawHeader.fnc.php
functions/DrawHeader.fnc.php
+9
-9
functions/ErrorMessage.fnc.php
functions/ErrorMessage.fnc.php
+2
-2
functions/GetStaffList.fnc.php
functions/GetStaffList.fnc.php
+5
-5
functions/GetStuList.fnc.php
functions/GetStuList.fnc.php
+14
-14
functions/Inputs.php
functions/Inputs.php
+43
-43
functions/ListOutput.fnc.php
functions/ListOutput.fnc.php
+81
-81
functions/Prompts.php
functions/Prompts.php
+10
-10
functions/Search.fnc.php
functions/Search.fnc.php
+55
-55
functions/StaffWidgets.fnc.php
functions/StaffWidgets.fnc.php
+48
-48
functions/Widgets.fnc.php
functions/Widgets.fnc.php
+197
-197
index.php
index.php
+12
-12
locale/ar_AE.utf8/LC_MESSAGES/rosariosis.po
locale/ar_AE.utf8/LC_MESSAGES/rosariosis.po
+16
-16
locale/bn_BD.utf8/LC_MESSAGES/rosariosis.po
locale/bn_BD.utf8/LC_MESSAGES/rosariosis.po
+11
-11
locale/de_DE.utf8/LC_MESSAGES/rosariosis.po
locale/de_DE.utf8/LC_MESSAGES/rosariosis.po
+12
-12
locale/en_CA.utf8/LC_MESSAGES/rosariosis.po
locale/en_CA.utf8/LC_MESSAGES/rosariosis.po
+7
-7
locale/es_ES.utf8/LC_MESSAGES/rosariosis.po
locale/es_ES.utf8/LC_MESSAGES/rosariosis.po
+12
-12
locale/fa_IR.utf8/LC_MESSAGES/rosariosis.po
locale/fa_IR.utf8/LC_MESSAGES/rosariosis.po
+16
-16
locale/fr_FR.utf8/LC_MESSAGES/rosariosis.po
locale/fr_FR.utf8/LC_MESSAGES/rosariosis.po
+18
-18
locale/it_IT.utf8/LC_MESSAGES/rosariosis.po
locale/it_IT.utf8/LC_MESSAGES/rosariosis.po
+16
-16
locale/ja_JP.utf8/LC_MESSAGES/rosariosis.po
locale/ja_JP.utf8/LC_MESSAGES/rosariosis.po
+16
-16
locale/ko_KR.utf8/LC_MESSAGES/rosariosis.po
locale/ko_KR.utf8/LC_MESSAGES/rosariosis.po
+16
-16
locale/pt_PT.utf8/LC_MESSAGES/rosariosis.po
locale/pt_PT.utf8/LC_MESSAGES/rosariosis.po
+16
-16
locale/ru_RU.utf8/LC_MESSAGES/rosariosis.po
locale/ru_RU.utf8/LC_MESSAGES/rosariosis.po
+16
-16
locale/tr_TR.utf8/LC_MESSAGES/rosariosis.po
locale/tr_TR.utf8/LC_MESSAGES/rosariosis.po
+16
-16
locale/zh_CN.utf8/LC_MESSAGES/rosariosis.po
locale/zh_CN.utf8/LC_MESSAGES/rosariosis.po
+15
-15
modules/Accounting/DailyTransactions.php
modules/Accounting/DailyTransactions.php
+4
-4
modules/Accounting/Expenses.php
modules/Accounting/Expenses.php
+11
-11
modules/Accounting/Incomes.php
modules/Accounting/Incomes.php
+11
-11
modules/Accounting/Salaries.php
modules/Accounting/Salaries.php
+6
-6
modules/Accounting/StaffPayments.php
modules/Accounting/StaffPayments.php
+6
-6
modules/Attendance/AddAbsences.php
modules/Attendance/AddAbsences.php
+22
-22
modules/Attendance/Administration.php
modules/Attendance/Administration.php
+14
-14
modules/Attendance/Administration_fast.old.php
modules/Attendance/Administration_fast.old.php
+12
-12
modules/Attendance/AttendanceCodes.php
modules/Attendance/AttendanceCodes.php
+4
-4
modules/Attendance/DailySummary.php
modules/Attendance/DailySummary.php
+9
-9
modules/Attendance/DuplicateAttendance.php
modules/Attendance/DuplicateAttendance.php
+12
-12
modules/Attendance/FixDailyAttendance.php
modules/Attendance/FixDailyAttendance.php
+3
-3
modules/Attendance/Percent.php
modules/Attendance/Percent.php
+37
-37
modules/Attendance/StudentSummary.php
modules/Attendance/StudentSummary.php
+7
-7
modules/Attendance/TakeAttendance.php
modules/Attendance/TakeAttendance.php
+17
-17
modules/Attendance/TeacherCompletion.php
modules/Attendance/TeacherCompletion.php
+8
-8
modules/Custom/AttendanceSummary.php
modules/Custom/AttendanceSummary.php
+72
-72
modules/Custom/CreateParents.php
modules/Custom/CreateParents.php
+33
-33
modules/Custom/DataDictionary.php
modules/Custom/DataDictionary.php
+8
-8
modules/Custom/MyReport.php
modules/Custom/MyReport.php
+3
-3
modules/Custom/NotifyParents.php
modules/Custom/NotifyParents.php
+18
-18
modules/Custom/Registration.php
modules/Custom/Registration.php
+68
-68
modules/Custom/RequestsMatrix.php
modules/Custom/RequestsMatrix.php
+7
-7
modules/Discipline/CategoryBreakdown.php
modules/Discipline/CategoryBreakdown.php
+8
-8
modules/Discipline/CategoryBreakdownTime.php
modules/Discipline/CategoryBreakdownTime.php
+11
-11
modules/Discipline/DisciplineForm.php
modules/Discipline/DisciplineForm.php
+4
-4
modules/Discipline/MakeReferral.php
modules/Discipline/MakeReferral.php
+38
-38
modules/Discipline/ReferralLog.php
modules/Discipline/ReferralLog.php
+8
-8
modules/Discipline/Referrals.php
modules/Discipline/Referrals.php
+33
-33
modules/Discipline/StudentFieldBreakdown.php
modules/Discipline/StudentFieldBreakdown.php
+14
-14
modules/Eligibility/Activities.php
modules/Eligibility/Activities.php
+2
-2
modules/Eligibility/AddActivity.php
modules/Eligibility/AddActivity.php
+12
-12
modules/Eligibility/EnterEligibility.php
modules/Eligibility/EnterEligibility.php
+6
-6
modules/Eligibility/EntryTimes.php
modules/Eligibility/EntryTimes.php
+8
-8
modules/Eligibility/Student.php
modules/Eligibility/Student.php
+10
-10
modules/Eligibility/StudentList.php
modules/Eligibility/StudentList.php
+5
-5
No files found.
CHANGES.md
View file @
d2bce64e
...
...
@@ -39,6 +39,7 @@ Changes in 2.9
-
Add space after control structures keywords: if, for, foreach, while, switch
-
Add spaces before and after arrow: => (foreach & associative arrays)
-
Always use require_once in place of include & require, program wide
-
HTML tags to lowercase, program wide
Changes in 2.8.11
-----------------
...
...
Help.php
View file @
d2bce64e
...
...
@@ -47,17 +47,17 @@ switch( User( 'PROFILE' ) )
$handle
=
PDFStart
();
?>
<
TABLE
>
<
TR
>
<
TD
>
<
IMG
SRC
=
"assets/themes/
<?php
echo
Preferences
(
'THEME'
);
?>
/logo.png"
/>
</
TD
>
<
TD
>
<
table
>
<
tr
>
<
td
>
<
img
src
=
"assets/themes/
<?php
echo
Preferences
(
'THEME'
);
?>
/logo.png"
/>
</
td
>
<
td
>
<h1>
<?php
echo
sprintf
(
_
(
'%s Handbook'
),
$title
);
?>
</h1>
</
TD
>
</
TR
>
</
TABLE
>
<
HR
/>
</
td
>
</
tr
>
</
table
>
<
hr
/>
<?php
foreach
(
(
array
)
$help
as
$program
=>
$value
)
...
...
@@ -85,7 +85,7 @@ foreach ( (array)$help as $program => $value )
echo
DrawHeader
(
_
(
$modcat_echo
)
);
?>
<
HR
/>
<
hr
/>
<?php
endif
;
...
...
@@ -101,7 +101,7 @@ foreach ( (array)$help as $program => $value )
<?php
if
(
$program
==
'default'
)
echo
ParseMLField
(
Config
(
'TITLE'
)
)
.
' - '
.
sprintf
(
_
(
'%s Handbook'
),
$title
)
.
'<
BR
/>'
.
' - '
.
sprintf
(
_
(
'%s Handbook'
),
$title
)
.
'<
br
/>'
.
sprintf
(
_
(
'version %s'
),
'1.1'
);
else
...
...
@@ -109,9 +109,9 @@ foreach ( (array)$help as $program => $value )
?>
</h3>
<
TABLE
class=
"width-100p"
>
<
TR
>
<
TD
class=
"header2"
>
<
table
class=
"width-100p"
>
<
tr
>
<
td
class=
"header2"
>
<?php
if
(
User
(
'PROFILE'
)
==
'student'
)
...
...
@@ -125,11 +125,11 @@ foreach ( (array)$help as $program => $value )
echo
$value
;
?>
</
TD
>
</
TR
>
</
TABLE
>
</
td
>
</
tr
>
</
table
>
</div>
<
BR
/>
<
br
/>
<?php
}
//end foreach
...
...
ProgramFunctions/MailingLabel.fnc.php
View file @
d2bce64e
...
...
@@ -19,10 +19,10 @@ function MailingLabel($address_id)
$people_total
=
count
(
$people
);
for
(
$i
=
1
;
$i
<
$people_total
;
$i
++
)
$return
.
=
$people
[
$i
][
'FIRST_NAME'
]
.
' & '
;
$return
.
=
$people
[
$i
][
'FIRST_NAME'
]
.
' '
.
$people
[
$i
][
'LAST_NAME'
]
.
'<
BR
/>'
;
$return
.
=
$people
[
$i
][
'FIRST_NAME'
]
.
' '
.
$people
[
$i
][
'LAST_NAME'
]
.
'<
br
/>'
;
}
// mab - this is a bit of a kludge but insert an html comment so people and address can be split later
$return
.
=
'<!-- -->'
.
$people
[
$i
][
'ADDRESS'
]
.
'<
BR
/>'
.
$people
[
$i
][
'CITY'
]
.
(
$people
[
$i
][
'STATE'
]
?
', '
.
$people
[
$i
][
'STATE'
]
:
''
)
.
(
$people
[
$i
][
'ZIPCODE'
]
?
' '
.
$people
[
$i
][
'ZIPCODE'
]
:
''
);
$return
.
=
'<!-- -->'
.
$people
[
$i
][
'ADDRESS'
]
.
'<
br
/>'
.
$people
[
$i
][
'CITY'
]
.
(
$people
[
$i
][
'STATE'
]
?
', '
.
$people
[
$i
][
'STATE'
]
:
''
)
.
(
$people
[
$i
][
'ZIPCODE'
]
?
' '
.
$people
[
$i
][
'ZIPCODE'
]
:
''
);
}
$_ROSARIO
[
'MailingLabel'
][
$address_id
][
$student_id
]
=
$return
;
...
...
ProgramFunctions/PortalPollsNotes.fnc.php
View file @
d2bce64e
...
...
@@ -160,12 +160,12 @@ function PortalPollForm($poll_id, $profile_id, $user_id, $poll_questions_RET)
<input type="hidden" name="user_id" value="'
.
$user_id
.
'" />
<input type="hidden" name="total_votes_string" value="'
.
_
(
'Total Participants'
)
.
'" />
<input type="hidden" name="poll_completed_string" value="'
.
_
(
'Poll completed'
)
.
'" />
<
TABLE
class="width-100p cellspacing-0 widefat">'
;
<
table
class="width-100p cellspacing-0 widefat">'
;
foreach
(
$poll_questions_RET
as
$question
)
{
$PollForm
.
=
'<
TR><TD
style="vertical-align:top;"><b>'
.
$question
[
'QUESTION'
]
.
'</b></
TD
>
<
TD><TABLE
class="width-100p cellspacing-0">'
;
$PollForm
.
=
'<
tr><td
style="vertical-align:top;"><b>'
.
$question
[
'QUESTION'
]
.
'</b></
td
>
<
td><table
class="width-100p cellspacing-0">'
;
$options_array
=
explode
(
'<br />'
,
nl2br
(
$question
[
'OPTIONS'
]));
...
...
@@ -174,29 +174,29 @@ function PortalPollForm($poll_id, $profile_id, $user_id, $poll_questions_RET)
{
if
(
$question
[
'TYPE'
]
==
'multiple_radio'
)
{
$PollForm
.
=
'<
TR><TD
>
$PollForm
.
=
'<
tr><td
>
<label>
<input type="radio" name="votes['
.
$poll_id
.
']['
.
$question
[
'ID'
]
.
']" value="'
.
$option_nb
.
'" '
.
(
$checked
?
'checked'
:
''
)
.
' /> '
.
$option_label
.
'
</label>
</
TD
></
TR
>'
.
"
\n
"
;
</
td
></
tr
>'
.
"
\n
"
;
}
else
//multiple
{
$PollForm
.
=
'<
TR><TD
>
$PollForm
.
=
'<
tr><td
>
<label>
<input type="checkbox" name="votes['
.
$poll_id
.
']['
.
$question
[
'ID'
]
.
'][]" value="'
.
$option_nb
.
'" /> '
.
$option_label
.
'
</label>
</
TD
></
TR
>'
.
"
\n
"
;
</
td
></
tr
>'
.
"
\n
"
;
}
$checked
=
false
;
}
$PollForm
.
=
'</
TABLE
></
TD
></
TR
>'
;
$PollForm
.
=
'</
table
></
td
></
tr
>'
;
}
$PollForm
.
=
'</
TD
></
TR
></
TABLE
>
<
P
><input type="submit" value="'
.
_
(
'Submit'
)
.
'" id="pollSubmit'
.
$poll_id
.
'" /></
P
></form>'
;
$PollForm
.
=
'</
td
></
tr
></
table
>
<
p
><input type="submit" value="'
.
_
(
'Submit'
)
.
'" id="pollSubmit'
.
$poll_id
.
'" /></
p
></form>'
;
if
(
!
isset
(
$_REQUEST
[
'_ROSARIO_PDF'
]))
$PollForm
.
=
'</div>'
;
...
...
@@ -218,15 +218,15 @@ function PortalPollsVotesDisplay($poll_id, $display_votes, $poll_questions_RET,
//FJ responsive rt td too large
if
(
!
$js_included_is_voting
)
{
$votes_display
.
=
'<
DIV
id="divPortalPoll'
.
$poll_id
.
'" class="divPortalPoll rt2colorBox">'
.
"
\n
"
;
$votes_display
.
=
'<
div
id="divPortalPoll'
.
$poll_id
.
'" class="divPortalPoll rt2colorBox">'
.
"
\n
"
;
}
foreach
(
$poll_questions_RET
as
$question
)
{
$total_votes
=
0
;
//question
$votes_display
.
=
'<
P
><
B
>'
.
$question
[
'QUESTION'
]
.
'</
B
></
P
>
<
TABLE
class="cellspacing-0 widefat col1-align-right">'
.
"
\n
"
;
$votes_display
.
=
'<
p
><
b
>'
.
$question
[
'QUESTION'
]
.
'</
b
></
p
>
<
table
class="cellspacing-0 widefat col1-align-right">'
.
"
\n
"
;
//votes
$votes_array
=
explode
(
'||'
,
$question
[
'VOTES'
]);
...
...
@@ -241,13 +241,13 @@ function PortalPollsVotesDisplay($poll_id, $display_votes, $poll_questions_RET,
{
$percent
=
round
((
$votes_array
[
$i
]
/
$total_votes
)
*
100
);
$votes_display
.
=
'<
TR
>
<
TD
>'
.
$options_array
[
$i
]
.
'</
TD
>
<
TD
><div class="bar" style="width:'
.
$percent
.
'px;"> </div></
TD
>
<
TD
><b> '
.
$percent
.
'%</b></
TD
>
</
TR
>'
.
"
\n
"
;
$votes_display
.
=
'<
tr
>
<
td
>'
.
$options_array
[
$i
]
.
'</
td
>
<
td
><div class="bar" style="width:'
.
$percent
.
'px;"> </div></
td
>
<
td
><b> '
.
$percent
.
'%</b></
td
>
</
tr
>'
.
"
\n
"
;
}
$votes_display
.
=
'</
TABLE
>'
.
"
\n
"
;
$votes_display
.
=
'</
table
>'
.
"
\n
"
;
}
$total_votes_str
=
isset
(
$_POST
[
'total_votes_string'
])
?
$_POST
[
'total_votes_string'
]
:
_
(
'Total Participants'
);
...
...
@@ -255,7 +255,7 @@ function PortalPollsVotesDisplay($poll_id, $display_votes, $poll_questions_RET,
$votes_display
.
=
'<p>'
.
$total_votes_str
.
': '
.
$votes_number
.
'</p>'
;
if
(
!
$js_included_is_voting
)
$votes_display
.
=
'</
DIV
>'
;
$votes_display
.
=
'</
div
>'
;
return
$votes_display
;
}
...
...
@@ -301,14 +301,14 @@ function makePublishing($value,$name)
$id
=
'new'
;
//FJ responsive rt td too large
$return
=
'<
DIV
id="divPublishing'
.
$id
.
'" class="rt2colorBox">'
.
"
\n
"
;
$return
=
'<
div
id="divPublishing'
.
$id
.
'" class="rt2colorBox">'
.
"
\n
"
;
//FJ remove LO_field
$return
.
=
'<
TABLE
class="cellspacing-0 widefat"><
TR><TD
><b>'
.
_
(
'Visible Between'
)
.
':</b><
BR
/>'
;
$return
.
=
'<
table
class="cellspacing-0 widefat"><
tr><td
><b>'
.
_
(
'Visible Between'
)
.
':</b><
br
/>'
;
$return
.
=
DateInput
(
$value
,
'values['
.
$id
.
']['
.
$name
.
']'
)
.
' '
.
_
(
'to'
)
.
' '
;
$return
.
=
DateInput
(
$THIS_RET
[
'END_DATE'
],
'values['
.
$id
.
'][END_DATE]'
)
.
'</
TD
></
TR
>'
;
$return
.
=
DateInput
(
$THIS_RET
[
'END_DATE'
],
'values['
.
$id
.
'][END_DATE]'
)
.
'</
td
></
tr
>'
;
$return
.
=
'<
TR><TD
style="padding:0;">'
;
$return
.
=
'<
tr><td
style="padding:0;">'
;
if
(
is_null
(
$profiles
))
{
...
...
@@ -324,10 +324,10 @@ function makePublishing($value,$name)
$return
.
=
makePublishingVisibleTo
(
$profiles
,
$THIS_RET
,
$id
);
$return
.
=
'</
TD
></
TR
></
TABLE
>'
;
$return
.
=
'</
td
></
tr
></
table
>'
;
if
(
!
isset
(
$_REQUEST
[
'_ROSARIO_PDF'
]))
$return
.
=
'</
DIV
>'
;
$return
.
=
'</
div
>'
;
return
$return
;
}
...
...
@@ -341,11 +341,11 @@ function makePublishing($value,$name)
*/
function
makePublishingVisibleTo
(
$profiles
,
$THIS_RET
,
$id
)
{
$visibleTo
=
'<
TABLE
class="width-100p cellspacing-0">
<
TR
>
<
TD
colspan="2"><b>'
.
_
(
'Visible To'
)
.
':</b></
TD
>
</
TR
>
<
TR
class="st">'
;
$visibleTo
=
'<
table
class="width-100p cellspacing-0">
<
tr
>
<
td
colspan="2"><b>'
.
_
(
'Visible To'
)
.
':</b></
td
>
</
tr
>
<
tr
class="st">'
;
//FJ Portal Polls add students teacher
$teachers_RET
=
DBGet
(
DBQuery
(
"SELECT STAFF_ID,LAST_NAME,FIRST_NAME,MIDDLE_NAME
...
...
@@ -369,7 +369,7 @@ function makePublishingVisibleTo($profiles, $THIS_RET, $id)
$i
++
;
$checked
=
mb_strpos
(
$THIS_RET
[
'PUBLISHED_PROFILES'
],
','
.
$profile
[
'ID'
]
.
','
)
!==
false
;
$visibleTo
.
=
'<
TD
>'
.
CheckboxInput
(
$checked
,
'profiles['
.
$id
.
']['
.
$profile
[
'ID'
]
.
']'
,
_
(
$profile
[
'TITLE'
]),
''
,
true
);
$visibleTo
.
=
'<
td
>'
.
CheckboxInput
(
$checked
,
'profiles['
.
$id
.
']['
.
$profile
[
'ID'
]
.
']'
,
_
(
$profile
[
'TITLE'
]),
''
,
true
);
//FJ Portal Polls add students teacher
if
(
$profile
[
'ID'
]
===
'0'
&&
$_REQUEST
[
'modname'
]
==
'School_Setup/PortalPolls.php'
)
//student & verify this is not a Portal Note!
...
...
@@ -384,16 +384,16 @@ function makePublishingVisibleTo($profiles, $THIS_RET, $id)
);
}
$visibleTo
.
=
'</
TD
>'
;
$visibleTo
.
=
'</
td
>'
;
if
(
$i
%
2
==
0
&&
$i
!=
count
(
$profiles
))
$visibleTo
.
=
'</
TR><TR
class="st">'
;
$visibleTo
.
=
'</
tr><tr
class="st">'
;
}
for
(;
$i
%
2
!=
0
;
$i
++
)
$visibleTo
.
=
'<
TD
> </
TD
>'
;
$visibleTo
.
=
'<
td
> </
td
>'
;
$visibleTo
.
=
'</
TR
>'
;
$visibleTo
.
=
'</
tr
>'
;
if
(
$_REQUEST
[
'modname'
]
==
'School_Setup/PortalNotes.php'
)
{
...
...
@@ -402,7 +402,7 @@ function makePublishingVisibleTo($profiles, $THIS_RET, $id)
do_action
(
'School_Setup/PortalNotes.php|portal_note_field'
,
$args
);
}
$visibleTo
.
=
'</
TABLE
>'
;
$visibleTo
.
=
'</
table
>'
;
return
$visibleTo
;
}
...
...
@@ -444,7 +444,7 @@ function makeFileAttached($value,$name)
{
$id
=
'new'
;
$return
.
=
'<
DIV
id="divFileAttached'
.
$id
.
'" class="rt2colorBox">'
;
$return
.
=
'<
div
id="divFileAttached'
.
$id
.
'" class="rt2colorBox">'
;
$return
.
=
'<div>
<label>
<input type="radio" name="values[new][FILE_OR_EMBED]" value="FILE">
...
...
@@ -457,7 +457,7 @@ function makeFileAttached($value,$name)
<input type="radio" name="values[new][FILE_OR_EMBED]" value="EMBED" onclick="javascript:document.getElementById(\'values[new]['
.
$name
.
'_EMBED]\').focus();" /> '
.
_
(
'Embed Link'
)
.
': <input type="text" id="values[new]['
.
$name
.
'_EMBED]" name="values[new]['
.
$name
.
'_EMBED]" size="14" placeholder="http://" />
</label>
</div></
DIV
>'
;
</div></
div
>'
;
}
return
$return
;
...
...
ProgramFunctions/StudentsUsersInfo.fnc.php
View file @
d2bce64e
...
...
@@ -451,59 +451,59 @@ function _makeMultipleInput( $column, $name, $request )
if
(
$value
[
$column
]
!=
''
)
{
$return
=
'<
DIV
id="div'
.
$request
.
'['
.
$column
.
']">
$return
=
'<
div
id="div'
.
$request
.
'['
.
$column
.
']">
<div class="onclick" onclick=\'javascript:addHTML(html'
.
$request
.
$column
;
}
$table
=
'<
TABLE
class="cellpadding-5">'
;
$table
=
'<
table
class="cellpadding-5">'
;
if
(
count
(
$options
)
>
12
)
{
$table
.
=
'<
TR><TD
colspan="2">'
;
$table
.
=
'<
tr><td
colspan="2">'
;
$table
.
=
'<span class="legend-gray">'
.
$name
.
'</span>'
;
$table
.
=
'<
TABLE
class="width-100p" style="height: 7px; border:1;border-style: solid solid none solid;"><
TR><TD
></
TD
></
TR
></
TABLE
>'
;
$table
.
=
'</
TD
></
TR
>'
;
$table
.
=
'<
table
class="width-100p" style="height: 7px; border:1;border-style: solid solid none solid;"><
tr><td
></
td
></
tr
></
table
>'
;
$table
.
=
'</
td
></
tr
>'
;
}
$table
.
=
'<
TR
>'
;
$table
.
=
'<
tr
>'
;
$i
=
0
;
foreach
(
(
array
)
$options
as
$option
)
{
if
(
$i
%
2
===
0
)
$table
.
=
'</
TR><TR
>'
;
$table
.
=
'</
tr><tr
>'
;
//FJ add <label> on checkbox
$table
.
=
'<
TD
><label>
<
INPUT
type="checkbox" name="'
.
$request
.
'['
.
$column
.
'][]" value="'
.
htmlspecialchars
(
$option
,
ENT_QUOTES
)
.
'"'
.
(
mb_strpos
(
$value
[
$column
],
'||'
.
$option
.
'||'
)
!==
false
?
' checked'
:
''
)
.
' /> '
.
$table
.
=
'<
td
><label>
<
input
type="checkbox" name="'
.
$request
.
'['
.
$column
.
'][]" value="'
.
htmlspecialchars
(
$option
,
ENT_QUOTES
)
.
'"'
.
(
mb_strpos
(
$value
[
$column
],
'||'
.
$option
.
'||'
)
!==
false
?
' checked'
:
''
)
.
' /> '
.
$option
.
'</label></
TD
>'
;
'</label></
td
>'
;
$i
++
;
}
$table
.
=
'</
TR><TR><TD
colspan="2">'
;
$table
.
=
'</
tr><tr><td
colspan="2">'
;
//FJ fix bug none selected not saved
$table
.
=
'<
INPUT
type="hidden" name="'
.
$request
.
'['
.
$column
.
'][none]" value="" />'
;
$table
.
=
'<
input
type="hidden" name="'
.
$request
.
'['
.
$column
.
'][none]" value="" />'
;
$table
.
=
'<
TABLE
class="width-100p" style="height:7px; border:1; border-style:none solid solid solid;"><
TR><TD
></
TD
></
TR
></
TABLE
>'
;
$table
.
=
'<
table
class="width-100p" style="height:7px; border:1; border-style:none solid solid solid;"><
tr><td
></
td
></
tr
></
table
>'
;
$table
.
=
'</
TD
></
TR
></
TABLE
>'
;
$table
.
=
'</
td
></
tr
></
table
>'
;
if
(
$value
[
$column
]
!=
''
)
{
echo
'<script>var html'
.
$request
.
$column
.
'='
.
json_encode
(
$table
)
.
';</script>'
.
$return
;
echo
',"div'
.
$request
.
'['
.
$column
.
']",true);\' >'
;
echo
'<span class="underline-dots">'
.
(
$value
[
$column
]
!=
''
?
str_replace
(
'||'
,
', '
,
mb_substr
(
$value
[
$column
],
2
,
-
2
)
)
:
'-'
)
.
'</span>'
;
echo
'</div></
DIV
>'
;
echo
'</div></
div
>'
;
}
else
echo
$table
;
}
else
echo
(
$value
[
$column
]
!=
''
?
str_replace
(
'||'
,
', '
,
mb_substr
(
$value
[
$column
],
2
,
-
2
)
)
:
'-'
)
.
'<
BR
/>'
;
echo
(
$value
[
$column
]
!=
''
?
str_replace
(
'||'
,
', '
,
mb_substr
(
$value
[
$column
],
2
,
-
2
)
)
:
'-'
)
.
'<
br
/>'
;
echo
'<span class="legend-gray">'
.
$name
.
'</span>'
;
}
...
...
ProgramFunctions/miscExport.fnc.php
View file @
d2bce64e
...
...
@@ -30,6 +30,6 @@ function _makeCalendar($value,$column)
function
_makeTeachers
(
$value
,
$column
)
{
foreach
(
explode
(
'","'
,
mb_substr
(
$value
,
2
,
-
2
))
as
$row
)
$return
.
=
$row
.
'<
BR
/>'
;
$return
.
=
$row
.
'<
br
/>'
;
return
mb_substr
(
$return
,
0
,
-
4
);
}
Side.php
View file @
d2bce64e
...
...
@@ -284,7 +284,7 @@ $addJavascripts .= 'var menuStudentID = "' . UserStudentID() . '",
<
a
href
=
"index.php"
target
=
"_top"
class
=
"center"
>
<
img
src
=
"assets/themes/<?php echo Preferences( 'THEME' ); ?>/logo.png"
class
=
"logo"
/>
</
a
>
<
FORM
action
=
"Side.php?sidefunc=update"
method
=
"POST"
target
=
"menu"
>
<
form
action
=
"Side.php?sidefunc=update"
method
=
"POST"
target
=
"menu"
>
<
span
class
=
"br-after"
>&
nbsp
;
<
b
><?
php
echo
User
(
'NAME'
);
?>
</b></span>
<?php
// localized today's date
...
...
@@ -294,7 +294,7 @@ $addJavascripts .= 'var menuStudentID = "' . UserStudentID() . '",
"UTF-8"
);
?>
<
BR
/>
<
br
/>
<?php
// School SELECT (Admins & Teachers only)
if
(
User
(
'PROFILE'
)
===
'admin'
||
User
(
'PROFILE'
)
===
'teacher'
)
:
...
...
@@ -317,13 +317,13 @@ $addJavascripts .= 'var menuStudentID = "' . UserStudentID() . '",
}
?>
<span
class=
"br-after"
>
<
SELECT
name=
"school"
onChange=
"ajaxPostForm(this.form,true);"
>
<
select
name=
"school"
onChange=
"ajaxPostForm(this.form,true);"
>
<?php
foreach
(
(
array
)
$RET
as
$school
)
:
?>
<
OPTION
value=
"
<?php
echo
$school
[
'ID'
];
?>
"
<?php
echo
(
(
UserSchool
()
==
$school
[
'ID'
]
)
?
' SELECTED'
:
''
);
?>
>
<?php
<
option
value=
"
<?php
echo
$school
[
'ID'
];
?>
"
<?php
echo
(
(
UserSchool
()
==
$school
[
'ID'
]
)
?
' SELECTED'
:
''
);
?>
>
<?php
echo
(
$school
[
'SHORT_NAME'
]
?
$school
[
'SHORT_NAME'
]
:
$school
[
'TITLE'
]
);
?>
</
OPTION
>
?>
</
option
>
<?php
endforeach
;
?>
</
SELECT
>
</
select
>
</span>
<?php
endif
;
...
...
@@ -348,17 +348,17 @@ $addJavascripts .= 'var menuStudentID = "' . UserStudentID() . '",
?>
<span
class=
"br-after"
>
<
SELECT
name=
"student_id"
onChange=
"ajaxPostForm(this.form,true);"
>
<
select
name=
"student_id"
onChange=
"ajaxPostForm(this.form,true);"
>
<?php
foreach
(
(
array
)
$RET
as
$student
)
:
?>
<
OPTION
value=
"
<?php
echo
$student
[
'STUDENT_ID'
];
?>
"
<?php
echo
(
(
UserStudentID
()
==
$student
[
'STUDENT_ID'
]
)
?
' SELECTED'
:
''
);
?>
>
<?php
<
option
value=
"
<?php
echo
$student
[
'STUDENT_ID'
];
?>
"
<?php
echo
(
(
UserStudentID
()
==
$student
[
'STUDENT_ID'
]
)
?
' SELECTED'
:
''
);
?>
>
<?php
echo
$student
[
'FULL_NAME'
];
?>
</
OPTION
>
?>
</
option
>
<?php
// set current School
if
(
UserStudentID
()
==
$student
[
'STUDENT_ID'
]
)
$_SESSION
[
'UserSchool'
]
=
$student
[
'SCHOOL_ID'
];
endforeach
;
?>
</
SELECT
>
</
select
>
</span>
<?php
...
...
@@ -402,13 +402,13 @@ $addJavascripts .= 'var menuStudentID = "' . UserStudentID() . '",
$years_RET
=
DBGet
(
DBQuery
(
$sql
)
);
?>
<span
class=
"br-after"
>
<
SELECT
name=
"syear"
onChange=
"ajaxPostForm(this.form,true);"
>
<
select
name=
"syear"
onChange=
"ajaxPostForm(this.form,true);"
>
<?php
foreach
(
(
array
)
$years_RET
as
$year
)
:
?>
<
OPTION
value=
"
<?php
echo
$year
[
'SYEAR'
];
?>
"
<?php
echo
(
(
UserSyear
()
==
$year
[
'SYEAR'
]
)
?
' SELECTED'
:
''
);
?>
>
<?php
<
option
value=
"
<?php
echo
$year
[
'SYEAR'
];
?>
"
<?php
echo
(
(
UserSyear
()
==
$year
[
'SYEAR'
]
)
?
' SELECTED'
:
''
);
?>
>
<?php
echo
FormatSyear
(
$year
[
'SYEAR'
],
Config
(
'SCHOOL_SYEAR_OVER_2_YEARS'
)
);
?>
</
OPTION
>
?>
</
option
>
<?php
endforeach
;
?>
</
SELECT
>
</
select
>
</span>
<?php
// MarkingPeriod SELECT
...
...
@@ -421,15 +421,15 @@ $addJavascripts .= 'var menuStudentID = "' . UserStudentID() . '",
?>
<span
class=
"br-after"
>
<
SELECT
name=
"mp"
onChange=
"ajaxPostForm(this.form,true);"
>
<
select
name=
"mp"
onChange=
"ajaxPostForm(this.form,true);"
>
<?php
if
(
count
(
$RET
)
)
:
$mp_array
=
array
();
foreach
(
$RET
as
$quarter
)
:
?>
<
OPTION
value=
"
<?php
echo
$quarter
[
'MARKING_PERIOD_ID'
];
?>
"
<?php
echo
(
UserMP
()
==
$quarter
[
'MARKING_PERIOD_ID'
]
?
' SELECTED'
:
''
);
?>
>
<?php
<
option
value=
"
<?php
echo
$quarter
[
'MARKING_PERIOD_ID'
];
?>
"
<?php
echo
(
UserMP
()
==
$quarter
[
'MARKING_PERIOD_ID'
]
?
' SELECTED'
:
''
);
?>
>
<?php
echo
$quarter
[
'TITLE'
];
?>
</
OPTION
>
?>
</
option
>
<?php
$mp_array
[]
=
$quarter
[
'MARKING_PERIOD_ID'
];
endforeach
;
...
...
@@ -444,13 +444,13 @@ $addJavascripts .= 'var menuStudentID = "' . UserStudentID() . '",
// error if no quarters
else
:
?>
<
OPTION
value=
""
>
<?php
<
option
value=
""
>
<?php
echo
_
(
'Error'
)
.
': '
.
_
(
'No quarters found'
);
?>
</
OPTION
>
?>
</
option
>
<?php
endif
;
?>
</
SELECT
>
</
select
>
</span>
<?php
// CoursePeriod SELECT (Teachers only)
...
...
@@ -496,7 +496,7 @@ $addJavascripts .= 'var menuStudentID = "' . UserStudentID() . '",
$_SESSION
[
'UserCoursePeriodSchoolPeriod'
]
=
$RET
[
1
][
'COURSE_PERIOD_SCHOOL_PERIODS_ID'
];
}
?>
<
SELECT
name=
"period"
onChange=
"ajaxPostForm(this.form,true);"
>
<
select
name=
"period"
onChange=
"ajaxPostForm(this.form,true);"
>
<?php
$optgroup
=
FALSE
;
foreach
(
$RET
as
$period
)
...
...
@@ -575,12 +575,12 @@ $addJavascripts .= 'var menuStudentID = "' . UserStudentID() . '",
$mp_text
=
GetMP
(
$period
[
'MARKING_PERIOD_ID'
],
'SHORT_NAME'
)
.
' - '
;
}
?>
<
OPTION
value=
"
<?php
echo
$period
[
'COURSE_PERIOD_ID'
];
?>
.
<?php
echo
$period
[
'COURSE_PERIOD_SCHOOL_PERIODS_ID'
];
?>
"
<?php
echo
$selected
;
?>
>
<?php
<
option
value=
"
<?php
echo
$period
[
'COURSE_PERIOD_ID'
];
?>
.
<?php
echo
$period
[
'COURSE_PERIOD_SCHOOL_PERIODS_ID'
];
?>
"
<?php
echo
$selected
;
?>
>
<?php
echo
$period
[
'TITLE'
]
.
' - '
.
$period_days_text
.
$mp_text
.
$period
[
'CP_SHORT_NAME'
];
?>
</
OPTION
>
?>
</
option
>
<?php
}
...
...
@@ -597,11 +597,11 @@ $addJavascripts .= 'var menuStudentID = "' . UserStudentID() . '",
unset
(
$_SESSION
[
'student_id'
]
);
}
?>
</
SELECT
>
</
select
>
<?php
endif
;
?>
</
FORM
>
</
form
>
<?php
// display current Student (Admins & Teachers only)
if
(
UserStudentID
()
...
...
@@ -613,13 +613,13 @@ $addJavascripts .= 'var menuStudentID = "' . UserStudentID() . '",
WHERE STUDENT_ID='"
.
UserStudentID
()
.
"'"
)
);
?>
<div
class=
"current-person student"
>
<
A
HREF
=
"Side.php?side_student_id=new"
target=
"menu"
>
<
a
href
=
"Side.php?side_student_id=new"
target=
"menu"
>
<?php
echo
button
(
'x'
,
''
,
''
,
'bigger'
);
?>
</
A
>
</
a
>
<?php
if
(
AllowUse
(
'Students/Student.php'
)
)
:
?>
<
A
HREF
=
"Modules.php?modname=Students/Student.php&student_id=
<?php
echo
UserStudentID
();
?>
"
>
<
a
href
=
"Modules.php?modname=Students/Student.php&student_id=
<?php
echo
UserStudentID
();
?>
"
>
<?php
echo
$RET
[
1
][
'FULL_NAME'
];
?>
</
A
>
</
a
>
<?php
else
:
?>
<?php
echo
$RET
[
1
][
'FULL_NAME'
];
?>
<?php
endif
;
?>
...
...
@@ -637,13 +637,13 @@ $addJavascripts .= 'var menuStudentID = "' . UserStudentID() . '",
WHERE STAFF_ID='"
.
UserStaffID
()
.
"'"
)
);
?>
<div
class=
"current-person
<?php
echo
(
UserStaffID
()
==
User
(
'STAFF_ID'
)
?
'self'
:
'staff'
);
?>
"
>
<
A
HREF
=
"Side.php?side_staff_id=new"
target=
"menu"
>
<
a
href
=
"Side.php?side_staff_id=new"
target=
"menu"
>
<?php
echo
button
(
'x'
,
''
,
''
,
'bigger'
);
?>
</
A
>
</
a
>
<?php
if
(
AllowUse
(
'Users/User.php'
)
)
:
?>
<
A
HREF
=
"Modules.php?modname=Users/User.php&staff_id=
<?php
echo
UserStaffID
();
?>
"
>
<
a
href
=
"Modules.php?modname=Users/User.php&staff_id=
<?php
echo
UserStaffID
();
?>
"
>
<?php
echo
$RET
[
1
][
'FULL_NAME'
];
?>
</
A
>
</
a
>
<?php
else
:
?>
<?php
echo
$RET
[
1
][
'FULL_NAME'
];
?>
<?php
endif
;
?>
...
...
@@ -667,9 +667,9 @@ $addJavascripts .= 'var menuStudentID = "' . UserStudentID() . '",
if
(
count
(
$modcat_menu
=
$_ROSARIO
[
'Menu'
][
$key
[
$i
]]
)
)
: