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. <div class="row">
  2. <div class="col-md-12">
  3. <h1 class="text-info text-center">Panchang Calendar <?= $month ?><?= $year ?></h1>
  4. <div id="search_panel">
  5. <?= $form ?>
  6. </div>
  7. </div>
  8. </div>
  9. <div class="row">
  10. <div class="col-md-12">
  11. <div class="row">
  12. <? foreach($data as $k=>$v) : ?>
  13. <div class="col-md-4 cal-card <?php echo ($day == $k) ? 'today':''?>">
  14. <div class="row">
  15. <div class="col-md-3">
  16. <?= $v['day'?>
  17. </div>
  18. <div class="col-md-9">
  19. <div class="imgTop"><img  width="40px" height="40px" alt="moon Phase <?= $v['paksh'?>" src="./moon/<?= $v['img'?>.jpg"/></div>
  20. <p class="text-right"><?= $v['tithi'?><br><?= $v['text'?></p>
  21. </div>
  22. </div>
  23. </div>
  24. <? endforeach; ?>
  25. </div>
  26. </div> 
  27. </div> 

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