<form class="form-inline" action="<?= $filename ?>" method="post" autocomplete="off" name="punchang" class="form-horizontal" role="form">
<input type="hidden" name="task" value="65bb" />
<input type="hidden" name="1e6773fc1aff65bb637301114784c7b9" value="1" />
<div class="row">
<div class="form-group">
<select name="month" class="form-control" aria-required="true" />
<?php for($i=1;$i<13;$i++) : ?>
<?php if($month == date("F",strtotime("2000-$i-1")) ): ?>
<option selected ><?= date("F",strtotime("2000-$i-1")) ?></option>
<?php else: ?>
<option><?= date("F",strtotime("2000-$i-1")) ?></option>
<?php endif; ?>
<?php endfor ; ?>
</select>
<p class="help-block">Month</p>
</div>
<div class="form-group">
<select name="year" class="form-control" aria-required="true" />
<?php for($i=2000;$i<2030;$i++) : ?>
<?php if($year == $i) : ?>
<option selected ><?= $year ?></option>
<?php else: ?>
<option><?= $i ?></option>
<?php endif; ?>
<?php endfor ; ?>
</select>
<p class="help-block">Year</p>
</div>
<div class="form-group">
<input type="text" class="form-control" name="lat" placeholder="28.7041" value="<?= $lat ?>"/>
<p class="help-block">Latitude</p>
</div>
<div class="form-group">
<input type="text" class="form-control" name="lon" placeholder="77.1025" value="<?= $lon ?>"/>
<p class="help-block">Longitude</p>
</div>
<div class="form-group">
<input type="submit" class="btn btn-primary form-control" value="Go!" />
</div>
</div>
<div class="row">
<div id="result" class=" text-center"></div>
</div>
</form>
|