kohjhjhصثقص5572hjkhk7872ثقصثقgdfgdg
Ele57885fddfg872782782782 hjkhj782dfgfghgقفغفغفقhfg555434536
/
home4
/
kisgavwq
/
kameshwarcollege.ac.in
/
Upload FileeE
HOME
<?php //index.php session_start(); require_once("includes/settings.php"); require_once("includes/database.php"); require_once("includes/classes/db.cls.php"); require_once("includes/classes/sitedata.cls.php"); require_once("includes/functions/common.php"); require_once("includes/classes/Pages.cls.php"); require_once("includes/classes/DBquery.cls.php"); require_once("includes/classes/Menus.cls.php"); $db = new SiteData(); $pageObj = new Pages(); $menuObj = new Menus(); $Dbqur = new dbquery(); $conn = mysqli_connect(SYSTEM_DBHOST,SYSTEM_DBUSER,SYSTEM_DBPWD,SYSTEM_DBNAME); $project_sql = mysqli_query($conn, "select * from tbl_homecontent where id = 1 "); $hedrow = mysqli_fetch_array($project_sql); if(isset($_GET['page'])){ $url = filter($_REQUEST['page']); $res = $pageObj->getPageByUrl($url); $total = $res['NO_OF_ITEMS']; $page_name = stripslashes($res['oDATA'][0]['page_name']); $page_contents = stripslashes($res['oDATA'][0]['page_contents']); $page_type = stripslashes($res['oDATA'][0]['page_type']); $page_title = stripslashes($res['oDATA'][0]['page_title']); $page_metadesc = stripslashes($res['oDATA'][0]['page_metadesc']); $page_metakeywords = stripslashes($res['oDATA'][0]['page_metakeywords']); if($total == 0){redirect(SITE_HOME."index.php");} } function word_limiter($str, $limit = 100, $end_char = '…') { if (trim($str) == '') { return $str; } preg_match('/^\s*+(?:\S++\s*+){1,' . (int) $limit . '}/', $str, $matches); if (strlen($str) == strlen($matches[0])) { $end_char = ''; } return rtrim($matches[0]) . $end_char; } $get_events_sql = mysqli_query($conn,"select * from events where status=1 order by from_date asc"); $start = strtotime('12:00am'); $end = strtotime('11:59pm'); if (mysqli_num_rows($get_events_sql) > 0) { $c = 0; while ($task_row = mysqli_fetch_assoc($get_events_sql)) { $event_arr['events'][$c]['id'] = $task_row['id']; $fdate = explode($task_row['from_date'], " "); $tdate = explode($task_row['to_date'], " "); $event_arr['events'][$c]['start'] = $task_row['from_date']; $event_arr['events'][$c]['end'] = $task_row['to_date']; $event_arr['events'][$c]['title'] = "<h4>" . strip_tags($task_row['event_title']) . "</h4>" . word_limiter(strip_tags($task_row['description']), 20); //<h4>Lorem ipsum dolor sit amet</h4> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam non dui elit. Pellentesque habitant morbi tristique senectus et netus et malesuada $event_arr['events'][$c]['price'] = $task_row['price']; $event_arr['events'][$c]['description'] = $task_row['description']; //$event_arr['events'][$c]['hosted_by'] = $task_row['hosted_by']; $event_arr['events'][$c]['address'] = $task_row['address']; $event_arr['events'][$c]['display_datetime'] = date("F d,Y", strtotime($task_row['from_date'])) . " - " . date("F d,Y", strtotime($task_row['to_date'])); $event_arr['events'][$c]['color_code'] = $task_row['color_code']; $c++; } } $json_events = json_encode($event_arr);?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Kameshwar College of Education | B.Ed. M.Ed. College Ahmedabad, India</title> <meta name="keywords" content="Kameshwar College of Education | B.Ed. M.Ed. College Ahmedabad, India" /> <meta name="description" content="Kameshwar College of Education | B.Ed. M.Ed. College Ahmedabad, India" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" /> <meta name="copyright" content="Copyright 2020 Kameshwar College of Education"/> <meta name="ROBOTS" content="index,follow"/> <meta name="revisit-after" content="3 days"/> <meta name="document-classification" content="Kameshwar College of Education | B.Ed. M.Ed. College Ahmedabad, India"/> <meta name="publisher" content="#"/> <meta name="author" content="#"/> <meta name="copyright" content="# "/> <meta name="language" content="en-us"/> <meta name="distribution" content="GLOBAL"/> <meta name="geo.region" content="INDIA"/> <meta name="geo.placename" content="Gandhinagar, Gujarat"/> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" /> <?php include("css.php");?> </head> <body> <div id="page"> <!-- Top Bar --> <?php include("header.php");?> <div class="page-header"> <div class="container"> </div> <div class="breadcrumb-box"> <div class="container"> <div class="section-title text-left animated fadeInUp visible" data-animation="fadeInUp"> <h2 class="title">Holiday Calendar</h2> </div> </div> </div> </div> <!-- slider --> <section id="additional" class="page-section"> <div class="container"> <div class="container"> <div class="row"> <div class="col-md-12" > <script type="text/javascript" src="js/jquery-1.4.4.js"></script> <link href='fullcalendar/fullcalendar.css' rel='stylesheet' /> <link href='fullcalendar/custom.css' rel='stylesheet' /> <link href='fullcalendar/fullcalendar.print.css' rel='stylesheet' media='print' /> <style> #calendar .fc-sun { background: #ffcc00; } </style> <script type="text/javascript" > $(document).ready(function () { var date = new Date(); var d = date.getDate(); var m = date.getMonth(); var y = date.getFullYear(); $('#calendar').fullCalendar({ header: { left: 'prev,title,next', right: '' }, editable: false, events: JSON.parse('<?php echo $json_events ?>'), eventMouseover: function (calEvent, jsEvent) { var tooltip = '<div id="tooltip" class="tooltipevent" style="position:absolute;z-index:10001;">' + calEvent.title + '<br/>' + calEvent.display_datetime + '<br/> ' + calEvent.address + '</div>'; $("body").append(tooltip); $(this).mouseover(function (e) { $(this).css('z-index', 10000); $('.tooltipevent').fadeIn('500'); $('.tooltipevent').fadeTo('10', 1.9); }).mousemove(function (e) { $('.tooltipevent').css('top', e.pageY + 10); $('.tooltipevent').css('left', e.pageX + 20); }); }, eventMouseout: function (calEvent, jsEvent) { $("#tooltip").remove(); }, dayClick: function (date, allDay, jsEvent, view) { //alert(date); }, eventClick: function (calEvent, jsEvent, view) { $(this).css('border-color', 'red'); }, eventRender: function (calEvent, $event) { //alert(calEvent+"++++++"+$event+"----"+calEvent.color_code); if (calEvent.end.getTime() >= new Date().getTime()) { $event.css("backgroundColor", calEvent.color_code); $event.css("height", "80px"); $event.find(".time").css({"backgroundColor": calEvent.color_code, "border": "1px solid #888"}); } if (calEvent.end.getTime() < new Date().getTime()) { $event.css("height", "80px"); $event.css("backgroundColor", calEvent.color_code); $event.find(".time").css({"backgroundColor": calEvent.color_code, "border": "1px solid #888"}); } } }); }); </script> <div class="col-xs-19"> <div class="calender_top"> <div class="event_colour_btn"> <div class="event_box8"> Holiday <br/> <img src="images/event_colour_04.png" alt="" /> </div> <div class="event_box2"> Celebration <br/> <img src="images/event_colour_02.png" alt="" /> </div> </div> </div> <div id='calendar'></div> </div> </div> </div> </div> </div> <div class="clearfix"></div> </section> <?php include("footer.php"); ?> <!-- footer --> </div> <?php include("js.php");?> </body> </html>