<div id="bcc" style="display:none"><table width="100%" cellpadding="0"><tr><td width="50px"> BCC : </td> <td align="left"> ' . TextInput_mail($to_bcc, 'txtToBCCUser', '', 'onkeyup="nameslist(this.value,3)" class=mail_input') . '   <div id=ajax_response_bcc></div> </td> </tr></table></div></td> </tr>'; echo '<tr> <td align="left" width="50px"> Subject: </td> <td align="left"> ' . TextInput_mail($mail_subject, 'txtSubj', '', 'class=mail_input_full') . ' </td> </tr> <tr><td colspan="2">'; $oFCKeditor = new FCKeditor("txtBody"); $oFCKeditor->BasePath = "modules/messaging/fckeditor/"; $oFCKeditor->Value = ''; $oFCKeditor->Height = "350px"; $oFCKeditor->Width = "600px"; $oFCKeditor->ToolbarSet = 'Mytoolbar '; $oFCKeditor->Create(); echo '</td></tr>'; echo '<tr><td colspan=2><table id="append_tab">'; echo '<tr><td align="left" width="60px" colspan="2">Attach file: </td></tr>'; echo '<tr id="tr1"><td align="left" colspan="2"><input style="float: left;" type="file" name="f[]" id="up1" onchange="attachfile(1);" multiple/><div id="del1" style="display:none;float: left;"><input type="button" value="Clear" onclick="clearfile(1)" /></div></td></tr>';
echo '<script language=JavaScript>parent.side.location="' . $_SESSION['Side_PHP_SELF'] . '?modcat="+parent.side.document.forms[0].modcat.value;</script>'; } echo '<BR>'; } if (isset($_REQUEST['search']) && $_REQUEST['search'] == 'true' && $_REQUEST['modfunc'] == 'add_group') { echo "<FORM name=Group id=Compose action=Modules.php?modname=" . strip_tags(trim($_REQUEST[modname])) . "&modfunc=group_insert method=POST >"; PopTable('header', 'Group'); echo '<table> <tr> <td>Group Name: </td> <td>' . TextInput_mail($_REQUEST['groupname'], 'txtGrpName', '', 'class=cell_medium') . ' </td> </tr> <tr> <td>Description: </td> <td>' . TextInput_mail($_REQUEST['groupdescription'], 'txtGrpDesc', '', 'class=cell_medium') . ' </td> </tr> <tr> <td colspan=2>'; echo DrawHeader('', '', "<INPUT TYPE=SUBMIT name=button id=button class=btn_medium VALUE='Add Group' onclick='return mail_group_chk();'/>") . '</td> </tr> </table>'; $lastName = $_REQUEST['last']; $firstName = $_REQUEST['first']; $userName = $_REQUEST['username']; $profile = $_REQUEST['profile']; $disable = $_REQUEST['_dis_user']; $allschools = $_REQUEST['_search_all_schools']; // if($profile!=-1)//search by profile // {
} else { $_SESSION['MassSchedule.php']['subject_id'] = $_REQUEST['subject_id']; $_SESSION['MassSchedule.php']['course_id'] = $_REQUEST['course_id']; $_SESSION['MassSchedule.php']['course_period_id'] = $_REQUEST['course_period_id']; $course_title = DBGet(DBQuery('SELECT TITLE FROM courses WHERE COURSE_ID=\'' . $_SESSION['MassSchedule.php']['course_id'] . '\'')); $course_title = $course_title[1]['TITLE']; $period_title_RET = DBGet(DBQuery('SELECT TITLE,MARKING_PERIOD_ID,GENDER_RESTRICTION FROM course_periods WHERE COURSE_PERIOD_ID=\'' . $_SESSION['MassSchedule.php']['course_period_id'] . '\'')); $period_title = $period_title_RET[1]['TITLE']; $mperiod = $period_title_RET[1]['MARKING_PERIOD_ID']; $gender_res = $period_title_RET[1]['GENDER_RESTRICTION']; $_SESSION['MassSchedule.php']['gender'] = $gender_res; $_SESSION['course_period_id'] = $_REQUEST['course_period_id']; $grp = DBGet(DBQuery("select * from mail_group")); $title = $course_title . ' ' . $period_title; if ($gender_res == 'N') { echo "<script language=javascript>opener.document.getElementById(\"course_div\").innerHTML = \"<INPUT type=checkbox id=list_gpa_student name=list_gpa_student value=Y CHECKED>Only Students<INPUT type=checkbox name=list_gpa_parent id=list_gpa_parent value=Y CHECKED>Only Parents" . (User('PROFILE') != 'teacher' ? '<INPUT type=checkbox name=list_gpa_teacher id=list_gpa_teacher value=Y CHECKED>Only Teachers' : '') . " <a href='Modules.php?modname=Messaging/Compose.php'><font color='red'>Remove Course</font></a><table width='100%'><tr><td align='left' width='50px'>To :</td><td align='left'><input type=text class=mail_input id=txtToUser name=txtToUser value='{$title}' readonly> <a href=# onclick=show_cc()>CC</a> <a href=# onclick=show_bcc()>BCC</a> </td></tr><tr><td colspan=2><div id=cc_bcc style=display:none><table width=100% cellpadding=0><tr><td align=left width=50px>CC : </td><td align=left style=padding-bottom:5px>" . TextInput_mail($to_cc, 'txtToCCUser', '', 'class=mail_input') . "</td></tr><tr><td align=left>BCC :</td><td align=left>" . TextInput_mail($to_bcc, 'txtToBCCUser', '', 'class=mail_input') . "</td></tr></table></div></td></tr></table>\";window.close();</script>"; } else { echo "<script language=javascript>opener.document.getElementById(\"course_div\").innerHTML = \"{$course_title} <BR>{$period_title} <br>Gender : " . ($gender_res == 'M' ? 'Male' : 'Female') . " \";window.close();</script>"; } } } echo "</form>"; ?> <?php PopTable('footer'); ?>