Spaces:
Running
Running
Download application/views/login2.php from cappucaine/ERP: direct link, hf CLI and curl.
- Browser
- Download file 7.07 kB
-
https://huggingface.co/spaces/cappucaine/ERP/resolve/main/application/views/login2.php
- Command line
-
hf download hf://spaces/cappucaine/ERP/application/views/login2.php
-
curl -L -o login2.php https://huggingface.co/spaces/cappucaine/ERP/resolve/main/application/views/login2.php
7.07 kB
| $appName = $this->session->userdata('appName'); | |
| $username = $this->session->userdata('username'); | |
| $completeName = $this->session->userdata('completeName'); | |
| $Emp_ID = $this->session->userdata('Emp_ID'); | |
| $imgemp_filename = ''; | |
| $sqlGetIMG = "SELECT imgemp_filename FROM tbl_employee_img WHERE imgemp_empid = '$Emp_ID'"; | |
| $resGetIMG = $this->db->query($sqlGetIMG)->result(); | |
| foreach($resGetIMG as $rowGIMG) : | |
| $imgemp_filename = $rowGIMG ->imgemp_filename; | |
| endforeach; | |
| $sqlApp = "SELECT * FROM tappname"; | |
| $resultaApp = $this->db->query($sqlApp)->result(); | |
| foreach($resultaApp as $therow) : | |
| $appName = $therow->app_name; | |
| endforeach; | |
| $srvURL = $_SERVER['SERVER_ADDR']; | |
| $srvURLHN = gethostbyaddr($_SERVER['SERVER_ADDR']); | |
| echo " Your Hostname : $srvURLHN<br> Your IP Server : $srvURL"; | |
| $urlLogOut = site_url('Auth/logout'); | |
| $urlOpenLock = site_url('Auth/openLock/?id='.$this->url_encryption_helper->encode_url($appName)); | |
| <!DOCTYPE html> | |
| <html class="lockscreen"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title><?php echo $appName; ?> | Log In</title> | |
| <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'> | |
| <link rel="icon" type="image/png" href="<?php echo base_url() . 'assets/AdminLTE-2.0.5/dist/img/favicon/lock-02.png'; ?>" sizes="32x32"> | |
| <!-- bootstrap 3.0.2 --> | |
| <link href="<?php echo base_url('assets/AdminLTE/css/bootstrap.min.css') ?>" rel="stylesheet" type="text/css" /> | |
| <!-- font Awesome --> | |
| <link href="<?php echo base_url('assets/AdminLTE/css/font-awesome.min.css') ?>" rel="stylesheet" type="text/css" /> | |
| <!-- Theme style --> | |
| <link href="<?php echo base_url('assets/AdminLTE/css/AdminLTE.css') ?>" rel="stylesheet" type="text/css" /> | |
| <!-- Ionicons --> | |
| <link href="<?php echo base_url('assets/ionicons-2.0.1/css/ionicons.min.css') ?>" rel="stylesheet" type="text/css" /> | |
| <!-- Bootstrap 3.3.2 --> | |
| <link href="<?php echo base_url('assets/AdminLTE-2.0.5/bootstrap/css/bootstrap.min.css') ?>" rel="stylesheet" type="text/css" /> | |
| <!-- Font Awesome Icons --> | |
| <link href="<?php echo base_url('assets/font-awesome-4.3.0/css/font-awesome.min.css') ?>" rel="stylesheet" type="text/css" /> | |
| </head> | |
| <body> | |
| <div class="login-box"> | |
| <div class="login-box-body"> | |
| <div class="center"> | |
| <div class="login-logo" style="text-align:center"><strong> | |
| <img src="<?php echo base_url() . 'assets/AdminLTE-2.0.5/dist/img/DeniedAccess.png'; ?>" style="max-width:260px" ></strong> | |
| </div> | |
| <p class="login-box-msg" style="display:none"> </p><br> | |
| <p class="login-box-msg" style="text-align:center">Verify your email here ...</p><br> | |
| <form action="<?php echo site_url('auth/login_mail') ?>" method="post" onSubmit="return checkValue();"> | |
| <div class="form-group has-feedback"> | |
| <input type="text" class="form-control" placeholder="Your Name" name="crkName" id="crkName"/> | |
| <span class="glyphicon glyphicon-user form-control-feedback"> </span> | |
| </div> | |
| <div class="form-group has-feedback"> | |
| <input type="email" class="form-control" name="crkMail" id="crkMail" placeholder="Email" value=""> | |
| <span class="glyphicon glyphicon-envelope form-control-feedback"> </span> | |
| </div> | |
| <div class="row"> | |
| <div class="col-xs-4"> | |
| <button type="submit" class="btn btn-primary btn-block btn-flat">Verify</button> | |
| </div> | |
| </div> | |
| </form> | |
| <script> | |
| function checkValue() | |
| { | |
| crkName = document.getElementById('crkName').value; | |
| crkMail = document.getElementById('crkMail').value; | |
| if(crkName == '') | |
| { | |
| alert('Please input your name'); | |
| document.getElementById('crkName').focus(); | |
| return false; | |
| } | |
| if(crkMail == '') | |
| { | |
| alert('Please input your e-mail address'); | |
| document.getElementById('crkMail').focus(); | |
| return false; | |
| } | |
| } | |
| </script> | |
| <div class="social-auth-links text-center"> | |
| <?php /*?><p>- OR -</p> | |
| <a href="#" class="btn btn-block btn-social btn-facebook btn-flat"><i class="fa fa-facebook"></i> Sign in using Facebook</a> | |
| <a href="#" class="btn btn-block btn-social btn-google-plus btn-flat"><i class="fa fa-google-plus"></i> Sign in using Google+</a><?php */?> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </body> | |
| <!-- jQuery 2.0.2 --> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script> | |
| <!-- Bootstrap --> | |
| <script src="<?php echo base_url('assets/AdminLTE/js/bootstrap.min.js') ?>" type="text/javascript"></script> | |
| <!-- page script --> | |
| <script type="text/javascript"> | |
| $(function() { | |
| startTime(); | |
| $(".center").center(); | |
| $(window).resize(function() { | |
| $(".center").center(); | |
| }); | |
| }); | |
| /* */ | |
| function startTime() | |
| { | |
| var today = new Date(); | |
| var h = today.getHours(); | |
| var m = today.getMinutes(); | |
| var s = today.getSeconds(); | |
| // add a zero in front of numbers<10 | |
| m = checkTime(m); | |
| s = checkTime(s); | |
| //Check for PM and AM | |
| var day_or_night = (h > 11) ? "PM" : "AM"; | |
| //Convert to 12 hours system | |
| if (h > 12) | |
| h -= 12; | |
| //Add time to the headline and update every 500 milliseconds | |
| $('#time').html(h + ":" + m + ":" + s + " " + day_or_night); | |
| setTimeout(function() { | |
| startTime() | |
| }, 500); | |
| } | |
| function checkTime(i) | |
| { | |
| if (i < 10) | |
| { | |
| i = "0" + i; | |
| } | |
| return i; | |
| } | |
| /* CENTER ELEMENTS IN THE SCREEN */ | |
| jQuery.fn.center = function() { | |
| this.css("position", "absolute"); | |
| this.css("top", Math.max(0, (($(window).height() - $(this).outerHeight()) / 2) + | |
| $(window).scrollTop()) - 30 + "px"); | |
| this.css("left", Math.max(0, (($(window).width() - $(this).outerWidth()) / 2) + | |
| $(window).scrollLeft()) + "px"); | |
| return this; | |
| } | |
| </script> | |
| </html> |