hjkhjkjhkhjkgjghjhgjhgjghjhghjghjhgjjnbvnvbnvk
bnmbnmbnhjkhjkhjkhjktyutyutyuytutyutyutyhgjgjghjgjghjguytutyry
/
home
/
anandaob
/
public_html
/
Upload FileeE
HOME
<?php require 'config/config.php'; $xmlcontent = simplexml_load_file('xml/home.xml'); ?> <!doctype html> <!--[if lt IE 7]> <html class="ie6 oldie"> <![endif]--> <!--[if IE 7]> <html class="ie7 oldie"> <![endif]--> <!--[if IE 8]> <html class="ie8 oldie"> <![endif]--> <!--[if gt IE 8]><!--> <html class=""> <!--<![endif]--> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Ananda UAE Wing</title> <link href="css/boilerplate.css" rel="stylesheet" type="text/css"> <link href="css/grid.css" rel="stylesheet" type="text/css"> <link rel="shortcut icon" href="img/logo.png"> <link rel="stylesheet" type="text/css" href="calender/css/calendar.css" /> <link rel="stylesheet" type="text/css" href="calender/css/custom_2.css" /> <script src="calender/js/modernizr.custom.63321.js"></script> <link href="css/main_nav.css" rel="stylesheet" type="text/css"> <?php $myfile = fopen("calender/js/data.js", "w"); $txt = "var codropsEvents = {\n"; fwrite($myfile, $txt); require 'config/connection.php'; $events_result = mysqli_query($connection,"SELECT DATE_FORMAT(date, '%m-%d-%Y') as d,title,id FROM events"); while($row = mysqli_fetch_array($events_result)) { $url = '"readmore.php?type=events&id='.$row['id'].'"'; $entry = "'".$row['d']."' : '<span><a href = ".$url.">".$row['title']."</a></span>',\n"; fwrite($myfile,$entry); } $txt = "};\n"; fwrite($myfile, $txt); fclose($myfile); ?> <!-- To learn more about the conditional comments around the html tags at the top of the file: paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ Do the following if you're using your customized build of modernizr (http://www.modernizr.com/): * insert the link to your js here * remove the link below to the html5shiv * add the "no-js" class to the html tags at the top * you can also remove the link to respond.min.js if you included the MQ Polyfill in your modernizr build --> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <script src="js/respond.min.js"></script> <script type="text/javascript" src="js/jquery-1.11.0.min.js"></script> <script type="text/javascript" src="js/nav_script.js"></script> <!-- EVENT CALENDER-----> <section class="main"></section> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> <script type="text/javascript" src="calender/js/jquery.calendario.js"></script> <script type="text/javascript" src="calender/js/data.js"></script> <script type="text/javascript"> $(function() { var transEndEventNames = { 'WebkitTransition' : 'webkitTransitionEnd', 'MozTransition' : 'transitionend', 'OTransition' : 'oTransitionEnd', 'msTransition' : 'MSTransitionEnd', 'transition' : 'transitionend' }, transEndEventName = transEndEventNames[ Modernizr.prefixed( 'transition' ) ], $wrapper = $( '#custom-inner' ), $calendar = $( '#calendar' ), cal = $calendar.calendario( { onDayClick : function( $el, $contentEl, dateProperties ) { //alert("I am an alert box!"+$contentEl.length); if( $contentEl.length > 0 ) { showEvents( $contentEl, dateProperties ); } }, caldata : codropsEvents, displayWeekAbbr : true } ), $month = $( '#custom-month' ).html( cal.getMonthName() ), $year = $( '#custom-year' ).html( cal.getYear() ); $( '#custom-next' ).on( 'click', function() { cal.gotoNextMonth( updateMonthYear ); } ); $( '#custom-prev' ).on( 'click', function() { cal.gotoPreviousMonth( updateMonthYear ); } ); function updateMonthYear() { $month.html( cal.getMonthName() ); $year.html( cal.getYear() ); } // just an example.. function showEvents( $contentEl, dateProperties ) { hideEvents(); var $events = $( '<div id="custom-content-reveal" class="custom-content-reveal"><h4>Events for ' + dateProperties.monthname + ' ' + dateProperties.day + ', ' + dateProperties.year + '</h4></div>' ), $close = $( '<span class="custom-content-close"></span>' ).on( 'click', hideEvents ); $events.append( $contentEl.html() , $close ).insertAfter( $wrapper ); setTimeout( function() { $events.css( 'top', '0%' ); }, 25 ); } function hideEvents() { var $events = $( '#custom-content-reveal' ); if( $events.length > 0 ) { $events.css( 'top', '100%' ); Modernizr.csstransitions ? $events.on( transEndEventName, function() { $( this ).remove(); } ) : $events.remove(); } } }); </script> <!--slider--> <link href="css/slider.css" rel="stylesheet" type="text/css" media="all"/> <script type="text/javascript" src="js/jquery.easing.min.js"></script> <script type="text/javascript" src="js/jquery.easy-ticker.js"></script> <!script type="text/javascript" src="js/jquery-1.9.0.min.js"--><!/script--> <script type="text/javascript" src="js/jquery.nivo.slider.js"></script> <script type="text/javascript"> $(window).load(function() { $('#slider').nivoSlider(); }); $(document).ready(function(){ var dd = $('.vticker').easyTicker({ direction: 'up', easing: 'easeInOutBack', speed: 'slow', interval: 4000, height: 'auto', visible: 5, mousePause: 0, controls: { up: '.up', down: '.down', toggle: '.toggle', stopText: 'Stop !!!' } }).data('easyTicker'); cc = 1; $('.aa').click(function(){ $('.vticker ul').append('<li>' + cc + ' Triangles can be made easily using CSS also without any images. This trick requires only div tags and some</li>'); cc++; }); $('.vis').click(function(){ dd.options['visible'] = 3; }); $('.visall').click(function(){ dd.stop(); dd.options['visible'] = 0 ; dd.start(); }); }); </script> <link rel="stylesheet" href="css/jquery-ui.css"> <script src="js/jquery-ui.js"></script> <link rel="stylesheet" href="assets/css/style.css"> <script> $(function() { $( "#news1" ).dialog({ autoOpen: false, show: { effect: "blind", duration: 1000 }, hide: { effect: "explode", duration: 1000 } }); $( "#opener1" ).click(function() { $( "#news1" ).dialog( "open" ); }); }); $(function() { $( "#news2" ).dialog({ autoOpen: false, show: { effect: "blind", duration: 1000 }, hide: { effect: "explode", duration: 1000 } }); $( "#opener2" ).click(function() { $( "#news2" ).dialog( "open" ); }); }); $(function() { $( "#news3" ).dialog({ autoOpen: false, show: { effect: "blind", duration: 1000 }, hide: { effect: "explode", duration: 1000 } }); $( "#opener3" ).click(function() { $( "#news3" ).dialog( "open" ); }); }); $(function() { $( "#news4" ).dialog({ autoOpen: false, show: { effect: "blind", duration: 1000 }, hide: { effect: "explode", duration: 1000 } }); $( "#opener4" ).click(function() { $( "#news4" ).dialog( "open" ); }); }); $(function() { $( "#news5" ).dialog({ autoOpen: false, show: { effect: "blind", duration: 1000 }, hide: { effect: "explode", duration: 1000 } }); $( "#opener5" ).click(function() { $( "#news5" ).dialog( "open" ); }); }); </script> <script> $(document).ready(function () { $('#zoomIn').on('click', function () { document.body.style.zoom="120%" }); $('#zoomToNormal').on('click', function () { document.body.style.zoom="100%" }); $('#zoomOut').on('click', function () { document.body.style.zoom="80%" }); }); </script> <script src="https://kit.fontawesome.com/153cbfef63.js"></script> </head> <body id="body"> <img class="bg" src="img/collegebkg.jpg"/> <div class="gridContainer clearfix"> <?php require 'menus/header.php'; ?> <?php require 'menus/top_navigation.php'; ?> <?php require 'menus/top_image_slider.php'; ?> <div id="usefulLinks"> <?php require 'mottobar.php'; ?> <!----------------- End of Body braker content---------------------> </div> <!---------------------------------------------------------------------------------------------------- MAIN BODY CONTAINER -----------------------------------------------------------------------------------------------------> <div id="mainbodyContainer"> <!----------------------------------------------- COLUMN 01 -----------------------------------------------> <div id="" style="margin-left: 18px;"> <div id="aboutcontainer"> <div class="headingsep"> <h2>Events</h2> </div> <br> <div id="eventscontainer"> <?php require 'config/connection.php'; $per_page_record = 2; // Number of entries to show in a page. // Look for a GET variable page if not found default is 1. if (isset($_GET["page"])) { $page = $_GET["page"]; } else { $page=1; } $start_from = ($page-1) * $per_page_record; $query = "SELECT * FROM events LIMIT $start_from, $per_page_record"; $rs_result = mysqli_query ($connection, $query); $events_result = mysqli_query($connection,"SELECT * FROM events"); while($row = mysqli_fetch_array($rs_result)) { //foreach ($xmlcontent->events as $info){ //foreach ($info as $eventinfo){ ?> <br> <div id="eventsheading"> <h2><?php echo $row['title']; ?></h2> </div><!----------------End of eventsheading------------------------------> <div id="eventsdatecontainer"> <span><?php $date = date_create($row['date']); echo date_format($date, "F jS Y"); ?></span> </div><!-----------------End of eventsdatecontainer----------------------> <p> </p> <style> .col_4{ width: 50%; height: auto; display: block; margin-left: auto; margin-right: auto; } table { border-collapse: collapse; } .inline{ display: inline-block; float: right; margin: 20px 0px; } input, button{ height: 34px; } .pagination { display: inline-block; } .pagination a { font-weight:bold; font-size:18px; color: black; float: left; padding: 8px 16px; text-decoration: none; border:1px solid black; } .pagination a.active { background-color: pink; } .pagination a:hover:not(.active) { background-color: skyblue; } </style> <div class="col_4"> <?php $events_images = mysqli_query($connection,"SELECT image,id FROM images where fk_content_id=".$row['id']." and content_type='events'"); while($rowimg = mysqli_fetch_array($events_images)) { echo "<center><img src='".UPLOAD_IMAGE_PATH_EVENTS.$rowimg['image']."'/></center><br><br>"; } ?> </div> <div id="eventscontent"> <p><?php echo $row['content']; ?> </p> <br> </div><!--------------------End of eventscontent--------------------------------> <?php } // }} ?> <!--======================pagination=======================--> <div class="pagination"> <?php $query = "SELECT COUNT(*) FROM events"; $rs_result = mysqli_query($connection, $query); $row = mysqli_fetch_row($rs_result); $total_records = $row[0]; echo "</br>"; // Number of pages required. $total_pages = ceil($total_records / $per_page_record); $pagLink = ""; if($page>=2){ echo "<a href='events.php?page=".($page-1)."'> Prev </a>"; } for ($i=1; $i<=$total_pages; $i++) { if ($i == $page) { $pagLink .= "<a class = 'active' href='events.php?page=" .$i."'>".$i." </a>"; } else { $pagLink .= "<a href='events.php?page=".$i."'> ".$i." </a>"; } }; echo $pagLink; if($page<$total_pages){ echo "<a href='events.php?page=".($page+1)."'> Next </a>"; } ?> </div> <div class="inline"> <input id="page" type="number" min="1" max="<?php echo $total_pages?>" placeholder="<?php echo $page."/".$total_pages; ?>" required> <button onClick="go2Page();">Go</button> </div> <script> function go2Page() { var page = document.getElementById("page").value; page = ((page><?php echo $total_pages; ?>)?<?php echo $total_pages; ?>:((page<1)?1:page)); window.location.href = 'events.php?page='+page; } </script> <!--======================pagination========================--> <!-- <ul class="pagination"> <li><a href="?pageno=1">First</a></li> <li class="<?php if($pageno <= 1){ echo 'disabled'; } ?>"> <a href="<?php if($pageno <= 1){ echo '#'; } else { echo "?pageno=".($pageno - 1); } ?>">Prev</a> </li> <li class="<?php if($pageno >= $total_pages){ echo 'disabled'; } ?>"> <a href="<?php if($pageno >= $total_pages){ echo '#'; } else { echo "?pageno=".($pageno + 1); } ?>">Next</a> </li> <li><a href="?pageno=<?php echo $total_pages; ?>">Last</a></li> </ul> --> </div><!-------------------End of eventscontainer------------------------------------> </div> <!-------------------- End of aboutcontainer--------------------------------> </div><!------------End of Column1----------------> <!----------------------------------------------- COLUMN 02 -----------------------------------------------> </div> <!---------------------End of Main Body Container------------------------------> <!----------------------------------------------- SIDE BAR CONTAINER -----------------------------------------------> <div id="sidebarcontainer"> <div id="sidebarsep01"> <div id="EventsCalender"> <div class="headingsep"> <h2>Events Calender</h2> </div> <div class="custom-calendar-wrap"> <div id="custom-inner" class="custom-inner"> <div class="custom-header clearfix"> <nav> <span id="custom-prev" class="custom-prev"></span> <span id="custom-next" class="custom-next"></span> </nav> <h2 id="custom-month" class="custom-month"></h2> <h3 id="custom-year" class="custom-year"></h3> </div> <br> <div id="calendar" class="fc-calendar-container"></div> </div> </div> <br> </div><!--------------------- End of EventsCalender------------------------------> <div id="sidebtn"> <br> <br> </div><!------------------- End of sidebtn--------------------------------------------> </div> <!---------------End of sidebarsep01---------------> <div id="sidebarsep02"> <!-- <?php if (isset($_GET['pageno'])) { $pageno = $_GET['pageno']; } else { $pageno = 1; } $no_of_records_per_page = 10; $offset = ($pageno-1) * $no_of_records_per_page; $total_pages_sql = "SELECT COUNT(*) FROM events"; $result = mysqli_query($conn,$total_pages_sql); $total_rows = mysqli_fetch_array($result)[0]; $total_pages = ceil($total_rows / $no_of_records_per_page); $sql = "SELECT * FROM table LIMIT $offset, $no_of_records_per_page"; $res_data = mysqli_query($conn,$sql); while($row = mysqli_fetch_array($res_data)){ //here goes the data } ?> --> </div> <!------------------End of sidebarsep02--------------> </div><!--------------------- End of Side Bar Container--------------------------> <?php require 'menus/top_links.php'; ?> <?php require 'menus/footer_links.php'; ?> </div><!--------------------------End of gridContainer clearfix-------------------------> </body> </html>