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


PHP make_box函数代码示例

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


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

示例1: messageForm

function messageForm($data)
{
    global $startYr, $endYr;
    $t = "Message to Parents/Students";
    $b = "";
    $b .= "\n   <center>\n\t<FORM action=index.php?lev=" . $_SESSION[$_CONF['sess_name'] . '_lev'] . "&cat=" . $_SESSION[$_CONF['sess_name'] . '_cat'] . " method=POST onSubmit=\"return validateForm(this);\">\n\t<table cellspacing=1 cellpadding=3 border=0 bgcolor=black border=0>\n\t\t<tr>\n\t\t<th>Start Date</th><th>End Date</th>\t\n\t\t</tr><tr>\n\t\t<td><span style=white-space:nowrap>" . make_LOM("startMonth", $data['startMonth']) . make_LOD("startDay", $data['startDay']) . make_LOY("startYear", $data['startYear'], $startYr, $endYr) . "</span></td>\n\t\t<td><span style=white-space:nowrap>" . make_LOM("endMonth", $data['endMonth']) . make_LOD("endDay", $data['endDay']) . make_LOY("endYear", $data['endYear'], $startYr, $endYr) . "</span></td>\n\t\t</tr>";
    if ($data['lev'] == 3) {
        /** get_teacher_course_list($tid,$core="") **/
        $courses = get_teacher_course_list($data['u_id'], $_SESSION[$_CONF['sess_name'] . '_current_school_year'], $_SESSION[$_CONF['sess_name'] . '_myCenter'], 'Y');
        $b .= "\n\t\t\t<tr>\n\t\t\t<td colspan=2>\n\t\t\tThis Message is for :";
        foreach ($courses as $id => $name) {
            $b .= "\n\t\t\t\t<input type=checkbox name=cid_" . $id . " value=" . $id;
            if (in_array($id, $data['forCourses'])) {
                $b .= " checked";
            }
            $b .= " />" . $name;
        }
        $b .= "\n\t\t\t</td>\n\t\t\t</tr>";
    }
    $b .= "\n\t\t<tr>\n\t\t<th width=200 colspan=2>Message</th>\n\t\t</tr><tr>\n\t\t<td colspan=2><textarea rows=10 cols=70 name=message id=message>" . $data['message'] . "</textarea></td>\n\t\t</tr><tr>\n\t\t<td colspan=2>\n\t\t<center>\n\t\t\t<input type=submit class=" . $data['button']['class'] . " name=update_message value='" . $data['button']['value'] . "'>\n\t\t\t<input type=hidden name=message_id value=" . $data['messageID'] . " />\n\t\t</center>\n\t\t</td>\n\t\t</tr>\n\t</table>\n\t</form>\n\t</center>";
    $ret .= make_box($t, $b, "blue");
    return $ret;
}
开发者ID:knichel,项目名称:AIT,代码行数:23,代码来源:message.php

示例2: make_box

                    $b .= " checked";
                }
                $b .= " /> Yes<input type=radio name=send_attend_email value=\"N\"";
                if ($myrow['send_attend_email'] == 'N') {
                    $b .= " checked";
                }
                $b .= " />No</td>";
                /** Now for progress reports **/
                $b .= "</tr><tr>\n\t\t\t\t\t\t\t\t<td align=right><span style=white-space:nowrap>Email weekly progress reports?</span></td>\n\t\t\t\t\t\t\t\t<td align=left bgcolor=white><input type=radio name=weekly_progress value=\"Y\"";
                if ($myrow['weekly_progress'] == "Y") {
                    $b .= " checked";
                }
                $b .= "> Yes<input type=radio name=weekly_progress value=\"N\"";
                if ($myrow['weekly_progress'] == "N") {
                    $b .= " checked";
                }
                $b .= ">No</td>";
            }
            $b .= "\n\t\t\t\t</tr><tr>\n\t\t\t\t<td colspan=2 align=center>\n\t\t\t\t<input type=submit class=submit name=submit value=Update>\n\t\t\t\t<input type=hidden name=modify_ui value=1>\n\t\t\t\t<input type=hidden name=u_id value=" . $myrow['user_id'] . ">\n\t\t\t\t<input type=hidden name=u_name value='" . $myrow['u_name'] . "'>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t\t</table>\t\t\t\t\n   \t\t\t</FORM></center>";
            $main .= make_box($t, $b);
            $t = "Change Password";
            $b = "<form id=user_pass action=index.php?lev=" . $_SESSION[$_CONF['sess_name'] . '_lev'] . "&cat=" . $_SESSION[$_CONF['sess_name'] . '_cat'] . " method=POST>   \n\t\t\t\tNew Password:&nbsp;<input class=\"validate[required] text-input\" id=n_pass type=password size=16 name=n_pass><br />\n\t\t\t\tConfirm New:&nbsp;<input class=\"validate[required,equals[n_pass]] text-input\" type=password size=16 id=c_pass name=c_pass><br />\n\t\t\t\t<center>\n\t\t\t\t<input type=submit class=submit name=submit value=Update>\n\t\t\t\t<input type=hidden name=modify_pass value=1>\n\t\t\t\t<input type=hidden name=u_id value=" . $myrow['user_id'] . ">\n\t\t\t</center>\n\t\t\t</FORM>";
            $main .= make_box($t, $b, "yellow");
            // add some logic so parents can receive emails about attendance and reports...
            // maybe put this in a new file for parents to manage students...
        }
        include 'user_setSecretQuestions.php';
    }
} else {
    $main .= login_error();
}
开发者ID:knichel,项目名称:AIT,代码行数:31,代码来源:my_pref.php

