File: form.php

Recommend this page to a friend!
  Classes of Vishv Sahdev  >  Panchang Calendar  >  form.php  >  Download  
File: form.php
Role: Auxiliary script
Content type: text/plain
Description: template file
Class: Panchang Calendar
Display the astrological Panchang calendar
Author: By
Last change:
Date: 3 years ago
Size: 1,611 bytes
 

 

Contents

Class file image Download

<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>


For more information send a message to info at phpclasses dot org.