<?php include 'loader.php'; ?>
<?php include 'inc/config.php'; ?>
<?php include 'inc/template_start.php'; ?>
<?php include 'inc/page_head.php'; ?>
<?php
if(!$user->isLogged()) $location->aredirect('login');
//if(!$func->get('reservation_id')) $location->aredirect('orders');
$room_info = [];
$path = '';

$proje_id = $func->get('proje_id')?$func->get('proje_id'):0;

if($_SERVER['REQUEST_METHOD']=='POST') {
    //$func->prnt($func->post(),true);
    if($func->get('id')) {
        $params = $func->post();
        $sql = [];
        foreach ($params as $key=>$param) {
            if($key=='fiyat'){
                $param = str_replace(',','.',$param);
            }
            $sql[]= $key." = '".$param."'";
        }
        $sql = implode(',',$sql);
        $db->query("UPDATE " . DBPREFIX . "items SET ".$sql." WHERE id='".$func->get('id')."'");
        $success->set('Daireniz başarıyla güncellenmiştir.');
    }else{
        $params = $func->post();
        $sql = [];
        foreach ($params as $key=>$param) {
            if($key=='fiyat'){
                $param = str_replace(',','.',$param);
            }
            $sql[]= $key." = '".$param."'";
        }
        $sql = implode(',',$sql);
        $db->query("INSERT INTO " . DBPREFIX . "items SET ".$sql);
        $success->set('Daireniz başarıyla eklenmiştir.');
    }
    //echo '<pre>';print_r($proje_id);echo '</pre>'; die();
    $location->aredirect('rooms','proje_id='.$proje_id);
}

$projeler = $db->query("SELECT * FROM " . DBPREFIX . "projeler ");
$projeler = $projeler->num_rows?$projeler->rows:array();

if($func->get('id')) {
    $room_info = $db->query("SELECT * FROM " . DBPREFIX . "items WHERE id = '".$func->get('id')."'");
    $room_info = $room_info->row;
    $path = '?id='.$func->get('id');
    //echo '<pre>';print_r($room_info);echo '</pre>'; die();
}
if($path){
    $path.= '&proje_id='.$proje_id;
}else{
    $path.= '?proje_id='.$proje_id;
}

