当前位置: 首页>>代码示例>>PHP>>正文


PHP DrawHeader函数代码示例

本文整理汇总了PHP中DrawHeader函数的典型用法代码示例。如果您正苦于以下问题:PHP DrawHeader函数的具体用法?PHP DrawHeader怎么用?PHP DrawHeader使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了DrawHeader函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: DBGet

        }
    }
    $exceptions_RET = DBGet(DBQuery("SELECT MODNAME,CAN_USE,CAN_EDIT FROM STAFF_EXCEPTIONS WHERE USER_ID='{$user_id}'"), array(), array('MODNAME'));
    unset($tmp_menu);
    unset($_REQUEST['modfunc']);
    unset($_SESSION['_REQUEST_vars']['modfunc']);
    unset($_REQUEST['can_edit']);
    unset($_SESSION['_REQUEST_vars']['can_edit']);
    unset($_REQUEST['can_use']);
    unset($_SESSION['_REQUEST_vars']['can_use']);
}
if (UserStaffID() && !$_REQUEST['modfunc']) {
    $staff_RET = DBGet(DBQuery("SELECT FIRST_NAME,LAST_NAME,PROFILE,PROFILE_ID FROM STAFF WHERE STAFF_ID='" . UserStaffID() . "'"));
    if (!$staff_RET[1]['PROFILE_ID']) {
        echo "<FORM action=Modules.php?modname={$_REQUEST['modname']}&modfunc=update method=POST>";
        DrawHeader(_('Select the programs with which this user can use and save information.'), SubmitButton(_('Save')));
        echo '<BR>';
        PopTable('header', _('Permissions'));
        echo '<TABLE border=0 cellspacing=0>';
        foreach ($menu as $modcat => $profiles) {
            $values = $profiles[$staff_RET[1]['PROFILE']];
            echo '<TR><TD valign=top align=right>';
            echo "<BR><b><font color=gray>" . str_replace('_', ' ', $modcat) . "</font></b></TD><TD width=3>&nbsp;</TD>";
            echo "<TH bgcolor=#FFFFFF><small><font color=gray>Can Use" . (AllowEdit() ? "<INPUT type=checkbox name=can_use_{$modcat} onclick='checkAll(this.form,this.form.can_use_{$modcat}.checked,\"can_use[{$modcat}\");'>" : '') . "</font></small></TH><TH bgcolor=#FFFFFF> &nbsp;<small><font color=gray>Can Edit" . (AllowEdit() ? "<INPUT type=checkbox name=can_edit_{$modcat} onclick='checkAll(this.form,this.form.can_edit_{$modcat}.checked,\"can_edit[{$modcat}\");'>" : '') . "</font></small></TH><TH bgcolor=#FFFFFF></TH></TR>";
            if (count($values)) {
                foreach ($values as $file => $title) {
                    if (!is_numeric($file)) {
                        $can_use = $exceptions_RET[$file][1]['CAN_USE'];
                        $can_edit = $exceptions_RET[$file][1]['CAN_EDIT'];
                        echo "<TR><TD></TD><TD></TD>";
                        echo "<TD align=center bgcolor=#DDDDDD><INPUT type=checkbox name=can_use[" . str_replace('.', '_', $file) . "] value=true" . ($can_use == 'Y' ? ' CHECKED' : '') . (AllowEdit() ? '' : ' DISABLED') . "></TD>";
开发者ID:linil,项目名称:centreSIS,代码行数:31,代码来源:Exceptions.php

示例2: strtoupper

#  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';
if (!$_REQUEST['modfunc']) {
    $start_date = '01-' . strtoupper(date('M-y'));
    $end_date = DBDate();
    echo "<br><FORM name=log id=log action=Modules.php?modname={$_REQUEST['modname']}&modfunc=generate method=POST>";
    PopTable('header', 'Log Details');
    echo '<div align=center style="padding-top:20px; font-size:12px;"><strong>Please Select Date Range</strong></div>
	<TABLE border=0 width=100% align=center><tr><TD valign=top style=padding-top:14px;>';
    echo '<strong>From :</strong> </TD><TD valign=middle>';
    DrawHeader(PrepareDate($start_date, '_start'));
    echo '</TD><TD valign=top style=padding-top:14px;><strong>To :</strong> </TD><TD valign=middle>';
    DrawHeader(PrepareDate($end_date, '_end'));
    echo '</TD></TR></TABLE><div style=height:10px></div>';
    echo '<center><input type="submit" class=btn_medium value="Generate" name="generate"></center>';
    PopTable('footer');
    echo '</FORM>';
}
if ($_REQUEST['day_start'] && $_REQUEST['month_start'] && $_REQUEST['year_start']) {
    $start_date = $_REQUEST['day_start'] . '-' . $_REQUEST['month_start'] . '-' . substr($_REQUEST['year_start'], 2, 4);
    $org_start_date = $_REQUEST['day_start'] . '-' . $_REQUEST['month_start'] . '-' . $_REQUEST['year_start'];
    $conv_st_date = con_date($org_start_date);
}
if ($_REQUEST['day_end'] && $_REQUEST['month_end'] && $_REQUEST['year_end']) {
    $end_date = $_REQUEST['day_end'] . '-' . $_REQUEST['month_end'] . '-' . substr($_REQUEST['year_end'], 2, 4);
    $org_end_date = $_REQUEST['day_end'] . '-' . $_REQUEST['month_end'] . '-' . $_REQUEST['year_end'];
    $conv_end_date = con_date_end($org_end_date);
}
开发者ID:26746647,项目名称:openSIS,代码行数:31,代码来源:LogDetails.php

示例3: substr

        }
        $sql = substr($sql, 0, -1) . ',school_id=\'' . UserSchool() . '\'';
        DBQuery($sql);
    }
    $sys_pref = DBGet(DBQuery('SELECT * FROM system_preference WHERE SCHOOL_ID=' . UserSchool()));
    $sys_pref = $sys_pref[1];
    PopTable('header', _('Half-day and full-day minutes'));
    if ($sys_pref == '') {
        echo "<FORM name=sys_pref id=sys_pref action=Modules.php?modname={$_REQUEST['modname']}&action=insert&page_display=system_preference method=POST>";
    } else {
        echo "<FORM name=sys_pref id=sys_pref action=Modules.php?modname={$_REQUEST['modname']}&action=update&page_display=system_preference method=POST>";
    }
    echo "<table width=300px><tr><td><table border=0 cellpadding=4 align=center>";
    echo "<tr><td><strong>" . _('Full day minutes') . " :</strong> </td><td>" . TextInput($sys_pref['FULL_DAY_MINUTE'], 'values[FULL_DAY_MINUTE]', '', 'class=cell_floating size=5') . "</td></tr><tr><td><strong>" . _('Half day minutes') . " :</strong></td><td>" . TextInput($sys_pref['HALF_DAY_MINUTE'], 'values[HALF_DAY_MINUTE]', '', 'class=cell_floating size=5') . "</td></tr>";
    echo "</table></td></tr></table>";
    DrawHeader('', '', "<INPUT TYPE=SUBMIT name=button id=button class=btn_medium VALUE='" . _('Save') . "'></CENTER>");
    echo "</FORM>";
    PopTable('footer');
} else {
    if (clean_param($_REQUEST['page_display'], PARAM_ALPHAMOD) == 'MAINTENANCE') {
        if (clean_param($_REQUEST['modfunc'], PARAM_ALPHAMOD) == 'update') {
            if (clean_param($_REQUEST['maintain'], PARAM_NOTAGS)) {
                $check_sys_pref_misc = DBGet(DBQuery('SELECT COUNT(1) as TOTAL FROM system_preference_misc'));
                if ($check_sys_pref_misc[1]['TOTAL'] > 0) {
                    $sql = 'UPDATE system_preference_misc SET ';
                    foreach ($_REQUEST['maintain'] as $column_name => $value) {
                        $sql .= '' . $column_name . '=\'' . str_replace("\\'", "''", str_replace("`", "''", $value)) . '\',';
                    }
                    $sql = substr($sql, 0, -1) . ' WHERE 1=1';
                } else {
                    $sql = 'INSERT INTO system_preference_misc (SYSTEM_MAINTENANCE_SWITCH) VALUES (\'' . $_REQUEST['maintain']['SYSTEM_MAINTENANCE_SWITCH'] . '\') ';
开发者ID:SysBind,项目名称:opensis-ml,代码行数:31,代码来源:system_preference.php

示例4: DrawHeader

<?php

if ($_REQUEST[modfunc] == '') {
    if (defined('PRINT_LETTER')) {
        $title = 'Student Billing Notifications';
    } else {
        $title = 'Student Billing Invoices';
    }
    DrawHeader($title);
    echo '<BR>';
    PopTable('header', 'Search');
    echo "<FORM action=Modules.php?modname={$_REQUEST['modname']}&modfunc=list method=POST>";
    echo '<TABLE>';
    Warehouse('searchstu');
    echo '<TR><TD>Balance Between</TD><TD><INPUT type=text name=balance_low> &amp; <INPUT type=text name=balance_high></TD></TR>';
    echo '<TR><TD>Balance Not Zero</TD><TD><INPUT type=checkbox name=not_zero value=Y></TD></TR>';
    echo '<TR><TD>Invoice</TD><TD>';
    echo '<SELECT name=editor>
			<OPTION value=both>Student Billing & Lunch</OPTION>
			<OPTION value=stubilling SELECTED>Student Billing</OPTION>
			<OPTION value=lunch>Lunch</OPTION>
		</SELECT>';
    echo '</TD></TR>';
    PrepareSchool(SessionSchool(), '', SessionCurSchool());
    Warehouse('searchgrade');
    Warehouse('searchyear');
    if (defined('PRINT_LETTER')) {
        echo '<TR><TD>Letter Text</TD><TD>';
        echo '<TEXTAREA name=letter rows=10 cols=50>

Dear __PARENTS__,
开发者ID:SoftScape,项目名称:opensis,代码行数:31,代码来源:Invoices.php

示例5: unset

    unset($_REQUEST['modfunc']);
}
$schools_RET = DBGet(DBQuery("SELECT ID,SYEAR,TITLE FROM SCHOOLS"), array(), array('SYEAR'));
//echo '<pre>'; var_dump($schools_RET); echo '</pre>';
foreach ($schools_RET as $syear => $schools) {
    foreach ($schools as $school) {
        $schools_select[$syear][$school['ID']] = $school['TITLE'];
    }
}
//echo '<pre>'; var_dump($schools_select); echo '</pre>';
$students_RET = DBGet(DBQuery("SELECT fst.TRANSACTION_ID,fst.ACCOUNT_ID,fst.SYEAR," . db_case(array('fst.STUDENT_ID', "''", 'NULL', "(SELECT FIRST_NAME||' '||LAST_NAME FROM STUDENTS WHERE STUDENT_ID=fst.STUDENT_ID)")) . " AS FULL_NAME,fst.ACCOUNT_ID AS STUDENTS,fst.SCHOOL_ID FROM FOOD_SERVICE_TRANSACTIONS fst WHERE fst.SCHOOL_ID IS NULL"), array('STUDENTS' => '_students', 'SCHOOL_ID' => '_make_school'));
$staff_RET = DBGet(DBQuery("SELECT fst.TRANSACTION_ID,fst.STAFF_ID,fst.SYEAR,(SELECT FIRST_NAME||' '||LAST_NAME FROM STAFF WHERE STAFF_ID=fst.STAFF_ID) AS FULL_NAME,fst.SCHOOL_ID FROM FOOD_SERVICE_STAFF_TRANSACTIONS fst WHERE fst.SCHOOL_ID IS NULL"), array('SCHOOL_ID' => '_make_staff_school'));
//echo '<pre>'; var_dump($students_RET); echo '</pre>';
//echo '<pre>'; var_dump($users_RET); echo '</pre>';
echo "<FORM action=Modules.php?modname={$_REQUEST['modname']}&modfunc=update method=POST>";
DrawHeader('', SubmitButton(_('Save')));
$columns = array('TRANSACTION_ID' => _('ID'), 'ACCOUNT_ID' => _('Account ID'), 'SYEAR' => _('School Year'), 'FULL_NAME' => _('Student'), 'STUDENTS' => _('Students'), 'SCHOOL_ID' => _('School'));
ListOutput($students_RET, $columns, _('Student Transaction w/o School'), _('Student Transactions w/o School'), false, array(), array('save' => false, 'search' => false));
$columns = array('TRANSACTION_ID' => _('ID'), 'SYEAR' => _('School Year'), 'FULL_NAME' => _('User'), 'SCHOOL_ID' => _('School'));
ListOutput($staff_RET, $columns, _('User Transaction w/o School'), _('User Transactions w/o School'), false, array(), array('save' => false, 'search' => false));
echo '<CENTER>' . SubmitButton(_('Save')) . '</CENTER>';
echo '</FORM>';
function _students($value, $column)
{
    $RET = DBGet(DBQuery("SELECT s.FIRST_NAME||' '||s.LAST_NAME AS FULL_NAME FROM STUDENTS s,FOOD_SERVICE_STUDENT_ACCOUNTS fsa WHERE s.STUDENT_ID=fsa.STUDENT_ID AND fsa.ACCOUNT_ID='" . $value . "'"));
    foreach ($RET as $student) {
        $ret .= $student['FULL_NAME'] . '<br>';
    }
    $ret = substr($ret, 0, -4);
    return $ret;
}
开发者ID:linil,项目名称:centreSIS,代码行数:31,代码来源:AssignSchool.php

示例6: DrawHeader

    }
    echo "<FORM action=Modules.php?modname={$_REQUEST['modname']} method=POST>";
    DrawHeader(ProgramTitle(), '<INPUT type=submit value=' . _('Update') . '>');
    if ($REQ_codes) {
        foreach ($REQ_codes as $code) {
            $code_pulldowns .= _makeCodeSearch($code);
        }
    } elseif ($abs) {
        $code_pulldowns = _makeCodeSearch('A');
    } else {
        $code_pulldowns = _makeCodeSearch();
    }
    if (UserStudentID()) {
        $current_student_link = "<A HREF=Modules.php?modname={$_REQUEST['modname']}&modfunc=student&month_date={$_REQUEST['month_date']}&day_date={$_REQUEST['day_date']}&year_date={$_REQUEST['year_date']}&student_id=" . UserStudentID() . ">Current Student</A></TD><TD>";
    }
    DrawHeader(PrepareDate($date, '_date'), '<TABLE><TR><TD>' . $current_student_link . button('add', '', "# onclick='javascript:addHTML(\"" . str_replace('"', '\\"', _makeCodeSearch()) . "\",\"code_pulldowns\"); return false;'") . '</TD><TD><DIV id=code_pulldowns>' . $code_pulldowns . '</DIV></TD></TR></TABLE>');
    $_REQUEST['search_modfunc'] = 'list';
    Search('student_id', $extra);
    echo "</FORM>";
}
function _makePhone($value, $column)
{
    global $THIS_RET, $contacts_RET;
    if (count($contacts_RET[$THIS_RET['STUDENT_ID']])) {
        foreach ($contacts_RET[$THIS_RET['STUDENT_ID']] as $person) {
            if ($person[1]['FIRST_NAME'] || $person[1]['LAST_NAME']) {
                $tipmessage .= '<B>' . $person[1]['STUDENT_RELATION'] . ': ' . $person[1]['FIRST_NAME'] . ' ' . $person[1]['LAST_NAME'] . '</B><BR>';
            }
            $tipmessage .= '<TABLE>';
            if ($person[1]['PHONE']) {
                $tipmessage .= '<TR><TD align=right><font color=gray size=1 face=Verdana,Arial,Helvetica>' . _('Home Phone') . '</font> </TD><TD><font size=1 face=Verdana,Arial,Helvetica>' . $person[1]['PHONE'] . '</font></TD></TR>';
开发者ID:SysBind,项目名称:opensis-ml,代码行数:31,代码来源:Administration_fast.php

示例7: PreparePHP_SELF

                        }
                    }
                }
            }
            if (count($_REQUEST['mp_arr']) == 1 && AllowEdit()) {
                $link['remove']['link'] = PreparePHP_SELF($_REQUEST, array(), array('modfunc' => 'delete'));
                $link['remove']['variables'] = array('student_id' => 'STUDENT_ID', 'course_period_id' => 'COURSE_PERIOD_ID', 'marking_period_id' => 'MARKING_PERIOD_ID');
            }
            if (!isset($_REQUEST['_ROSARIO_PDF'])) {
                $commentsB_RET = DBGet(DBQuery("SELECT ID,TITLE,SORT_ORDER FROM REPORT_CARD_COMMENTS WHERE SCHOOL_ID='" . UserSchool() . "' AND SYEAR='" . UserSyear() . "' AND COURSE_ID IS NULL ORDER BY SORT_ORDER"), array(), array('ID'));
                if (count($commentsB_RET)) {
                    foreach ($commentsB_RET as $comment) {
                        $tipmessage .= $comment[1]['SORT_ORDER'] . ' - ' . str_replace("'", '&acute;', $comment[1]['TITLE']) . '<BR />';
                    }
                    $tipmessage = button('comment', _('Comment Codes'), '"#" onmouseover=\'stm(["' . _('Report Card Comments') . '","' . str_replace('"', '\\"', str_replace("'", '&#39;', $tipmessage)) . '"],tipmessageStyle);\' onmouseout=\'htm()\'', 24);
                    DrawHeader('', $tipmessage);
                }
            }
            ListOutput($grades_RET, $columns, '.', '.', $link);
        } else {
            $error[] = _('No Students were found.');
            unset($_SESSION['_REQUEST_vars']['modfunc']);
            unset($_REQUEST['modfunc']);
        }
    } else {
        $error[] = _('You must choose at least one student and one marking period.');
        unset($_SESSION['_REQUEST_vars']['modfunc']);
        unset($_REQUEST['modfunc']);
    }
}
if (empty($_REQUEST['modfunc'])) {
开发者ID:fabioassuncao,项目名称:rosariosis,代码行数:31,代码来源:FinalGrades.php

示例8: _

    $_REQUEST['table'] = '0';
}
$category_select = "<SELECT name=table onChange='this.form.submit();'><OPTION value='0'" . ($_REQUEST['table'] == '0' ? ' SELECTED' : '') . ">" . _('Attendance') . "</OPTION>";
foreach ($categories_RET as $category) {
    $category_select .= "<OPTION value={$category['ID']}" . ($_REQUEST['table'] == $category['ID'] ? ' SELECTED' : '') . ">" . $category['TITLE'] . "</OPTION>";
}
$category_select .= "</SELECT>";
$QI = DBQuery("SELECT sp.PERIOD_ID,sp.TITLE FROM SCHOOL_PERIODS sp WHERE sp.SCHOOL_ID='" . UserSchool() . "' AND sp.SYEAR='" . UserSyear() . "' AND EXISTS (SELECT '' FROM COURSE_PERIODS WHERE SYEAR=sp.SYEAR AND PERIOD_ID=sp.PERIOD_ID AND position(',{$_REQUEST['table']},' IN DOES_ATTENDANCE)>0) ORDER BY sp.SORT_ORDER");
$periods_RET = DBGet($QI, array(), array('PERIOD_ID'));
$period_select = "<SELECT name=period onChange='this.form.submit();'><OPTION value=''>" > _('All') . "</OPTION>";
foreach ($periods_RET as $id => $period) {
    $period_select .= "<OPTION value={$id}" . ($_REQUEST['period'] == $id ? ' SELECTED' : '') . ">" . $period[1]['TITLE'] . "</OPTION>";
}
$period_select .= "</SELECT>";
echo "<FORM action=Modules.php?modname={$_REQUEST['modname']} method=POST>";
DrawHeader(PrepareDate($date, '_date', false, array('submit' => true)) . ' - ' . $period_select, $category_select);
echo '</FORM>';
$daysWeek = _('SuMoTuWeThFrSa');
/// Days of the week
$sql = "SELECT s.STAFF_ID,s.LAST_NAME||', '||s.FIRST_NAME AS FULL_NAME,sp.TITLE,cp.PERIOD_ID,cp.TITLE AS COURSE_TITLE,\n\t\t(SELECT 'Y' FROM ATTENDANCE_COMPLETED ac WHERE ac.STAFF_ID=cp.TEACHER_ID AND ac.SCHOOL_DATE=acc.SCHOOL_DATE AND ac.PERIOD_ID=sp.PERIOD_ID AND TABLE_NAME='{$_REQUEST['table']}') AS COMPLETED\n\t\tFROM STAFF s,COURSE_PERIODS cp,SCHOOL_PERIODS sp,ATTENDANCE_CALENDAR acc\n\t\tWHERE\n\t\t\tsp.PERIOD_ID = cp.PERIOD_ID AND position(',{$_REQUEST['table']},' IN cp.DOES_ATTENDANCE)>0\n\t\t\tAND cp.TEACHER_ID=s.STAFF_ID AND cp.MARKING_PERIOD_ID IN (" . GetAllMP('QTR', GetCurrentMP('QTR', $date)) . ")\n\t\t\tAND cp.SYEAR='" . UserSyear() . "' AND cp.SCHOOL_ID='" . UserSchool() . "' AND s.PROFILE='teacher'\n\t\t\t" . ($_REQUEST['period'] ? " AND cp.PERIOD_ID='{$_REQUEST['period']}'" : '') . " AND acc.CALENDAR_ID=cp.CALENDAR_ID AND acc.SCHOOL_DATE='{$date}'\n\t\t\tAND acc.SYEAR='" . UserSyear() . "' AND (acc.MINUTES IS NOT NULL AND acc.MINUTES>0)\n\t\t\tAND (sp.BLOCK IS NULL AND position(substring('{$daysWeek}' FROM cast(extract(DOW FROM acc.SCHOOL_DATE) AS INT)*2+1 FOR 2) IN cp.DAYS)>0\n\t\t\tOR sp.BLOCK IS NOT NULL AND acc.BLOCK IS NOT NULL AND sp.BLOCK=acc.BLOCK)\n\t\tORDER BY FULL_NAME";
$RET = DBGet(DBQuery($sql), array(), array('STAFF_ID'));
if (!$_REQUEST['period']) {
    foreach ($RET as $staff_id => $periods) {
        $i++;
        $staff_RET[$i]['FULL_NAME'] = $periods[1]['FULL_NAME'];
        foreach ($periods as $period) {
            if (!$_REQUEST['_CENTRE_PDF']) {
                $staff_RET[$i][$period['PERIOD_ID']] .= button($period['COMPLETED'] == 'Y' ? 'check' : 'x', '', '# onMouseOver=\'stm(["Course Title","' . $period['COURSE_TITLE'] . '"],["white","#006699","","","",,"black","#e8e8ff","","","",,,,2,"#006699",2,,,,,"",,,,]);\' onMouseOut=\'htm()\'') . ' ';
            } else {
                $staff_RET[$i][$period['PERIOD_ID']] = ($period['COMPLETED'] == 'Y' ? _('Yes') : _('No')) . " ";
            }
开发者ID:linil,项目名称:centreSIS,代码行数:31,代码来源:TeacherCompletion.php

示例9: PrepareDate

     $columns = $LO_columns;
 }
 if (count($students_RET) > 0) {
     echo '<TABLE><TR><TD>Drop Date</TD><TD>' . PrepareDate(DBDate(), '') . '</TD></TR></TABLE>';
 }
 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']);
         DrawHeader(str_replace('<BR>', '<BR> &nbsp;', substr($_openSIS['SearchTerms'], 0, -4)));
     } 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(str_replace('<BR>', '<BR> &nbsp;', substr($_openSIS['Search'], 0, -4)));
     }
     DrawHeader($extra['extra_header_left'], $extra['extra_header_right']);
     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']) {
         $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>";
 }
 if (count($students_RET) > 0) {
     echo '<BR><CENTER>' . SubmitButton('', '', 'class=btn_group_drops onclick=\'formload_ajax("ww");\'') . '</CENTER>';
     echo "</FORM>";
开发者ID:jicheng17,项目名称:fh,代码行数:31,代码来源:MassDrops.php

示例10: foreach

         }
         foreach ($custom_RET1[$category['ID']] as $field) {
             $fields_list[$category['TITLE']]['CUSTOM_' . $field['ID']] = $field['TITLE'];
         }
     }
 }
 $periods_RET = DBGet(DBQuery("SELECT TITLE,PERIOD_ID FROM SCHOOL_PERIODS WHERE SYEAR='" . UserSyear() . "' AND SCHOOL_ID='" . UserSchool() . "' ORDER BY SORT_ORDER"));
 foreach ($periods_RET as $period) {
     $fields_list['Schedule']['PERIOD_' . $period['PERIOD_ID']] = $period['TITLE'] . ' Teacher - Room';
 }
 if ($openSISModules['Food_Service']) {
     $fields_list['Food_Service'] = array('FS_ACCOUNT_ID' => 'Account ID', 'FS_DISCOUNT' => 'Discount', 'FS_STATUS' => 'Status', 'FS_BARCODE' => 'Barcode', 'FS_BALANCE' => 'Balance');
 }
 DrawHeader('<OL><SPAN id=names_div></SPAN></OL>');
 echo '<TABLE><TR><TD valign=top>';
 DrawHeader("<div><a class=big_font><img src=\"themes/Blue/expanded_view.png\" />Select Fields To Generate Report</a></div>", $extra['header_right']);
 PopTable_wo_header('header');
 echo '<TABLE><TR>';
 foreach ($fields_list as $category => $fields) {
     echo '<TD colspan=2 class=break_headers ><b>' . $category . '<BR></b></TD></TR><TR>';
     foreach ($fields as $field => $title) {
         $i++;
         echo '<TD><INPUT type=checkbox onclick="addHTML(\'<LI>' . $title . '</LI>\',\'names_div\',false);addHTML(\'<INPUT type=hidden name=fields[' . $field . '] value=Y>\',\'fields_div\',false);this.disabled=true">' . $title . ($field == 'PARENTS' ? '<BR>(<small>Relation: </small><input type=text id=relation name=relation size=8>)' : '') . '</TD>';
         if ($i % 2 == 0) {
             echo '</TR><TR>';
         }
     }
     if ($i % 2 != 0) {
         echo '<TD></TD></TR><TR>';
         $i++;
     }
开发者ID:26746647,项目名称:Belize-openSIS,代码行数:31,代码来源:Export.php

示例11: DrawHeader

        if ($_SCHEDULER['student_id']) {
            $link = "<A HREF=Modules.php?modname=Scheduling/Schedule.php>View this student's Schedule</A>";
        } else {
            $link = "<A HREF=Modules.php?modname=Scheduling/ScheduleReport.php>View the Schedule Report</A>";
        }
        DrawHeader($message, $link);
    } elseif ($_SCHEDULER['student_id']) {
        if (!$count) {
            $message = "<IMG SRC=assets/check.gif>All of this student's requests can be filled";
        }
        DrawHeader($message, "<A HREF=Modules.php?modname=Scheduling/Scheduler.php&run=true&_SCHEDULER_student_id={$_SCHEDULER['student_id']}>Run the Scheduler for this student</A>");
    } else {
        if (!$count) {
            $message = '<IMG SRC=assets/check.gif>All students\' requests can be filled';
        }
        DrawHeader($message, "<A HREF=Modules.php?modname=Scheduling/Scheduler.php&run=true>Run the Scheduler</A>");
    }
}
function findMatch($matches, $request_id, $request)
{
    global $insert, $requests_done, $requests_undone, $periods_RET, $mp_RET, $periods_done;
    // FIND THE BEST MATCH
    if (count($matches)) {
        $best = $matches[0];
        foreach ($matches as $period) {
            if ($period[1]['AVAILABLE_SEATS'] > $best[1]['AVAILABLE_SEATS']) {
                $best = $period;
            }
        }
        // PERIOD HAS MEET ALL OF THE CRITERIA, SO ADD IT.
        $periods_RET[$request['COURSE_ID']][$request['COURSE_WEIGHT']][$best[1]['COURSE_PERIOD_ID']][1]['AVAILABLE_SEATS']--;
开发者ID:linil,项目名称:centreSIS,代码行数:31,代码来源:Scheduler_old.php

示例12: DrawHeaderHome

DrawHeaderHome(ProgramTitle());
if ($today > $END_DAY || $today < $START_DAY || $today == $START_DAY && date('Gi') < $START_HOUR . $START_MINUTE || $today == $END_DAY && date('Gi') > $END_HOUR . $END_MINUTE) {
    if ($START_HOUR > 12) {
        $START_HOUR -= 12;
        $START_M = 'PM';
    } else {
        $START_M = 'AM';
    }
    if ($END_HOUR > 12) {
        $END_HOUR -= 12;
        $END_M = 'PM';
    } else {
        $END_M = 'AM';
    }
    echo ErrorMessage(array('You can only enter eligibility from ' . $days[$START_DAY] . ' ' . $START_HOUR . ':' . $START_MINUTE . ' ' . $START_M . ' to ' . $days[$END_DAY] . ' ' . $END_HOUR . ':' . $END_MINUTE . ' ' . $END_M), 'error');
} else {
    DrawHeader("<A HREF=Modules.php?modname={$_REQUEST['modname']}&modfunc=gradebook>Use Gradebook Grades</A>", '<INPUT type=submit class=btn_medium value=Save>');
    $LO_columns = array('FULL_NAME' => 'Student', 'STUDENT_ID' => 'Student ID', 'GRADE_ID' => 'Grade') + $columns;
    ListOutput($stu_RET, $LO_columns, 'Student', 'Students');
    echo '<br><CENTER><INPUT type=submit class=btn_medium value=Save></CENTER>';
}
echo "</FORM>";
function makeRadio($value, $title)
{
    global $THIS_RET, $current_RET;
    if (isset($current_RET[$THIS_RET['STUDENT_ID']][1]['ELIGIBILITY_CODE']) && $current_RET[$THIS_RET['STUDENT_ID']][1]['ELIGIBILITY_CODE'] == $title || $title == 'PASSING' && !$current_RET[$THIS_RET['STUDENT_ID']][1]['ELIGIBILITY_CODE']) {
        return "<INPUT type=radio name=values[" . $THIS_RET['STUDENT_ID'] . "] value='{$title}' CHECKED>";
    } else {
        return "<INPUT type=radio name=values[" . $THIS_RET['STUDENT_ID'] . "] value='{$title}'>";
    }
}
开发者ID:SoftScape,项目名称:opensis,代码行数:31,代码来源:EnterEligibility.php

示例13: DrawBC

#  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';
DrawBC("" . _('Attendance') . " > " . ProgramTitle());
$message = '<TABLE><TR><TD colspan=7 align=center>' . _('From') . ' ' . PrepareDate(DBDate(), '_min') . ' ' . _('to') . ' ' . PrepareDate(DBDate(), '_max') . '</TD></TR></TABLE>';
if (Prompt_Home(_('Confirm'), _('When do you want to recalculate the daily attendance?'), $message)) {
    $current_RET = DBGet(DBQuery('SELECT DISTINCT DATE_FORMAT(SCHOOL_DATE,\'%d-%m-%Y\') as SCHOOL_DATE FROM attendance_calendar WHERE SCHOOL_ID=\'' . UserSchool() . '\' AND SYEAR=\'' . UserSyear() . '\''), array(), array('SCHOOL_DATE'));
    $students_RET = GetStuList();
    $begin = mktime(0, 0, 0, MonthNWSwitch($_REQUEST['month_min'], 'to_num'), $_REQUEST['day_min'] * 1, $_REQUEST['year_min']) + 43200;
    $end = mktime(0, 0, 0, MonthNWSwitch($_REQUEST['month_max'], 'to_num'), $_REQUEST['day_max'] * 1, $_REQUEST['year_max']) + 43200;
    for ($i = $begin; $i <= $end; $i += 86400) {
        if ($current_RET[strtoupper(date('d-M-y', $i))]) {
            foreach ($students_RET as $student) {
                UpdateAttendanceDaily($student['STUDENT_ID'], date('d-M-y', $i));
            }
        }
    }
    unset($_REQUEST['modfunc']);
    DrawHeader('<table><tr><td><IMG SRC=assets/check.gif></td><td>' . _('The Daily Attendance for that timeframe has been recalculated.') . '</td></tr></table>');
}
开发者ID:SysBind,项目名称:opensis-ml,代码行数:31,代码来源:FixDailyAttendance.php

示例14: DBGet

        $semesters_RET = DBGet(DBQuery("SELECT MARKING_PERIOD_ID,TITLE FROM SCHOOL_SEMESTERS WHERE SYEAR='" . UserSyear() . "' AND SCHOOL_ID='" . UserSchool() . "' ORDER BY SORT_ORDER"));
        $quarters_RET = DBGet(DBQuery("SELECT MARKING_PERIOD_ID,TITLE FROM SCHOOL_QUARTERS WHERE SYEAR='" . UserSyear() . "' AND SCHOOL_ID='" . UserSchool() . "' ORDER BY SORT_ORDER"));
        echo "<OPTION value=" . $year_RET[1]['MARKING_PERIOD_ID'] . ">" . $year_RET[1]['TITLE'] . '</OPTION>';
        foreach ($semesters_RET as $mp) {
            echo "<OPTION value={$mp['MARKING_PERIOD_ID']}>" . $mp['TITLE'] . '</OPTION>';
        }
        foreach ($quarters_RET as $mp) {
            echo "<OPTION value={$mp['MARKING_PERIOD_ID']}>" . $mp['TITLE'] . '</OPTION>';
        }
        echo '</SELECT>';
        echo '</TD></TR>';
        echo '</TABLE>';
        PopTable('footer');
    }
    if ($note) {
        DrawHeader('<table><tr><td><IMG SRC=assets/check.gif></td><td>GPA and class rank for ' . $note . '</td></tr></table>');
    }
}
if (!$_REQUEST['modfunc']) {
    if ($_REQUEST['search_modfunc'] != 'list') {
        unset($_SESSION['MassDrops.php']);
    }
    $extra['link'] = array('FULL_NAME' => false);
    $extra['SELECT'] = ",CAST(NULL AS CHAR(1)) AS CHECKBOX";
    $extra['functions'] = array('CHECKBOX' => '_makeChooseCheckbox');
    $extra['columns_before'] = array('CHECKBOX' => '</A><INPUT type=checkbox value=Y name=controller onclick="checkAll(this.form,this.form.controller.checked,\'student\');"><A>');
    $extra['new'] = true;
    Widgets('course');
    Widgets('request');
    Widgets('activity');
    Search('student_id', $extra);
开发者ID:26746647,项目名称:Belize-openSIS,代码行数:31,代码来源:MassDrops.php

示例15: foreach

        foreach ($_REQUEST['values'] as $key => $value) {
            if (isset(${$key})) {
                DBQuery("UPDATE PROGRAM_CONFIG SET VALUE='{$value}' WHERE PROGRAM='eligibility' AND TITLE='{$key}' AND SCHOOL_ID='" . UserSchool() . "' AND SYEAR='" . UserSyear() . "'");
            } else {
                DBQuery("INSERT INTO PROGRAM_CONFIG (SYEAR,SCHOOL_ID,PROGRAM,TITLE,VALUE) values('" . UserSyear() . "','" . UserSchool() . "','eligibility','{$key}','{$value}')");
            }
        }
    }
    $start_end_RET = DBGet(DBQuery("SELECT TITLE,VALUE FROM PROGRAM_CONFIG WHERE SYEAR='" . UserSyear() . "' AND SCHOOL_ID='" . UserSchool() . "' AND PROGRAM='eligibility'"));
    if (count($start_end_RET)) {
        foreach ($start_end_RET as $value) {
            ${$value}['TITLE'] = $value['VALUE'];
        }
    }
}
DrawHeader(ProgramTitle());
echo '<BR>';
$days = array(_('Sunday'), _('Monday'), _('Tuesday'), _('Wednesday'), _('Thursday'), _('Friday'), _('Saturday'));
for ($i = 0; $i < 7; $i++) {
    $day_options[$i] = $days[$i];
}
for ($i = 1; $i <= 11; $i++) {
    $hour_options[$i] = $i;
}
$hour_options['0'] = '12';
for ($i = 0; $i <= 9; $i++) {
    $minute_options[$i] = '0' . $i;
}
for ($i = 10; $i <= 59; $i++) {
    $minute_options[$i] = $i;
}
开发者ID:linil,项目名称:centreSIS,代码行数:31,代码来源:EntryTimes.php


注:本文中的DrawHeader函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。