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


PHP SubmitButton函数代码示例

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


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

示例1: for_error

function for_error()
{
    $css = getCSS();
    echo "<br><br><form action=Modules.php?modname={$_REQUEST['modname']} method=post>";
    echo '<BR><CENTER>' . SubmitButton('Try Again', '', 'class=btn_medium') . '</CENTER>';
    echo "</form>";
    echo "</div>";
    echo "</td>\n                                        </tr>\n                                      </table></td>\n                                  </tr>\n                                </table></td>\n                            </tr>\n                          </table></td>\n                      </tr>\n                    </table></td>\n                </tr>\n              </table></td>\n          </tr>\n\n\t\t\t<tr>\n            <td class=\"footer\">\n\t\t\t<table width=\"100%\" border=\"0\">\n  <tr>\n    <td valign=middle class=\"copyright\">Copyright &copy; 2007-2008 Open Solutions for Education, Inc. (<a href='http://www.os4ed.com' target='_blank'>OS4Ed</a>).</td>\n\t<td valign=bottom class=\"credits\"><a href='http://www.os4ed.com' target='_blank'><img src=\"themes/" . $css . "/os4ed_logo.png\" /></a></td>\n  </tr>\n</table>\n\t\t\t</td>\n          \t</tr>\n        </table></td>\n    </tr>\n  </table>\n</center>\n</body>\n</html>";
    exit;
}
开发者ID:SoftScape,项目名称:opensis,代码行数:10,代码来源:custom_functions.fnc.php

示例2: DBGet

    #echo '<BR>';
    echo '<CENTER><TABLE cellpadding=6><TR><TD align=right><b>Activity</b></TD>';
    echo '<TD>';
    $activities_RET = DBGet(DBQuery('SELECT ID,TITLE FROM eligibility_activities WHERE SYEAR=\'' . UserSyear() . '\' AND SCHOOL_ID=\'' . UserSchool() . '\''));
    echo '<SELECT name=activity_id><OPTION value="">N/A</OPTION>';
    if (count($activities_RET)) {
        foreach ($activities_RET as $activity) {
            echo "<OPTION value={$activity['ID']}>{$activity['TITLE']}</OPTION>";
        }
    }
    echo '</SELECT>';
    echo '</TD>';
    echo '</TR></TABLE><BR>';
    $extra['link'] = array('FULL_NAME' => false);
    $extra['SELECT'] = ",NULL 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('activity');
Widgets('course');
Search('student_id', $extra);
if ($_REQUEST['search_modfunc'] == 'list') {
    //	echo '<BR><CENTER>'.SubmitButton('Add Activity to Selected Students','','class=btn_xlarge onclick=\'formload_ajax("addact");\'')."</CENTER></FORM>";
    echo '<BR><CENTER>' . SubmitButton('Add Activity to Selected Students', '', 'class=btn_xlarge') . "</CENTER></FORM>";
}
function _makeChooseCheckbox($value, $title)
{
    global $THIS_RET;
    return "<INPUT type=checkbox name=student[" . $THIS_RET['STUDENT_ID'] . "] value=Y>";
}
开发者ID:26746647,项目名称:openSIS,代码行数:31,代码来源:AddActivity.php

