<?php $secure_page = 1; $this_page = "college"; include 'header.php'; if (!XMEC::authenticate_user()) { echo "<html><h1>Please login to access this page<html>"; exit; } $me =& XMEC::getUser(); if (!$me->isAdmin()) { echo "<html><h1>Not authorized !!</html>"; exit; } $dbh =& XMEC::getDB(); if (!isset($_POST['submit'])) { ?> <html> <head> </head> <body> <TABLE cellSpacing=0 cellPadding=4 width=90% align=center border=0> <TR> <TD width=6%><BR></TD> <TD width=90% height=40 class=head><B>XMEC Broadcast Mailer</B></TD> </TR> <TR><TD colspan=2> <!--Box Starts--> <TABLE cellSpacing=0 cellPadding=0 border=0 width=90% align=center> <TBODY>
<?php include 'xmec.inc'; $auth = XMEC::authenticate_user(); if ($id != "") { $res = new XMEC_user($id); if ($res->fetchInfo()) { $pres_addr = $res->getAddress('PRESENT'); $comp_addr = $res->getAddress('COMPANY'); $perm_addr = $res->getAddress('PERMANENT'); ?> <BODY bgcolor=#FFFFFF> <LINK rel=stylesheet href="style.css" type="text/css"> <TABLE bgcolor=#FFFFFF cellspacing=0 width=370 align=center ><TR><TD> <TABLE bgcolor=#FFFFFF cellspacing=0 cellpadding=5 width=100% align=center border=1> <TR><TD class=record bgcolor=#FFDFB0 width=370 align=left> <strong>XMEC Record</strong></TD><TD class=record bgcolor=#FFDFB0 width=370 align=right>No. RQ00<?php echo htmlentities($res->get('id')); ?> 9K</TD></TR> <TR> <TD class=record bgcolor=#FFDFB0 width=370 align=left>Engineering Dept</TD> <TD class=record bgcolor=#FFDFB0 width=370 align=right><?php echo htmlentities($res->get('branch')); ?> </TD> </TR> <TR> <TD class=record bgcolor=#FFDFB0 width=370 align=left>Year of Joining</TD> <TD class=record bgcolor=#FFDFB0 width=370 align=right><?php
<?php $_menu_number = 0; include_once 'xmec.inc'; if (!XMEC::authenticate_user() && $secure_page) { global $PHP_SELF; $url = "login.php?xgetpage={$PHP_SELF}"; header("Location: {$url}"); exit; } // Global variable holds the menu no. displayed. if (!session_is_registered("_menu_number")) { session_register("_menu_number"); } $current_sel = 0; if (chop($HTTP_GET_VARS["mi"]) != "") { $current_sel += chop($HTTP_GET_VARS["mi"]); if ($current_sel && $current_sel != $_menu_number) { $_menu_number = $current_sel; } } $onload_str = ""; if ($_menu_number != 0) { $onload_str = "onload=javascript:show('" . htmlentities($_menu_number) . "')"; } function show_discussion() { echo '<TR> <TD align=center><A href="/phorum/index.php?mi=7"><img src="images/discussion.jpg" border=0></A></TD> </TR> <TR>