Ejemplo n.º 1
0
     }
 }
 $room_RET = DBGet(DBQuery("SELECT ROOM_ID,TITLE FROM rooms WHERE SCHOOL_ID='" . UserSchool() . "' ORDER BY SORT_ORDER"));
 if (count($room_RET)) {
     foreach ($room_RET as $room) {
         $rooms[$room['ROOM_ID']] = $room['TITLE'];
     }
 }
 if (isset($_REQUEST['values'])) {
     echo '<font color=red><b>' . $conflict . ' on selected date</b></font>';
     unset($_REQUEST['values']);
     unset($_SESSION['_REQUEST_vars']['values']);
 }
 echo "<FORM name=popform id=popform action=for_window.php?modname={$_REQUEST['modname']}&meet_date={$_REQUEST['meet_date']}&modfunc=detail&mode={$_REQUEST['mode']}&subject_id={$_REQUEST['subject_id']}&course_id={$_REQUEST['course_id']}&course_period_id={$_REQUEST['course_period_id']}&calendar_id={$_REQUEST['calendar_id']} METHOD=POST>";
 echo '<BR>';
 PopTableforWindow('header', $title);
 echo '<div id="block_error"></div>';
 echo '<TABLE cellpadding="0" width="100%">';
 echo '<input type="hidden" name="get_status" id="get_status" value="" />';
 echo '<input type="hidden" name="' . $date . '_id" id="' . $date . '_id" value="' . $_REQUEST['course_period_id'] . '"/>';
 echo '<input type="hidden" id="run_block_valid" value="block"/>';
 echo '<TR><TD><B style="color:#436477">Add Class</B></TD></TR>';
 echo '<TR><TD class="break"></TD></TR></TABLE>';
 echo '<TABLE cellpadding="10">';
 if ($_REQUEST['add'] == 'new') {
     unset($cpblocked_RET);
 }
 if ($_REQUEST['id'] != '') {
     echo "<input type=hidden name=cpv_id value='{$_REQUEST['id']}' />";
 }
 echo '<TR><TD align="right"><B>Date</B></TD><TD>' . ProperDate($_REQUEST[meet_date]) . '</TD></TR>';
Ejemplo n.º 2
0
         }
         echo '<center><span id="sel_err"></span><br/><br/></center>';
         ListOutput($searched_staffs, $columns, $singular, $plural, false, $group = false, $options, 'ForWindow');
         echo '<br>';
         echo '<center>';
         if (count($searched_staffs) > 0) {
             echo '<INPUT type=submit name=button value=Select class=btn_medium onclick="return sel_staff_val();">&nbsp;&nbsp;';
         }
         echo '<INPUT type=submit name=button value=Cancel class=btn_medium></center>';
         echo '</form>';
     } else {
         echo '<SCRIPT language=javascript>window.close();</script>';
     }
 } else {
     echo '<BR>';
     PopTableforWindow('header', '');
     echo '<center><h3>Search for an existing portal user (parent/guardian) <br/> to associate with this student.</h3>';
     echo '<font color="red">Fill out one or more fields to look up an individual.</font><br/><br/>';
     if ($_REQUEST['add_id'] == 'new') {
         echo "<FORM name=popform id=popform action=ForWindow.php?modname={$_REQUEST['modname']}&modfunc=lookup&type=" . $_REQUEST['type'] . "&func=search&ajax=" . $_REQUEST['ajax'] . "&add_id=new&address_id=" . $_REQUEST['address_id'] . " METHOD=POST>";
     } else {
         echo "<FORM name=popform id=popform action=ForWindow.php?modname={$_REQUEST['modname']}&modfunc=lookup&type=" . $_REQUEST['type'] . "&func=search&ajax=" . $_REQUEST['ajax'] . "&add_id=" . $_REQUEST['add_id'] . "&address_id=" . $_REQUEST['address_id'] . " METHOD=POST>";
     }
     echo '<TABLE>';
     echo '<TR><TD>First Name</TD><TD>' . '  ' . TextInput('', 'USERINFO_FIRST_NAME', '', 'class=cell_medium', true) . '</TD></TR>';
     echo '<TR><TD>Last Name</TD><TD>' . '  ' . TextInput('', 'USERINFO_LAST_NAME', '', 'class=cell_medium', true) . '</TD></TR>';
     echo '<TR><TD>Email</TD><TD>' . '  ' . TextInput('', 'USERINFO_EMAIL', '', 'class=cell_medium', true) . '</TD></TR>';
     echo '<TR><TD>Mobile Phone</TD><TD>' . '  ' . TextInput('', 'USERINFO_MOBILE', '', 'class=cell_medium', true) . '</TD></TR>';
     echo '<TR><TD>Street Address</TD><TD>' . '  ' . TextInput('', 'USERINFO_SADD', '', 'class=cell_medium', true) . '</TD></TR>';
     echo '<TR><TD>City</TD><TD>' . '  ' . TextInput('', 'USERINFO_CITY', '', 'class=cell_medium', true) . '</TD></TR>';
     echo '<TR><TD>State</TD><TD>' . '  ' . TextInput('', 'USERINFO_STATE', '', 'class=cell_medium', true) . '</TD></TR>';