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. <html>
  2. <head>
  3. <title><?PHP if(isset($output['title'])) echo $output['title']; ?></title>
  4. <?PHP if(isset($output['des'])) echo $output['des']; ?>
  5. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
  6. <style>
  7. <style>
  8.     .cal-card:hover{
  9.     background-color: #FCFED8;    
  10.     }
  11.     .cal-card{
  12.     border: 1px solid #FEF0D8;    
  13.     }
  14.     .card{
  15.     overflow: hidden;
  16.     }
  17.     #search_panel {
  18.     text-align: center;    
  19.     padding: 20px;
  20.     }
  21.     .hed{
  22.     font-size: 62px;
  23.     font-weight: 700;
  24.     color: #287c90;
  25.     text-align: center;    
  26.     }
  27.     .le {
  28.     font-size: 18px;
  29.     text-align: center;    
  30.     color: #6B99A8;
  31.     }
  32.     .hedh{
  33.     font-size: 62px;
  34.     font-weight: 700;
  35.     color: #D21B1B;
  36.     text-align: center;    
  37.     }
  38.     .leh {
  39.     font-size: 18px;
  40.     text-align: center;    
  41.     color: #B96B6B;
  42.     }
  43.     .today {
  44.     background-color: #F6DDCC;
  45.     }
  46.     span {
  47.     color: #287c90;
  48.     }
  49.     .imgmoon{
  50.     position: absolute;
  51.     top: 0px;
  52.     right: 0px;
  53.     }
  54.     .imgm{
  55.     position: relative;
  56.     }
  57.     #result{
  58.     z-index: 999;
  59.     -webkit-box-shadow: 0px 0px 15px 5px rgba(255, 255, 100, .80);
  60.     -moz-box-shadow: 0px 0px 15px 5px rgba(255, 255, 100, .80);
  61.     }
  62.     .ib{
  63.     position: absolute;
  64.     bottom: 0px;
  65.     right: 1px;    
  66.     }
  67.     .imgTop {
  68.     display: block;
  69.     text-align: right;
  70.     }
  71.     </style>
  72. <?PHP if(isset($output['head'])) echo $output['head']; ?>
  73. <?PHP if(isset($output['style'])) echo $output['style']; ?>
  74. </head>
  75. <body>
  76. <div class="container">
  77.     <div class="row">
  78.         <div class="col-sm-12 col-md-12"><h1> Demo </h1></div>
  79.               <div class="col-sm-3"><div class="row"><div class="col-sm-12">
  80.                 <? 
  81.         if(isset($output['leftcontent']))
  82.         echo $output['leftcontent'];
  83.         ?>
  84.              </div></div></div>
  85.               <div class="col-sm-9"><div class="row"><div class="col-sm-12">
  86.                 <?  
  87.         if(isset($output['maincontent']))
  88.         echo $output['maincontent']; 
  89.         ?>
  90.                 
  91.                
  92.                 
  93.         <? 
  94.         if(isset($output['comment']))
  95.         echo $output['comment'];
  96.         ?>
  97.         </div></div></div>
  98.       </div>
  99. </div>
  100.     
  101. <footer class="footer">
  102.     <div class="container">
  103.         <div class="row">
  104.             <div class="col-sm-12 col-md-12">
  105.                 <p class="text-muted">&copy; 2015 Company Name  All right reserved. <span class="pull-right">yourdomain.com</span></p>
  106.             </div>
  107.         </div>
  108.     </div>
  109. </footer>    
  110. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0-alpha1/jquery.min.js"></script>
  111. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>    
  112. <?PHP if(isset($output['script'])) echo $output['script']; ?>
  113. </body>
  114. </html>

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