var id = $(this).parent().attr('id'); var query = "id="+id; $.get('delete.php',query,function() { $('#'+id).fadeOut(); }); });//end delete click $('.edit').click( function() { var id = $(this).parent().attr('id'); var query = 'id='+id; $(location).attr('href','edit.php?'+query); });//end edit click });//end ready </script> <?php } else { log_in_form(); ?> <script> $(document).ready( function() { $('#adminlogin').submit( function() { var query = $(this).serialize(); $.post('logsx.php',query,function(data) { if(data == "success") { document.write("Log In Successful"); var href='index.php'; $(location).attr('href',href); } else alert("Log in Failed. Please Try Again"); }); //end Ajax call
</a> </li>'; $mm2_options = array('before' => $before, 'after' => $after); mobile_menu($mm2_options); ?> <!-- Start of Member Login Modal --> <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h4 class="modal-title" id="myModalLabel">Member Log In</h4> </div> <div class="modal-body"> <? echo log_in_form($log_in_options_array); ?> </div> </div> </div> </div><!-- End of Member Login Modal --> <? echo mobile_menu($option_array); ?> <div class="container"> <div class="row"> <div class="header"> <div class="row">