示例3: elseif

                } elseif ($_POST['attendValue'] == 'Unexcused-Abs' || $_POST['attendValue'] == 'Excused-Abs' || $_POST['attendValue'] == 'Suspended' || $_POST['attendValue'] == 'WBL-Abssent') {
                    $absRecord['ExtraHours'] = 0;
                } else {
                    $absRecord['ExtraHours'] = $course['minutes'] - $_POST['a_minutes'];
                }
                if ($absRecord['ExtraHours'] < 0) {
                    $absRecord['ExtraHours'] = 0;
                    // just in case a class is shorter than the post minutes....
                }
                $absRecord['SectionID'] = $course['SectionID'];
                //."{".$course['course_name']."}";
                $result2 = get_students_for_course($course['course_id']);
                //$SMSmsg .= "$ schoolID = ".$schoolID." course = ".$course['course_name']."<br>";
                while ($row2 = $result2->fetch_assoc()) {
                    //$SMSmsg .= displayArray2($row2)."<hr>";
                    if ($schoolID == $row2['school_id']) {
                        $absRecord['STGUID'] = $row2['STGUID'];
                        //."{".$row2['first_name']." ".$row2['last_name']."}";
                        //array_push($studentList, $absRecord);
                        $SMSmsg .= $course['course_name'] . " - " . $row2['first_name'] . " " . $row2['last_name'] . "<br>";
                        $SMSmsg .= updateSMSAttend($absRecord) . "<br />";
                        //$sql2 = "INSERT into AbsTransactions (".implode(',', array_keys($absRecord)).") VALUES('".  implode("','", $absRecord)."')";
                    }
                }
            }
        }
        $main .= make_box("Bulk Attend", $SMSmsg);
    }
} else {
    $main .= login_error();
}
开发者ID:knichel,项目名称:AIT,代码行数:31,代码来源:office_bulkattend.php

示例4: stripslashes

        $table .= "\n                <tr class=\"student attendanceStudentRow\">\n                    <td>\n                    <input type=hidden name=default_" . $student['user_id'] . "_Minutes id=default_" . $student['user_id'] . "_Minutes value=\"" . $minutes . "\" />\n                    <input type=hidden id=\"attend_" . $student['user_id'] . "_default\" name=\"attend_" . $student['user_id'] . "_default\" value=\"t\" />\n                    <span style=white-space:nowrap>\n                    <input type=\"CHECKBOX\" id=\"attend_" . $student['user_id'] . "_student\" onClick=\"attend_" . $student['user_id'] . "_default.value='f';\"\n                        name=\"attend_" . $student['user_id'] . "_student\" value=\"" . $student['user_id'] . "\"";
        if ($default) {
            $table .= " checked=true";
        }
        $table .= " />";
        $table .= $student['first_name'] . " " . stripslashes($student['last_name']) . " - {" . getSchoolNameForSTGUID($student['STGUID']) . "}</span></td>\n";
        /** ========================  Begin CheckBox Selects ======================= */
        $table .= "\n                    <td>" . make_attend_array($student['user_id'], $currentStatus) . "</td>";
        /** ========================  End CheckBox Selects ======================= */
        $table .= "\n                    <td colspan=2>\n                        Minutes: <input type=text size=3 class=\"attendMinutes validate[required,custom[integer]]\" name=\"attend_" . $student['user_id'] . "_minutes\"\n                            id=\"attend_" . $student['user_id'] . "_minutes\"\n                            onChange=\"attend_" . $student['user_id'] . "_student.checked=true; attend_" . $student['user_id'] . "_default.value='f';\"\n                                value=\"" . $minutes . "\" />\n                    </td>\n                </tr>";
        /** NOTE * */
        if ($_SESSION[$_CONF['sess_name'] . '_isOffice'] && $_SESSION[$_CONF['sess_name'] . '_lev'] == 'office') {
            $select = makeNoteSelectList($student['user_id'], $noteSelect);
            $table .= "\n                <tr>\n                    <td align=right>Note:</td>\n                    <td colspan=2><span style=white-space:nowrap>" . $select . "\n                        <input type=text size=60 id=\"attend_" . $student['user_id'] . "_note\" name=\"attend_" . $student['user_id'] . "_note\" value='" . htmlentities($note, ENT_QUOTES) . "' onkeyup=\"\">\n                    </td>\n                </tr>";
        } else {
            if ($note != '') {
                $table .= "\n                <tr>\n                    <td align=right>Note:</td>\n                    <td colspan=2><span style=\"white-space:nowrap;color:red;\">\n                    " . htmlentities($note, ENT_QUOTES) . "</span>\n                    </td>\n                </tr>";
            }
        }
        $table .= "\n                <tr>\n                    <td colspan=4 align=center>\n                        <input type=submit name=send id=send value=Send />\n                        <input type=hidden name=default value=" . true . " />\n                    </td>\n                </tr>\n               ";
        $b .= $table;
    }
    $b .= "\n            </table>\n            </form>";
    if (isset($_POST['send'])) {
        include 'attendance.php';
    } else {
        $main .= make_box($t, $b, $c);
    }
} else {
    $main .= login_error();
}
开发者ID:knichel,项目名称:AIT,代码行数:31,代码来源:office_SMSattendByStudent.php

示例5: list

        $print_blank_button = "\n\t\t\t\t<CENTER>\n\t\t\t\t<FORM action=printview_blankscoresheet.php method=POST target=new name=printview>\n\t\t\t\t<input type=submit class=submit name=submit value=\"Print\" class=\"submit\" /> Blank Score Sheet\n\t\t\t\t</form>";
        //$new_assignment ="<a href=teach_addAssign2Gradebook.php?lev=".$_GET['lev']."&cat=".$_GET['cat']." onclick=\"return GB_showCenter('Add Assignment to Gradebook', this.href,400,1000)\">Add Assignment</a></center>";
        //$new_assignment ="<a href=teach_addAssign2Gradebook.php?lev=".$_GET['lev']."&cat=".$_GET['cat']." class=\"greybox\" title=\"New Assignment\">Add Assignment</a></center>";
        $class = $_SESSION[$_CONF['sess_name'] . '_selected_class'];
        $sql = "SELECT term_start_date, term_end_date from terms, classes\n        WHERE terms.term_id=classes.term_id AND classes.class_id=" . $class;
        $result = $db->query($sql);
        $row = $result->fetch_assoc();
        $term_start = $row['term_start_date'];
        $term_end = $row['term_end_date'];
        list($sy, $sm, $sd) = preg_split("/-/", $term_start);
        list($ey, $em, $ed) = preg_split("/-/", $term_end);
        $new_assignment = "\n            <script type='text/javascript'>\n                \$(document).ready(\n                function() {\n                    \$('input#a_1_due_date').datepick({\n                        onDate: \$.datepick.noWeekends,\n                        dateFormat: 'yyyy-mm-dd',\n                        minDate: new Date(" . $sy . ", " . ($sm - 1) . ", " . $sd . "),\n                        maxDate: new Date(" . $ey . ", " . ($em - 1) . ", " . $ed . "),\n                        numberOfMonths: 1\n                    }),\n                \$('#addAssignForm').validationEngine()\n                });\n            </script>\n            <div id=\"greybox\" class=\"greybox\"></div>\n            <div id=\"popup\" class=\"popup\">";
        $today = date('Y-m-d');
        $sql = "SELECT * from categories where class_id=" . $class;
        $result = $db->query($sql);
        if ($result) {
            while ($row = $result->fetch_assoc()) {
                $catList .= "\n\t\t\t\t<option value=" . $row['category_id'] . ">" . $row['category_name'] . " (" . $row['category_weight'] . "%)</option>";
            }
        }
        $new_assignment .= "\n        <div id=assignDiv name=assignDiv>\n\t\t<div style=\"text-align:center; font-weight:bold; font-size:20px;\">Term Start: " . $sm . "-" . $sd . "-" . $sy . "  Term End: " . $em . "-" . $ed . "-" . $ey . "</div>\n\t\t<center>\n\t\t<form id=\"addAssignForm\" name=\"addAssignForm\" action=" . $_SERVER['PHP_SELF'] . " method=post>\n\t\t<table cellspacing=1 cellpadding=3 border=0 bgcolor=black border=0>";
        $new_assignment .= "\n\t\t<tr>\n            <th align=right>Name</th>\n\t\t\t<td>\n\t\t\t\t<input class=\"validate[required]\" type=text size=30 id=a_1_assignment_name name=a_1_assignment_name />\n\t\t\t</td>\n        </tr>\n        <tr>\n            <th align=right>Category</th>\n\t\t\t<td>\n\t\t\t\t<select id=a_1_category_id name=a_1_category_id>" . $catList . "</select>\n\t\t\t</td>\n        </tr>\n        <tr>\n            <th align=right>Due Date</th>\n\t\t\t<td>\n\t\t\t\t<input class=\"validate[required,custom[date]]\" type=text size=15 id=a_1_due_date name=a_1_due_date value=" . $today . " />\n\t\t\t</td>\n        </tr>\n        <tr>\n            <th align=right>Max Score</th>\n\t\t\t<td>\n\t\t\t\t<input class=\"validate[required,custom[number]]\" type=text size=5 id=a_1_max_score name=a_1_max_score value=100 />\n\t\t\t</td>\n        </tr>\n        <tr>\n            <th align=right>Weight</th>\n\t\t\t<td>\n\t\t\t\t<input class=\"validate[required,custom[number]]\" type=text size=5 id=a_1_weight name=a_1_assignment_weight value=1 />\n\t\t\t</td>\n        </tr>\n        <tr>\n            <th align=right>Extra Credit?</th>\n            <td>\n                <input class=\"validate[required] radio\" type=radio id=a_1_isExtraCredit name=a_1_isExtraCredit value='Y'>Y&nbsp;\n                <input class=\"validate[required] radio\" type=radio id=a_1_isExtraCredit name=a_1_isExtraCredit value='N' checked=\"checked\">N\n            </td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th align=right>Note</th>\n            <td><input type=text size=50 name=a_1_assignment_note /></td>\n\t\t</tr>";
        $new_assignment .= "\n\t\t</table>\n\t\t<input type=submit class=submit id=insertAssign name=insertAssign value=Insert />\n\t\t</center>\n        </div><!-- end assignDiv -->";
        $new_assignment .= "\n                <input type=button id=close name=close value=Close />\n            </form>\n            </div><!-- end pouup div -->\n            <div id=\"newAssignPopupDiv\" class=\"newAssignPopupDiv\">\n            <input type=submit id=\"newAssignPopup\" name=\"newAssignPopup\" value=\"New Assignment\" />\n            </div>";
        $b .= "<br />" . $print_gradebook_button . $print_blank_button . $new_assignment;
        $main .= make_box($t, $b);
    }
    /** end if class_id and term_id **/
} else {
    $main .= login_error();
}
开发者ID:knichel,项目名称:AIT,代码行数:31,代码来源:teach_gradebook.php

