本文整理汇总了PHP中PreparePHP_SELF函数的典型用法代码示例。如果您正苦于以下问题:PHP PreparePHP_SELF函数的具体用法?PHP PreparePHP_SELF怎么用?PHP PreparePHP_SELF使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PreparePHP_SELF函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: PromptX
function PromptX($title = _('Confirm'), $question = '', $message = '', $pdf = '')
{
$PHP_tmp_SELF = PreparePHP_SELF($_REQUEST, array('delete_ok'), $pdf == true ? array('_CENTRE_PDF' => true) : array());
if (!$_REQUEST['delete_ok'] && !$_REQUEST['delete_cancel']) {
echo '<BR>';
PopTable('header', $title);
echo "<CENTER><h4>{$question}</h4><FORM action={$PHP_tmp_SELF}&delete_ok=1 METHOD=POST>{$message}<BR><BR><INPUT type=submit value=\"" . _('OK') . "\"><INPUT type=button name=delete_cancel value=\"" . _('Cancel') . "\" onClick='javascript:history.back()'></FORM></CENTER>";
PopTable('footer');
return false;
} else {
return true;
}
}
示例2: PromptX
function PromptX($title = 'Confirm', $question = '', $message = '', $pdf = '')
{
$PHP_tmp_SELF = PreparePHP_SELF($_REQUEST, array('delete_ok'), $pdf == true ? array('_ROSARIO_PDF' => true) : array());
if (!$_REQUEST['delete_ok'] && !$_REQUEST['delete_cancel']) {
echo '<BR />';
PopTable('header', $title);
echo '<span class="center"><h4>' . $question . '</h4><FORM action="' . $PHP_tmp_SELF . '&delete_ok=1" METHOD="POST">' . $message . '<BR /><BR /><INPUT type="submit" value="' . _('OK') . '"><INPUT type="button" name="delete_cancel" value="' . _('Cancel') . '" onClick="javascript:history.back()"></FORM></span>';
PopTable('footer');
return false;
} else {
return true;
}
}
示例3: Prompt
function Prompt($title = 'Confirm', $question = '', $message = '', $pdf = '')
{
$tmp_REQUEST = $_REQUEST;
unset($tmp_REQUEST['delete_ok']);
if ($pdf == true) {
$tmp_REQUEST['_CENTRE_PDF'] = true;
}
$PHP_tmp_SELF = PreparePHP_SELF($tmp_REQUEST);
if (!$_REQUEST['delete_ok'] && !$_REQUEST['delete_cancel']) {
echo '<BR>';
PopTable('header', $title);
echo "<CENTER><h4>{$question}</h4><FORM action={$PHP_tmp_SELF}&delete_ok=1 METHOD=POST>{$message}<BR><BR><INPUT type=submit class=btn_medium value=OK> <INPUT type=button class=btn_medium name=delete_cancel value=Cancel onclick='javascript:history.go(-1);'></FORM></CENTER>";
PopTable('footer');
return false;
} else {
return true;
}
}
示例4: UnableDeletePromptX
function UnableDeletePromptX($title)
{
$tmp_REQUEST = $_REQUEST;
$PHP_tmp_SELF = PreparePHP_SELF($tmp_REQUEST);
if (!$_REQUEST['delete_ok'] && !$_REQUEST['delete_cancel']) {
echo '<BR>';
PopTable('header', 'Unable to Delete');
echo "<CENTER><h4>{$title}</h4><br><FORM action={$PHP_tmp_SELF} METHOD=POST><INPUT type=submit class=btn_medium name=delete_cancel value=Cancel></FORM></CENTER>";
PopTable('footer');
return '';
}
if ($_REQUEST['delete_ok']) {
unset($_REQUEST['delete_ok']);
unset($_REQUEST['modfunc']);
return true;
}
unset($_REQUEST['delete_cancel']);
unset($_REQUEST['modfunc']);
return false;
}
示例5: DeletePromptX
function DeletePromptX($title, $action = 'Delete')
{
$PHP_tmp_SELF = PreparePHP_SELF($_REQUEST, array('delete_ok', 'delete_cancel'));
if (!$_REQUEST['delete_ok'] && !$_REQUEST['delete_cancel']) {
echo '<BR />';
//modif Francois: add translation
PopTable('header', _('Confirm') . (mb_strpos($action, ' ') === false ? ' ' . ($action == 'Delete' ? _('Delete') : $action) : ''));
echo '<span class="center"><h4>' . sprintf(_('Are you sure you want to %s that %s?'), $action == 'Delete' ? _('Delete') : $action, $title) . '</h4><FORM action="' . $PHP_tmp_SELF . '" METHOD="POST"><INPUT type="submit" name="delete_ok" value="' . _('OK') . '"><INPUT type="submit" name="delete_cancel" value="' . _('Cancel') . '"></FORM></span>';
PopTable('footer');
return '';
}
if ($_REQUEST['delete_ok']) {
unset($_REQUEST['delete_ok']);
unset($_REQUEST['modfunc']);
return true;
}
unset($_REQUEST['delete_cancel']);
unset($_REQUEST['modfunc']);
return false;
}
示例6: DeletePromptX
function DeletePromptX($title, $action = 'Delete')
{
$tmp_REQUEST = $_REQUEST;
unset($tmp_REQUEST['delete_ok']);
unset($tmp_REQUEST['delete_cancel']);
$PHP_tmp_SELF = PreparePHP_SELF($tmp_REQUEST);
if (!$_REQUEST['delete_ok'] && !$_REQUEST['delete_cancel']) {
echo '<BR>';
PopTable('header', 'Confirm' . (!substr(' ', ' ' . $action) ? $action : ''));
echo "<CENTER><h4>Are You Sure You Want to {$action} that {$title}?</h4><br><FORM action={$PHP_tmp_SELF} METHOD=POST><INPUT type=submit name=delete_ok class=btn_medium value=OK> <INPUT type=submit class=btn_medium name=delete_cancel value=Cancel></FORM></CENTER>";
PopTable('footer');
return '';
}
if ($_REQUEST['delete_ok']) {
unset($_REQUEST['delete_ok']);
unset($_REQUEST['modfunc']);
return true;
}
unset($_REQUEST['delete_cancel']);
unset($_REQUEST['modfunc']);
return false;
}
示例7: DeletePromptX
function DeletePromptX($title, $action = null)
{
if (empty($action)) {
$action = _('delete');
}
$PHP_tmp_SELF = PreparePHP_SELF($_REQUEST, array('delete_ok', 'delete_cancel'));
if (!$_REQUEST['delete_ok'] && !$_REQUEST['delete_cancel']) {
echo '<BR>';
PopTable('header', _('Confirm') . (!substr(' ', ' ' . $action) ? $action : ''));
echo "<CENTER><h4>" . _('Are You Sure You Want to') . " {$action} " . _('that') . " {$title}?</h4><FORM action={$PHP_tmp_SELF} METHOD=POST><INPUT type=submit name=delete_ok value=" . _('OK') . "><INPUT type=submit name=delete_cancel value=" . _('Cancel') . "></FORM></CENTER>";
PopTable('footer');
return '';
}
if ($_REQUEST['delete_ok']) {
unset($_REQUEST['delete_ok']);
unset($_REQUEST['modfunc']);
return true;
}
unset($_REQUEST['delete_cancel']);
unset($_REQUEST['modfunc']);
return false;
}
示例8: WrapTabs
function WrapTabs($tabs, $selected = '', &$selected_key = '')
{
$row = 0;
$characters = 0;
//modif Francois: css WPadmin
if (count($tabs)) {
$rows[0] = '<div class="h3multi">';
foreach ($tabs as $key => $tab) {
if (mb_substr($tab['title'], 0, 1) != '<') {
$tab_len = mb_strlen($tab['title']);
} else {
$tab_len = 0;
}
if ($tab['link'] == PreparePHP_SELF() || $tab['link'] == $selected) {
$rows[$row] .= '<!--BOTTOM-->' . '<span class="h3selected">' . DrawTab($tab['title'], $tab['link']) . '</span>';
$selected_key = $key;
} else {
$rows[$row] .= DrawTab($tab['title'], $tab['link']);
}
$characters += $tab_len + 6;
}
}
$rows[$row] .= "\n\n";
$i = 0;
$row_count = count($rows) - 1;
for ($key = $row_count; $key >= 0; $key--) {
//modif Francois: remove ereg
// if(!ereg("<!--BOTTOM-->",$rows[$key]))
if (mb_strpos($rows[$key], "<!--BOTTOM-->") === FALSE) {
$table .= $rows[$key];
$i++;
} else {
$bottom = $key;
}
}
$table .= $rows[$bottom] . '</div>';
return $table;
}
示例9: foreach
foreach ($_REQUEST['attendance'] as $student_id => $values) {
foreach ($values as $school_date => $columns) {
$sql = 'UPDATE attendance_period SET ADMIN=\'Y\',';
foreach ($columns as $column => $value) {
$sql .= $column . '=\'' . str_replace("\\'", "''", $value) . '\',';
}
$sql = substr($sql, 0, -1) . ' WHERE SCHOOL_DATE=\'' . $school_date . '\' AND PERIOD_ID=\'' . $_REQUEST['period_id'] . '\' AND STUDENT_ID=\'' . $student_id . '\'';
DBQuery($sql);
UpdateAttendanceDaily($student_id, $school_date);
}
}
$current_RET = DBGet(DBQuery('SELECT ATTENDANCE_TEACHER_CODE,ATTENDANCE_CODE,ATTENDANCE_REASON,STUDENT_ID,ADMIN,COURSE_PERIOD_ID FROM attendance_period WHERE SCHOOL_DATE=\'' . $date . '\''), array(), array('STUDENT_ID', 'COURSE_PERIOD_ID'));
unset($_REQUEST['attendance']);
}
if ($_REQUEST['search_modfunc'] || $_REQUEST['student_id'] || UserStudentID() || User('PROFILE') == 'parent' || User('PROFILE') == 'student') {
$PHP_tmp_SELF = PreparePHP_SELF();
$extraM .= "";
$period_select = "<SELECT name=period_id onchange='this.form.submit();'><OPTION value=\"\">Daily</OPTION>";
if (!UserStudentID() && !$_REQUEST['student_id']) {
$periods_RET = DBGet(DBQuery('SELECT PERIOD_ID,TITLE FROM school_periods WHERE SYEAR=\'' . UserSyear() . '\' AND SCHOOL_ID=\'' . UserSchool() . '\' ORDER BY SORT_ORDER'));
if (count($periods_RET) > 1) {
foreach ($periods_RET as $period) {
$period_select .= "<OPTION value=" . $period['PERIOD_ID'] . ($_REQUEST['period_id'] == $period['PERIOD_ID'] ? ' SELECTED' : '') . ">" . $period['TITLE'] . '</OPTION>';
}
} elseif (count($periods_RET) == 1) {
foreach ($periods_RET as $period) {
$period_select .= "<OPTION value=" . $period['PERIOD_ID'] . ($_REQUEST['period_id'] == $period['PERIOD_ID'] || !isset($_REQUEST['period_id']) ? ' SELECTED' : '') . ">" . $period['TITLE'] . '</OPTION>';
}
if (!isset($_REQUEST['period_id'])) {
$_REQUEST['period_id'] = $period['PERIOD_ID'];
}
示例10: PreparePHP_SELF
#
# This program is released under the terms of the GNU General Public License as
# published by the Free Software Foundation, version 2 of the License.
# See license.txt.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#***************************************************************************************
include '../../Redirect_modules.php';
echo "<FORM name=scheaddr id=scheaddr action=" . PreparePHP_SELF() . " method=POST>";
DrawBC("Scheduling > " . ProgramTitle());
if ($_REQUEST['day_start'] && $_REQUEST['month_start'] && $_REQUEST['year_start']) {
$_REQUEST['placed_From'] = $_REQUEST['day_start'] . '-' . $_REQUEST['month_start'] . '-' . $_REQUEST['year_start'];
$start_date = date('Y-m-d', strtotime($_REQUEST['placed_From']));
} else {
$start_date = date("Y-m") . '-01';
}
if ($_REQUEST['day_end'] && $_REQUEST['month_end'] && $_REQUEST['year_end']) {
$_REQUEST['placed_End'] = $_REQUEST['day_end'] . '-' . $_REQUEST['month_end'] . '-' . $_REQUEST['year_end'];
$end_date = date('Y-m-d', strtotime($_REQUEST['placed_End']));
} else {
$end_date = date("Y-m-d");
}
if ($_REQUEST['flag'] != 'list') {
DrawHeaderHome(PrepareDateSchedule($start_date, '_start') . '<div style="padding:0px 6px; float:left;">-</div>' . PrepareDateSchedule($end_date, '_end'), '<INPUT type=submit class=btn_medium value=Go >');
示例11: unset
$grades_RET[$i]['COMMENT'] .= $sep . $comments_RET[$comment['REPORT_CARD_COMMENT_ID']][1]['SORT_ORDER'];
if ($comment['COMMENT']) {
$grades_RET[$i]['COMMENT'] .= '(' . ($comment['COMMENT'] != ' ' ? $comment['COMMENT'] : '·') . ')';
}
$sep = ', ';
}
if ($mps[$last_mp][1]['COMMENT_TITLE']) {
$grades_RET[$i]['COMMENT'] .= $sep . $mps[$last_mp][1]['COMMENT_TITLE'];
}
}
}
}
if (count($_REQUEST['mp_arr']) == 1) {
$tmp_REQUEST = $_REQUEST;
unset($tmp_REQUEST['modfunc']);
$link['remove']['link'] = PreparePHP_SELF($tmp_REQUEST) . "&modfunc=delete";
//$link['remove']['link'] = "Modules.php?modname=$_REQUEST[modname]&modfunc=delete";
$link['remove']['variables'] = array('student_id' => 'STUDENT_ID', 'course_period_id' => 'COURSE_PERIOD_ID', 'marking_period_id' => 'MARKING_PERIOD_ID');
}
ListOutput($grades_RET, $columns, '', '', $link);
} else {
// BackPrompt('No Students were found.');
ShowErr('No Students were found.');
for_error();
}
} else {
// BackPrompt('You must choose at least one student and marking period');
ShowErr('You must choose at least one student and marking period');
for_error();
}
}
示例12: WrapTabs
function WrapTabs($tabs, $selected = '', $title = '', $use_blue = false, $type = '')
{
if ($color == '' || $color == '#FFFFFF') {
$color = "#FFFFCC";
}
$row = 0;
$characters = 0;
$rows[0] = "<TABLE border=0 cellpadding=0 cellspacing=0 class=><TR>";
if (count($tabs)) {
foreach ($tabs as $tab) {
if (substr($tab['title'], 0, 1) != '<') {
$tab_len = strlen($tab['title']);
} else {
$tab_len = 0;
}
if ($characters + $tab_len >= 180) {
$rows[$row] .= "</TR>\n</TABLE>\n\n";
$row++;
$rows[$row] .= "<TABLE border=0 cellpadding=0 cellspacing=0 >\n\t<TR>";
$characters = 0;
}
if ($tab['link'] == PreparePHP_SELF() || $tab['link'] == $selected) {
$rows[$row] .= "<!--BOTTOM-->\n\t\t<TD>" . DrawTab($tab['title'], $tab['link'], '#333366', '#436477', $type) . "</TD>";
} elseif ($use_blue !== true) {
$rows[$row] .= "\n\t\t<TD >" . DrawinactiveTab($tab['title'], $tab['link'], '#DDDDDD', '#000000', $type) . "</TD>";
} else {
$rows[$row] .= "\n\t\t<TD >" . DrawinactiveTab($tab['title'], $tab['link'], '#333366', '#f2a30b', $type) . "</TD>";
}
$characters += $tab_len + 6;
}
}
$rows[$row] .= "</TR>\n</TABLE>\n\n";
$i = 0;
$row_count = count($rows) - 1;
if ($use_blue === true) {
$table .= "<TABLE border=0 width=100% cellpadding=0 cellspacing=0 ><TR><TD width=100%></TD><TD align=right>";
} elseif ($use_blue == 'center') {
$table .= "<TABLE border=0 width=100% cellpadding=0 cellspacing=0 align=center><TR><TD align=center>";
}
for ($key = $row_count; $key >= 0; $key--) {
if (!ereg("<!--BOTTOM-->", $rows[$key])) {
$table .= "<TABLE border=0 width=0 cellpadding=0 cellspacing=0 ><TR><TD>";
$table .= "<IMG SRC=assets/pixel_trans.gif width=" . ($row_count - $i) * 6 . " height=1>";
if ($key != 0 || $bottom) {
$table .= "</TD><TD>{$rows[$key]}</TD><TD rowspan=2> </TD></TR><TR><TD height=1></TD><TD height=5 valign=top></TD></TR></TABLE>";
} else {
$table .= "</TD><TD>{$rows[$key]}</TD><TD rowspan=2></TD></TR><TR><TD height=0></TD><TD height=0 valign=top></TD></TR></TABLE>";
}
$i++;
} else {
$bottom = $key;
}
}
$table .= "<TABLE border=0 cellpadding=0 cellspacing=0 ><TR><TD></TD><TD>" . $rows[$bottom] . "</TD><TD></TD></TR></TABLE>";
if ($use_blue) {
$table .= "</TD></TR><TR><TD colspan=2>";
}
if ($title != '') {
$table .= "<TABLE width=100% bgcolor={$color} border=0 cellpadding=0 cellspacing=0><TR><TD bgcolor={$color} width=100%> <font class=FontBox>{$title}</font></TD></TR></TABLE>";
}
if ($use_blue) {
$table .= "</TD></TR></TABLE>";
}
return $table;
}
示例13: ListOutputFloat
function ListOutputFloat($result, $column_names, $singular = '', $plural = '', $link = false, $group = false, $options = false)
{
if (!isset($options['save'])) {
$options['save'] = true;
}
if (!isset($options['print'])) {
$options['print'] = true;
}
if (!isset($options['search'])) {
$options['search'] = true;
}
if (!isset($options['center'])) {
$options['center'] = true;
}
if (!isset($options['count'])) {
$options['count'] = true;
}
if (!isset($options['sort'])) {
$options['sort'] = true;
}
if (!$link) {
$link = array();
}
if (!isset($options['add'])) {
if (!AllowEdit() || $_REQUEST['_openSIS_PDF']) {
if ($link) {
unset($link['add']);
unset($link['remove']);
}
}
}
// PREPARE LINKS ---
$result_count = $display_count = count($result);
$num_displayed = 100000;
$extra = "page={$_REQUEST['page']}&LO_sort={$_REQUEST['LO_sort']}&LO_direction={$_REQUEST['LO_direction']}&LO_search=" . urlencode($_REQUEST['LO_search']);
$tmp_REQUEST = $_REQUEST;
unset($tmp_REQUEST['page']);
unset($tmp_REQUEST['LO_sort']);
unset($tmp_REQUEST['LO_direction']);
unset($tmp_REQUEST['LO_search']);
unset($tmp_REQUEST['remove_prompt']);
unset($tmp_REQUEST['remove_name']);
unset($tmp_REQUEST['LO_save']);
unset($tmp_REQUEST['PHPSESSID']);
$PHP_tmp_SELF = PreparePHP_SELF($tmp_REQUEST);
// END PREPARE LINKS ---
// UN-GROUPING
$group_count = count($group);
if (!is_array($group)) {
$group_count = false;
}
//$side_color = Preferences('COLOR');
$side_color = '#dfe8ee';
if ($group_count && $result_count) {
$color = '#f5f5f5';
$group_result = $result;
unset($result);
$result[0] = '';
foreach ($group_result as $item1) {
if ($group_count == 1) {
if ($color == '#F8F8F9') {
$color = $side_color;
} else {
$color = '#F8F8F9';
}
}
foreach ($item1 as $item2) {
if ($group_count == 1) {
$i++;
if (count($group[0]) && $i != 1) {
foreach ($group[0] as $column) {
$item2[$column] = str_replace('<!-- <!--', '<!--', '<!-- ' . str_replace('-->', '--><!--', $item2[$column])) . ' -->';
}
}
$item2['row_color'] = $color;
$result[] = $item2;
} else {
if ($group_count == 2) {
if ($color == '#F8F8F9') {
$color = $side_color;
} else {
$color = '#F8F8F9';
}
}
foreach ($item2 as $item3) {
if ($group_count == 2) {
$i++;
if (count($group[0]) && $i != 1) {
foreach ($group[0] as $column) {
$item3[$column] = '<!-- ' . $item3[$column] . ' -->';
}
}
if (count($group[1]) && $i != 1) {
foreach ($group[1] as $column) {
$item3[$column] = '<!-- ' . $item3[$column] . ' -->';
}
}
$item3['row_color'] = $color;
$result[] = $item3;
} else {
//.........这里部分代码省略.........
示例14: unset
if (optional_param('school_id', '', PARAM_ALPHANUM) == 'new') {
unset($_SESSION['UserSchool']);
echo "<script language=javascript>parent.body.location='" . str_replace('&', '&', PreparePHP_SELF($_SESSION['_REQUEST_vars'])) . "';</script>";
/*
unset($_SESSION['student_id']);
unset($_SESSION['_REQUEST_vars']['student_id']);
unset($_SESSION['_REQUEST_vars']['search_modfunc']);
*/
}
//if($_REQUEST['staff_id']=='new')
if (optional_param('staff_id', '', PARAM_ALPHANUM) == 'new') {
unset($_SESSION['miss_attn']);
unset($_SESSION['staff_id']);
unset($_SESSION['_REQUEST_vars']['staff_id']);
unset($_SESSION['_REQUEST_vars']['search_modfunc']);
echo "<script language=javascript>parent.body.location='" . str_replace('&', '&', PreparePHP_SELF($_SESSION['_REQUEST_vars'])) . "';</script>";
}
unset($_REQUEST['modfunc']);
echo "\n<HTML>\n\t<head>\n\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />\n\t\t<meta http-equiv=\"Content-Style-Type\" content=\"text/css\" />\n\t\t<link rel=stylesheet type=\"text/css\" href=\"assets/stylesheet.css\">\n\t\t<script language=\"JavaScript\" type=\"text/javascript\">\n\t\t\n\t\t</script>\n\t\t<title>" . Config('TITLE') . "</title>\n\t</head>\n\t<BODY background=assets/themes/" . Preferences('THEME') . "/bg.jpg leftmargin=6 marginwidth=4 topmargin=0 " . (clean_param($_REQUEST['modcat'], PARAM_NOTAGS) ? "onload=openMenu('" . clean_param($_REQUEST['modcat'], PARAM_NOTAGS) . "');" : '') . ">";
// User Information
echo "<TABLE border=0 cellpadding=0 cellspacing=0 width=100%><TR><TD height=30>";
echo '<A HREF=index.php target=_top>' . DrawPNG('themes/' . Preferences('THEME') . '/logo.png', 'border=0 width=160') . '</A>';
echo "</TD></TR><TR>";
echo "<TD class=BoxContents style='border: inset #C9C9C9 2px; background-image:url(\"assets/bg.gif\")' width=100% valign=top>\n\t<FORM action=Side.php?modfunc=update method=POST>\n\t<INPUT type=hidden name=modcat value='' id=modcat_input>\n\t<b>" . User('NAME') . "</b>\n\t<BR>" . date('l F j, Y') . "\n\t<BR>";
if (User('PROFILE') == 'admin') {
$schools = substr(str_replace(",", "','", User('SCHOOLS')), 2, -2);
$QI = DBQuery("SELECT ID,TITLE FROM schools" . ($schools ? " WHERE ID IN ({$schools})" : ''));
$RET = DBGet($QI);
// if(!UserSchool())
// {
// $_SESSION['UserSchool'] = $RET[1]['ID'];
示例15: unset
}
if (!$extra['columns_before'] && !$extra['columns_after']) {
$columns = $LO_columns;
}
if (count($students_RET) > 1 || $link['add'] || !$link['FULL_NAME'] || $extra['columns_before'] || $extra['columns_after'] || $extra['BackPrompt'] == false && count($students_RET) == 0 || $extra['Redirect'] === false && count($students_RET) == 1) {
$tmp_REQUEST = $_REQUEST;
unset($tmp_REQUEST['expanded_view']);
if ($_REQUEST['expanded_view'] != 'true' && !UserStudentID() && count($students_RET) != 0) {
DrawHeader("<div><A HREF=" . PreparePHP_SELF($tmp_REQUEST) . "&expanded_view=true class=big_font ><img src=\"themes/Blue/expanded_view.png\" />Expanded View</A></div><div class=break ></div>", $extra['header_right']);
} elseif (!UserStudentID() && count($students_RET) != 0) {
DrawHeader("<div><A HREF=" . PreparePHP_SELF($tmp_REQUEST) . "&expanded_view=false class=big_font><img src=\"themes/Blue/expanded_view.png\" />Original View</A></div><div class=break ></div>", $extra['header_right']);
}
DrawHeader($extra['extra_header_left'], $extra['extra_header_right']);
DrawHeader(str_replace('<BR>', '<BR> ', substr($_CENTRE['SearchTerms'], 0, -4)));
if ($_REQUEST['LO_save'] != '1' && !$extra['suppress_save']) {
$_SESSION['List_PHP_SELF'] = PreparePHP_SELF($_SESSION['_REQUEST_vars']);
echo '<script language=JavaScript>parent.help.location.reload();</script>';
}
if (!$extra['singular'] || !$extra['plural']) {
if ($_REQUEST['address_group']) {
$extra['singular'] = 'Family';
$extra['plural'] = 'Families';
} else {
$extra['singular'] = 'Student';
$extra['plural'] = 'Students';
}
}
echo "<div id='students' >";
ListOutput($students_RET, $columns, $extra['singular'], $extra['plural'], $link, $extra['LO_group'], $extra['options']);
echo "</div>";
} elseif (count($students_RET) == 1) {