<?php

error_reporting(E_ALL);
ini_set("display_errors", 1);
 include('dbconnection.php');
session_start();
include("checklogin.php");
check_login();
?>

<!DOCTYPE html>
<html class="loading" lang="en" data-textdirection="ltr">
<!-- BEGIN: Head-->

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
    <meta name="author" content="CRM">
    <title>CAM YAPI</title>
    <link rel="apple-touch-icon" href="images/logo.png">
    <link rel="shortcut icon" type="image/x-icon" href="images/logo.png">
    <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i%7CQuicksand:300,400,500,700" rel="stylesheet">
     <link href="https://maxcdn.icons8.com/fonts/line-awesome/1.1/css/line-awesome.min.css"
  rel="stylesheet">

    <!-- BEGIN: Vendor CSS-->
   
    <link rel="stylesheet" type="text/css" href="app-assets/css/vendors.css">
    <!-- END: Vendor CSS-->

    <!-- BEGIN: Theme CSS-->
    <link rel="stylesheet" type="text/css" href="app-assets/vendors/css/tables/datatable/dataTables.bootstrap4.min.css">
    <link rel="stylesheet" type="text/css" href="app-assets/vendors/css/tables/extensions/rowReorder.dataTables.min.css">
    <link rel="stylesheet" type="text/css" href="app-assets/vendors/css/tables/extensions/responsive.dataTables.min.css">
    <link rel="stylesheet" type="text/css" href="app-assets/vendors/css/forms/icheck/icheck.css">
    <link rel="stylesheet" type="text/css" href="app-assets/vendors/css/forms/icheck/custom.css">
    <link rel="stylesheet" type="text/css" href="app-assets/css/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="app-assets/css/bootstrap-extended.css">
    <link rel="stylesheet" type="text/css" href="app-assets/css/colors.css">
    <link rel="stylesheet" type="text/css" href="app-assets/css/components.css">
    <link rel="stylesheet" type="text/css" href="app-assets/vendors/css/forms/selects/select2.min.css">

    <!-- END: Theme CSS-->
    <!-- BEGIN MODERN CSS-->
    <link rel="stylesheet" type="text/css" href="app-assets/css/app.css">
    <!-- END MODERN CSS-->
    <!-- BEGIN: Page CSS-->
    <link rel="stylesheet" type="text/css" href="app-assets/css/core/menu/menu-types/vertical-menu-modern.css">
    <link rel="stylesheet" type="text/css" href="app-assets/css/plugins/forms/extended/form-extended.css">
    <link rel="stylesheet" type="text/css" href="app-assets/css/core/colors/palette-gradient.css">
    <link rel="stylesheet" type="text/css" href="app-assets/vendors/css/charts/jquery-jvectormap-2.0.3.css">
    <link rel="stylesheet" type="text/css" href="app-assets/vendors/css/charts/morris.css">
    <link rel="stylesheet" type="text/css" href="app-assets/fonts/simple-line-icons/style.css">
    <link rel="stylesheet" type="text/css" href="app-assets/css/core/colors/palette-gradient.css">
    <link rel="stylesheet" type="text/css" href="app-assets/css/pages/users.css">
    <!-- END: Page CSS-->

    <!-- BEGIN: Custom CSS-->
    <link rel="stylesheet" type="text/css" href="assets/css/style.css">
    <!-- END: Custom CSS-->

</head>
<!-- END: Head-->

<!-- BEGIN: Body-->

