// $Id: emailEmps.php,v 1.3 2005/10/30 22:37:19 atrommer Exp $ checkUser($_SESSION['USERTYPE'], 1); // check for postback if ($_POST['isPostback']) { emailEmps($_POST, $_SESSION['USERID']); redirect(); } // grab based on usertype // if >= super, get owned emps and all supers // otherwise, only coworkers on parents if ($_SESSION['USERTYPE'] > 1) { // get super case $oMyEmps = getMyEmployees($_SESSION['USERID']); $oSupers = getSupervisors(); } else { $oMyEmps = getMyCowork($_SESSION['USERID']); $oSupers = getMySupers($_SESSION['USERID']); } doHeader("Bulk Email"); ?> Please enter the subject, body, and select all or some of the employees you would like to email. <br/> <form name="frmEmail" action="emailEmps.php" method="post"> <input type="hidden" name="isPostback" value="1"> <table border="0" cellpadding="1" cellspacing="0" width="100%" class="contactInfo"> <tr> <td colspan=4 class="contactInfoName">Employees:</td> </tr> <?php // first show the emps // we want to only show 4 emps a line, so we'll hit another <tr> on 4
* it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ // $Id: myCoworkers.php,v 1.2 2005/10/30 22:37:19 atrommer Exp $ checkUser($_SESSION['USERTYPE'], 1); $aEmployees = getMyCowork($_SESSION['USERID']); doHeader("My Coworkers"); if (!count($aEmployees)) { // we have no coworkers print "<br><i>You currently share no shifts with other employees</i><br>"; } else { foreach ($aEmployees as $emp) { $aPhone1 = formatPhoneNum($emp->user_phone1); $aPhone2 = formatPhoneNum($emp->user_phone2); ?> <hr align="left"> <table width="100%" border="0" cellpadding="2" class="contactInfo"> <tr> <td class="contactInfoName" colspan="2"><?php echo "{$emp->user_first} {$emp->user_last}"; ?>