Guest User

Untitled

a guest
Apr 19th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <?php $this->load->view("head"); ?>
  5. <style type="text/css">
  6. #fileselector {
  7. margin: 10px;
  8. }
  9. #upload-file-selector {
  10. display:none;
  11. }
  12. .margin-correction {
  13. margin-right: 10px;
  14. }
  15. a:hover{
  16. text-decoration: none;
  17. }
  18. .btn-bs-file{
  19. position:relative;
  20. }
  21. .btn-bs-file input[type="file"]{
  22. position: absolute;
  23. top: -9999999;
  24. filter: alpha(opacity=0);
  25. opacity: 0;
  26. width:0;
  27. height:0;
  28. outline: none;
  29. cursor: inherit;
  30. }
  31. </style>
  32. </head>
  33. <body>
  34. <?php $this->load->view("menu"); ?>
  35. <div class="container">
  36. <?php
  37. if(isset($_SESSION['alert']))
  38. {
  39. if($_SESSION['alert']['0']=="0")
  40. {
  41. ?>
  42. <div class="alert alert-danger">
  43. <strong><?php echo $_SESSION['alert']['1']; ?></strong>
  44. </div>
  45. <?php
  46. }else{
  47. ?>
  48. <div class="alert alert-success">
  49. <strong><?php echo $_SESSION['alert']['1']; ?></strong>
  50. </div>
  51. <?php
  52. }
  53. }
  54. unset($_SESSION['alert']);
  55.  
  56. ?>
  57. <form action="<?php echo base_url();?>index.php/ControllerFileUploading/InsertMultipleImg" method="post" enctype="multipart/form-data">
  58. <div class="col-md-8">
  59. <label for="name" class="cols-sm-2 control-label">Select Multiple Image</label><br>
  60. <label class="btn-bs-file btn btn-default">
  61. <i class="fa fa-upload"></i> upload file
  62. <input type="file" name="M-file[]" multiple onchange="document.getElementById('M-file').files"/>
  63. </label>
  64. <input type="text" name="" id="M-file" style="border:0;background : none;width: 20%;" disabled>
  65. <input type="submit" name="btn1" class="btn btn-default">
  66. </div>
  67. <div class="col-md-4"><a href="<?php echo base_url()?>index.php/ControllerFileUploading/SelectMultipleImg"><h3 style="text-align: center;color: #222;padding: 1%;box-shadow: 0 0 8px 3px #222;">View Images</h3></a></div>
  68. </form>
  69. </div>
  70. <?php $this->load->view("footer"); ?>
  71. </body>
  72. </html>
Add Comment
Please, Sign In to add comment