<body class="vertical-layout vertical-menu-modern vertical-collapsed-menu 2-columns   menu-collapsed fixed-navbar" data-open="click" data-menu="vertical-menu-modern" data-col="2-columns">

    <!-- BEGIN: Header-->
    <nav class="header-navbar navbar-expand-lg navbar navbar-with-menu navbar-without-dd-arrow fixed-top navbar-semi-dark navbar-shadow">
        <div class="navbar-wrapper">
            <div class="navbar-header">
                <ul class="nav navbar-nav flex-row">
                    <li class="nav-item mobile-menu d-lg-none mr-auto"><a class="nav-link nav-menu-main menu-toggle hidden-xs" href="#"><i class="ft-menu font-large-1"></i></a></li>
                    <li class="nav-item mr-auto"><a class="navbar-brand" href="crmindex.php"><img class="brand-logo" alt="CRM admin logo" src="images/logo.png">
                            <h3 class="brand-text">CAM YAPI </h3>
                        </a></li>
                    <li class="nav-item d-none d-lg-block nav-toggle"><a class="nav-link modern-nav-toggle pr-0" data-toggle="collapse"><i class="toggle-icon ft-toggle-right font-medium-3 white" data-ticon="ft-toggle-right"></i></a></li>
                    <li class="nav-item d-lg-none"><a class="nav-link open-navbar-container" data-toggle="collapse" data-target="#navbar-mobile"><i class="la la-ellipsis-v"></i></a></li>
                </ul>
            </div>
            <div class="navbar-container content">
                <div class="collapse navbar-collapse" id="navbar-mobile">
                    <ul class="nav navbar-nav mr-auto float-left">
                        <li class="nav-item d-none d-lg-block"><a class="nav-link nav-link-expand" href="#"><i class="ficon ft-maximize"></i></a></li>
                        <li class="dropdown nav-item mega-dropdown d-none d-lg-block"><a class="dropdown-toggle nav-link" href="#" data-toggle="dropdown">CAM YAPI</a>
                          
                        </li>
                    </ul>
                    <ul class="nav navbar-nav float-right">
                        <li class="dropdown dropdown-user nav-item"><a class="dropdown-toggle nav-link dropdown-user-link" href="#" data-toggle="dropdown"><span class="mr-1 user-name text-bold-700"><?php echo $_SESSION['dp_userName'];?></span><span class="avatar avatar-online"><img src="app-assets/images/portrait/small/avatar-s-19.png" alt="avatar"><i></i></span></a>
                            <div class="dropdown-menu dropdown-menu-right"><a class="dropdown-item" href="user-profile.html"><i class="ft-user"></i> Edit Profile</a><a class="dropdown-item" href="app-kanban.html"><i class="ft-clipboard"></i> Todo</a><a class="dropdown-item" href="user-cards.html"><i class="ft-check-square"></i> Task</a>
                                <div class="dropdown-divider"></div><a class="dropdown-item" href="login-with-bg-image.html"><i class="ft-power"></i> Logout</a>
                            </div>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </nav>
    <!-- END: Header-->


    <!-- BEGIN: Main Menu-->

    <div class="main-menu menu-fixed menu-dark menu-accordion menu-shadow" data-scroll-to-active="true">
        <div class="main-menu-content">
            <ul class="navigation navigation-main" id="main-menu-navigation" data-menu="menu-navigation">
                <li class=" nav-item"><a href="index.html"><i class="la la-home"></i><span class="menu-title" data-i18n="Dashboard">Dashboard</span><span class="badge badge badge-info badge-pill float-right mr-2">1</span></a>
                    <ul class="menu-content">
                        </li>
                         
                 <li><a class="menu-item" href="#"><i>Firma İşlemleri</i><span data-i18n="current"></span></a>

                   <ul class="menu-content">
                        <li><a class="menu-item" href="crmcari.php"><i class="la la-bars">&emsp;</i><span data-i18n="eCommerce">Firma Kayıt</span></a></li>
                        <li><a class="menu-item" href="crmcarilist.php"><i class="la la-industry">&emsp;</i><span data-i18n="eCommerce">Firma Listeleme</span></a></li> </ul> 
                 </li>
                  <li><a class="menu-item" href="#"><i>Personel İşlemleri</i><span data-i18n="current"></span></a>

                   <ul class="menu-content">
                    <li><a class="menu-item" href="crmcompany.php"><i class="la la-user">&emsp;</i><span data-i18n="eCommerce">Personel Kayıt</span></a></li>
                    <li><a class="menu-item" href="crmcompanylist.php"><i class="la la-users">&emsp;</i><span data-i18n="eCommerce">Personel Listeleme</span></a></li>  
                    </ul> 
                 </li>
                  <li><a class="menu-item" href="#"><i>Teklif İşlemleri</i><span data-i18n="current"></span></a>
                   <ul class="menu-content">
                    <li><a class="menu-item" href="crmoffer.php"><i class="la la-check-square">&emsp;</i><span data-i18n="eCommerce">Teklif Kayıt</span></a></li>
                    <li><a class="menu-item" href="#"><i class="la la-edit">&emsp;</i><span data-i18n="eCommerce">Teklif Listeleme</span></a></li> 

                    </ul> 
                    <a class="menu-item" href="crmcurrent.php"><i>Rapor</i><span data-i18n="current"></span></a>
                 </li>
 
               </ul>
        </div>
    </div>

    <!-- END: Main Menu-->
    <!-- BEGIN: Content-->
  <div class="app-content content">
    <div class="content-wrapper">
      <div class="content-header row">
        <div class="content-header-left col-md-6 col-12 mb-2 breadcrumb-new">
          <h3 class="content-header-title mb-0 d-inline-block">Firmalar</h3>
          <div class="row breadcrumbs-top d-inline-block">
            <div class="breadcrumb-wrapper col-12">
              <ol class="breadcrumb">
                <li class="breadcrumb-item"><a href="index.html">Firma İşlemleri</a>
                </li>
                <li class="breadcrumb-item"><a href="#">Firma Listeme & Düzenleme</a>
                </li>
              </ol>
            </div>
          </div>
        </div>
      </div>
      <div class="content-detached">
        <div class="content-body">
          <section class="row">
            <div class="col-12">
              <div class="card">
                <div class="card-head">
                  <div class="card-header">
                    <h4 class="card-title">All Contacts</h4>
                    <a class="heading-elements-toggle"><i class="la la-ellipsis-h font-medium-3"></i></a>
                    <div class="heading-elements">
                      <button class="btn btn-primary btn-sm"><i class="ft-plus white"></i> Add Contacts</button>
                      <span class="dropdown">
                        <button id="btnSearchDrop1" type="button" data-toggle="dropdown" aria-haspopup="true"
                        aria-expanded="true" class="btn btn-warning dropdown-toggle dropdown-menu-right btn-sm"><i class="ft-download-cloud white"></i></button>
                        <span aria-labelledby="btnSearchDrop1" class="dropdown-menu mt-1 dropdown-menu-right">
                          <a href="#" class="dropdown-item"><i class="ft-upload"></i> Import</a>
                          <a href="#" class="dropdown-item"><i class="ft-download"></i> Export</a>
                          <a href="#" class="dropdown-item"><i class="ft-shuffle"></i> Find Duplicate</a>
                        </span>
                      </span>
                      <button class="btn btn-default btn-sm"><i class="ft-settings white"></i></button>
                    </div>
                  </div>
                </div>
                <div class="card-content">
                  <div class="card-body">
                    <!-- Task List table -->
                    <div class="table-responsive">
                      <table id="users-contacts" class="table table-white-space table-bordered row-grouping display no-wrap icheck table-middle">
                        <thead>


                          <tr>
                            <th>Sno.</th>
                            <th>İşlemler</th>
                            <th>Firma Kod</th>
                            <th>Firma</th>
                            <th>Firma Ünvan</th>
                            <th>Tel</th>
                            <th>Cep</th>
                            <th>Fax</th>
                            <th>Mail</th>
                            <th>Web Adres</th>
                            <th>Vergi No</th>
                            <th>Sicil No</th>
                            <th>Ülke</th>
                            <th>İl</th>
                            <th>İlçe</th>
                            <th>Adres</th>
                            <th>Açıklama</th>
                            <th>Kayıt Tarihi</th>

                          </tr>
                        </thead>

                        <tbody>
                         
 
 <?php


                       $ret=mysqli_query($con,"select * from camfactory");
                       $cnt=1;
                       while($row=mysqli_fetch_array($ret)) 
                        { 
                            $Fc_id=$row['fc_id'];
                            $Fc_CompanyName=$row['Fc_CompanyName'];
                            $Fc_Title=$row['Fc_Title'];
                            $Fc_TaxNo=$row['Fc_TaxNo'];
                            $Fc_TradeRegistry=$row['Fc_TradeRegistry'];
                            $Fc_Code=$row['Fc_Code'];
                            $Fc_Phone=$row['Fc_Phone'];
                            $Fc_Phone2=$row['Fc_Phone2'];
                            $Fc_Fax=$row['Fc_Fax'];
                            $Fc_Mail=$row['Fc_Mail'];
                            $Fc_PostCode=$row['Fc_PostCode']; 
                            $Fc_Adress=$row['Fc_Adress'];
                            $Fc_Webadress=$row['Fc_Webadress'];
                            $Fc_Date=$row['Fc_Date'];
                            $Fc_Date2=date('d-m-Y',strtotime($row['Fc_Date']));
                            $Fc_Country_id=$row['Fc_Country'];
                            $Fc_City_id=$row['Fc_City'];
                            $Fc_District_id=$row['Fc_District'];


                                    $result1= mysqli_query($con,"SELECT * FROM countries WHERE id='$Fc_Country_id'");
                                    while($row1 = mysqli_fetch_array($result1))
                                    {
                                    $countryname=$row1['name'];
                                    }
                                    $result2= mysqli_query($con,"SELECT * FROM states WHERE id='$Fc_City_id'");
                                     while($row2 = mysqli_fetch_array($result2))
                                    {                
                                    $statesname=$row2['name'];
                                    }
                                    $result3= mysqli_query($con,"SELECT * FROM cities WHERE id='$Fc_District_id'");
                                    while($row3 = mysqli_fetch_array($result3))
                                    {
                                    $districtname=$row3['name'];
                                    }

                          ?> 







                          <tr>
                            <td><?php echo $cnt;?></td>
                               <td>
                             <span class="dropdown">
                                <button id="btnSearchDrop2" type="button" data-toggle="dropdown" aria-haspopup="true"
                                aria-expanded="true" class="btn btn-primary dropdown-toggle dropdown-menu-right"><i class="ft-settings"></i></button>
                                <span aria-labelledby="btnSearchDrop2" class="dropdown-menu mt-2 dropdown-menu-right">
 <button type="button" class="btn btn-outline-success  block btn-lg dropdown-item"><i class="ft-users"></i> Yeni Kayıt</button>
 <button type="button" class="btn btn-outline-info    block btn-lg dropdown-item" data-toggle="modal" data-target="#bootstrap" ><i class="ft-edit-2"></i> Güncelle</button>
 <button type="button" class="btn btn-outline-danger  block btn-lg dropdown-item"><i class="ft-trash-2"></i> Sil</button>
 
                                </span>
                              </span>
                               </form>

                      

                   








                            </td>
                            <td>  <?php echo $row['Fc_Code'];?>  </td>
                            
                          
                            <td>
                              <div class="media">
                                <div class="media-left pr-1">
                                  <span class="avatar avatar-sm avatar-online rounded-circle">
                                   <?php echo '<img src="images/'.$row['Fc_Logo'].'" alt="avatar">';   ?>     
                                                                              
                                  <i></i></span>
                                </div>
                                <div class="media-body media-middle">
                                  <a href="#" class="media-heading"> <?php echo $row['Fc_CompanyName']; ?>   </a>
                                </div>
                              </div>
                            </td>
                            <td class="text-center"><?php echo $row['Fc_Title'];?></td>
                            <td class="text-center"><?php echo $row['Fc_Phone'];?></td>
                            <td class="text-center"><?php echo $row['Fc_Phone2']; ?></td>
                            <td class="text-center"><?php echo $row['Fc_Fax']; ?></td>
                            <td class="text-center"><?php echo $row['Fc_Mail']; ?></td>
                            <td class="text-center"><?php echo $row['Fc_Webadress']; ?></td>
                            <td class="text-center"><?php echo $row['Fc_TaxNo']; ?></td>
                            <td class="text-center"><?php echo $row['Fc_TradeRegistry']; ?></td>
                            <td class="text-center"><?php echo $countryname; ?></td>
                            <td class="text-center"><?php echo $statesname; ?></td>
                            <td class="text-center"><?php echo $districtname; ?></td>
                            <td class="text-center"><?php echo $row['Fc_Adress']; ?></td>
                            <td class="text-center"><?php echo $row['Fc_Exp']; ?></td>
                            <td class="text-center"><?php echo $rowDate2=date('d-m-Y',strtotime($row['Fc_Date']));?></td>

                         
                          </tr>
                              <?php $cnt=$cnt+1; }?>
                      </tbody>
                     </table>
                    </div>
                      <!-- Task List table -->
                  </div>
                </div>
              </div>
            </div>
          </section>
        </div>
      </div>
    </div>




            <!-- Modal -->
                          <div class="modal fade text-left" id="bootstrap" target="" tabindex="-1" role="dialog" aria-labelledby="myModalLabel35" aria-hidden="true">
                            <div class="modal-dialog modal-xl" role="document">
                              <div class="modal-content">
                                <div class="modal-header">
                                  <h3 class="modal-title" id="myModalLabel35">Firma Güncelleme</h3>
                                  <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                    <span aria-hidden="true">×</span>
                                  </button>
                                </div>
 
                   <form name="updatetion" action="" id="updatetion" method="post" enctype="multipart/form-data" class="number-tab-steps wizard-notification wizard clearfix">
                        <div class="content clearfix">

                      <!-- Firma -->
                      
                      <h4 class="form-section"><i class="ft-user"></i> Firma Bilgileri</h4>
                      <fieldset id="steps-uid-0-p-0" role="tabpanel" aria-labelledby="steps-uid-0-h-0" class="body current" aria-hidden="false">
                        <div class="row">
                          <div class="col-md-3">
                            <div class="form-group">
                              <label for="firstName1">Firma Ad</label>
            <input type="text" class="form-control" name="Fc_CompanyName" id="Fc_CompanyName" placeholder="Firma Ad" value=" <?php echo $row['Fc_CompanyName']; ?>">
                            </div>
                          </div>
                          <div class="col-md-3">
                            <div class="form-group">
                              <label for="lastName1">Firma Ünvanı</label>
                              <input type="text" class="form-control" name="Fc_Title" id="Fc_Title" placeholder="Ünvan" value="<?php echo  $Fc_Title; ?> ">
                            </div>
                          </div>
                          <div class="col-md-2">
                            <div class="form-group">
                              <label for="firstName1">Vergi Numarası </label>
          <input type="text" class="form-control" name="Fc_TaxNo" id="Fc_TaxNo" placeholder="Vergi No" maxlength="12" value="<?php echo  $Fc_TaxNo; ?>">
                            </div>
                          </div>
                          <div class="col-md-2">
                            <div class="form-group">
                              <label for="lastName1">Ticari Sicil Numarası</label>
<input type="text" class="form-control" name="Fc_TradeRegistry" id="Fc_TradeRegistry" placeholder="Ticari Sicil No" maxlength="12" value="<?php echo $Fc_TradeRegistry; ?>">
                            </div>
                          </div>
                            <div class="col-md-1">
                            <div class="form-group">
                              <label for="firstName1">Firma Kod</label>
            <input type="text" class="form-control" name="Fc_Code" id="Fc_Code" placeholder="Firmaya Kod Tanımlayın" maxlength="7" value="<?php echo $Fc_Code; ?>">
                            </div>
                          </div>
                        </div>
                    <!-- Firma İletişim -->

                     <div class="row">
                          <div class="col-md-2">
                            <div class="form-group">
                              <label for="firstName1">Telefon</label>
   <input type="text" class="form-control phone-formatter" name="Fc_Phone" id="Fc_Phone" placeholder="Telefon No" maxlength="10" value="<?php echo $Fc_Phone; ?>">
                            </div>
                          </div>
                          <div class="col-md-2">
                            <div class="form-group">
                              <label for="lastName1">Cep</label>
       <input type="text" class="form-control phone-formatter" name="Fc_Phone2" id="Fc_Phone2" placeholder="Cep No" value="<?php echo $Fc_Phone2; ?>">
                            </div>
                          </div>
                        
                          <div class="col-md-2">
                            <div class="form-group">
                              <label for="firstName1">Fax</label>
                               <input type="text" class="form-control phone-formatter" name="Fc_Fax" id="Fc_Fax" placeholder="Fax" value="<?php echo $Fc_Fax; ?>">
                            </div>
                          </div>
                          <div class="col-md-2">
                            <div class="form-group">
                              <label for="lastName1">Mail</label>
         <input type="text" class="form-control email-inputmask" name="Fc_Mail" id="Fc_Mail" placeholder="Email Address" value="<?php echo $Fc_Mail; ?>">
                            </div>
                          </div>

                           <div class="col-md-3">
                            <div class="form-group">
                              <label for="lastName1">Firma Web Adres</label>
<input type="text" class="form-control"  name="Fc_Webadress" id="Fc_Webadress"  placeholder=".com / com.tr / .net " value="<?php echo $Fc_Webadress; ?>">
                            </div>
                          </div>
                        </div>
       
                    <!-- Firma Adres -->

                     <div class="row">
                          <div class="col-md-2">
                            <div class="form-group">
                              <label for="firstName1">Ülke</label>
                               <select class="c-select form-control" id="country-dropdown" name="Fc_Country">
                                <option value="" >Ülke Seçiniz</option>
                                <?php
                                    
                                    $sql = "SELECT * FROM countries";
                                    $result = mysqli_query($con, $sql);
                                    while($row = mysqli_fetch_assoc($result)){
                                        $country_id=$row['id'];
                                ?>
                                <option value="<?php echo $row['id'] ?>"><?php echo $row['name'] ?></option>
                                <?php } ?>
                            </select>
                            </div>
                          </div>

                        <div class="col-md-2">
                          <div class="form-group">
                              <label for="firstName1">Şehir</label>
                               <select class="c-select form-control" id="Fc_City" name="Fc_City">
  

                                </select>
                            </div>
                          </div>

                         <div class="col-md-2">
                          <div class="form-group">
                              <label for="firstName1">İlçe</label>
                               <select class="c-select form-control" id="Fc_District" name="Fc_District">
  

                                </select>
                            </div>
                          </div>
                       
 
                          <div class="col-md-2">
                            <div class="form-group">
                              <label for="lastName1">Posta No</label>
            <input type="text" class="form-control" id="Fc_PostCode" name="Fc_PostCode" placeholder="_ _ _ _ _ _ " maxlength="6" value="<?php echo $Fc_PostCode; ?>">
                            </div>
                          </div>


                             <div class="col-md-2">
                            <div class="form-group">
                              <label for="date1">Değiştirme Tarihi</label>
                              <input type="date" class="form-control"  id="Fc_Date" name="Fc_Date" value="">
                            </div>
                          </div>
                      <div class="col-md-1">
                            <div class="form-group">
                              <label for="lastName1">Kayıt Tarih</label>
            <input type="text" class="form-control" id="Fc_Date2" name="Fc_Date2" placeholder="_ _ _ _ _ _ " maxlength="6" value="<?php echo $Fc_Date2; ?>">
                            </div>
                          </div>

                        </div>

                         <!-- Firma Adres 2 -->   

                         <div class="row">
                          <div class="col-md-6">
                            <div class="form-group">
                              <label for="firstName1">Firma Adres</label>
                              <input type="text" class="form-control" id="Fc_Adress" name="Fc_Adress" placeholder="Adress" value="<?php echo $Fc_Adress; ?>">
                            </div>
                          </div>
                         
                           
                        </div>


                         <!-- Firma Adres 2 -->  

                        <div class="row">



                            <div class="col-md-6">
                             <div class="form-group">
                                <h4 class="card-title">Firma Logo</h4>
                            <div class="custom-file">
                        <input type="file" class="custom-file-input" id="Fc_Logo" name="Fc_Logo" >
                        <label class="custom-file-label" for="inputGroupFile01">Firma ait logo yükleyiniz.</label>
                            </div>
                         </div>
                          </div>

                         
                          <div class="col-md-5">
                            <div class="form-group">
                            <label for="basicTextarea">Açıklama</label> 
          <textarea class="form-control" id="Fc_Exp" name="Fc_Exp" placeholder="Not" rows="3" style="margin-top: 0px; margin-bottom: 0px; height: 106px;"></textarea>
                            </div>
                          </div>
                         </div>
                        </div>

                      </fieldset>
                    <!-- <i class="ft-x"></i> <input type="submit" name="signup"  class="btn btn-primary float-right"value="KAYIT">-->
             <button type="submit" name="update" class="btn btn-outline-success  mr-1 mb-1 float-right"><i class="la la-check-circle"></i> Güncelle</button>
             <button type="button" class="btn btn-outline-danger btn-min-width mr-1 mb-1 float-right" data-dismiss="modal"><i class="ft-x"></i> İptal</button>
             <button type="button" class="btn btn-outline-warning btn-min-width mr-1 mb-1 float-right">Temizle</button>
                         
                    </div>
              
                </form>

           
                              </div>
                            </div>
                          </div>
                           <!-- Modal -->

                                   
  </div>
    <!-- END: Content-->

    <div class="sidenav-overlay"></div>
    <div class="drag-target"></div>

    <!-- BEGIN: Footer-->
    <footer class="footer footer-static footer-light navbar-border navbar-shadow">
        <p class="clearfix blue-grey lighten-2 text-sm-center mb-0 px-2"><span class="float-md-left d-block d-md-inline-block">Copyright &copy; 2021 <a class="text-bold-800 grey darken-2" href="https://www.doganetwork.com" target="_blank">DOĞA NETWORK</a></span></p>
    </footer>
    <!-- END: Footer-->


  <!-- BEGIN VENDOR JS-->
  <script src="app-assets/vendors/js/vendors.min.js"></script>
  <!-- BEGIN VENDOR JS-->
  <!-- BEGIN PAGE VENDOR JS-->
  <script src="app-assets/vendors/js/tables/jquery.dataTables.min.js"></script>
  <script src="app-assets/vendors/js/tables/datatable/dataTables.bootstrap4.min.js"></script>
  <script src="app-assets/vendors/js/tables/datatable/dataTables.responsive.min.js"></script>
  <script src="app-assets/vendors/js/tables/datatable/dataTables.rowReorder.min.js"></script>
  <script src="app-assets/vendors/js/forms/icheck/icheck.min.js"></script>
  <script src="app-assets/vendors/js/forms/select/select2.full.min.js"></script>
  <!-- END PAGE VENDOR JS-->
  <!-- BEGIN MODERN JS-->
  <script src="app-assets/js/core/app-menu.js"></script>
  <script src="app-assets/js/core/app.js"></script>
  <script src="app-assets/js/scripts/customizer.js"></script>

     <script src="app-assets/vendors/js/charts/chart.min.js"></script>
    <script src="app-assets/vendors/js/charts/raphael-min.js"></script>
    <script src="app-assets/vendors/js/charts/morris.min.js"></script>
    <script src="app-assets/vendors/js/charts/jvector/jquery-jvectormap-2.0.3.min.js"></script>
    <script src="app-assets/vendors/js/charts/jvector/jquery-jvectormap-world-mill.js"></script>
    <script src="app-assets/data/jvector/visitor-data.js"></script>

    <script src="app-assets/vendors/js/forms/extended/typeahead/typeahead.bundle.min.js"></script>
    <script src="app-assets/vendors/js/forms/extended/typeahead/bloodhound.min.js"></script>
    <script src="app-assets/vendors/js/forms/extended/typeahead/handlebars.js"></script>
    <script src="app-assets/vendors/js/forms/extended/inputmask/jquery.inputmask.bundle.min.js"></script>
    <script src="app-assets/vendors/js/forms/extended/formatter/formatter.min.js"></script>
    <script src="app-assets/vendors/js/forms/extended/maxlength/bootstrap-maxlength.js"></script>
    <script src="app-assets/vendors/js/forms/extended/card/jquery.card.js"></script>
  <!-- END MODERN JS-->
  <!-- BEGIN PAGE LEVEL JS-->
  <script src="app-assets/js/scripts/pages/users-contacts.js"></script>
  <script src="app-assets/js/scripts/forms/select/form-select2.js"></script>
  <script src="app-assets/js/scripts/modal/components-modal.js"></script>
  <script src="app-assets/js/scripts/pages/dashboard-sales.js"></script>
  <script src="app-assets/js/scripts/forms/extended/form-typeahead.js"></script>
  <script src="app-assets/js/scripts/forms/extended/form-inputmask.js"></script>
  <script src="app-assets/js/scripts/forms/extended/form-formatter.js"></script>
  <script src="app-assets/js/scripts/forms/extended/form-maxlength.js"></script>
  <script src="app-assets/js/scripts/forms/extended/form-card.js"></script>
  <!-- END PAGE LEVEL JS-->
      <script>
$(document).ready(function() {
$('#country-dropdown').on('change', function() {
var country_id = this.value;
$.ajax({
url: "states-by-country.php",
type: "POST",
data: {
country_id: country_id
},
cache: false,
success: function(result){
$("#Fc_City").html(result);
$('#Fc_District').html('<option value=""></option>'); 
}
});
});    
$('#Fc_City').on('change', function() {
var state_id = this.value;
$.ajax({
url: "cities-by-state.php",
type: "POST",
data: {
state_id: state_id
},
cache: false,
success: function(result){
$("#Fc_District").html(result);
}
});
});



});
</script>

</body>


<!-- END: Body-->

</html>





