View file siwap.ru/apps/main/index.php

File size: 1.99Kb
<?php
require_once $_SERVER['DOCUMENT_ROOT'].'/system/App.php';
$title = 'Фотохостинг';
require_once ROOT.'/system/header.php';
$user->access();
?>

<div class="w-100 text-center">
  <div class="card-body mt-6rem mb-6rem text-center text-light">
<p><h4>Заголовок</h4>Текст</p>

<!-- Button trigger modal -->
<button type="button" class="btn btn-theme-active" data-toggle="modal" data-target="#exampleModalCenter">
	Загрузить
</button>

<!-- Modal -->
<div class="modal fade" id="exampleModalCenter" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
  <div class="modal-dialog modal-dialog-centered" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title text-muted" id="exampleModalLongTitle">Загрузка изображений</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">

    <form name="multiple_upload_form" id="multiple_upload_form" enctype="multipart/form-data" action="/AJAX/UploadPhoto.php">
    	<input type="hidden" name="image_form_submit" value="1"/>
            <input type="file" name="images[]" id="images" class="d-none" multiple >
			<label class="btn btn-theme-active" for="images">Выберите файл</label>
        <div class="uploading d-none">
            <label>&nbsp;</label>
            <img src="/design/img/uploading.gif"/>
        </div>
    </form>
	
    <div class="gallery" id="images_preview">
        
    </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-theme" data-dismiss="modal">Отмена</button>
        <button type="button" class="btn btn-theme-active">Сохранить</button>
      </div>
    </div>
  </div>
</div>

  </div>
</div>

<?php
require_once ROOT.'/system/footer.php';
?>