示例6: make_box

                    $t = "ERROR...";
                    $b = "That information does not match what is in out database.  Please check the spelling and punctuation and try again.\n\t\t\t\t\t\t<CENTER>\n\t\t\t\t\t\t<FORM action=" . $_SERVER['PHP_SELF'] . "?lev=" . $_GET['lev'] . "&cat=" . $_GET['cat'] . " method=post>\n\t\t\t\t\t\t<input type=submit class=submit name=submit value=OK>\n\t\t\t\t\t\t</FORM>\n\t\t\t\t\t\t</CENTER>";
                    $main .= "<br />" . make_box($t, $b, "red");
                }
            } else {
                $sql2 = "SELECT question from secret_question where question_id=" . $row['secret_question1'];
                $result2 = mysql_query($sql2);
                $row2 = mysql_fetch_assoc($result2);
                $secret_question1 = $row2['question'];
                $sql3 = "SELECT question from secret_question where question_id=" . $row['secret_question2'];
                $result3 = mysql_query($sql3);
                $row3 = mysql_fetch_assoc($result3);
                $secret_question2 = $row3['quesiton'];
                $t = "Forgot Password Screen";
                $b = " This screen is used to reset your password.<br />\n\t\t\t\t\t  A random password will be generated and sent you the email address\n\t\t\t\t\t  we have on file for you.<br /> Please provide the answer to secret question.<br />\n\t\t\t\t\t\t  <FORM action=" . $_SERVER['PHP_SELF'] . "?lev=" . $_GET['lev'] . "&cat=" . $_GET['cat'] . " method=POST>";
                $main .= "<br />" . make_box($t, $b);
                $t = "";
                $b .= "\n\t\t\t\t\t\t  <TABLE width=80% bgcolor=white border=0>\n\t\t\t\t\t\t  <TR>\n\t\t\t\t\t\t\t  <TD align=right>Username :</TD> \n\t\t\t\t\t\t\t  <TD align=left><B>" . $_POST['f_username'] . "</B>\n\t\t\t\t\t\t  </TD>\n\t\t\t\t\t\t  </TR>\n\t\t\t\t\t\t  <TR>\n\t\t\t\t\t\t\t  <TD colspan=2>Your Secret Question #1 is...<br /><B>" . $secret_question1 . "</B></TD>\n\t\t\t\t\t\t  </TR>\n\t\t\t\t\t\t  <TR>\n\t\t\t\t\t\t\t  <TD align=right>Answer # 1 : </TD>\n\t\t\t\t\t\t\t  <TD align=left><INPUT type=password size=20 name=secret_answer1>\n\t\t\t\t\t\t  </TD>\n\t\t\t\t\t\t  </TR>\n\t\t\t\t\t\t  <TR>\n\t\t\t\t\t\t\t  <TD colspan=2>Your Secret Question #2 is ...<br /><B>" . $secret_question2 . "</B></TD>\n\t\t\t\t\t\t  </TR>\n\t\t\t\t\t\t  <TR>\n\t\t\t\t\t\t\t  <TD align=right>Answer # 2 :</TD>\n\t\t\t\t\t\t\t  <TD align=left><INPUT type=password size=20 name=secret_answer2></TD>\n\t\t\t\t\t\t  </TR>\n\t\t\t\t\t\t  <TD align=center colspan=2>\n\t\t\t\t\t\t\t<input type=submit class=submit name=reset_pass value=Submit>\n\t\t\t\t\t\t\t<INPUT type=hidden name=f_username value=" . $_POST['f_username'] . ">\n\t\t\t\t\t\t  </TD>\n\t\t\t\t\t\t  </TABLE>\n\t\t\t\t\t\t  </FORM>";
                $main .= "<br />" . make_box($t, $b, "yellow");
            }
        } else {
            $t = "ERROR...";
            $b = "Your account is not configured to allow you to request a password change.<br />\n\t\t\t\t\tYou must have selected 2 secret questions and provided the answers to those questions.  Please\n\t\t\t\t\tcontact the webmaster.\n\t\t\t\t\t<CENTER>\n\t\t\t\t\t<FORM action=" . $_SERVER['PHP_SELF'] . " method=POST>\n\t\t\t\t\t<input type=submit class=submit name=submit value=OK>\n\t\t\t\t\t</FORM>\n\t\t\t\t\t</CENTER>";
            $main .= "<br />" . make_box($t, $b, "red");
        }
    }
} else {
    $t = "Reset Password Screen";
    $b = "Please enter your username<br />\n\t\t\t<FORM action=" . $_SERVER['PHP_SELF'] . "?lev=" . $_GET['lev'] . "&cat=" . $_GET['cat'] . " method=POST>\n\t\t\tUsername : <INPUT type=text size=20 name=f_username>\n\t\t\t<input type=submit class=submit name=submit value=Submit>\n\t\t\t</FORM>";
    $main .= "<br />" . make_box($t, $b, "yellow");
}
开发者ID:knichel,项目名称:AIT,代码行数:31,代码来源:user_forgotpass_right_OLD.php

