Esempio n. 1
0
	</table>

</div>
</div>
</DIV>

<br />
<div id="dialog-form" title="Create/Edit New DO">
<form id="do">
	<h2> Create/Edit New DO</h2>
<table border="0" id="dataTable">
	
	<tr>
		<td>Delivery Date:</td>
		<td><input type="text" id="date" name="date" class="datechooser dc-dateformat='Y-m-d' dc-iconlink='js/datechooser/datechooser.png' dc-weekstartday='1' dc-latestdate='<?php 
echo getEndDate();
?>
' dc-earliestdate='<?php 
echo getStartDate();
?>
' dc-onupdate='FunctionEx6'" value="<?php 
echo $_POST['date'];
?>
" /></td>
	</tr>
	<tr>
		<td>DO Number:</td>
		<td><input type="text" id="do_id" name="do_id" value="" /></td>
	</tr>
	<tr>
		<td>Project Name:</td>
        } catch (Exception $e) {
            return $e->getMessage();
        }
    } else {
        // default to last day of this month
        $dateArr = getdate();
        $endDate->setDate($dateArr['year'], $dateArr['mon'] + 1, 0);
    }
    return $endDate;
}
$error = '';
$message = '';
// set default vars
// Set budget date to first day of month
$startDate = getStartDate();
$endDate = getEndDate();
$doAutoSink = false;
if (isset($_POST['prev_month'])) {
    // go back one month
    $dateArr = getdate($startDate->getTimestamp());
    // first day of last month to last day of last month
    $startDate->setDate($dateArr['year'], $dateArr['mon'] - 1, 1);
    $endDate->setDate($dateArr['year'], $dateArr['mon'], 0);
    // 		$interval = new DateInterval('P1M');
    // 		$interval->invert = 1;
    // 		$startDate->add($interval);
    // 		$endDate->add($interval);
} elseif (isset($_POST['next_month'])) {
    // forward one month
    $dateArr = getdate($startDate->getTimestamp());
    // first day of next month to last day of next month
Esempio n. 3
0
				
			} 
			?>
		</td>
		<td valign="top">
                        <? if($row["userRole"] == 3) {?>
                                <a href="/whoisyourmaster/usrlist.php?securitycode=<?=$param?>&amp;userid=<?=$row["userID"]?>"><?= $row["userName"]?></a>
                        <? }else{
				echo "[No Moderator]";
                        } 
                        ?>


			</td>
		<td valign="top">
			<? $endDateTime = getEndDate($row["dateTime"], $row["userID"]) ?>
			<a href="/whoisyourmaster/msglist.php?securitycode=<?=$param?>&amp;roomid=0&amp;from=<?= urlencode($row["dateTime"])?>&amp;to=<?= urlencode($endDateTime) ?>">
			<?= $row["dateTime"]?>
			</a>
		</td>
		<td valign="top">
                        <a href="/whoisyourmaster/msglist.php?securitycode=<?=$param?>&amp;roomid=0&amp;from=<?= urlencode($row["dateTime"])?>&amp;to=<?= urlencode($endDateTime) ?>">
                        <?= $endDateTime?>
                        </a>
			
		</td>
		<td valign="top">
			<table cellspacing="0" cellpadding="0" border="0">
			</table>
		</td>
	</tr>