Commit 97976599 authored by Jean-Paul Saman's avatar Jean-Paul Saman

Remove deadcode.

The JavaScript version works while the PHP equivalent behaves differently. I have no clue why this is.
parent 199e1d2e
......@@ -206,33 +206,6 @@ if (intval($obj->timesheet_worked)) {
<option <?php if ($period->getMonth() == 12) echo "selected"; ?> value=<?php echo '"'. $newdate->getTime() .'"'; ?>><? echo dPformSafe('December'); ?></option>
</select>
<?php
// FIXME: FOR SOME STUPID REASON THE FOLLOWING IS NOT EXACTLY THE SAME AS THE ABOVE. ???
// echo '<select name="timesheet_period" size="1" class="text" onChange="periodChange();">';
// echo '<option '; if ($period->getMonth() == 1) echo "selected"; echo 'value="'. $newdate->getDate() .'">' . dPformSafe('January') . '</option>';
// $newdate->setMonth(2);
// echo '<option '; if ($period->getMonth() == 2) echo "selected"; echo 'value="'. $newdate->getDate() .'">' . dPformSafe('February') .'</option>';
// $newdate->setMonth(3);
// echo '<option '; if ($period->getMonth() == 3) echo "selected"; echo 'value="'. $newdate->getDate() .'">' . dPformSafe('March') . '</option>';
// $newdate->setMonth(4);
// echo '<option '; if ($period->getMonth() == 4) echo "selected"; echo 'value="'. $newdate->getDate() .'">' . dPformSafe('April') . '</option>';
// $newdate->setMonth(5);
// echo '<option '; if ($period->getMonth() == 5) echo "selected"; echo 'value="'. $newdate->getDate() .'">' . dPformSafe('May') . '</option>';
// $newdate->setMonth(6);
// echo '<option '; if ($period->getMonth() == 6) echo "selected"; echo 'value="'. $newdate->getDate() .'">' . dPformSafe('June') . '</option>';
// $newdate->setMonth(7);
// echo '<option '; if ($period->getMonth() == 7) echo "selected"; echo 'value="'. $newdate->getDate() .'">' . dPformSafe('July') . '</option>';
// $newdate->setMonth(8);
// echo '<option '; if ($period->getMonth() == 8) echo "selected"; echo 'value="'. $newdate->getDate() .'">' . dPformSafe('August') . '</option>';
// $newdate->setMonth(9);
// echo '<option '; if ($period->getMonth() == 9) echo "selected"; echo 'value="'. $newdate->getDate() .'">' . dPformSafe('September') . '</option>';
// $newdate->setMonth(10);
// echo '<option '; if ($period->getMonth() == 10) echo "selected"; echo 'value="'. $newdate->getDate() .'">' . dPformSafe('October') . '</option>';
// $newdate->setMonth(11);
// echo '<option '; if ($period->getMonth() == 11) echo "selected"; echo 'value="'. $newdate->getDate() .'">' . dPformSafe('November') . '</option>';
// $newdate->setMonth(12);
// echo '<option '; if ($period->getMonth() == 12) echo "selected"; echo 'value="'. $newdate->getDate() .'">' . dPformSafe('December') . '</option>';
// echo '</select>';
// FIXME: END OF STRANGENESS
} else {
if ($period->getMonth() == 1) echo dPformSafe('January');
else if ($period->getMonth() == 2) echo dPformSafe('February');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment