Esempio n. 1
0
<?php 
startblock('content');
?>

<?php 
if (!empty($_POST)) {
    // POST가 빈 요청이 아닐때.
    $round = $_POST['round'];
    $upload_path = "./upload/" . $round;
    // uploader 객체를 생성한다. (라이브러리 직접 수정해도 됨)
    $extentions = array('image/pjpeg', 'image/jpeg', 'image/JPG', 'image/X-PNG', 'image/PNG', 'image/png', 'image/x-png', 'image/gif');
    $uploader = new Uploader();
    $uploader->set_extentions($extentions);
    $uploader->set_directory($upload_path);
    if ($uploader->upload()) {
        $uploader->show_file();
        echo "Success";
    }
}
?>






<div class="row" style="margin-left: auto; margin-right: auto;">
  <div class="container-fluid col-md-4">
    <h2>다이어트워</h2>
    <button>다이어트워 활성화/비활성화 : 다이어트워 시즌에만 활성화</button><br /><br />
    <div id="myCarousel" class="carousel slide" data-ride="carousel">