示例7: list

}
list($d, $t) = preg_split("/ /", $_SESSION[$_CONF['sess_name'] . '_lastLogin']);
list($yr, $mon, $day) = preg_split("/-/", $d);
list($h, $m, $s) = preg_split("/:/", $t);
$lastLogin = date('l, M j, Y @ g:i A', mktime((int) $h, (int) $m, (int) $s, (int) $mon, (int) $day, (int) $yr));
$main = "\r\n</head>\r\n<body style=\"height:100%;\">\r\n    <script type=\"text/javascript\" src=\"tooltip/wz_tooltip.js\"></script>\r\n\t<div id=\"page_header\">\r\n\t\t<div id=\"page_title\" style=\"padding-top:10px;\">Student Information System</div>\r\n\t\t<div id=\"page_logo\"><img src=\"images/build/q3logo.gif\"  height=\"75\" alt=\"\" /></div>\r\n\t\t<div id=\"page_seal\">\r\n        <a href=\"https://ssl.comodo.com\">\r\n            <!--img src=\"https://ssl.comodo.com/images/comodo_secure_76x26_white.png\" alt=\"SSL\" width=\"76\" height=\"26\" style=\"border: 0px;\"-->\t\r\n            <img src=\"https://ssl.comodo.com/images/comodo_secure_52x63_white.png\" alt=\"SSL\" width=\"52\" height=\"63\" style=\"border: 0px;\">\r\n        </a>\r\n</div>\r\n    </div>\r\n<div id=\"page_head_seperator\">\r\n\t<div id=\"page_date\">Today is " . $curdatetime . "</div>\r\n\t<div id=\"page_lastLogin\">";
if ($_SESSION[$_CONF['sess_name'] . '_logged_in'] && $yr > 2000) {
    $main .= "You last logged in on  " . $lastLogin;
}
$main .= "\r\n    </div>\r\n\t<div id=\"page_user\">";
if ($_SESSION[$_CONF['sess_name'] . '_logged_in']) {
    $main .= "Welcome " . $_SESSION[$_CONF['sess_name'] . '_myName'];
}
$main .= "\r\n\t</div>\r\n</div>";
/** end page_head_separator **/
if ($_SESSION[$_CONF['sess_name'] . '_logged_in']) {
    include 'user_main.php';
} else {
    if (isset($_POST['login'])) {
        $t = "ERROR";
        $b = $loginError['error_mesg'];
        $login_error = make_box($t, $b, "red");
    }
    include 'default_main.php';
}
$end = microtime_float();
$footer = "\t\t\r\n<div id=\"page_footer\">Copyright &copy; 2001 - " . date('Y') . " M. Knichel &amp; E. Maassmann<br />\r\n\tAll trademarks and copyrights on this page are owned by their respective owners.<br />\r\n\tThis page took " . round($end - $start, 4) . " seconds to create.<br>\r\n<!--a href=\"https://ssl.comodo.com\">\r\n\t<img src=\"https://ssl.comodo.com/images/comodo_secure_76x26_white.png\" alt=\"SSL\" width=\"76\" height=\"26\" style=\"border: 0px;\">\t<!--span style=\"font-weight:bold; font-size:7pt\">SSL</span-->\r\n</a-->\r\n</div>\r\n</body>\r\n</html>";
$header = $download_header . $header;
$page = $header . $main . $footer;
echo $page;
ob_end_flush();
开发者ID:knichel,项目名称:AIT,代码行数:31,代码来源:index.php

示例8: mysql_query

        $termName = $row['term_name'];
        $teacherName = $row['first_name'] . " " . $row['last_name'];
    }
    $sid = -1;
    if (isset($_SESSION[$_CONF['sess_name'] . '_selected_student'])) {
        $sid = $_SESSION[$_CONF['sess_name'] . '_selected_student'];
        $sql = "SELECT first_name, last_name FROM user WHERE user_id=" . $sid;
        $result = mysql_query($sql);
        $row = mysql_fetch_assoc($result);
        $studentFirstName = $row['first_name'];
        $studentLastName = $row['last_name'];
        //print $sql."<br />".$studentFirstName.$studentLastName."<br /.";
    }
    $print_button = "";
    $t = "Student Progress Reports";
    //  for : ".$fname." ".$lname;
    $b = "<FORM action=" . $_SERVER['PHP_SELF'] . "?lev=" . $_GET['lev'] . "&cat=" . $_GET['cat'] . " method=POST name=classes>\n\t\t\t<center>" . teacher_class_list($_SESSION[$_CONF['sess_name'] . '_myUID'], $cid, 'class', "classes") . "</center></form>";
    if ($sid != -1) {
        $b .= "<FORM action=" . $_SERVER['PHP_SELF'] . "?lev=" . $_GET['lev'] . "&cat=" . $_GET['cat'] . " method=POST name=studentClasses>";
        $b .= "<center>" . student_class_list($sid, $cid, 'class', "studentClasses") . "</center>";
        $b .= "</form>";
    }
    $main .= "<br />" . make_box($t, $b);
    if ($sid != -1) {
        include 'progress_report.php';
    }
} else {
    $t = "Message...";
    $b = "You do not have enogh access for this area.";
    $main .= "<br />" . make_box($t, $b, "red");
}
开发者ID:knichel,项目名称:AIT,代码行数:31,代码来源:guid_rep_right_old.php