?>
<!-- Page content -->
<div id="page-content">


    <div class="row">

        <div class="col-lg-12">
            <!-- Meta Data Block -->
            <div class="block">
                <!-- Meta Data Title -->
                <div class="block-title">
                    <h2><i class="fa fa-google"></i> <strong>Daire</strong> Ekle/Düzenle</h2>
                </div>
                <!-- END Meta Data Title -->

                <!-- Meta Data Content -->
                <form action="<?php echo SITE_ADMIN; ?>new_room.php<?php echo $path; ?>" method="post" class="form-horizontal form-bordered">

                    <div class="form-group">
                        <label class="col-md-3 control-label" for="product-point">Arsa Sahibi</label>
                        <div class="col-sm-9">
                            <select class="form-control" name="is_arsa_sahibi" id="is_arsa_sahibi">
                                <option <?php echo isset($room_info['is_arsa_sahibi']) && $room_info['is_arsa_sahibi']=='0'?'selected="selected"':''; ?> value="0">Hayır</option>
                                <option <?php echo isset($room_info['is_arsa_sahibi']) && $room_info['is_arsa_sahibi']=='1'?'selected="selected"':''; ?> value="1">Evet</option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-3 control-label" for="product-point">Proje</label>
                        <div class="col-sm-9">
                            <select class="form-control" name="proje_id" id="supports">
                                <option value="">-- Proje --</option>
                                <?php if($projeler){ ?>
                                    <?php foreach($projeler as $proje){ ?>
                                        <option <?php echo isset($room_info['proje_id']) && $room_info['proje_id']==$proje['id']?'selected="selected"':''; ?> value="<?php echo $proje['id']; ?>"><?php echo $proje['adi']; ?></option>
                                    <?php } ?>
                                <?php } ?>
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-3 control-label" for="product-point">Daire Türü</label>
                        <div class="col-sm-9">
                            <select class="form-control" name="daire_turu" id="supports">
                                <option value="">-- Daire Türü --</option>
                                <option <?php echo isset($room_info['daire_turu']) && $room_info['daire_turu']=='Daire'?'selected="selected"':''; ?> value="Daire">Daire</option>
                                <option <?php echo isset($room_info['daire_turu']) && $room_info['daire_turu']=='Villa'?'selected="selected"':''; ?> value="Villa">Villa</option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-3 control-label" for="product-meta-title">Blok</label>
                        <div class="col-md-9">
                            <select class="form-control" name="blok" id="blok" >
                                <option value="">-- Blok --</option>
                                <option <?php echo isset($room_info['blok']) && $room_info['blok']=='A'?'selected="selected"':''; ?> value="A">A Blok</option>
                                <option <?php echo isset($room_info['blok']) && $room_info['blok']=='B'?'selected="selected"':''; ?> value="B">B Blok</option>
                                <option <?php echo isset($room_info['blok']) && $room_info['blok']=='C'?'selected="selected"':''; ?> value="C">C Blok</option>
                                <option <?php echo isset($room_info['blok']) && $room_info['blok']=='D'?'selected="selected"':''; ?> value="D">D Blok</option>
                                <option <?php echo isset($room_info['blok']) && $room_info['blok']=='E'?'selected="selected"':''; ?> value="E">E Blok</option>
                                <option <?php echo isset($room_info['blok']) && $room_info['blok']=='F'?'selected="selected"':''; ?> value="F">F Blok</option>
                                <option <?php echo isset($room_info['blok']) && $room_info['blok']=='G'?'selected="selected"':''; ?> value="G">G Blok</option>
                                <option <?php echo isset($room_info['blok']) && $room_info['blok']=='H'?'selected="selected"':''; ?> value="H">H Blok</option>
                                <option <?php echo isset($room_info['blok']) && $room_info['blok']=='I'?'selected="selected"':''; ?> value="I">I Blok</option>
                                <option <?php echo isset($room_info['blok']) && $room_info['blok']=='J'?'selected="selected"':''; ?> value="J">J Blok</option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-3 control-label" for="product-meta-title">Daire No</label>
                        <div class="col-md-9">
                            <input type="text" id="product-daire" name="daire_no" value="<?php echo $room_info?$room_info['daire_no']:''; ?>" class="form-control" placeholder="Daire No">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label" for="product-meta-title">Oda</label>
                        <div class="col-md-9">
                            <select class="form-control" name="oda" id="oda">
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']==''){ ?>selected<?php } ?> value="">-- Oda Sayısı --</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='1+0'){ ?>selected<?php } ?> value="1+0">Stüdyo (1+0)</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='1+1'){ ?>selected<?php } ?> value="1+1">1 + 1</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='1.5+1'){ ?>selected<?php } ?> value="1.5+1">1.5 + 1</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='2+1'){ ?>selected<?php } ?> value="2+1">2 + 1</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='2.5+1'){ ?>selected<?php } ?> value="2.5+1">2.5 + 1</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='2+2'){ ?>selected<?php } ?> value="2+2">2 + 2</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='3+0'){ ?>selected<?php } ?> value="3+0">3 + 0</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='3+1'){ ?>selected<?php } ?> value="3+1">3 + 1</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='3.5+1'){ ?>selected<?php } ?> value="3.5+1">3.5 + 1</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='3+2'){ ?>selected<?php } ?> value="3+2">3 + 2</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='4+0'){ ?>selected<?php } ?> value="4+0">4 + 0</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='4+1'){ ?>selected<?php } ?> value="4+1">4 + 1</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='4.5+1'){ ?>selected<?php } ?> value="4.5+1">4.5 + 1</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='4+2'){ ?>selected<?php } ?> value="4+2">4 + 2</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='4+3'){ ?>selected<?php } ?> value="4+3">4 + 3</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='4+4'){ ?>selected<?php } ?> value="4+4">4 + 4</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='5+4'){ ?>selected<?php } ?> value="5+1">5 + 1</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='5.5+1'){ ?>selected<?php } ?> value="5.5+1">5.5 + 1</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='5+2'){ ?>selected<?php } ?> value="5+2">5 + 2</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='5+3'){ ?>selected<?php } ?> value="5+3">5 + 3</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='5+4'){ ?>selected<?php } ?> value="5+4">5 + 4</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='6+1'){ ?>selected<?php } ?> value="6+1">6 + 1</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='6+2'){ ?>selected<?php } ?> value="6+2">6 + 2</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='6+3'){ ?>selected<?php } ?> value="6+3">6 + 3</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='6+4'){ ?>selected<?php } ?> value="6+4">6 + 4</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='7+1'){ ?>selected<?php } ?> value="7+1">7 + 1</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='7+2'){ ?>selected<?php } ?> value="7+2">7 + 2</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='7+3'){ ?>selected<?php } ?> value="7+3">7 + 3</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='8+1'){ ?>selected<?php } ?> value="8+1">8 + 1</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='8+2'){ ?>selected<?php } ?> value="8+2">8 + 2</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='8+3'){ ?>selected<?php } ?> value="8+3">8 + 3</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='8+4'){ ?>selected<?php } ?> value="8+4">8 + 4</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='9+1'){ ?>selected<?php } ?> value="9+1">9 + 1</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='9+2'){ ?>selected<?php } ?> value="9+2">9 + 2</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='9+3'){ ?>selected<?php } ?> value="9+3">9 + 3</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='9+4'){ ?>selected<?php } ?> value="9+4">9 + 4</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='9+5'){ ?>selected<?php } ?> value="9+5">9 + 5</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='9+6'){ ?>selected<?php } ?> value="9+6">9 + 6</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='10+1'){ ?>selected<?php } ?> value="10+1">10 + 1</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='10+2'){ ?>selected<?php } ?> value="10+2">10 + 2</option>
                                <option <?php if(isset($room_info['oda']) && $room_info['oda']=='10+'){ ?>selected<?php } ?> value="10+">10 Üzeri</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label" for="product-telephone">Fiyat</label>
                        <div class="col-md-6">
                            <input type="text" id="product-price" name="fiyat" value="<?php echo $room_info?str_replace('.','',$room_info['fiyat']):''; ?>" class="form-control" placeholder="Fiyat">
                        </div>
                        <div class="col-md-3">
                            <select class="form-control" name="currency" id="currency">
                                <option <?php if(isset($room_info['currency']) && $room_info['currency']==''){ ?>selected<?php } ?> value="">-- Para Birimi --</option>
                                <option <?php if(isset($room_info['currency']) && $room_info['currency']=='$'){ ?>selected<?php } ?> value="$">Dolar ($)</option>
                                <option <?php if(isset($room_info['currency']) && $room_info['currency']=='₺'){ ?>selected<?php } ?> value="₺">Türk Lirası (₺)</option>
                                <option <?php if(isset($room_info['currency']) && $room_info['currency']=='€'){ ?>selected<?php } ?> value="€">Euro (€)</option>
                                <option <?php if(isset($room_info['currency']) && $room_info['currency']=='£'){ ?>selected<?php } ?> value="£">Sterlin (£)</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label" for="product-point">Brut Metre</label>
                        <div class="col-md-9">
                            <input type="text" id="product-meter" name="brut_metre" value="<?php echo $room_info?$room_info['brut_metre']:''; ?>" class="form-control" placeholder="Brut Metre">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label" for="product-point">Net Metre</label>
                        <div class="col-md-9">
                            <input type="text" id="product-net-meter" name="net_metre" value="<?php echo $room_info?$room_info['net_metre']:''; ?>" class="form-control" placeholder="Net Metre">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-3 control-label" for="product-point">Kat <?php //echo '<pre>';print_r($room_info);echo '</pre>'; die(); ?></label>
                        <div class="col-md-9">
                            <select name="kat" class="form-control">
                                <option value="">-- Bulunduğu Kat --</option>
                                <option value="Villa" <?php if(isset($room_info['kat']) && 'Villa'==$room_info['kat']){ ?> selected <?php } ?>>Villa</option>
                                <option value="Zemin Kat" <?php if(isset($room_info['kat']) && 'Zemin Kat'==$room_info['kat']){ ?> selected <?php } ?>>Zemin Kat</option>
                                <?php for($bk=1;$bk<30;$bk++){ ?>
                                    <option value="<?php echo $bk; ?>" <?php if(isset($room_info['kat']) && $bk==$room_info['kat']){ ?> selected <?php } ?>><?php echo $bk; ?></option>
                                <?php } ?>
                                <option value="30+" <?php if(isset($room_info['kat']) &&  '30+'==$room_info['kat']){ ?> selected <?php } ?>>30 ve üzeri</option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-3 control-label" for="product-point">Cephe</label>
                        <div class="col-sm-9">
                            <select class="form-control" name="cephe" id="supports">
                                <option value="">-- Cephe --</option>
                                <option <?php echo isset($room_info['cephe']) && $room_info['cephe']=='Kuzey'?'selected="selected"':''; ?> value="Kuzey">Kuzey</option>
                                <option <?php echo isset($room_info['cephe']) && $room_info['cephe']=='Kuzey Doğu'?'selected="selected"':''; ?> value="Kuzey Doğu">Kuzey Doğu</option>
                                <option <?php echo isset($room_info['cephe']) && $room_info['cephe']=='Kuzey Batı'?'selected="selected"':''; ?> value="Kuzey Batı">Kuzey Batı</option>
                                <option <?php echo isset($room_info['cephe']) && $room_info['cephe']=='Güney'?'selected="selected"':''; ?> value="Güney">Güney</option>
                                <option <?php echo isset($room_info['cephe']) && $room_info['cephe']=='Güney Doğu'?'selected="selected"':''; ?> value="Güney Doğu">Güney Doğu</option>
                                <option <?php echo isset($room_info['cephe']) && $room_info['cephe']=='Güney Batı'?'selected="selected"':''; ?> value="Güney Batı">Güney Batı
                                <option <?php echo isset($room_info['cephe']) && $room_info['cephe']=='Doğu'?'selected="selected"':''; ?> value="Doğu">Doğu</option>
                                <option <?php echo isset($room_info['cephe']) && $room_info['cephe']=='Batı'?'selected="selected"':''; ?> value="Batı">Batı</option>
                                <option <?php echo isset($room_info['cephe']) && $room_info['cephe']=='Güney - Batı - Kuzey'?'selected="selected"':''; ?> value="Güney - Batı - Kuzey">Güney - Batı - Kuzey</option>
                                <option <?php echo isset($room_info['cephe']) && $room_info['cephe']=='Güney - Doğu - Kuzey'?'selected="selected"':''; ?> value="Güney - Doğu - Kuzey">Güney - Doğu - Kuzey</option>

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

                    <div class="form-group">
                        <label class="col-md-3 control-label" for="product-point">Daire Tipi</label>
                        <div class="col-sm-9">
                            <select class="form-control" name="daire_tipi" id="supports">
                                <option value="">-- Daire Tipi --</option>
                                <option <?php echo isset($room_info['daire_tipi']) && $room_info['daire_tipi']=='Dublex'?'selected="selected"':''; ?> value="Dublex">Dublex</option>
                                <option <?php echo isset($room_info['daire_tipi']) && $room_info['daire_tipi']=='Ayrı Mutfak'?'selected="selected"':''; ?> value="Ayrı Mutfak">Ayrı Mutfak</option>
                                <option <?php echo isset($room_info['daire_tipi']) && $room_info['daire_tipi']=='Amerikan Mutfak'?'selected="selected"':''; ?> value="Amerikan Mutfak">Amerikan Mutfak</option>
                                <option <?php echo isset($room_info['daire_tipi']) && $room_info['daire_tipi']=='Villa'?'selected="selected"':''; ?> value="Villa">Villa</option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-3 control-label" for="product-point">Teras, Bahçe, Balkon</label>
                        <div class="col-sm-9">
                            <select class="form-control" name="diger_metre" id="diger_metre">
                                <option value="">-- Teras, Bahçe, Balkon Tipi --</option>
                                <option <?php echo isset($room_info['diger_metre']) && $room_info['diger_metre']=='Hobi Bahçesi'?'selected="selected"':''; ?> value="Hobi Bahçesi">Hobi Bahçesi</option>
                                <option <?php echo isset($room_info['diger_metre']) && $room_info['diger_metre']=='Teras'?'selected="selected"':''; ?> value="Teras">Teras</option>
                                <option <?php echo isset($room_info['diger_metre']) && $room_info['diger_metre']=='Balkon'?'selected="selected"':''; ?> value="Balkon">Balkon</option>
                                <option <?php echo isset($room_info['diger_metre']) && $room_info['diger_metre']=='Hobi Bahçesi - Balkon'?'selected="selected"':''; ?> value="Hobi Bahçesi - Balkon">Hobi Bahçesi - Balkon</option>
                                <option <?php echo isset($room_info['diger_metre']) && $room_info['diger_metre']=='Hobi Bahçesi - Balkon - Teras'?'selected="selected"':''; ?> value="Hobi Bahçesi - Balkon - Teras">Hobi Bahçesi - Balkon - Teras</option>
                                <option <?php echo isset($room_info['diger_metre']) && $room_info['diger_metre']=='Hobi Bahçesi - Balkon - Teras - Havuz'?'selected="selected"':''; ?> value="Hobi Bahçesi - Balkon - Teras - Havuz">Hobi Bahçesi - Balkon - Teras - Havuz</option>
                                <option <?php echo isset($room_info['diger_metre']) && $room_info['diger_metre']=='Hobi Bahçesi - Teras'?'selected="selected"':''; ?> value="Hobi Bahçesi - Teras">Hobi Bahçesi - Teras</option>
                                <option <?php echo isset($room_info['diger_metre']) && $room_info['diger_metre']=='Hobi Bahçesi - Balkon'?'selected="selected"':''; ?> value="Hobi Bahçesi - Balkon">Hobi Bahçesi - Balkon</option>
                                <option <?php echo isset($room_info['diger_metre']) && $room_info['diger_metre']=='Hobi Bahçesi - Havuz'?'selected="selected"':''; ?> value="Hobi Bahçesi - Havuz">Hobi Bahçesi - Havuz</option>
                                <option <?php echo isset($room_info['diger_metre']) && $room_info['diger_metre']=='Teras - Balkon'?'selected="selected"':''; ?> value="Teras - Balkon">Teras - Balkon</option>
                                <option <?php echo isset($room_info['diger_metre']) && $room_info['diger_metre']=='Teras - Havuz'?'selected="selected"':''; ?> value="Teras - Havuz">Teras - Havuz</option>
                                <option <?php echo isset($room_info['diger_metre']) && $room_info['diger_metre']=='Teras - Hobi Bahçesi'?'selected="selected"':''; ?> value="Teras - Hobi Bahçesi">Teras - Hobi Bahçesi</option>
                                <option <?php echo isset($room_info['diger_metre']) && $room_info['diger_metre']=='Balkon - Havuz'?'selected="selected"':''; ?> value="Balkon - Havuz">Balkon - Havuz</option>
                                <option <?php echo isset($room_info['diger_metre']) && $room_info['diger_metre']=='Hobi Bahçesi - Teras - Havuz'?'selected="selected"':''; ?> value="Hobi Bahçesi - Teras - Havuz">Hobi Bahçesi - Teras - Havuz</option>
                                <option <?php echo isset($room_info['diger_metre']) && $room_info['diger_metre']=='Hobi Bahçesi - Balkon - Havuz'?'selected="selected"':''; ?> value="Hobi Bahçesi - Balkon - Havuz">Hobi Bahçesi - Balkon - Havuz</option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-3 control-label" for="product-meta-title">Durumu</label>
                        <div class="col-md-9">
                            <select type="text" id="durum" name="durum" class="form-control">
                                <option value="0" <?php echo isset($room_info['durum']) && $room_info['durum']=='0'?'selected="selected"':''; ?>>Satılık</option>
                                <option value="1" <?php echo isset($room_info['durum']) && $room_info['durum']=='1'?'selected="selected"':''; ?>>Satıldı</option>
                                <option value="2" <?php echo isset($room_info['durum']) && $room_info['durum']=='2'?'selected="selected"':''; ?>>Opsiyonlandı</option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-3 control-label" for="product-point">Açıklama</label>
                        <div class="col-md-9">
                            <textarea id="product-aciklama" name="aciklama" class="form-control" placeholder="Açıklama"><?php echo $room_info?$room_info['aciklama']:''; ?></textarea>
                        </div>
                    </div>


                    <div class="form-group form-actions">
                        <div class="col-md-9 col-md-offset-3">
                            <button type="submit" class="btn btn-sm btn-primary"><i class="fa fa-floppy-o"></i> Kaydet</button>
                            <a href="<?php echo SITE_ADMIN; ?>rooms.php?proje_id=<?php echo $proje_id; ?>" class="btn btn-sm btn-warning"><i class="fa fa-repeat"></i> İptal</a>
                        </div>
                    </div>
                </form>
                <!-- END Meta Data Content -->
            </div>
            <!-- END Meta Data Block -->

        </div>
    </div>


</div>









<?php include 'inc/page_footer.php'; ?>
<?php include 'inc/template_scripts.php'; ?>

<!-- Load and execute javascript code used only in this page -->
<script src="js/pages/ecomProducts.js"></script>
<script src="js/simple.money.format.js" type="text/javascript"></script>
<script>
    $(function(){ EcomProducts.init(); });
    $(document).ready(function () {
        $('input[name="fiyat"]').simpleMoneyFormat();
    });
</script>

<?php include 'inc/template_end.php'; ?>