示例3: DBQuery

                                if (count($rank_RET) == 0) {
                                    DBQuery('INSERT INTO program_config (school_id,program,title,value) VALUES(\'' . UserSchool() . '\',\'class_rank\',\'display\',\'Y\')');
                                } else {
                                    DBQuery('UPDATE program_config SET value=\'' . $_REQUEST['display_rank'] . '\' WHERE school_id=\'' . UserSchool() . '\' AND program=\'class_rank\' AND title=\'display\'');
                                }
                                unset($_REQUEST['display_rank']);
                                unset($_SESSION['_REQUEST_vars']['display_rank']);
                            }
                        }
                        $rank_RET = DBGet(DBQuery('SELECT VALUE FROM program_config WHERE school_id=\'' . UserSchool() . '\' AND program=\'class_rank\' AND title=\'display\' LIMIT 0, 1'));
                        $rank = $rank_RET[1];
                        echo "<FORM name=failure id=failure action=Modules.php?modname={$_REQUEST['modname']}&modfunc=update&page_display=CLASSRANK method=POST>";
                        echo '<table width="330px;" cellpadding="4">';
                        echo '<tr><td width="92%" align="center">' . _('Display Class Rank') . '?</td><td align="left">' . CheckboxInput($rank['VALUE'], 'display_rank', '', 'class=cell_floating') . '</td></tr>';
                        echo '<tr><td colspan="2"></td></tr>';
                        echo '<tr><td colspan="2"><CENTER>' . SubmitButton(_('Save'), '', 'class=btn_medium') . '</CENTER></td></tr>';
                        echo '</table>';
                        echo '</FORM>';
                        PopTable('footer');
                    } else {
                        echo '
<style type="text/css">
.time_schedule { background:url(assets/time_schedule.png) no-repeat 0px 0px; padding:10px 0px 10px 45px; text-align:left; margin:14px 280px; }
.login_failure { background:url(assets/login_failure.png) no-repeat 0px 0px; padding:10px 0px 10px 45px; text-align:left; margin:14px 280px; }
.user_inactivity { background:url(assets/user_inactivity.png) no-repeat 0px 0px; padding:10px 0px 10px 45px; text-align:left; margin:14px 280px; }
.maintenance { background:url(assets/maintenance.png) no-repeat 0px 0px; padding:10px 0px 10px 45px; text-align:left; margin:14px 280px; }
.currency { background:url(assets/currency.png) no-repeat 0px 0px; padding:10px 0px 10px 45px; text-align:left; margin:14px 280px; }
.class_rank { background:url(assets/class_rank.png) no-repeat 0px 0px; padding:15px 0px 10px 45px; text-align:left; margin:14px 280px; }
</style>

<div style=padding:20px 0px 0px 0px;>';
开发者ID:SysBind,项目名称:opensis-ml,代码行数:31,代码来源:system_preference.php

示例4: foreach

    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;
}
function _make_school($value, $column)
{
    global $THIS_RET, $schools_select;
    return SelectInput($value, "student[{$THIS_RET['TRANSACTION_ID']}]", '', $schools_select[$THIS_RET['SYEAR']]);
    //function SelectInput($value,$name,$title='',$options,$allow_na='N/A',$extra='',$div=true)
开发者ID:linil,项目名称:centreSIS,代码行数:31,代码来源:AssignSchool.php

示例5: array

        $extra['extra_header_left'] .= '</TABLE>';
    }
    $extra['link'] = array('FULL_NAME' => false);
    $extra['SELECT'] = ",s.STUDENT_ID AS CHECKBOX";
    $extra['functions'] = array('CHECKBOX' => '_makeChooseCheckbox');
    $extra['columns_before'] = array('CHECKBOX' => '</A><INPUT type="checkbox" value="Y" name="controller" checked onclick="checkAll(this.form,this.form.controller.checked,\'st_arr\');"><A>');
    $extra['new'] = true;
    $extra['options']['search'] = false;
    $extra['force_search'] = true;
    //Widgets('course');
    //Widgets('gpa');
    //Widgets('class_rank');
    //Widgets('letter_grade');
    Search('student_id', $extra);
    if ($_REQUEST['search_modfunc'] == 'list') {
        echo '<BR /><span class="center">' . SubmitButton(_('Create Grade Lists for Selected Students')) . '</span>';
        echo "</FORM>";
    }
}
function _makeChooseCheckbox($value, $title)
{
    return '&nbsp;&nbsp;<INPUT type="checkbox" name="st_arr[]" value="' . $value . '" checked />';
}
function _makeTeacher($teacher, $column)
{
    return mb_substr($teacher, mb_strrpos(str_replace(' - ', ' ^ ', $teacher), '^') + 2);
}
function _makeComments($value, $column)
{
    global $THIS_RET;
    return DBGet(DBQuery('SELECT COURSE_PERIOD_ID,REPORT_CARD_COMMENT_ID,COMMENT,(SELECT SORT_ORDER FROM REPORT_CARD_COMMENTS WHERE REPORT_CARD_COMMENT_ID=ID) AS SORT_ORDER FROM STUDENT_REPORT_CARD_COMMENTS WHERE STUDENT_ID=\'' . $THIS_RET['STUDENT_ID'] . '\' AND COURSE_PERIOD_ID=\'' . $THIS_RET['COURSE_PERIOD_ID'] . '\' AND MARKING_PERIOD_ID=\'' . $value . '\' ORDER BY SORT_ORDER'));
开发者ID:fabioassuncao,项目名称:rosariosis,代码行数:31,代码来源:FinalGrades.php

示例6: array

            $columns += array('CB' . $i => 'Comment ' . $i);
        }
        if (count($commentsB_select) && AllowEdit() && !isset($_REQUEST['_openSIS_PDF'])) {
            $columns += array('CB' . $i => 'Add Comment');
        }
        $columns += array('COMMENT' => 'Comment');
    }
    echo "<center>";
    PopTable_wo_header('header');
    echo '<div style="width:800px; overflow-x:scroll;">';
    ListOutput($stu_RET, $columns, 'Student', 'Students', false, false, array('yscroll' => true));
    echo '</div>';
    PopTable('footer');
    echo "</center>";
    if (count($stu_RET) != 0) {
        echo '<CENTER>' . SubmitButton('Save', 'submit[save]', 'class=btn_medium') . '</CENTER>';
    }
    echo "</FORM>";
}
/////////////////sg customization////////
function _makeGrade($value, $column)
{
    global $THIS_RET, $current_RET, $import_RET, $grades_RET, $grades_select, $student_count, $tabindex;
    $tc_grade = 'n';
    if ($column == 'REPORT_CARD_GRADE') {
        if (!isset($_REQUEST['_openSIS_PDF'])) {
            $student_count++;
            $tabindex = $student_count;
            if ($import_RET[$THIS_RET['STUDENT_ID']]) {
                $select = $import_RET[$THIS_RET['STUDENT_ID']][1]['REPORT_CARD_GRADE_ID'];
                $extra_select = array($select => $grades_select[$import_RET[$THIS_RET['STUDENT_ID']][1]['REPORT_CARD_GRADE_ID']]);
开发者ID:26746647,项目名称:openSIS,代码行数:31,代码来源:InputFinalGrades.php

示例7: DrawHeader

            }
            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>";
        }
    }
}
if (clean_param($_REQUEST['modfunc'], PARAM_ALPHAEXT) == 'choose_course') {
    if (!clean_param($_REQUEST['course_period_id'], PARAM_INT)) {
        include 'modules/scheduling/CoursesforWindow.php';
    } else {
        $_SESSION['MassDrops.php']['subject_id'] = clean_param($_REQUEST['subject_id'], PARAM_INT);
        $_SESSION['MassDrops.php']['course_id'] = clean_param($_REQUEST['course_id'], PARAM_INT);
        $_SESSION['MassDrops.php']['course_period_id'] = clean_param($_REQUEST['course_period_id'], PARAM_INT);
        $course_title = DBGet(DBQuery('SELECT TITLE FROM courses WHERE COURSE_ID=\'' . $_SESSION['MassDrops.php']['course_id'] . '\''));
        $course_title = $course_title[1]['TITLE'];
        $cp_RET = DBGet(DBQuery('SELECT cp.TITLE,(SELECT TITLE FROM school_periods sp WHERE sp.PERIOD_ID=cpv.PERIOD_ID) AS PERIOD_TITLE,cp.MARKING_PERIOD_ID,(SELECT CONCAT(FIRST_NAME,\'' . ' ' . '\',LAST_NAME) FROM staff st WHERE st.STAFF_ID=cp.TEACHER_ID) AS TEACHER,r.TITLE AS ROOM,cp.TOTAL_SEATS-cp.FILLED_SEATS AS AVAILABLE_SEATS FROM course_periods cp,course_period_var cpv,rooms r WHERE cp.COURSE_PERIOD_ID=\'' . $_SESSION['MassDrops.php']['course_period_id'] . '\' AND cp.COURSE_PERIOD_ID=cpv.COURSE_PERIOD_ID AND cpv.ROOM_ID=r.ROOM_ID'));
        $cp_title = $cp_RET[1]['TITLE'];
开发者ID:jicheng17,项目名称:fh,代码行数:31,代码来源:MassDrops.php

示例8: TextAreaInput

     if ($RET['TYPE'] == 'autos' || $RET['TYPE'] == 'edits' || $RET['TYPE'] == 'select' || $RET['TYPE'] == 'codeds' || $RET['TYPE'] == 'multiple' || $RET['TYPE'] == 'exports' || $_REQUEST['id'] == 'new') {
         $header .= '<TD colspan="2">' . TextAreaInput($RET['SELECT_OPTIONS'], 'tables[' . $_REQUEST['id'] . '][SELECT_OPTIONS]', _('Pull-Down') . '/' . _('Auto Pull-Down') . '/' . _('Coded Pull-Down') . '/' . _('Select Multiple from Options') . '<BR />' . _('* one per line'), 'rows=7 cols=40') . '</TD>';
         $colspan = 1;
     }
     $header .= '<TD style="vertical-align:bottom;" colspan="' . $colspan . '">' . TextInput($RET['DEFAULT_SELECTION'], 'tables[' . $_REQUEST['id'] . '][DEFAULT_SELECTION]', _('Default')) . '<BR />' . _('* for dates: YYYY-MM-DD') . ',<BR />&nbsp;' . _('for checkboxes: Y') . '</TD>';
     $new = $_REQUEST['id'] == 'new';
     $header .= '<TD>' . CheckboxInput($RET['REQUIRED'], 'tables[' . $_REQUEST['id'] . '][REQUIRED]', _('Required'), '', $new) . '</TD>';
     $header .= '</TR>';
     $header .= '</TABLE>';
 } elseif ($_REQUEST['category_id']) {
     echo '<FORM action="Modules.php?modname=' . $_REQUEST['modname'] . '&table=STUDENT_FIELD_CATEGORIES';
     if ($_REQUEST['category_id'] != 'new') {
         echo '&category_id=' . $_REQUEST['category_id'];
     }
     echo '" method="POST">';
     DrawHeader($title, $delete_button . SubmitButton(_('Save')));
     $header .= '<TABLE class="width-100p cellpadding-3">';
     $header .= '<TR>';
     //modif Francois: title required
     $header .= '<TD>' . MLTextInput($RET['TITLE'], 'tables[' . $_REQUEST['category_id'] . '][TITLE]', (!$RET['TITLE'] ? '<span style="color:red">' : '') . _('Title') . (!$RET['TITLE'] ? '</span>' : ''), 'required') . '</TD>';
     $header .= '<TD>' . TextInput($RET['SORT_ORDER'], 'tables[' . $_REQUEST['category_id'] . '][SORT_ORDER]', _('Sort Order'), 'size=5') . '</TD>';
     $header .= '<TD>' . TextInput($RET['COLUMNS'], 'tables[' . $_REQUEST['category_id'] . '][COLUMNS]', _('Display Columns'), 'size=5') . '</TD>';
     $new = $_REQUEST['category_id'] == 'new';
     if ($_REQUEST['category_id'] > 4 || $new) {
         $header .= '<TD>' . TextInput($RET['INCLUDE'], 'tables[' . $_REQUEST['category_id'] . '][INCLUDE]', _('Include (should be left blank for most categories)')) . '</TD>';
     }
     $header .= '</TR>';
     $header .= '</TABLE>';
 } else {
     $header = false;
 }
开发者ID:fabioassuncao,项目名称:rosariosis,代码行数:31,代码来源:StudentFields.php

示例9: for_error_sch

function for_error_sch()
{
    $css = getCSS();
    echo "<br><br><form action=Modules.php?modname=" . strip_tags(trim($_REQUEST[modname])) . " method=post>";
    echo '<BR><CENTER>' . SubmitButton('Try Again', '', 'class=btn_medium') . '</CENTER>';
    echo "</form>";
    echo "</div>";
    echo "</td>\r\n                                        </tr>\r\n                                      </table></td>\r\n                                  </tr>\r\n                                </table></td>\r\n                            </tr>\r\n                          </table></td>\r\n                      </tr>\r\n                    </table></td>\r\n                </tr>\r\n              </table></td>\r\n          </tr>\r\n\r\n        </table></td>\r\n    </tr>\r\n  </table>\r\n</center>\r\n</body>\r\n</html>";
    exit;
}
开发者ID:jicheng17,项目名称:fenghua,代码行数:10,代码来源:CustomFunctionsFnc.php

示例10: array

        $extra['extra_header_left'] .= '</TABLE>';
    }
    $extra['link'] = array('FULL_NAME' => false);
    $extra['SELECT'] = ",s.STUDENT_ID AS CHECKBOX";
    $extra['functions'] = array('CHECKBOX' => '_makeChooseCheckbox');
    $extra['columns_before'] = array('CHECKBOX' => '</A><INPUT type=checkbox value=Y name=controller checked onclick="checkAll(this.form,this.form.controller.checked,\'st_arr\');"><A>');
    $extra['new'] = true;
    $extra['options']['search'] = false;
    $extra['force_search'] = true;
    //Widgets('course');
    //Widgets('gpa');
    //Widgets('class_rank');
    //Widgets('letter_grade');
    Search('student_id', $extra);
    if ($_REQUEST['search_modfunc'] == 'list') {
        echo '<BR><CENTER>' . SubmitButton(_('Create Grade Lists for Selected Students')) . '</CENTER>';
        echo "</FORM>";
    }
}
function _makeChooseCheckbox($value, $title)
{
    return '<INPUT type=checkbox name=st_arr[] value=' . $value . ' checked>';
}
function _makeTeacher($teacher, $column)
{
    return substr($teacher, strrpos(str_replace(' - ', ' ^ ', $teacher), '^') + 2);
}
function _makeComments($value, $column)
{
    global $THIS_RET;
    return DBGet(DBQuery('SELECT COURSE_PERIOD_ID,REPORT_CARD_COMMENT_ID,COMMENT,(SELECT SORT_ORDER FROM REPORT_CARD_COMMENTS WHERE REPORT_CARD_COMMENT_ID=ID) AS SORT_ORDER FROM STUDENT_REPORT_CARD_COMMENTS WHERE STUDENT_ID=\'' . $THIS_RET['STUDENT_ID'] . '\' AND COURSE_PERIOD_ID=\'' . $THIS_RET['COURSE_PERIOD_ID'] . '\' AND MARKING_PERIOD_ID=\'' . $value . '\' ORDER BY SORT_ORDER'));
开发者ID:linil,项目名称:centreSIS,代码行数:31,代码来源:FinalGrades.php

示例11: unset

        unset($_REQUEST['modfunc']);
    }
}
if ($_REQUEST['modfunc'] != 'remove') {
    $sql = 'SELECT ID,SORT_ORDER,TITLE,CONTENT,START_DATE,END_DATE,PUBLISHED_PROFILES,CASE WHEN END_DATE IS NOT NULL AND END_DATE<CURRENT_DATE THEN \'Y\' ELSE NULL END AS EXPIRED FROM portal_notes WHERE (SCHOOL_ID=\'' . UserSchool() . '\' OR SCHOOL_ID IS NULL) AND SYEAR=\'' . UserSyear() . '\' ORDER BY EXPIRED DESC,SORT_ORDER,PUBLISHED_DATE DESC';
    $QI = DBQuery($sql);
    $notes_RET = DBGet($QI, array('TITLE' => '_makeTextInput', 'CONTENT' => '_makeContentInput', 'SORT_ORDER' => '_makeTextInput', 'START_DATE' => '_makePublishing'));
    $columns = array('TITLE' => 'Title', 'CONTENT' => 'Note', 'SORT_ORDER' => 'Sort Order', 'START_DATE' => 'Publishing Options');
    //,'START_TIME'=>'Start Time','END_TIME'=>'End Time'
    $link['add']['html'] = array('TITLE' => _makeTextInput('', 'TITLE'), 'CONTENT' => _makeContentInput('', 'CONTENT'), 'SHORT_NAME' => _makeTextInput('', 'SHORT_NAME'), 'SORT_ORDER' => _makeTextInput('', 'SORT_ORDER'), 'START_DATE' => _makePublishing('', 'START_DATE'));
    $link['remove']['link'] = "Modules.php?modname={$_REQUEST['modname']}&modfunc=remove";
    $link['remove']['variables'] = array('id' => 'ID');
    echo "<FORM name=F2 id=F2 action=Modules.php?modname={$_REQUEST['modname']}&modfunc=update method=POST>";
    #DrawHeader('',SubmitButton('Save'));
    ListOutput($notes_RET, $columns, 'Note', 'Notes', $link);
    echo '<br><CENTER>' . SubmitButton('Save', '', 'class=btn_medium onclick="formcheck_school_setup_portalnotes();"') . '</CENTER>';
    echo '</FORM>';
}
function _makeTextInput($value, $name)
{
    global $THIS_RET;
    if ($THIS_RET['ID']) {
        $id = $THIS_RET['ID'];
    } else {
        $id = 'new';
    }
    if ($name != 'TITLE') {
        $extra = 'size=5 maxlength=10 class=cell_floating';
    } else {
        $extra = 'class=cell_floating';
    }
开发者ID:26746647,项目名称:openSIS,代码行数:31,代码来源:PortalNotes.php

示例12: unset

}
if (empty($_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);
    if ($_REQUEST['search_modfunc'] == 'list') {
        echo '<BR /><span class="center">' . SubmitButton(_('Drop Course for Selected Students')) . '</span>';
        echo "</FORM>";
    }
}
if ($_REQUEST['modfunc'] == 'choose_course') {
    if (!$_REQUEST['course_period_id']) {
        include 'modules/Scheduling/Courses.php';
    } else {
        $_SESSION['MassDrops.php']['subject_id'] = $_REQUEST['subject_id'];
        $_SESSION['MassDrops.php']['course_id'] = $_REQUEST['course_id'];
        $_SESSION['MassDrops.php']['course_period_id'] = $_REQUEST['course_period_id'];
        $course_title = DBGet(DBQuery("SELECT TITLE FROM COURSES WHERE COURSE_ID='" . $_SESSION['MassDrops.php']['course_id'] . "'"));
        $course_title = $course_title[1]['TITLE'];
        $period_title = DBGet(DBQuery("SELECT TITLE FROM COURSE_PERIODS WHERE COURSE_PERIOD_ID='" . $_SESSION['MassDrops.php']['course_period_id'] . "'"));
        $period_title = $period_title[1]['TITLE'];
        echo '<script type="text/javascript">opener.document.getElementById("course_div").innerHTML = "' . str_replace(array("'", '"'), array('&#39;', '&quot;'), $course_title) . '<BR />' . str_replace(array("'", '"'), array('&#39;', '&quot;'), $period_title) . '"; window.close();</script>';
开发者ID:fabioassuncao,项目名称:rosariosis,代码行数:31,代码来源:MassDrops.php

示例13: array

    }
    $extra['link'] = array('FULL_NAME' => false);
    $extra['SELECT'] = ",s.STUDENT_ID AS CHECKBOX";
    $extra['functions'] = array('CHECKBOX' => '_makeChooseCheckbox');
    $extra['columns_before'] = array('CHECKBOX' => '</A><INPUT type=checkbox value=Y name=controller checked onclick="checkAll(this.form,this.form.controller.checked,\'st_arr\');"><A>');
    $extra['new'] = true;
    $extra['options']['search'] = false;
    $extra['force_search'] = true;
    Widgets('course');
    Widgets('gpa');
    Widgets('class_rank');
    Widgets('letter_grade');
    Search('student_id', $extra);
    if ($_REQUEST['search_modfunc'] == 'list') {
        PopTable('footer');
        echo '<BR><CENTER>' . SubmitButton('Create Grade Lists for Selected Students', '', 'class=btn_xxlarge') . '</CENTER>';
        echo "</FORM>";
    }
}
function _makeChooseCheckbox($value, $title)
{
    return '<INPUT type=checkbox name=st_arr[] value=' . $value . ' checked>';
}
function _makeTeacher($teacher, $column)
{
    return substr($teacher, strrpos(str_replace(' - ', ' ^ ', $teacher), '^') + 2);
}
function _makeComments($value, $column)
{
    global $THIS_RET;
    return DBGet(DBQuery('SELECT COURSE_PERIOD_ID,REPORT_CARD_COMMENT_ID,COMMENT,(SELECT SORT_ORDER FROM REPORT_CARD_COMMENTS WHERE REPORT_CARD_COMMENT_ID=ID) AS SORT_ORDER FROM STUDENT_REPORT_CARD_COMMENTS WHERE STUDENT_ID=\'' . $THIS_RET['STUDENT_ID'] . '\' AND COURSE_PERIOD_ID=\'' . $THIS_RET['COURSE_PERIOD_ID'] . '\' AND MARKING_PERIOD_ID=\'' . $value . '\' ORDER BY SORT_ORDER'));
开发者ID:SoftScape,项目名称:opensis,代码行数:31,代码来源:FinalGrades.php

示例14: StaffWidgets

    StaffWidgets('fsa_balance_warning');
    StaffWidgets('fsa_status');
    StaffWidgets('fsa_exists_Y');
    $extra['SELECT'] .= ',coalesce(fsa.STATUS,\'Active\') AS STATUS,fsa.BALANCE';
    $extra['SELECT'] .= ',(SELECT \'Y\' WHERE fsa.BALANCE < \'' . $warning . '\' AND fsa.BALANCE >= 0) AS WARNING';
    $extra['SELECT'] .= ',(SELECT \'Y\' WHERE fsa.BALANCE < 0 AND fsa.BALANCE >= \'' . $minimum . '\') AS NEGATIVE';
    $extra['SELECT'] .= ',(SELECT \'Y\' WHERE fsa.BALANCE < ' . $minimum . ') AS MINIMUM';
    if (!strpos($extra['FROM'], 'fsa')) {
        $extra['FROM'] .= ',FOOD_SERVICE_STAFF_ACCOUNTS fsa';
        $extra['WHERE'] .= ' AND fsa.STAFF_ID=s.STAFF_ID';
    }
    $extra['functions'] += array('BALANCE' => 'red', 'WARNING' => 'x', 'NEGATIVE' => 'x', 'MINIMUM' => 'x');
    $extra['columns_after'] = array('BALANCE' => _('Balance'), 'STATUS' => _('Status'), 'WARNING' => _('Warning') . '<br>' . $warning, 'NEGATIVE' => _('Negative'), 'MINIMUM' => _('Minimum') . '<br>' . $minimum);
    Search('staff_id', $extra);
    if ($_REQUEST['search_modfunc'] == 'list') {
        echo '<BR><CENTER>' . SubmitButton(_('Create Reminders for Selected Users')) . '</CENTER>';
        echo "</FORM>";
    }
}
function reminder($staff, $school, $target, $last_deposit, $note)
{
    $payment = $target - $staff['BALANCE'];
    if ($payment < 0) {
        return;
    }
    $payment = number_format($payment, 2);
    echo '<TABLE width=100%>';
    echo '<TR><TD colspan=3 align=center><FONT size=+1><I><B>' . _('Payment Reminder') . '</B></I></FONT></TD></TR>';
    echo '<TR><TD colspan=3 align=center><B>' . $school . '</B></TD></TR>';
    echo '<TR><TD width=33%>';
    echo $staff['FIRST_NAME'] . ' ' . $staff['MIDDLE_NAME'] . ' ' . $staff['LAST_NAME'] . '<BR>';
开发者ID:linil,项目名称:centreSIS,代码行数:31,代码来源:Reminders.php

示例15: mb_strtoupper

    $end_date = mb_strtoupper(date('d-M-y', $start_time + 60 * 60 * 24 * 7));
}
DrawHeader(ProgramTitle());
if ($_REQUEST['search_modfunc'] || User('PROFILE') == 'parent' || User('PROFILE') == 'student') {
    $tmp_PHP_SELF = PreparePHP_SELF();
    echo '<FORM action="' . $tmp_PHP_SELF . '" method="POST">';
    $begin_year = DBGet(DBQuery("SELECT min(date_part('epoch',SCHOOL_DATE)) as SCHOOL_DATE FROM ATTENDANCE_CALENDAR WHERE SCHOOL_ID='" . UserSchool() . "' AND SYEAR='" . UserSyear() . "'"));
    $begin_year = $begin_year[1]['SCHOOL_DATE'];
    if (is_null($begin_year)) {
        ErrorMessage(array(_('There are no calendars yet setup.')), 'fatal');
    }
    $date_select = '<OPTION value="' . $start . '">' . date('M d, Y', $start) . ' - ' . date('M d, Y', $end) . '</OPTION>';
    for ($i = $start - 60 * 60 * 24 * 7; $i >= $begin_year; $i -= 60 * 60 * 24 * 7) {
        $date_select .= '<OPTION value="' . $i . '"' . ($i + 86400 >= $start_time && $i - 86400 <= $start_time ? ' SELECTED="SELECTED"' : '') . '>' . date('M d, Y', $i) . ' - ' . date('M d, Y', $i + 1 + ($END_DAY - $START_DAY) * 60 * 60 * 24) . '</OPTION>';
    }
    DrawHeader('<SELECT name="start_date">' . $date_select . '</SELECT>' . $period_select, SubmitButton(_('Go')));
    echo '</FORM>';
}
$extra['SELECT'] = ",e.ELIGIBILITY_CODE,c.TITLE as COURSE_TITLE";
$extra['FROM'] = ",ELIGIBILITY e,COURSES c,COURSE_PERIODS cp";
$extra['WHERE'] = "AND e.STUDENT_ID=ssm.STUDENT_ID AND e.COURSE_PERIOD_ID=cp.COURSE_PERIOD_ID AND cp.COURSE_ID=c.COURSE_ID AND e.SCHOOL_DATE BETWEEN '{$start_date}' AND '{$end_date}'";
$extra['functions'] = array('ELIGIBILITY_CODE' => '_makeLower');
$extra['group'] = array('STUDENT_ID');
Widgets('eligibility');
Widgets('activity');
Widgets('course');
if (!$_REQUEST['search_modfunc'] && User('PROFILE') != 'parent' && User('PROFILE') != 'student') {
    $extra['new'] = true;
    Search('student_id', $extra);
} else {
    $RET = GetStuList($extra);
开发者ID:fabioassuncao,项目名称:rosariosis,代码行数:31,代码来源:StudentList.php


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