示例9: make_box

        }
        $main .= make_box($t, $b, $bc);
    }
    if (isset($_POST['delete_year'])) {
        $sql = "SELECT * from terms WHERE term_id=" . $_POST['term_id'];
        $result = $db->query($sql);
        $row = $result->fetch_assoc();
        $t = "Warning...";
        $bc = "red";
        $b = "You have chosen to delete term...\n\t\t\t\t\tWeight = " . $row['term_weight'] . "<br />\n\t\t\t\t\tStart = " . $row['term_start_date'] . " <br />\n\t\t\t\t\tEnd = " . $row['term_end_date'] . "<br />\n\t\t\t\tAre you sure?<br />Deleting a term will also delete any classes and grades associated with that term!!!<br /></FONT><center>\n\t\t\t\t<FORM action=index.php?lev=" . $_SESSION[$_CONF['sess_name'] . '_lev'] . "&cat=" . $_SESSION[$_CONF['sess_name'] . '_cat'] . " method=POST>\n\t\t\t\t<input type=submit class=submit name=really_delete_term value=Delete>\n\t\t\t\t<input type=submit class=submit name=cancel value=Cancel>\n\t\t\t\t<INPUT type=hidden name=term_id value=" . $_POST['term_id'] . ">\n\t\t\t\t</FORM>";
        $main .= make_box($t, $b, $bc);
    }
    /**
    	Now list the School Years.
    **/
    $sql = "SELECT * from school_years \n\t\t\t\t\tORDER by startDate asc";
    $result = $db->query($sql);
    $bc = "blue";
    $t1 = "School Years for " . $_SESSION[$_CONF['sess_name'] . '_myfName'] . " " . $_SESSION[$_CONF['sess_name'] . '_mylName'];
    $b1 = "\n\t\t\t<center>\n\t\t\t<table border=0 bgcolor=black cellspacing=1 cellpadding=3>\n\t\t\t<tr>\n\t\t\t\t\t<td colspan=4><form action=index.php?lev=" . $_SESSION[$_CONF['sess_name'] . '_lev'] . "&cat=" . $_SESSION[$_CONF['sess_name'] . '_cat'] . " method=POST><span style=white-space:nowrap>I would like to add <input type=text size=3 name=numTerms /> terms\t\t\t  \n\t\t\t\t\t<input type=submit class=submit name=addTerms value=Go />\n\t\t\t\t\t</form></span>\n\t\t\t</tr>\n\t\t\t<TR>\n\t\t\t\t<TH bgcolor=white>Year ID</TH>\n\t\t\t\t<TH bgcolor=white>Start Date</TH>\n\t\t\t\t<TH bgcolor=white>End Date</TH>\n\t\t\t\t<TH bgcolor=white valign=bottom>&nbsp;</TH>\n\t\t\t</TR>";
    if ($result) {
        while ($myrow = $result->fetch_assoc()) {
            $b1 .= "\n\t\t\t\t\t<TR>\n\t\t\t\t\t\t<TD bgcolor=white><span style=white-space:nowrap>" . $myrow['school_year_id'] . "</span></TD>\n\t\t\t\t\t\t<TD bgcolor=white><span style=white-space:nowrap>" . $myrow['startDate'] . "</span></TD>\n\t\t\t\t\t\t<TD bgcolor=white><span style=white-space:nowrap>" . $myrow['endDate'] . "</span></TD>\n\t\t\t\t\t\t<TD bgcolor=white><span style=white-space:nowrap>\n\t\t\t\t\t\t\t<FORM action=index.php?lev=" . $_SESSION[$_CONF['sess_name'] . '_lev'] . "&cat=" . $_SESSION[$_CONF['sess_name'] . '_cat'] . " method=POST>\n\t\t\t\t\t\t\t<input type=submit class=submit name=addTerms value=Edit />\n\t\t\t\t\t\t\t<input type=submit class=submit name=delete_year value=Delete />\n\t\t\t\t\t\t\t<INPUT type=hidden name=year_id value=" . $myrow['school_year_id'] . " />\n\t\t\t\t\t\t\t</FORM></span>\n\t\t\t\t\t</TR>";
        }
    }
    $b1 .= "</table></center>";
    //	$b="<center>".$b."</center>";
    $main .= make_box($t1, $b1, $bc);
} else {
    $main .= login_error();
}
开发者ID:knichel,项目名称:AIT,代码行数:31,代码来源:admin_schoolyear.php

