wrcspkkit

share.php

May 5th, 2016
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 4.05 KB | None | 0 0
  1. <?php
  2. session_start();
  3. if ($_SESSION['user_logged_in'] == ''){
  4. header('location: login.html');
  5. }
  6. ?>
  7. <html>
  8. <head>
  9. <title>.::PkKit::.</title>
  10. <!-- BootStrap -->
  11.  
  12. <!-- Latest compiled and minified CSS -->
  13. <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
  14.  
  15. <!-- jQuery library -->
  16. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
  17.  
  18. <!-- Latest compiled JavaScript -->
  19. <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
  20.  
  21. <meta name="viewport" content="width=device-width, initial-scale=1">
  22.  
  23. <link rel="stylesheet" href="style.css" type="text/css" />
  24. <link href='https://fonts.googleapis.com/css?family=Roboto+Slab:400,100,300,700|Lato:400,100,300,700,900' rel='stylesheet' type='text/css'>
  25.  
  26.     <link rel="stylesheet" href="css/animate.css">
  27.    
  28.     <link rel="stylesheet" href="css/style.css">
  29.  
  30.     <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
  31.     <script src="gen_validatorv4.js" type="text/javascript"></script>
  32. </head>
  33.  
  34.  
  35.  
  36. <body>
  37.  
  38. <nav class="navbar navbar-inverse">
  39.   <div class="container-fluid">
  40.     <div class="navbar-header">
  41.       <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
  42.         <span class="icon-bar"></span>
  43.         <span class="icon-bar"></span>
  44.         <span class="icon-bar"></span>
  45.       </button>
  46.       <a class="navbar-brand" href="#">PKKIT</a>
  47.     </div>
  48.     <div class="collapse navbar-collapse" id="myNavbar">
  49.       <ul class="nav navbar-nav">
  50.         <li class="active"><a href="myphotos.php">My Photos</a></li>
  51.         <li><a href="aboutus.php">About Us</a></li>
  52.         <li><a href="faqs.php">FAQs</a></li>
  53.         <li><a href="support.php">Support</a></li>
  54.       </ul>
  55.       <ul class="nav navbar-nav navbar-right">
  56.         <li><a href="share.php"><span class="glyphicon glyphicon-share"></span> Share Album</a></li>
  57.         <li><a href="uploadphotos.php"><span class="glyphicon  glyphicon-open"></span> Upload Photos</a></li>
  58.         <li><a href="logout.php"><span class="glyphicon glyphicon-log-out"></span> Logout</a></li>
  59.       </ul>
  60.     </div>
  61.   </div>
  62. </nav>
  63.  
  64.  
  65.  
  66. </div>
  67. <?php
  68. session_start();
  69. $AlbumID = $_SESSION['album_id'];
  70. $Title = $_SESSION['album_title'];
  71. echo "<h2>" . $Title . "</h2>";
  72. ?>
  73.  
  74. </div>
  75. <div id="body" class="container-fluid">
  76.            
  77.         <div class="login-box animated fadeInUp">
  78.             <div class="box-header">
  79.                 <h2>Share an ablum</h2>
  80.             </div>
  81.             <form id='shareForm'action="sharealbum.php" method="POST">
  82.             <label><?php $Title ?></label>
  83.            
  84.             <label for="Description">Enter the username of the person you want to share the album with:</label>
  85.             <br />
  86.             <div id='shareForm_sharewith_errorloc' ></div>
  87.             <input type="text" id="sharewith" name="sharewith">
  88.             <br />
  89.        
  90.        
  91.             <br />
  92.             <br />
  93.  
  94.  
  95.             <button type="submit">Share</button>
  96.             <br/>
  97.             </form><script type="text/javascript">
  98.             <!-- form validation using a validation script from www.javascript-coder.com -->
  99.                 var frmvalidator  = new Validator("shareForm");
  100.                 frmvalidator.EnableOnPageErrorDisplay();
  101.                 frmvalidator.EnableMsgsTogether();
  102.                
  103.                 <!-- validation for shareWith -->
  104.                 frmvalidator.addValidation("sharewith","req","Please enter the persons username");
  105.                 <!--frmvalidator.addValidation("sharewith","maxlen=20","Max length for the username is 20");->
  106.             </script>
  107.            
  108.             <a href="myphotos.php"><p class="small">Cancel</p></a>
  109.         </div>
  110.     </div>
  111.  
  112. </div>
  113.  
  114.  
  115. <script>
  116.     $(document).ready(function () {
  117.         $('#logo').addClass('animated fadeInDown');
  118.         $("input:text:visible:first").focus();
  119.     });
  120.     $('#username').focus(function() {
  121.         $('label[for="username"]').addClass('selected');
  122.     });
  123.     $('#username').blur(function() {
  124.         $('label[for="username"]').removeClass('selected');
  125.     });
  126.     $('#password').focus(function() {
  127.         $('label[for="password"]').addClass('selected');
  128.     });
  129.     $('#password').blur(function() {
  130.         $('label[for="password"]').removeClass('selected');
  131.     });
  132. </script>
  133.  
  134. </html>
Add Comment
Please, Sign In to add comment