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


PHP make_selection_list函数代码示例

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


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

示例1: make_selection_list

    $b .= "\n            <center><table border=0 cellspacing=0 cellpadding=3>";
    $b .= "\n                <th>\n                <form action=index.php?lev=" . $_SESSION[$_CONF['sess_name'] . '_lev'] . "&cat=" . $_SESSION[$_CONF['sess_name'] . '_cat'] . " method=POST name=searchByTeacher>";
    $b .= make_selection_list($lot, $tid, "teacher_id", "searchByTeacher", "Teacher", "on");
    $b .= " \n                <input type=hidden name=searchByTeacher />\n                </form>\n                </th>\n            </tr>";
    $b .= "\n            </table></center>";
    $main .= make_box($t, $b . $teacherReferrals);
    /** Search by Student **/
    $t = "Search By Student";
    $b = "";
    $sid = -1;
    if (isset($_POST['student_id'])) {
        $sid = $_POST['student_id'];
    }
    $b .= "\n                <center><table border=0 cellspacing=0 cellpadding=3>";
    $b .= "\n                <th>\n                <form action=index.php?lev=" . $_SESSION[$_CONF['sess_name'] . '_lev'] . "&cat=" . $_SESSION[$_CONF['sess_name'] . '_cat'] . " method=POST name=searchByStudent>";
    $b .= make_selection_list($los, $sid, "student_id", "searchByStudent", "Student", "on");
    $b .= " \n                <input type=hidden name=searchByStudent />\n                </form>\n                </th>\n                </tr>";
    $b .= "\n                </table></center>";
    $main .= make_box($t, $b . $studentReferrals);
    /** display a list of OPEN referrals **/
    $result = get_referrals('', 'N');
    $t = "OPEN Referrals";
    $b = display_referrals($result, $_SERVER['PHP_SELF'] . "?lev=" . $_SESSION[$_CONF['sess_name'] . '_lev'] . "&cat=" . $_SESSION[$_CONF['sess_name'] . '_cat'], 'N', 'N');
    $main .= make_box($t, $b);
    /** display a list of CLOSED referrals **/
    $result = get_referrals('', 'Y');
    $t = "CLOSED Referrals";
    $b = display_referrals($result, $_SERVER['PHP_SELF'] . "?lev=" . $_SESSION[$_CONF['sess_name'] . '_lev'] . "&cat=" . $_SESSION[$_CONF['sess_name'] . '_cat'], 'Y', 'N');
    $main .= make_box($t, $b);
} else {
    $main .= login_error();
开发者ID:knichel,项目名称:AIT,代码行数:31,代码来源:office_referral.php

示例2: get_teacher_course_list

 $courseName = "";
 $courses = get_teacher_course_list($_SESSION[$_CONF['sess_name'] . '_myUID'], $_SESSION[$_CONF['sess_name'] . '_current_school_year'], $_SESSION[$_CONF['sess_name'] . '_myCenter']);
 if (isset($_SESSION[$_CONF['sess_name'] . '_selected_course'])) {
     $cid = $_SESSION[$_CONF['sess_name'] . '_selected_course'];
     if (array_key_exists($cid, $courses)) {
         $result = get_course_info($cid);
         $row = $result->fetch_assoc();
         $courseName = $row['course_name'];
         $teacherName = $row['first_name'] . " " . $row['last_name'];
         $tid = $_SESSION[$_CONF['sess_name'] . '_myUID'];
     } else {
         $cid = -1;
     }
 }
 $t = "Yearly Class Summary";
 $b = "\n\t\t<FORM action=index.php?lev=" . $_SESSION[$_CONF['sess_name'] . '_lev'] . "&cat=" . $_SESSION[$_CONF['sess_name'] . '_cat'] . " method=POST name=courses>\n\t\t<center>" . make_selection_list(get_teacher_course_list($_SESSION[$_CONF['sess_name'] . '_myUID'], $_SESSION[$_CONF['sess_name'] . '_current_school_year'], $_SESSION[$_CONF['sess_name'] . '_myCenter']), $cid, 'course_id', "courses", "Course", 'on') . "</center></form><br />";
 if ($cid != -1) {
     // classes = array(classID=>Term # - Course Name)
     $classes = get_teacher_classes_by_course($cid);
     /** Get the student list for the class **/
     $result = get_students_for_course($cid);
     $students = make_array_from_mysql($result, "user_id", array('first_name', 'last_name'), " ");
     $terms = $_SESSION[$_CONF['sess_name'] . '_terms'];
     // Array(termID=>termInfo)
     $numTerms = count($terms);
     /** foreach student process the multi-class report**/
     $out = "\n            <center>You have selected course " . $cid . "<br>\n            <span style=color:red>NOTE: Red grades mean they are locked bt the teacher to that value rather than the calculated grade.</span>\n            <table>";
     $theader = "<tr><td class=\"term_title\">Student</td>\n";
     foreach ($terms as $termID => $termInfo) {
         $theader .= "<td class=\"term_title\">" . $termInfo['term_name'] . "<br>" . $termInfo['term_weight'] . "%</td>";
     }
开发者ID:knichel,项目名称:AIT,代码行数:31,代码来源:teach_yearsummary.php

示例3: make_multi_select_list

         $b .= make_multi_select_list($los, "los");
         $b .= "\n\t\t\t\t<input type=hidden name=send />\n\t\t\t\t<input type=hidden name=fid value=" . $_POST['fid'] . " />\n\t\t\t\t<input type=submit name=deliver value=Send />\n\t\t\t\t</form></center>";
         $main .= make_box($t, $b);
     } else {
         $t = "Send File";
         $b = "<center><form action=index.php?lev=" . $_SESSION[$_CONF['sess_name'] . '_lev'] . "&cat=" . $_SESSION[$_CONF['sess_name'] . '_cat'] . " method=\"post\" name=\"dropBox_Send\" >";
         /**	Get a list of files in  MY save dir to select from **/
         $sql = "SELECT * from dropbox \n\t\t\t\tWHERE file_owner=" . $myID . " AND file_recipient=" . $myID;
         if ($result = $db->query($sql)) {
             $lof = array();
             while ($row = $result->fetch_assoc()) {
                 $lof[$row['id']] = $row['file_name'];
             }
             /** make_selection_list($list,$selected=-1,$select_name,$form, $what, $change="off")**/
             $b .= "Select a file :";
             $b .= make_selection_list($lof, -1, "fid", "dropBox_Send", "file", "on");
         }
         $b .= "<input type=hidden name=send />\n";
         $b .= "<input type=hidden name=select_students />\n";
         $b .= "</form></center>";
         $main .= make_box($t, $b);
     }
 } elseif (isset($_REQUEST['confirm']) && $_REQUEST['confirm'] == "REMOVE") {
     $t = "Removing File...";
     $c = "yellow";
     /** get file info to see who owns file **/
     $sql = "SELECT * from dropbox where id=" . $_POST['db_id'];
     $result = $db->query($sql);
     $row = $result->fetch_assoc();
     $name = $row['file_name'];
     /** if I OWN FILE **/
开发者ID:knichel,项目名称:AIT,代码行数:31,代码来源:teach_dropBox.php

示例4: get_students_for_parent

 $bc = "blue";
 $t = "Parent Homework Site";
 $b = "<FORM action=" . $_SERVER['PHP_SELF'] . "?lev=" . $_GET['lev'] . "&cat=" . $_GET['cat'] . " method=POST name=studentHomework>";
 if (isset($_REQUEST['student'])) {
     $sid = $_REQUEST['student'];
 } else {
     $sid = -1;
 }
 if (isset($_REQUEST['class_id'])) {
     $cid = $_REQUEST['class_id'];
 } else {
     $cid = -1;
 }
 $b .= "<center>" . get_students_for_parent($pid, 'student', "studentHomework", $_REQUEST['student']) . "</center>";
 if ($_POST['student'] && check_parent2student($pid, $sid)) {
     $b .= "<center>" . make_selection_list(student_class_list($sid), $cid, 'class_id', 'studentHomework', 'Class', 'on') . "</center>";
     if ($_REQUEST['class_id']) {
         if (isset($_REQUEST['view'])) {
             // retrieve and display the assignment
             $sql = "SELECT assignment,date from homework where homework_id=" . $_REQUEST['assignment_num'];
             $result = mysql_query($sql);
             $row = mysql_fetch_assoc($result);
             list($y, $m, $d) = split("-", $row['date']);
             $b .= "<hr width=80%>";
             $b .= "HW for <b>" . date("l, F j, Y", mktime(0, 0, 0, $m, $d, $y)) . "</b>";
             $b .= "<table border=0 cellspacing=1 cellpadding=3 width=70%>";
             $b .= "<tr><td>";
             $b .= nl2br($row['assignment']);
             $b .= "</td></tr>";
             $b .= "</table>";
         } else {
开发者ID:knichel,项目名称:AIT,代码行数:31,代码来源:par_homework_right.php

示例5: make_selection_list

<?php

/**    TEACHER CAN BEGIN EDITING FROM HERE, ALL OTHERS ONLY VIEW **/
$teacher_display .= "\n  <tr bgcolor=\"#FFFFFF\">\n    <td>\n      <table width=\"100%\" border=\"0\" cellspacing=0 cellpadding=0 bgcolor=\"#FFFFFF\">\n        <tr>\n            <td align=\"left\" valign=top>\n                <span style=\"font-size:14px;font-weight:bold\">Teacher:</span> " . $tfName . " " . $tlName . "<br />\n                <span style=\"font-size:14px;font-weight:bold\">Student:</span> " . $sfName . " " . $slName . "<br />\n                <span style=\"font-size:14px;font-weight:bold\">District:</span> " . $sDistrict . "<br />\n            </td>\n            <td align=\"left\" valign=top>\n                    <span style=\"font-size:14px;font-weight:bold\">Course: " . $course . "</span><br />\n                    <span style=\"font-size:14px;font-weight:bold\">Date: {$referral_date}</span><br />\n                    <span style=\"font-size:14px;font-weight:bold\">Time: {$referral_time}</span><br />\n            </td>\n            \n        </tr>\n        <tr>\n            <td colspan=2><div class=\"displayTextHeading\">Description:</div>\n            <div class=\"displayTextArea\" style=\"height:20px;\">" . $teach_refer_desc . "</div>\n            </td>\n        </tr>\n      </table>\n    </td>\n  </tr>\n  <tr bgcolor=\"#FFFFFF\">\n    <td><div class=\"displayTextHeading\">Nature of Incident:</div>\n      <div class=\"displayTextArea\">" . $teach_incident_notes . "</div></td>\n  </tr>\n  <tr bgcolor=\"#FFFFFF\">\n    <td>\n    <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FFFFFF\">\n  <tr>\n    <td colspan=\"2\" class=\"blue-title\"><div class=\"displayTextHeading\">Action Taken By Teacher Preceding Referral:</div></td>\n  </tr>\n  <tr>\n    <td><div class=\"displayTextHeading\">Warning Issued/Verbal:</div></td>\n    <td><div>" . $teach_refer_warn_date . "</div></td>\n  </tr>\n  <tr>\n    <td><div class=\"displayTextHeading\">Conference With Student:</div></td>\n    <td><div>" . $teach_refer_conf_date . "</div></td>\n  </tr>\n   <tr>\n    <td><div class=\"displayTextHeading\">Phone Call to Parent:</div></td>\n    <td><div>" . $teach_refer_phone_date . "</div></td>\n  </tr>\n  <tr>\n    <td colspan=\"2\"><div class=\"displayTextHeading\">Comments:</div>\n        <div class=\"displayTextArea\">" . $teach_action_notes . "</div></td>\n  </tr>\n  <tr>\n    <td><div class=\"displayTextHeading\">Refferred For Administrative Action:</div></td>\n    <td><div>" . $teach_refer_action_date . "</div></td>\n  </tr>\n</table>\n    </td>\n  </tr>";
/** Teacher Form Elements **/
$teacher_form .= "\n        <tr bgcolor=\"#FFFFFF\">\n        <td>\n            <table width=\"100%\" border=\"0\" cellspacing=0 cellpadding=0 bgcolor=\"#FFFFFF\">\n            <tr>\n                <td align=\"left\" valign=top>\n                    <span style=\"font-size:14px;font-weight:bold\">Teacher:</span> " . $tfName . " " . $tlName . "<br />\n                    <span style=\"font-size:14px;font-weight:bold\">Student:</span> " . $sfName . " " . $slName . "<br />\n                    <span style=\"font-size:14px;font-weight:bold\">District:</span> " . $sDistrict . "<br />\n                </td>\n                <td align=\"left\" valign=top>\n                    <span style=\"font-size:14px;font-weight:bold\">Course: </span>\n                    " . make_selection_list(get_student_core_class_list($sid), $cid, 'course_id', 'courses', 'Course', 'off') . "<br />";
$date = make_LOM('referral_month', $referral_month, '1', '12') . " " . make_LOD('referral_day', $referral_day) . " " . make_LOY('referral_year', $referral_year, $referral_year - 1, $referral_year);
$teacher_form .= "<span style=\"font-size:14px;font-weight:bold\">Date: </span> " . $date . "<br />\n                    <span style=\"font-size:14px;font-weight:bold\">Time: </span><input type=text size=25 name=referral_time style=\"background-color:#FFFACD\" value='" . $referral_time . "'/><br />\n                </td>\n            </tr>\n            <tr>\n                <td colspan=2>\n                <span style=\"font-size:12px;font-weight:bold\">Description (100 chars max):<br /></span>\n                <input name=\"teach_refer_desc\" style=\"background-color:#FFFACD\" type=text size=100 value=\"" . $teach_refer_desc . "\" />\n                </td>\n            </tr>\n            </table>\n        </td>\n        </tr>\n        <tr bgcolor=\"#FFFFFF\">\n        <td class=\"blue-title\">Nature of Incident<br />\n                    <textarea name=\"teach_incident_notes\" cols=\"90\" rows=\"5\" value=\"" . $teach_incident_notes . "\">" . $teach_incident_notes . "</textarea></td>\n        </tr>\n        <tr bgcolor=\"#FFFFFF\">\n        <td>\n        <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FFFFFF\">\n        <tr>\n        <td colspan=\"2\" class=\"blue-title\">Action Taken By Teacher Preceding Referral:</td>\n        </tr>\n        <tr>\n        <td><input name=\"teach_refer_warn\" type=\"checkbox\" onClick=\"showHide('teach_refer_warn_date');\"";
$visible = "hidden";
if ($teach_refer_warn == 'on') {
    $teacher_form .= " checked";
    $visible = "visible";
}
$teacher_form .= " /> Warning Issued/Verbal on " . $teach_refer_warn_year . "-" . $teach_refer_warn_month . "-" . $teach_refer_warn_day . "</td>\n        <td>";
$date = make_LOM('teach_refer_warn_month', $teach_refer_warn_month, '1', '12') . " " . make_LOD('teach_refer_warn_day', $teach_refer_warn_day) . " " . make_LOY('teach_refer_warn_year', $teach_refer_warn_year, $teach_refer_warn_year - 1, $teach_refer_warn_year);
$teacher_form .= "\n        <div id=\"teach_refer_warn_date\" style=\"visibility:" . $visible . "\">" . $date . "</div>\n        </td>\n        </tr>\n        <tr>\n        <td><input name=\"teach_refer_conf\" type=\"checkbox\" onClick=\"showHide('teach_refer_conf_date');\"";
$visible = "hidden";
if ($teach_refer_conf == 'on') {
    $teacher_form .= " checked";
    $visible = "visible";
}
$teacher_form .= "  /> Conference With Student</td>\n        <td>";
$date = make_LOM('teach_refer_conf_month', $teach_refer_conf_month, '1', '12') . " " . make_LOD('teach_refer_conf_day', $teach_refer_conf_day) . " " . make_LOY('teach_refer_conf_year', $teach_refer_conf_year, $teach_refer_conf_year - 1, $teach_refer_conf_year);
$teacher_form .= "<div id=\"teach_refer_conf_date\" style=\"visibility:" . $visible . "\">" . $date . "</div>\n        </td>\n        </tr>\n        <tr>\n        <td><input name=\"teach_refer_phone\" type=\"checkbox\" onClick=\"showHide('teach_refer_phone_date');\"";
$visible = "hidden";
if ($teach_refer_phone == 'on') {
    $teacher_form .= " checked";
    $visible = "visible";
}
$teacher_form .= "  /> Phone Call to Parent</td>\n        <td>";
$date = make_LOM('teach_refer_phone_month', $teach_refer_phone_month, '1', '12') . " " . make_LOD('teach_refer_phone_day', $teach_refer_phone_day) . " " . make_LOY('teach_refer_phone_year', $teach_refer_phone_year, $teach_refer_phone_year - 1, $teach_refer_phone_year);
开发者ID:knichel,项目名称:AIT,代码行数:31,代码来源:referral_form_elements.php

示例6: Date

 if ($sid != -1) {
     $header .= "\n            \$('#a_date').datepick({\n                        dateFormat: 'yyyy-mm-dd',\n                        maxDate: new Date(" . $ey . ", " . ($em - 1) . ", " . $ed . "),\n                        minDate: new Date(" . $sy . ", " . ($sm - 1) . ", " . $sd . "),\n                        monthsToShow: 3,monthsToStep: 3, monthsOffset: 1,\n                        multiSelect:25,\n                        onDate: \$.datepick.noWeekends,\n                        showTrigger: '#callImg'\n                });";
 }
 $header .= "\n            });\n        </script>";
 $b .= "\n        <center>\n        <form action=index.php?lev=" . $_SESSION[$_CONF['sess_name'] . '_lev'] . "&cat=" . $_SESSION[$_CONF['sess_name'] . '_cat'] . " method=POST name=\"attendByStudent\" id=\"attendByStudent\">\n        <table border=0>\n            <tr>\n            <td colspan=3>" . make_selection_list($students, $sid, 'student_id', 'attendByStudent', 'Student', 'on') . "Sort users by:\n                <select name=users_sortBy onChange=\"document.forms['attendByStudent'].submit();\">\n                <option value=\"users.last_name, users.first_name\"";
 if ($_SESSION[$_CONF['sess_name'] . '_users_sortBy'] == "users.last_name, users.first_name") {
     $b .= " selected";
 }
 $b .= ">Last Name, First Name</option>\n                <option value=\"schools.school_name, users.last_name\"";
 if ($_SESSION[$_CONF['sess_name'] . '_users_sortBy'] == "schools.school_name, users.last_name") {
     $b .= " selected";
 }
 $b .= ">School Name, last Name, First Name</option>\n                </select>\n            </td>\n            </tr>";
 if ($sid != -1) {
     $courses = get_student_core_class_list($sid);
     $courseSelect = make_selection_list($courses, $cid, 'course_id', 'attendByStudent', 'Course', 'on');
     $b .= "\n                <tr>\n                    <td align=right>Course:</td>\n                    <td>" . $courseSelect . "</td>\n                    <td align=left>Date:<input id=\"a_date\" name=\"a_date\" type=text size=15 value=" . $today . " /></td>\n                </tr>\n                ";
 }
 $b .= "\n            <tr>\n            <td colspan=3 align=center>\n               <!-- input type=submit name=submit value=\"Get\" / -->\n            </td>\n            </tr>";
 if ($sid != -1 && $cid != -1) {
     $today = date('Y-m-d');
     /** Get User Info from Q3 * */
     $sql = "SELECT users.user_id, users.first_name, users.last_name, LOWER(users.STGUID) as STGUID, schools.school_name, schools.school_id\n            FROM users, schools\n            WHERE users.user_id=" . $sid . "\n                AND schools.school_id=users.school_id";
     $result = $db->query($sql);
     $student = $result->fetch_assoc();
     /** Get any attendance info from SMS **/
     //$myStudents_GUID = make_assoc_array_from_sql($result, 'STGUID', 'my');
     /** Get Attendance info from SMS * */
     $result2 = getSMSattendanceForStudent($student['STGUID'], $today);
     $SMSresults = make_assoc_array_from_sql($result2, 'STGUID', 'ms');
     /** now for the attendance form for selected student * */
开发者ID:knichel,项目名称:AIT,代码行数:31,代码来源:office_SMSattendByStudent.php

示例7: get_students_for_parent

<?php

if ($_SESSION[$_CONF['sess_name'] . '_isParent']) {
    $pid = $_SESSION[$_CONF['sess_name'] . '_myUID'];
    $bc = "blue";
    // default box color
    $print_button = "";
    $t = "Student List";
    $los = get_students_for_parent($pid);
    $sid = -1;
    if (isset($_SESSION[$_CONF['sess_name'] . '_selected_student'])) {
        $sid = $_SESSION[$_CONF['sess_name'] . '_selected_student'];
        if (!array_key_exists($sid, $los)) {
            $sid = -1;
        }
    }
    $b = "<FORM action=index.php?lev=" . $_SESSION[$_CONF['sess_name'] . '_lev'] . "&cat=" . $_SESSION[$_CONF['sess_name'] . '_cat'] . " method=POST name=students>";
    $b .= "<center>" . make_selection_list($los, $sid, 'student_id', 'students', 'Student', 'on') . "</center></form>";
    $b .= "<br /></form>";
    $body = "<center>" . $b . "</center>";
    $main .= make_box($t, $body, $bc);
    if ($sid != -1) {
        include 'multiClassProgress_report.php';
        $report = $b;
        //.$print_button;
        $main .= make_box($t, $report);
    }
} else {
    $main .= login_error();
}
开发者ID:knichel,项目名称:AIT,代码行数:30,代码来源:par_multiClassRep.php

示例8: make_selection_list

 }
 $order_by = $_SESSION[$_CONF['sess_name'] . '_progress_sortBy'];
 $t = "Student List";
 $b = "<center>\n\t\t\t<FORM action=index.php?lev=" . $_SESSION[$_CONF['sess_name'] . '_lev'] . "&cat=" . $_SESSION[$_CONF['sess_name'] . '_cat'] . " method=POST name=studentList>" . make_selection_list($los, $sid, 'student_id', 'studentList', 'Student', 'on') . "Sort users by:\n            <select name=users_sortBy onChange=document.forms['studentList'].submit();>\n                <option value=\"users.last_name, users.first_name\"";
 if ($_SESSION[$_CONF['sess_name'] . '_users_sortBy'] == "users.last_name, users.first_name") {
     $b .= " selected";
 }
 $b .= ">Last Name, First Name</option>\n                <option value=\"schools.school_name, users.last_name\"";
 if ($_SESSION[$_CONF['sess_name'] . '_users_sortBy'] == "schools.school_name, users.last_name") {
     $b .= " selected";
 }
 $b .= ">School Name, last Name, First Name</option>\n                </select>\n             </FORM>";
 if ($sid != -1) {
     //make_selection_list($classes,$class_id,$select_name,$form,"Class","on")
     $b .= "<FORM action=index.php?lev=" . $_SESSION[$_CONF['sess_name'] . '_lev'] . "&cat=" . $_SESSION[$_CONF['sess_name'] . '_cat'] . " method=POST name=studentClasses>";
     $b .= "<center>" . make_selection_list($loc, $cid, 'class_id', 'studentClasses', 'Class', 'on') . "\n            <br />\n            Sort Assignments by : \n                <select name=progress_sortBy onChange=document.forms['studentClasses'].submit();>\n                <option value=\"assignments.due_date desc\"";
     if ($_SESSION[$_CONF['sess_name'] . '_progress_sortBy'] == "assignments.due_date desc") {
         $b .= " selected";
     }
     $b .= ">Date (descending)</option>\n                <option value=\"assignments.due_date asc\"";
     if ($_SESSION[$_CONF['sess_name'] . '_progress_sortBy'] == "assignments.due_date asc") {
         $b .= " selected";
     }
     $b .= ">Date (ascending)</option>\n                <option value=category.category_name";
     if ($_SESSION[$_CONF['sess_name'] . '_progress_sortBy'] == "category.category_name") {
         $b .= " selected";
     }
     $b .= ">Category Name</option>\n                </select> \n                </center>\n                </form>";
 }
 $main .= make_box($t, $b);
 $print_button = "\t\n                <CENTER>\n                <FORM action=printview_progressreport.php method=POST target=new name=printview>\n                <input type=submit class=submit name=submit value=\"Print PDF\" />\n                </form>\n                <FORM action=printview_progressreport.php method=POST target=new name=printview>\n                <input type=submit class=submit name=submit value=\"Print All Students for this Class\" />\n                <input type=hidden name=all value=all />\n                </form>\n                </CENTER>";
开发者ID:knichel,项目名称:AIT,代码行数:31,代码来源:office_rep.php

示例9: Reports

 }
 /** the following is used for sorting the grades on this page only... **/
 if (!isset($_SESSION[$_CONF['sess_name'] . '_progress_sortBy'])) {
     //session_register($_CONF['sess_name'].'_progress_sortBy');
     $_SESSION[$_CONF['sess_name'] . '_progress_sortBy'] = "assignments.due_date asc";
 }
 if (isset($_POST['progress_sortBy'])) {
     $_SESSION[$_CONF['sess_name'] . '_progress_sortBy'] = $_POST['progress_sortBy'];
 }
 $order_by = $_SESSION[$_CONF['sess_name'] . '_progress_sortBy'];
 $print_button = "\t\n\t\t\t<CENTER>\n\t\t\t<FORM action=printview_progressreport.php method=POST target=new name=printview>\n\t\t\tPrint/View <input type=submit class=submit name=submit value=\"Current\" /> Student Report.\n\t\t\t</form>\n            <FORM action=printview_progressreport.php method=POST target=new name=printview>\n            Download <input type=submit class=submit name=all value=\"All\" /> Current Class Reports (Sinlge File).\n            <input type=hidden name=all value=all />\n            </form>\n            </CENTER>";
 $t = "Student Progress Reports";
 /** Function get_teacher_class_list($teacher_id,$class_id=-1,$select_name='class_id',$form, $change="on") **/
 $b = "<center><FORM action=index.php?lev=" . $_SESSION[$_CONF['sess_name'] . '_lev'] . "&cat=" . $_SESSION[$_CONF['sess_name'] . '_cat'] . " method=POST id=classes naame=classes>\n\t\t\t<center>" . get_teacher_class_list($_SESSION[$_CONF['sess_name'] . '_myUID'], $cid, 'class_id', 'classes', 'on') . "\n            </form><br />";
 if ($cid != -1) {
     $b .= "<FORM action=index.php?lev=" . $_SESSION[$_CONF['sess_name'] . '_lev'] . "&cat=" . $_SESSION[$_CONF['sess_name'] . '_cat'] . " method=POST name=students>\n\t\t<center>" . make_selection_list($los, $sid, 'student_id', 'students', 'Student', 'on') . "<br>\n\t\t\tSort Assignments by : \n                <select name=progress_sortBy onChange=document.forms['students'].submit();>\n                <option value=\"assignments.due_date desc\"";
     if ($_SESSION[$_CONF['sess_name'] . '_progress_sortBy'] == "assignments.due_date desc") {
         $b .= " selected";
     }
     $b .= ">Date (descending)</option>\n                <option value=\"assignments.due_date asc\"";
     if ($_SESSION[$_CONF['sess_name'] . '_progress_sortBy'] == "assignments.due_date asc") {
         $b .= " selected";
     }
     $b .= ">Date (ascending)</option>\n                <option value=categories.category_name";
     if ($_SESSION[$_CONF['sess_name'] . '_progress_sortBy'] == "categories.category_name") {
         $b .= " selected";
     }
     $b .= ">Category Name</option>\n                </select>               \n                </form>\n             </center>";
 }
 $main .= make_box($t, $b);
 if ($sid != -1) {
开发者ID:knichel,项目名称:AIT,代码行数:31,代码来源:teach_rep.php

示例10: get_students_for_teacher

 $result = get_students_for_teacher($tid);
 $values = array("first_name", "last_name");
 $key = "user_id";
 $los = make_array_from_mysql($result, $key, $values, " ");
 $cid = -1;
 $sid = -1;
 if (isset($_POST['student_id'])) {
     $sid = $_POST['student_id'];
 }
 $b = "";
 $t = "Incident Referral";
 if (isset($_POST['new_referral'])) {
     $t = "New Referral";
     $b = "";
     if ($sid == -1) {
         $b .= "<center>\n                    <form action=index.php?lev=" . $_SESSION[$_CONF['sess_name'] . '_lev'] . "&cat=" . $_SESSION[$_CONF['sess_name'] . '_cat'] . " method=POST name=students>" . make_selection_list($los, $sid, 'student_id', 'students', 'Student', 'on') . "\n                    <input type=hidden name=\"new_referral\" value=\"New\" />\n                    </form></center>";
     } else {
         $sql = "SELECT users.first_name, users.last_name, schools.school_name\n                    FROM users, schools\n                    WHERE schools.school_id=users.school_id\n                    AND users.user_id=" . $sid;
         $result = $db->query($sql);
         $row = $result->fetch_assoc();
         $sfName = $row['first_name'];
         $slName = $row['last_name'];
         $sDistrict = $row['school_name'];
         include 'referral_form.php';
         $b .= $form;
     }
     $main .= make_box($t, $b);
 } elseif (isset($_POST['incident_referral_id']) || isset($_POST['send_referral'])) {
     include 'referral_form.php';
     $b .= $form;
     $main .= make_box($t, $b);
开发者ID:knichel,项目名称:AIT,代码行数:31,代码来源:teach_referral.php

示例11: array

        $termName = $row['term_name'];
        $teacherName = $row['first_name'] . " " . $row['last_name'];
    }
    if ($tid != -1) {
        $custom_scores = array();
        $custom_scores = get_custom_scores($tid, $_SESSION[$_CONF['sess_name'] . '_current_school_year']);
        $classList = get_teacher_class_list($tid, $cid, 'class_id', "classes");
    }
    if (isset($_POST['teacher_id'])) {
        $tid = $_SESSION[$_CONF['sess_name'] . '_selected_teacher'] = $_POST['teacher_id'];
        $cid = $_SESSION[$_CONF['sess_name'] . '_selected_class'] = -1;
        $classList = get_teacher_class_list($tid, $cid, 'class_id', "classes");
    }
    $t = "Class Score Summary";
    $b = "<FORM action=index.php?lev=" . $_SESSION[$_CONF['sess_name'] . '_lev'] . "&cat=" . $_SESSION[$_CONF['sess_name'] . '_cat'] . " method=POST name=teachers>";
    $b .= "<center>" . make_selection_list($teacherList, $tid, 'teacher_id', 'teachers', 'Teacher', 'on') . "</center>";
    $b .= "</form>";
    if ($tid > -1) {
        $b .= "<FORM action=index.php?lev=" . $_SESSION[$_CONF['sess_name'] . '_lev'] . "&cat=" . $_SESSION[$_CONF['sess_name'] . '_cat'] . " method=POST name=classes>";
        $b .= "<center>" . $classList . "</center>";
        $b .= "</form>";
    }
    if ($cid > -1) {
        include 'classSummary.php';
        $b .= $summary_table . "<br />" . $print_button;
    }
    // end if isset class_id
    $main .= make_box($t, $b);
} else {
    $main .= login_error();
}
开发者ID:knichel,项目名称:AIT,代码行数:31,代码来源:office_classsummary.php

示例12: date

<?php

$curdatetime = date("F j, Y @ g:i a", time() - 18000);
if ($_SESSION[$_CONF['sess_name'] . '_isTeacher']) {
    //$main .= "lev=".$lev."&cat=".$cat;
    $tid = $_SESSION[$_CONF['sess_name'] . '_myUID'];
    $yid = $_SESSION[$_CONF['sess_name'] . '_current_school_year'];
    /** Display the list of classes **/
    $t = "Class Selection";
    $b = "<form action=index.php?lev=" . $_SESSION[$_CONF['sess_name'] . '_lev'] . "&cat=" . $_SESSION[$_CONF['sess_name'] . '_cat'] . " method=\"post\" name=courses>\n";
    $sid = -1;
    if (isset($_SESSION[$_CONF['sess_name'] . '_selected_student'])) {
        $sid = $_SESSION[$_CONF['sess_name'] . '_selected_student'];
    }
    $cid = -1;
    if (isset($_SESSION[$_CONF['sess_name'] . '_selected_course'])) {
        $cid = $_SESSION[$_CONF['sess_name'] . '_selected_course'];
    }
    $result = get_teacher_course_list($tid, $_SESSION[$_CONF['sess_name'] . '_current_school_year'], $_SESSION[$_CONF['sess_name'] . '_myCenter'], 'Y');
    $courseSelectList = make_selection_list($result, $cid, 'course_id', 'courses', 'Course', 'on');
    $b .= "<center>" . $courseSelectList . "\n        <input type=hidden name=hoursByClass id=hoursByClass />\n        </form></center>\n";
    $main .= make_box($t, $b);
    if ($sid != -1 || $cid != -1) {
        include 'hoursReport.php';
    }
} else {
    $main .= login_error();
}
开发者ID:knichel,项目名称:AIT,代码行数:28,代码来源:teach_hoursReport.php

示例13: array

    $t = "Admins";
    $b = "";
    if (isset($_SESSION[$_CONF['sess_name'] . '_adminCenterID'])) {
        $sql = "SELECT * from ed_centers";
        $result = $db->query($sql);
        $loc = array();
        while ($row = $result->fetch_assoc()) {
            $loc[$row['center_id']] = $row['short_name'];
        }
        $b .= "\n\t\t\t\t<form action=index.php";
        if (isset($_SESSION[$_CONF['sess_name'] . '_lev'])) {
            $b .= "?lev=" . $_SESSION[$_CONF['sess_name'] . '_lev'] . "&cat=" . $_SESSION[$_CONF['sess_name'] . '_cat'];
        }
        $b .= " method=POST name=adminCenter>\n";
        /** make_selection_list($list,$selected=-1,$select_name,$form, $what, $change="off")**/
        $b .= make_selection_list($loc, $_SESSION[$_CONF['sess_name'] . '_adminCenterID'], 'adminCenterID', 'adminCenter', 'School', 'on');
        $b .= "\n\t\t\t\t</form>\n";
    }
    $b .= $adminlinks . "<A HREF=" . $_SERVER['PHP_SELF'] . "?logout>Logout</A>";
    $main .= make_box($t, $b);
    /** now for the ssl seal **/
}
$main .= "\n        <!--/div-->\n    </td>\n    <td bgcolor=white valign=top style=\"margin:10px\"><br />\n\n    ";
/** Message Dialog Box **/
$t = "Messages";
$b = "<div id=\"messages\"></div>";
$main .= "\n        <!-- Begin User Main -->\n        <!--div id=userMain style=\"overflow-y:auto; width:100%; height:800px;\"-->\n        <div id=\"messageDiv\">" . make_box($t, $b, 'yellow') . "</div>\n        <div id=\"siteInfoDiv\">";
if (!$_SESSION[$_CONF['sess_name'] . '_hasSecretQuestions']) {
    include 'user_setSecretQuestions.php';
} elseif (isset($_SESSION[$_CONF['sess_name'] . '_lev'])) {
    include $_SESSION[$_CONF['sess_name'] . '_lev'] . '_' . $_SESSION[$_CONF['sess_name'] . '_cat'] . '.php';
开发者ID:knichel,项目名称:AIT,代码行数:31,代码来源:user_main.php

示例14: make_assoc_array_from_sql

             $myStudents_ID = make_assoc_array_from_sql(get_students_for_course($cid), 'user_id', 'my');
             $result = get_course_info($cid);
     		$row = $result->fetch_assoc();
             $cname = $row['course_name'];
     * 
     */
 }
 $core_classes = get_teacher_course_list($_SESSION[$_CONF['sess_name'] . '_myUID'], $_SESSION[$_CONF['sess_name'] . '_current_school_year'], $_SESSION[$_CONF['sess_name'] . '_myCenter'], 'Y');
 $displayForm = false;
 if (array_key_exists($cid, $core_classes)) {
     $displayForm = true;
 } else {
     $cid = $_SESSION[$_CONF['sess_name'] . '_selected_course'] = -1;
 }
 $t = "WBL";
 $b = "\n\t\t<form action=index.php?lev=" . $_SESSION[$_CONF['sess_name'] . '_lev'] . "&cat=" . $_SESSION[$_CONF['sess_name'] . '_cat'] . " method=\"post\" name=courses>\n\t\t<center>" . make_selection_list($core_classes, $cid, 'course_id', 'courses', 'Course', 'on') . "</center>\n\t\t</form>\n";
 $main .= make_box($t, $b) . "<br>";
 $newDialog = "\n\t\t<div id=\"newDialog\">\n\t\t\t<form id=\"newWBLForm\" name=\"newWBLForm\" action=\"\" method=POST>\n\t\t\t<div id=\"newWBLDiv\"></div>\n\t\t\t<center>\n\t\t\t<input type=submit id=\"insertWBL\" name=\"insertWBL\" value=\"Insert\" />\n\t\t\t<input type=reset id=\"cancelNewWBL\" name=\"cancelNewWBL\" value=\"Cancel\" />\n\t\t\t</center>\n\t\t\t</form>\n\t\t</div>";
 $t = "New WBL";
 $main .= "<div id=\"newWBLDialog\">" . make_box($t, $newDialog) . "</div>";
 $editDialog = "\n\t\t<div id=\"editDialog\">\n\t\t\t<form id=editWBLForm name=editWBLForm action=\"\" method=POST>\n\t\t\t<div id=editWBLDiv></div>\n\t\t\t<center>\n\t\t\t<input type=submit id=\"updateWBL\" name=\"updateWBL\" value=\"Update\" />\n\t\t\t<input type=reset id=\"cancelUpdateWBL\" name=\"cancelUpdateWBL\" value=\"Cancel\" />\n\t\t\t</center>\n\t\t\t</form>\n\t\t</div>";
 $t = "Edit Jobs";
 $main .= "<div id=\"editWBLDialog\">" . make_box($t, $editDialog, 'blue') . "</div>";
 $s2jDialog = "\n\t\t<div id=\"s2jDialog\">\n\t\t\t<form id=s2jWBLForm name=s2jWBLForm action=\"\" method=POST>\n\t\t\t<div id=s2jWBLDiv></div>\n\t\t\t<center>\n\t\t\t<input type=submit id=\"s2jWBL\" name=\"s2jWBL\" value=\"Update\" />\n\t\t\t<input type=reset id=\"cancels2jWBL\" name=\"cancels2jWBL\" value=\"Cancel\" />\n\t\t\t</center>\n\t\t\t</form>\n\t\t</div>";
 $t = "Assign Students to Job";
 $main .= "<div id=\"s2jWBLDialog\">" . make_box($t, $s2jDialog, 'blue') . "</div>";
 if ($cid != -1) {
     // Display current WBL jobs for current course
     $cresult = get_course_info($cid);
     $courseInfo = $cresult->fetch_assoc();
     $sql = "SELECT * from wbl where course_id=" . $cid . " AND school_year=" . $_SESSION[$_CONF['sess_name'] . '_current_school_year'] . " ORDER by date, job";
开发者ID:knichel,项目名称:AIT,代码行数:31,代码来源:teach_wbl.php

示例15: make_selection_list

 }
 $term_select = make_selection_list($terms, $selected_term, "term_id", "restoreForm", "term", "on");
 $b .= "Term : " . $term_select . "<br />";
 if (isset($_POST['term_id'])) {
     // read the list of available files for this teacher for this class for this term from file system
     if (is_dir($start_path . $center . "/" . $uname . "/" . $courses[$selected_course] . "/" . $terms[$selected_term])) {
         $dh = opendir($start_path . $center . "/" . $uname . "/" . $courses[$selected_course] . "/" . $terms[$selected_term]);
         $files = array();
         while ($file = readdir($dh)) {
             if ($file != '.' && $file != '..') {
                 array_push($files, $file);
             }
         }
         closedir($dh);
         asort($files);
         $file_select = make_selection_list($files, $selected_file, "file_id", "restoreForm", "file", "on");
         $b .= "File : " . $file_select . "<br />";
         if (isset($_POST['file_id'])) {
             $b .= "\n\t\t\t\t\t\t<input type=submit name=restore value=Restore /><br />";
             if (isset($_POST['restore'])) {
                 $file = "/usr/local/q3ait/teacher_backups/" . $center . "/" . $uname . "/" . $courses[$selected_course] . "/" . $terms[$selected_term] . "/" . $files[$selected_file];
                 $lines = file($file);
                 //displayArray($lines);exit;
                 asort($lines);
                 $fd = fopen($file, "r");
                 $contents = fread($fd, filesize($file));
                 fclose($fd);
                 $delimiter = "EofL\n";
                 $records = explode($delimiter, $contents);
                 $s2c = array();
                 $sql = "SELECT class_id FROM classes \n\t\t\t\t\t\t\tWHERE course_id =" . $selected_course . " AND term_id =" . $selected_term;
开发者ID:knichel,项目名称:AIT,代码行数:31,代码来源:restoreGradebook.php


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