<html> <head> <?php include "../classes/functions.php"; include "../classes/FormLogic.php"; $display_logic = new functions(); $display_logic->head_links('Add a new customer'); $display_logic->nav_bar(); ?> <script> $(function() { $( "#tabs" ).tabs(); }); </script> <script> function cancel() { window.location="index.php"; } </script> </head> <body> <?php $addNewCustomer = new FormLogic(); $addNewCustomer->logic(); ?> </body>
<html> <head> <?php include "functions.php"; $display_logic = new functions(); $display_logic->head_links('Log in'); //$display_logic -> nav_bar(); $msg = '0'; //$msg = $_GET['msg']; ?> <link href="custom.css" rel="stylesheet"> </head> <body> <div class="container"> <!-- <div class="test_container"> <p>Welcome to the 2Click ordering system. This system is designed to store order information. Please enter your username and password to log in to the system.</p> </div> --> <div class="container"> <?php if ($msg == '1') { echo '<div class="alert alert-danger" role="alert">Your username or password is not correct</div>'; } ?> <!-- <h2 class="form-signin-heading">Welcome to the 2Click customer management system</h2> --> <form class="form-signin" action="loginFunctions.php" method="post"> <label for="Username" class="sr-only">Username</label> <input type="text" id="Username" name="Username" class="form-control" placeholder="Username" required autofocus> <label for="Password" class="sr-only">Password</label> <div class="row"><br></div>
<html> <head> <?php //include "navigation.php"; include "classes/functions.php"; $display_logic = new functions(); $display_logic->head_links('Customer Details'); $display_logic->nav_bar(); if (isset($_POST['search'])) { $search = $_POST['search']; } //$display_logic -> open_connection(); //$display_logic -> conn; $servername = "localhost"; $username = "******"; $password = ""; $db_name = "click_dev"; // Create connection $conn = mysqli_connect($servername, $username, $password, $db_name); // Check connection if (!$conn) { die("Connection failed: " . mysqli_connect_error()); } ?> <script> $(function() { $( "#tabs" ).tabs(); });
<html> <head> <?php include "../classes/functions.php"; include "../classes/searchLogic.php"; $display_logic = new functions(); $display_logic->head_links('Search for a customer'); $display_logic->nav_bar(); $display_logic->open_connection(); ?> <script> $(function() { $( "#tabs" ).tabs(); }); </script> <script> function cancel() { window.location="index.php"; } </script> <?php require '../databaseConnect.php'; ?> </head> <body>