示例10: make_box

                $t = "Error";
                $b = "The assignment could not be added.<br /><br />\n                Please contact the site administrator.";
                $bc = "red";
            }
            $main .= "<center><br />" . make_box($t, $b, $bc) . "</center>";
        } else {
            $today = date('Y-m-d');
            $sql = "SELECT * from categories where class_id=" . $class;
            $result = $db->query($sql);
            if ($result) {
                while ($row = $result->fetch_assoc()) {
                    $catList .= "\n                    <option value=" . $row['category_id'] . ">" . $row['category_name'] . " (" . $row['category_weight'] . "%)</option>";
                }
            }
            $t = "Class Assignments";
            $bc = "blue";
            $b = "\n            <div style=text-align:center>Term Start: " . $sm . "-" . $sd . "-" . $sy . "  Term End: " . $em . "-" . $ed . "-" . $ey . "</div>\n            <center>\n            <form id=\"addAssign\" name=\"addAssign\" action=" . $_SERVER['PHP_SELF'] . " method=post>\n            <table cellspacing=1 cellpadding=3 border=0 bgcolor=black border=0>\n            <tr>\n                <th>Name</th><th>Category</th><th>Due Date</th><th>Max Score</th><th>Weight</th><th>Extra Credit</th>\n            </tr>";
            $b .= "\n            <tr>\n                <td>\n                    <input class=\"validate[required]\" type=text size=30 id=a_1_name name=a_1_name />\n                </td>\n                <td>\n                    <select id=a_1_category_id name=a_1_category_id>" . $catList . "</select>\n                </td>\n                <td>\n                    <input class=\"validate[required,custom[date]]\" type=text size=15 id=a_1_due_date name=a_1_due_date value=" . $today . " />\n                </td>\n                <td>\n                    <input class=\"validate[required,custom[number]]\" type=text size=5 id=a_1_max_score name=a_1_max_score value=100 />\n                </td>\n                <td>\n                    <input class=\"validate[required,custom[number]]\" type=text size=5 id=a_1_weight name=a_1_weight value=1 />\n                </td>\n                <td>\n                    <input class=\"validate[required] radio\" type=radio id=a_1_isExtraCredit name=a_1_isExtraCredit value='Y'>Y&nbsp;\n                    <input class=\"validate[required] radio\" type=radio id=a_1_isExtraCredit name=a_1_isExtraCredit value='N' checked=\"checked\">N\n                </td>\n            </tr>\n            <tr>\n                <td colspan=5>Note:<input type=text size=100 name=a_1_assignment_note /></td>\n            </tr>";
            $b .= "\n            </table>\n            <input type=hidden name=numAssigns value=1 />\n            <input type=submit class=submit name=insertAssign value=Insert />\n            </center>\n            </form>";
            $main .= "<br /><center>" . make_box($t, $b, $bc) . "</center>";
        }
    } else {
        $main .= login_error();
    }
} else {
    $main .= login_error();
}
$main .= "\n<br /><br /><br /><br />\n</body>\n</html>";
print $main;
?>
				
开发者ID:knichel,项目名称:AIT,代码行数:30,代码来源:teach_addAssign2Gradebook.php

示例11: make_box

        }
    }
    // end if isset class_id
    $main .= make_box($t, $b);
    /**
     * Now lets get past commnets for BOTH interim and grading period and display them in Term Order 
     */
    if ($pastComments) {
        $pastCommentsList = make_assoc_array_from_sql($pastComments, 'class_id', 'my');
        //displayArray($pastCommentsList);exit;
        $past = '';
        foreach ($pastCommentsList as $classComment) {
            $class = $_SESSION[$_CONF['sess_name'] . '_teacherClassList'][$classComment['class_id']];
            //$past = displayArray2($class);
            //$past = displayArray2($classComment);
            $past .= "<span class='comment-title'>Class</span>: " . $class['course_name'] . " ~ " . $class['term_name'] . "<br>";
            $past .= "<span class='comment-title'>Student</span>: " . $Quality[$classComment['interimQuality']] . "<br>";
            $past .= "<span class='comment-title'>Student Needs Improvement In</span>: " . $Quality[$classComment['interimImprovement']] . "<br>";
            $intImpList = explode(",", $classComment['interimImprovement']);
            foreach ($intImpList as $ii) {
                $past .= "&nbsp;&nbsp&nbsp;-" . $Improvement[$ii] . "<br>";
            }
            $past .= "<span class='comment-title'>Interim Comment</span>: " . $classComment['interimComment'] . "<br>";
            $past .= "<span class='comment-title'>Grade Comment</span>: " . $classComment['gradeComment'] . "<br>";
            $past .= "<hr width=70% style='margin-left:40px; margin-top:20px;margin-bottom:20px;'>";
        }
        $main .= make_box('Past Comments', $past);
    }
} else {
    $main .= login_error();
}
开发者ID:knichel,项目名称:AIT,代码行数:31,代码来源:teach_comments.php

示例12: elseif

    } elseif (isset($_POST['delete'])) {
        $t = "Warning...";
        $b = "You have chosen to delete the following users...<br>";
        $sql = "SELECT user_id, first_name, last_name,isAdmin from users where user_id=" . $_POST['u_id'];
        $result = $db->query($sql);
        $row = $result->fetch_assoc();
        //$main .=$row[1]." ".$row[2]."<br>";
        if ($row['isAdmin'] == 'Y') {
            $b .= "You are not allowed to delete someone with Admin privileges.";
        } else {
            $b .= $row['first_name'] . " " . $row['last_name'] . "<br />\n\t\t\t<B>This will delete all records associated with this user!</B><br>\n\t\t\tAre you sure?<center>\n\t\t<form action=index.php?lev=" . $_SESSION[$_CONF['sess_name'] . '_lev'] . "&cat=" . $_SESSION[$_CONF['sess_name'] . '_cat'] . " method=post>\n\t\t<input type=submit class=submit name=really_delete value=Yes>\n\t\t\t<input type=submit class=submit name=nope value=No>\n\t\t\t<input type=hidden name=u_id value=" . $row['user_id'] . ">\n\t\t</form></center>";
        }
        $main .= make_box($t, $b, "yellow");
    } else {
    }
    /**	Display all users **/
    $t = "User Management";
    $b = "\n<center>\n<table border=0 bgcolor=white cellspacing=0 cellpadding=3>\n<tr>\n<TH>" . $user_list_title . "</TH>\n<TH>&nbsp;</TH>\n<TH colspan=2>\n<!--form action=index.php?lev=" . $_SESSION[$_CONF['sess_name'] . '_lev'] . "&cat=" . $_SESSION[$_CONF['sess_name'] . '_cat'] . " method=POST name=userList-->\n<input type=submit class=submit id=\"showNewUser\" name=\"showNewUser\" value=New>\n<!--/form--></TH>\n</tr>\n<tr>\n<td colspan=4>";
    $list = $ActiveUsers;
    $b .= "\n<form action=index.php?lev=" . $_SESSION[$_CONF['sess_name'] . '_lev'] . "&cat=" . $_SESSION[$_CONF['sess_name'] . '_cat'] . " method=POST name=userListA>" . make_selection_list($list, $uid, 'u_id', 'userListA', $selectWhat, 'on') . "\n</form>\n</td></tr>\n</table>\n</center>";
    $main .= make_box($t, $b);
    /**	Display Inactive users **/
    $list = $InactiveUsers;
    if (sizeof($list)) {
        $t = "Inactive User Management";
        $b = "\n\t<center>\n\t<table border=0 bgcolor=white cellspacing=0 cellpadding=3>\n\t<tr>\n\t<TH>" . $user_list_title . "</TH>\n\t</tr>\n\t<tr>\n\t<td>\n\t<form action=index.php?lev=" . $_SESSION[$_CONF['sess_name'] . '_lev'] . "&cat=" . $_SESSION[$_CONF['sess_name'] . '_cat'] . " method=POST name=userListI>" . make_selection_list($list, $uid, 'u_id', 'userListI', $selectWhat, 'on') . "\n\t</form>\n\t</td>\n\t</tr>\n\t</table>\n\t</center>";
        $main .= make_box($t, $b, 'yellow');
    }
} else {
    $main .= login_error();
}
开发者ID:knichel,项目名称:AIT,代码行数:31,代码来源:admin_anyuser.php

