PHP PROJECT

README.md

Panchang Calendar

This page provides daily panchang for most cities in the world. Tithi, Nakshtra, Sunrise, Sunset, Rahukaal, Yamghanda, Gulika...

Files


NameTypeSizeLast Modified
form.php phpfile icon 1611 04 February 2017 01:20:20
template.php phpfile icon 2622 04 February 2017 00:56:48
example.php phpfile icon 181 04 February 2017 01:46:30
moon directory icon 4096 31 March 2017 08:37:28
panchang_calendar_V1.php phpfile icon 15448 04 February 2017 22:15:30
cal.php phpfile icon 735 04 February 2017 00:50:10

Source

  1. <form class="form-inline" action="<?= $filename ?>" method="post" autocomplete="off" name="punchang"  class="form-horizontal" role="form">
  2. <input type="hidden" name="task" value="65bb" />
  3. <input type="hidden" name="1e6773fc1aff65bb637301114784c7b9" value="1" />
  4. <div class="row">
  5. <div class="form-group">
  6. <select name="month" class="form-control" aria-required="true" />    
  7. <?php for($i=1;$i<13;$i++) : ?>
  8. <?php if($month == date("F",strtotime("2000-$i-1")) ): ?>
  9. <option selected ><?= date("F",strtotime("2000-$i-1")) ?></option>
  10. <?php else: ?>
  11. <option><?= date("F",strtotime("2000-$i-1")) ?></option>
  12. <?php endif; ?>
  13. <?php endfor ; ?>
  14. </select>
  15. <p class="help-block">Month</p>
  16. </div>    
  17.  <div class="form-group">    
  18. <select name="year" class="form-control" aria-required="true" />    
  19. <?php for($i=2000;$i<2030;$i++) : ?>
  20. <?php if($year == $i) : ?>
  21. <option selected ><?= $year ?></option>
  22. <?php else: ?>
  23. <option><?= $i ?></option>
  24. <?php endif; ?>
  25. <?php endfor ; ?>
  26. </select>
  27. <p class="help-block">Year</p>
  28. </div>    
  29.  <div class="form-group">                
  30.  <input type="text" class="form-control" name="lat" placeholder="28.7041" value="<?= $lat ?>"/>    
  31.  <p class="help-block">Latitude</p>
  32. </div>
  33. <div class="form-group">                
  34.  <input type="text" class="form-control" name="lon" placeholder="77.1025" value="<?= $lon ?>"/>    
  35.  <p class="help-block">Longitude</p>
  36. </div>
  37. <div class="form-group">    
  38. <input type="submit"  class="btn btn-primary form-control" value="Go!" />    
  39. </div>
  40. </div>
  41. <div class="row">
  42.  <div id="result" class=" text-center"></div>
  43. </div>        
  44. </form>

Demo

You can find a demo available here: panchang calendar

Requirment

  • mySql
  • PHP >= 5.4
  • Apache Server

Contribute

  • Vishv Sahdev

Example

  1. <?
  2. include "panchang_calendar_V1.php";
  3. define("LINK","http://localhost/panchang_calendar/");
  4. date_default_timezone_set('Asia/Kolkata');
  5. $n=new panchang_calendar_V1;
  6. $n->pc();

>>

Download