Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ////////////////////////// isvp.php ////////////////////////
- <!DOCTYPE html>
- <html>
- <head>
- <title>ISVP</title>
- <meta charset="UTF-8">
- <meta name="viewport" content="width = device-width, initial-scale = 1.0">
- <link rel="stylesheet" type="text/css" href="ISVP.css" />
- <link rel="shortcut icon" href="stocks.ico" />
- </head>
- <body>
- <div class="bgimage" onclick="shiftBack()"></div>
- <header>
- <div class="nm">ISVP</div>
- <div class="h1">|</div>
- <a href="#" onclick="document.getElementById('id01').style.display='block'; shiftBack();" class="login">Login</a>
- <div id="id01" class="login-bg">
- <form class="login-form animateL" action="login.php" method="post">
- <div class="login-detail">
- <label><b>Username</b></label>
- <input type="text" placeholder="Enter Username" name="username" required><br>
- <label><b>Password</b></label>
- <input type="password" placeholder="Enter Password" name="password" required>
- <button type="submit" name="login_btn">Login</button>
- </div>
- </form>
- </div>
- <a href="#" onclick="document.getElementById('id02').style.display='block'; shiftEXT();" class="signup">Sign Up</a>
- <div id="id02" class="signup-bg">
- <form class="signup-form animateS" action="signup.php" method="post">
- <div class="signup-detail">
- <label><b>Username</b></label>
- <input type="text" placeholder="Enter Username" name="username" required><br>
- <label><b>Password</b></label>
- <input type="password" placeholder="Enter Password" id="password" name="password" required><br>
- <label><b>Confirm Password</b></label>
- <input type="password" placeholder="Confim Password" id="confirm_password" name="cpassword" required><br>
- <label><b>E-mail Address</b></label>
- <input type="email" placeholder="Enter E-mail Id" name="email" required><br>
- <label><b>Phone Number</b></label>
- <input type="int" placeholder="Enter Contact Number" name="cont_num" required><br>
- <button type="submit" name="sign_btn">Sign Up</button>
- </div>
- </form>
- </div>
- <script type="text/javascript">
- var login = document.getElementById('id01');
- var signup = document.getElementById('id02');
- window.onclick = function(event) {
- if (event.target == login) {
- login.style.display = "none";
- }
- else if (event.target == signup){
- signup.style.display = "none";
- }
- }
- var password = document.getElementById("password");
- var confirm_password = document.getElementById("confirm_password");
- function validatePassword(){
- if (password.value != confirm_password.value){
- confirm_password.setCustomValidity("Passwords Don't Match");
- }
- else{
- confirm_password.setCustomValidity('');
- }
- }
- password.onchange = validatePassword;
- confirm_password.onkeyup = validatePassword;
- function shiftEXT(){
- document.getElementById('tip').style.marginTop = "560px";
- }
- function shiftBack(){
- document.getElementById('tip').style.marginTop = "530px";
- }
- </script>
- </header>
- <section>
- Intrinsic Stock Value Predictor
- <div class="intro">
- Welcome to I.S.V.P, this program will help you by using a company<br>data and analysing the future value with the help of a neural network.<br><br>The program will also show you, whether the stock is aggressive<br>or not by calculating the beta value of the stock.
- </div>
- </section>
- <div id="tip">
- Not sure about your investments, having trouble in deciding in which stocks to invest. We are here to help you<br>with our program, this program will help you by telling you the future predictions and the risk involved with it.
- </div>
- <footer>
- <div class="f1">© 2017 Intrinsic Stock Value Predictor</div>
- </footer>
- </body>
- </html>
- //////////////////// isvp.css ///////////////
- .bgimage{
- background: url(ow.jpg) no-repeat;
- width: 100%;
- height: 696px;
- background-size: 100% 100%;
- position: fixed;
- top: 0px;
- left: 0px;
- }
- header{
- position:fixed;
- width: 100%;
- height: 50px;
- background-color: black;
- top:0px;
- left: 0px;
- opacity: 0.6;
- font-family: 'Lato', sans-serif;
- }
- .nm{
- position: fixed;
- color: white;
- float: left;
- text-align: left;
- font-size: 30px;
- margin: 8px 0px 0px 20px;
- }
- .h1{
- position: fixed;
- color: white;
- float: left;
- text-align: left;
- font-size: 30px;
- margin: 5px 0px 0px 150px;
- }
- .login{
- position: fixed;
- border-left: 3px solid white;
- color: white;
- text-align: center;
- text-decoration: none;
- display: inline-block;
- font-size: 20px;
- left: 1240px;
- padding: 13px 40px 13px 30px;
- cursor: pointer;
- }
- input[type=text], input[type=password] ,input[type=email], input[type=int]{
- width: 100%;
- padding: 12px 20px;
- margin: 8px 0;
- display: inline-block;
- border: 1px solid #ccc;
- box-sizing: border-box;
- }
- button {
- background-color: blue;
- color: white;
- padding: 14px 20px;
- margin-top: 20px;
- border: none;
- cursor: pointer;
- width: 100%;
- }
- button:hover {
- opacity: 0.8;
- }
- .login-detail {
- padding: 30px 16px 20px 16px;
- }
- .login-bg {
- display: none;
- position: fixed;
- z-index: 1;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- padding-top: 60px;
- }
- .login-form {
- background-color: black;
- color: white;
- width:300px;
- height: 300px;
- margin: 5% auto 15% 970px;
- border: 1px solid #305281;
- }
- .animateL {
- -webkit-animation: animatezoom 0.6s;
- animation: animatezoom 0.6s
- }
- @-webkit-keyframes animatezoom {
- from {-webkit-transform: scale(0)}
- to {-webkit-transform: scale(1)}
- }
- @keyframes animatezoom {
- from {transform: scale(0)}
- to {transform: scale(1)}
- }
- .signup{
- position: fixed;
- color: white;
- text-align: center;
- text-decoration: none;
- display: inline-block;
- font-size: 20px;
- left: 1120px;
- padding: 13px 15px 13px 15px;
- cursor: pointer;
- }
- .signup-detail {
- padding: 20px 16px 20px 16px;
- }
- .signup-bg {
- display: none;
- position: fixed;
- z-index: 1;
- left: 0;
- top: -25px;
- width: 100%;
- height: 100%;
- padding-top: 60px;
- }
- .signup-form {
- background-color: black;
- color: white;
- width:300px;
- height: 500px;
- margin: 2% auto 15% 970px;
- border: 1px solid #305281;
- }
- .animateS {
- -webkit-animation: animatezoom 0.6s;
- animation: animatezoom 0.6s
- }
- @-webkit-keyframes animatezoom {
- from {-webkit-transform: scale(0)}
- to {-webkit-transform: scale(1)}
- }
- @keyframes animatezoom {
- from {transform: scale(0)}
- to {transform: scale(1)}
- }
- a:hover{
- opacity: 0.8;
- }
- section{
- position: fixed;
- margin-top: 120px;
- margin-left: 10px;
- font-size: 33px;
- color: #330066;
- font-family: 'Lato', sans-serif;
- }
- .intro{
- position: fixed;
- font-size: 18.5px;
- padding-top: 15px;
- }
- @font-face {
- font-family: KaushanScript;
- src: url("KaushanScript.otf") format("opentype");
- }
- #tip{
- position: fixed;
- width: 85%;
- height: 70px;
- margin-top: 530px;
- margin-left: 7%;
- border-radius: 40px;
- background-color: rgba(0,0,0,0.5);
- text-align: center;
- color: #bfbfbf;
- font-size: 150%;
- padding-bottom:10px;
- font-family: KaushanScript;
- }
- footer{
- position: fixed;
- width: 100%;
- height: 40px;
- background-color: black;
- opacity: 0.6;
- left: 0px;
- top: 654.5px;
- font-family: 'Lato', sans-serif;
- }
- .f1{
- position: relative;
- font-size:15px;
- color: white;
- left: 1090px;
- padding: 10px 0px 0px 20px;
- }
- ////////////////////////////////////// home.php ////////////////////
- <!DOCTYPE html>
- <html>
- <head>
- <title>ISVP</title>
- <meta charset="UTF-8">
- <meta name="viewport" content="width = device-width, initial-scale = 1.0">
- <link rel="stylesheet" type="text/css" href="home.css" />
- <link rel="shortcut icon" href="stocks.ico" />
- </head>
- <body>
- <header id="main">
- <div class="nm">Intrinsic Stock Value Predictor</div>
- <a href="ISVP.php" class="user">LogOut</a>
- <div id="help" onclick="openNav()">
- <img class="hl" src="help.png" />
- <div class="ht">
- Help
- </div>
- </div>
- </header>
- <div id="myNav" class="overlay">
- <a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
- <div class="overlay-content">
- <ul>
- <li>Download the ISVP Program</li><br>
- <li>After downloading there will be a readMe file which will explain how to excute the program</li><br>
- <li>To understand the output or the graphical representaion of the stock predictor please refer to link below<a href="https://www.youtube.com" target="_black">How to interpret ISVP result</a></li><br>
- <li>For any queries feel free to contact us, E-mail Id : isvp@gmail.com</li>
- </ul>
- <p id="asap">We will get back to you as soon as possible.</p>
- </div>
- </div>
- <script>
- function openNav() {
- document.getElementById("myNav").style.height = "45%";
- }
- function closeNav() {
- document.getElementById("myNav").style.height = "0%";
- }
- </script>
- <div class="about1">
- <p id="hd">State of the Art Algorithmic Prediction</p>
- <p id="bd">Intrinsic Stock Value Predictor provides a financial<br>service that utilizes an advanced self-learning algorithm<br>to analyze, model and predict the stock market.<br><br>Our program uses algorithmic prediction looking<br>for unique market opportunities.</p>
- </div>
- <div class="about2">
- <p id="hd">Solutions for Private and Institutional Investors</p>
- <p id="bd">Traders utilize this program as a tool to enhance portfolio performance, verify their own analysis and act on market opportunities faster.</p>
- </div>
- <div class="inst">
- Download ISVP to use stock prediction program. For any queries or question refere to HELP. Feel free to contact us at isvp@gmail.com, we will be available 24x7. We will get back to you as soon as possible.
- </div>
- <div>
- <form action="download.php">
- <button type="submit" class="down">Download ISVP</button>
- </form>
- </div>
- <div class="slideshow-container">
- <div class="mySlides fade">
- <p>Stocks: Let money make money for you.</p>
- </div>
- <div class="mySlides fade">
- <p>Never depend on the single income. Make investments to create a second source.</p>
- </div>
- <div class="mySlides fade">
- <p>The stock market is a device for transferring money from the impatient to the patient.</p>
- </div>
- <div class="mySlides fade">
- <p>The key of making money in stocks is not to get scared out them.</p>
- </div>
- </div>
- <div style="text-align:center">
- <span class="dot"></span>
- <span class="dot"></span>
- <span class="dot"></span>
- <span class="dot"></span>
- </div>
- <script>
- var slideIndex = 0;
- showSlides();
- function showSlides() {
- var i;
- var slides = document.getElementsByClassName("mySlides");
- var dots = document.getElementsByClassName("dot");
- for (i = 0; i < slides.length; i++) {
- slides[i].style.display = "none";
- }
- slideIndex++;
- if (slideIndex> slides.length) {slideIndex = 1}
- for (i = 0; i < dots.length; i++) {
- dots[i].className = dots[i].className.replace(" active", "");
- }
- slides[slideIndex-1].style.display = "block";
- dots[slideIndex-1].className += " active";
- setTimeout(showSlides, 4000);
- }
- </script>
- <footer>
- <div class="f1">© 2017 Intrinsic Stock Value Predictor</div>
- </footer>
- </body>
- </html>
- //////////////////////////// home.css///////////////////////
- body{
- background-color: #666666;
- }
- header{
- position:fixed;
- width: 100%;
- height: 50px;
- background-color: black;
- top:0px;
- left: 0px;
- }
- .nm{
- position: fixed;
- color: white;
- float: left;
- text-align: left;
- font-size: 30px;
- margin: 8px 0px 0px 20px;
- }
- #help{
- position: fixed;
- color: white;
- text-align: center;
- text-decoration: none;
- display: inline-block;
- font-size: 20px;
- left: 1120px;
- padding: 13px 15px 13px 15px;
- cursor: pointer;
- }
- .hl{
- position: relative;
- }
- .ht{
- position: relative;
- top: -35px;
- left: 40px;
- }
- .user{
- position: fixed;
- border-left: 3px solid white;
- color: white;
- text-align: center;
- text-decoration: none;
- display: inline-block;
- font-size: 20px;
- left: 1240px;
- padding: 13px 40px 13px 30px;
- cursor: pointer;
- }
- body {
- margin: 0;
- font-family: 'Lato', sans-serif;
- }
- .overlay {
- height: 0%;
- width: 100%;
- position: fixed;
- z-index: 1;
- top: 0;
- left: 0;
- background-color: rgb(0,0,0);
- background-color: rgba(0,0,0, 0.9);
- overflow-y: hidden;
- transition: 0.5s;
- }
- .overlay-content {
- position: relative;
- top: 5%;
- width: 100%;
- color: white;
- text-align: left;
- margin-top: 30px;
- }
- .overlay a {
- padding: 8px;
- text-decoration: none;
- font-size: 36px;
- color: #818181;
- display: block;
- transition: 0.3s;
- }
- .overlay a:hover, .overlay a:focus {
- color: #f1f1f1;
- }
- .overlay .closebtn {
- position: absolute;
- top: 20px;
- right: 45px;
- font-size: 60px;
- }
- #asap{
- margin-left: 51px;
- }
- .about1{
- position: fixed;
- width: 45%;
- height: 40%;
- margin-top: 70px;
- margin-left: 4%;
- box-shadow: 0px 0px 12px;
- text-align: center;
- background-color: #e6e6e6;
- }
- .about2{
- position: fixed;
- width: 45%;
- height: 40%;
- margin-top: 70px;
- margin-left: 51%;
- box-shadow: 0px 0px 12px;
- text-align: center;
- background-color: #e6e6e6;
- }
- #hd{
- font-size: 30px;
- color: #4d4d4d;
- }
- #bd{
- font-size: 20px;
- padding-top: 5px;
- }
- .inst{
- position: fixed;
- width: 91.9%;
- height: 12%;
- margin-top: 400px;
- margin-left: 4%;
- box-shadow: 0px 0px 12px;
- padding: 15px;
- font-size: 20px;
- color: #1a1a1a;
- background-color: #e6e6e6;
- }
- .down{
- position: fixed;
- background-color: green;
- color: white;
- border: 1px solid green;
- width:250px;
- height: 50px;
- border-radius: 40px;
- font-size:30px;
- cursor: pointer;
- font-family: Times;
- margin-top: 540px;
- margin-left: 75%;
- }
- * {box-sizing:border-box}
- .mySlides {display:none}
- @font-face {
- font-family: KaushanScript;
- src: url("KaushanScript.otf") format("opentype");
- }
- .slideshow-container {
- position: fixed;
- width: 60%;
- margin-top: 530px;
- margin-left: 5%;
- border-radius: 40px;
- background-color: rgba(0,0,0,0.9);
- text-align: center;
- color: white;
- font-size: 20px;
- font-family: KaushanScript;
- }
- .dot {
- height: 13px;
- width: 13px;
- margin: 0 2px;
- background-color: #bbb;
- border-radius: 50%;
- display: inline-block;
- transition: background-color 0.6s ease;
- }
- .active {
- background-color: #717171;
- }
- .fade {
- -webkit-animation-name: fade;
- -webkit-animation-duration: 1.5s;
- animation-name: fade;
- animation-duration: 1.5s;
- }
- @-webkit-keyframes fade {
- from {opacity: .4}
- to {opacity: 1}
- }
- @keyframes fade {
- from {opacity: .4}
- to {opacity: 1}
- }
- footer{
- position: fixed;
- width: 100%;
- height: 40px;
- background-color: black;
- left: 0px;
- top: 654.5px;
- }
- .f1{
- position: relative;
- font-size:15px;
- color: white;
- left: 1090px;
- padding: 10px 0px 0px 20px;
- }
- /////////////////////////////////////functions.php////////////////////////////
- <?php
- session_start();
- $host ='localhost';
- $user = 'root';
- $pass = '';
- $db = 'authentication';
- $con = mysqli_connect($host, $user, $pass, $db);
- function getUserData($id){
- $array = array();
- $q = mysqli_query($con, "SELECT * FROM 'users' WHERE 'id' ='$id'");
- while ($r = mysqli_fetch_assoc($con,$q)) {
- $array['id'] = $r['id'];
- $array['username'] = $r['username'];
- $array['password'] = $r['password'];
- $array['email'] = $r['email'];
- $array['cont_num'] = $r['cont_num'];
- }
- return $array;
- }
- function getId($username){
- $q = mysqli_query($con, "SELECT * FROM 'users' WHERE 'username' ='$username'");
- while ($r = mysqli_fetch_assoc($con,$q)) {
- return $r['id'];
- }
- }
- ?>
- //////////////////////////login.php/////////////////////////////////////////
- <?php
- session_start();
- $host ='localhost';
- $user = 'root';
- $pass = '';
- $db = 'authentication';
- $con = mysqli_connect($host, $user, $pass, $db);
- if (isset($_POST['login_btn'])){
- $username = mysqli_real_escape_string($con,$_POST['username']);
- $password = mysqli_real_escape_string($con,$_POST['password']);
- $password = md5($password);
- $sql = "SELECT * FROM users WHERE username = '$username' AND password = '$password'";
- $result = mysqli_query($con, $sql);
- if (mysqli_num_rows($result) == 1) {
- header("location: home.php");
- }else{
- header("location: error.php");
- }
- }
- ?>
- /////////////////////////////////////////signup.php/////////////////////////
- <?php
- session_start();
- $host ='localhost';
- $user = 'root';
- $pass = '';
- $db = 'authentication';
- $con = mysqli_connect($host, $user, $pass, $db);
- if (isset($_POST['sign_btn'])){
- /*$username = mysqli_real_escape_string($con, $_POST['username']);
- $password = mysqli_real_escape_string($con, $_POST['password']);
- $cpassword = mysqli_real_escape_string($con, $_POST['cpassword']);
- $email = mysqli_real_escape_string($con, $_POST['email']);
- $cont_num = mysqli_real_escape_string($con, $_POST['cont_num']);*/
- $username = $_POST['username'];
- $password = $_POST['password'];
- $cpassword = $_POST['cpassword'];
- $email = $_POST['email'];
- $cont_num = $_POST['cont_num'];
- $password = md5($password);
- $sql = "INSERT INTO users(username, password, email, cont_num) VALUES('$username', '$password', '$email', '$cont_num')";
- mysqli_query($con, $sql);
- header("location: home.php");
- }
- ?>
- /////////////////////////////////error.php////////////////////////
- <?php
- session_start();
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <title>ISVP</title>
- <meta charset="UTF-8">
- <meta name="viewport" content="width = device-width, initial-scale = 1.0">
- <link rel="stylesheet" type="text/css" href="home.css" />
- <link rel="shortcut icon" href="stocks.ico" />
- <style type="text/css">
- header{
- position:relative;
- width: 100%;
- height: 50px;
- background-color: black;
- top:0px;
- left: 0px;
- font-family: Times;
- }
- .nm{
- position: relative;
- color: white;
- float: left;
- text-align: left;
- font-size: 30px;
- margin: 8px 0px 0px 20px;
- }
- section{
- position: relative;
- width: 100%;
- height: 610px;
- background-color: black;
- opacity: 0.6;
- }
- footer{
- position: fixed;
- width: 100%;
- height: 45px;
- background-color: black;
- left: 0px;
- }
- .f1{
- position: relative;
- font-size:15px;
- color: white;
- float: right;
- left: 0px;
- padding: 10px 0px 0px 20px;
- margin-right:10px;
- }
- .txt{
- position: absolute;
- color: white;
- width: 100%;
- top: 20%;
- text-align: center;
- font-size: 30px;
- font-family: Times;
- }
- button{
- background-color: black;
- color: white;
- border: 1px solid black;
- border-color:black;
- width:100px;
- height: 50px;
- font-size:30px;
- cursor: pointer;
- font-family: Times;
- }
- button:hover {
- box-shadow: 0 12px 16px 0 rgba(255,255,255,0.24),0 17px 50px 0 rgba(255,255,255,0.19);
- }
- #l1{
- position: fixed;
- left: 31.5%;
- top: 39%;
- }
- #l2{
- position: fixed;
- left: 37.5%;
- top: 42%;
- }
- #l3{
- position: fixed;
- left: 46%;
- top: 39%;
- }
- </style>
- </head>
- <body>
- <header>
- <div class="nm">Intrinsic Stock Value Predictor</div>
- <a href="ISVP.php" class="user">Return</a>
- </header>
- <section></section>
- <div class="txt">
- <p>You have entered Invalid username or password</p>
- <p>Please entered valid username or password</p>
- <p id="l1">Click </p><form id="l2" action="ISVP.php"><button>return</button></form><p id="l3"> to go back to main page!!</p>
- </div>
- <footer>
- <div class="f1">© 2017 Intrinsic Stock Value Predictor</div>
- </footer>
- </body>
- </html>
- //////////////////////////DONE/////////////////////////////
Add Comment
Please, Sign In to add comment