示例13: make_box

<?php

if ($_SESSION[$_CONF['sess_name'] . '_isGuidance']) {
    $t = "Sync With SMS";
    $body = "\n\n        <center>\n        <table>\n        <tr>\n            <td>\n                <form action=index.php?lev=" . $_SESSION[$_CONF['sess_name'] . '_lev'] . "&cat=" . $_SESSION[$_CONF['sess_name'] . '_cat'] . " method=post name=syncGradesForm id=syncGradesForm>\n                    <input type=submit name=syncGrades id=syncGrades value=\"Sync Grades Now\">\n                </form>\n            </td>\n        </tr>\n        </table>\n        </center>\n        ";
    $main .= make_box($t, $body) . "<br>";
    if (isset($_POST['syncGrades'])) {
        $runByWeb = true;
        include '/usr/local/q3ait/crons/pushGradesToSMS.php';
    }
} else {
    $main .= login_error();
}
开发者ID:knichel,项目名称:AIT,代码行数:13,代码来源:guid_pushGradesToSMS.php

示例14: make_box

<?php

if ($_SESSION[$_CONF['sess_name'] . '_isStudent']) {
    $sid = $_SESSION[$_CONF['sess_name'] . '_myUID'];
    $fname = $_SESSION[$_CONF['sess_name'] . '_myfName'];
    $lname = $_SESSION[$_CONF['sess_name'] . '_mylName'];
    $t = $fname . " " . $lname;
    $studentFirstName = $fname;
    $studentLastName = $lname;
    /**	
    	$print_button ="	
    			   <CENTER>
    			   <FORM action=printview_progressreport.php method=POST target=new name=printview>
    			   <input type=submit class=submit name=submit value=\"Print View\">
    			   </form>
    			   </CENTER>";
    	   $b="<FORM action=index.php?lev=".$_SESSION[$_CONF['sess_name'].'_lev']."&cat=".$_SESSION[$_CONF['sess_name'].'_cat']." method=POST name=classes>
    		<center>".make_selection_list(get_student_class_list($sid),$cid,'class_id','classes','Class','on')."</center></form>";
    	$main .= make_box($t,$b);
    **/
    $b = "";
    include 'multiClassProgress_report.php';
    $report = $b;
    //.$print_button;
    $main .= make_box($t, $report);
} else {
    $main .= login_error();
}
开发者ID:knichel,项目名称:AIT,代码行数:28,代码来源:stud_multiClassRep.php

示例15: Article

     }
     echo $err_msg;
     continue;
 }
 # look for the page by name
 # need to check behavior on alternate namespaces
 $title = Title::newFromText($data['page_name']);
 if (!$title->exists() || get_wiki_text($data['page_name']) == '') {
     # page doesn't exist yet; add a temporary page to create a page_uid
     echo "adding a page for " . $data['page_name'] . "\n";
     $article = new Article($title);
     if (!$title->exists()) {
         $article->doEdit('placeholder', 'Added by wikibot to create page id', EDIT_NEW | EDIT_FORCE_BOT);
     }
     # make the table
     $box_text = make_box($data['page_name'], $data['table_template'], $data);
     # this adds the data too.
     $new_page = str_replace("{{{" . strtoupper($data['table_template']) . "}}}", $box_text, $page_template_text);
     $article->doEdit($new_page, 'Added by wikibot', EDIT_UPDATE | EDIT_FORCE_BOT);
     $change_count++;
     echo "{$line_count} lines processed: " . $data['page_name'] . " is item {$change_count}\n";
 } else {
     # page already exists.  Find the desired box
     echo $data['page_name'] . " already exists\n";
     $box_id = get_wikibox_id($data['page_name'], $data['table_template']);
     $box_uid = get_wikibox_uid($box_id);
     $box = new wikiBox();
     $box->box_uid = $box_uid;
     $box->template = $data['table_template'];
     $box->set_from_DB();
     $rows = get_wikibox_rows($box, $uid, $data['metadata']);
开发者ID:GMOD,项目名称:Chado,代码行数:31,代码来源:loadwiki.php


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