コード例 #1
0
ファイル: mySchedule.php プロジェクト: atrommer/ESS
                ?>
				  	<td><table border="0" cellpadding="2" class="contactInfo">
				  	<tr><td colspan=2><strong><?php 
                echo $Pos->pos_name;
                ?>
</strong></td></tr><?php 
                $bRow = true;
                $oEventEmps = getEventEmps($Sched->event_id, $Pos->pos_id);
                if (count($oEventEmps)) {
                    // we have emps, display them
                    foreach ($oEventEmps as $Emp) {
                        $bRow = !$bRow;
                        print "<tr><td>";
                        if ($_SESSION['USERTYPE'] > 1) {
                            // grab override data if super or higher
                            $oMatch = checkEmpConflict($Sched->event_start, $Sched->event_end, $sDay, $Emp->user_id, $Sched->event_date);
                            if (!count($oMatch)) {
                                ?>
			  						* <?php 
                            }
                            ?>
			  					<a href="viewSched.php?user=<?php 
                            echo $Emp->user_id;
                            ?>
&amp;doPop=1" target=_blank title="Click for availibility">
				  				<?php 
                            echo $Emp->user_first . ' ' . $Emp->user_last;
                            ?>
</a>
				  			<?php 
                        } else {
コード例 #2
0
ファイル: editSchedDetails.php プロジェクト: atrommer/ESS
<tr class="contactInfoName"><td width=50%>Name</td><td colspan="<?php 
echo count($oAreaPos) + 1;
?>
" align=center>Assignments</td></tr>
<tr class="contactInfoName"><td>&nbsp;</td><td>None</td>
<?php 
foreach ($oAreaPos as $Pos) {
    print "<td align=center>{$Pos->pos_name}</td>\n";
}
?>
</tr>
<?php 
foreach ($oMyEmps as $Emp) {
    //check avail
    print "<tr ";
    $oMatch = checkEmpConflict($dStart, $dEnd, $sDay, $Emp->user_id, $dDate);
    if (count($oMatch)) {
        print "class=\"empAvail\"";
    } else {
        print "class=\"empNotAvail\"";
    }
    print ">\n\t<td>\n\t\t<a href=\"viewSched.php?user={$Emp->user_id}&amp;doPop=1\" target=_blank title=\"Click for availibility\">{$Emp->user_first} {$Emp->user_last}</a>\n\t</td>\n";
    // now do the positions
    print "\t<td align=center><input type=radio name=rad{$Emp->user_id} value=0 checked></td>\n";
    $oAreaPos = getAreaPos($_REQUEST[area]);
    foreach ($oAreaPos as $Pos) {
        // first, we check to see if the user is already assigned to the current pos
        // this only happens on an existing event, obviously
        $sChecked = null;
        if ($_POST['event_id']) {
            if (checkEventPos($Emp->user_id, $_POST['event_id'], $Pos->pos_id)) {