if($i<=$num) { echo "<a id='$year-$month-$i' href='javascript: void(0)' onclick='viewhomework($i,$month,$year);highlight($firstday,$num,$i,$month,$year);'>"; echo $i; echo "</a>"; $i++; } echo "</td>"; } echo "</tr>"; } ?> </table> <? } $monthyear=$_REQUEST['monthyear']; $monthyeararr=explode(',',$monthyear); $month=$monthyeararr[0]; $year="20".$monthyeararr[1]; $num = cal_days_in_month(CAL_GREGORIAN, $month, $year); $getmonthname=getmonth($month); $firstday=firstDayOfMonth($getmonthname,$year); //echo 'First day of the month: ' . date('m/d/y h:i a',(strtotime('this month',strtotime(date('m/01/y'))))); displaycalendar($num,$firstday,$month,$year); ?>
<?php header("Refresh:120"); //check history every 2 minutes include './includes/functions.php'; $datepickedup = pickurldate(); echo htmlheader("Follo • Dashboard", "./includes/main.css"); echo topbar("."); $cardevents = "https://api.trello.com/1/boards/561228dc16f33267799133c3/actions?filter=updateCard,moveCardToBoard,createCard,deleteCard&limit=500&key=65c83fd020db39e2027c509a67587125&token=d8cfaa1f1f58a0e0b7d34befc2952cc26352a3e97c948bd9f80243377f98654e"; if (!empty(fetchdataonapi($cardevents))) { $obj = json_decode(fetchdataonapi($cardevents)); echo "<div id='subtopbar'><center><h2>Dashboard : " . $obj[0]->data->board->name . "</h2> Last update at " . date(H . '\\h' . i . '\\m' . s . '\\s') . "<br><br>• "; displaycalendar(); echo "</center></div>"; ?> <div id="pagecontent"> <img id="loader" src="./includes/img/infinity.gif"/>; <div id="table"> <table border="0" id="tablecontainer"> <?php foreach ($obj as $event) { $numberofapireturn = $numberofapireturn + 1; if (findadate($event->date, $datepickedup[0], $datepickedup[1], $datepickedup[2]) == 1) { if ($event->type == "updateCard") { if (isset($event->data->listAfter)) { $updateCardCounter = $updateCardCounter + 1; echo "<tr bgcolor='#DDF0ED'><td><img width='17px' height='17px' src='./includes/img/moved.png'></td>"; echo "<td align='center' width='120px'>" . datetreatment($event->date) . "</td>"; echo "<td align='right' width='120px'><b>" . $event->memberCreator->fullName . "</b></td>"; echo "<td width='500px'><a href=https://trello.com/c/" . $event->data->card->shortLink . " target=_blank>" . $event->data->card->name . "</a></td>"; echo "<td align='center' width='130px'><b>From</b> : " . $event->data->listBefore->name . "</td>";