
<div class="pcoded-main-container">
    <div class="pcoded-content">
        <!-- [ breadcrumb ] start -->
        <div class="page-header">
            <div class="page-block">
                <div class="row align-items-center">
                    <div class="col-md-12">
                        <div class="page-header-title">
                            <h5 class="m-b-10">İşler</h5>
                        </div>
                        <ul class="breadcrumb">
                            <li class="breadcrumb-item"><a href="<?php echo site_url('anasayfa');?>"><i class="feather icon-home"></i></a></li>
                            <li class="breadcrumb-item"><a href="#">İş Ekle</a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
        <!-- [ breadcrumb ] end -->
        <!-- [ Main Content ] start -->
      
                     
                  
 <div class="row justify-content-center">
            <!-- liveline-section start -->
    <div class="col-sm-12">
			 <div class="card">
							<div class="card-header">
								<h5>İş Ekle</h5>
							</div>
							<div class="card-body">
           
				 
				 
        
			<form enctype="multipart/form-data" id="islerform" action="<?php echo site_url('isler/add');?>" method="POST">
			
          	<div class="box-body">
          	<div class="row clearfix">
					<div class="col-md-4">
						<label for="musteri" class="control-label">Müşteri</label>
						<div class="form-group">
							<select name="musteri" class="form-control"  data-plugin="select2" data-live-search="true">
								<option value="">Müşteri Seçiniz</option>
								<?php 
								foreach($all_musteri as $musteri)
								{
									$selected = ($musteri['id'] == $this->input->post('musteri')) ? ' selected="selected"' : "";

									echo '<option value="'.$musteri['id'].'" '.$selected.'>'.$musteri['ad'].'</option>';
								} 
								?>
							</select>
						</div>
					</div>
					<div class="col-md-4">
						<label for="yapan" class="control-label">Çalışan</label>
						<div class="form-group">
							<select name="yapan" class="form-control" data-plugin="select2" data-live-search="true">
								<option value="">Havuz</option>
								<?php 
								foreach($all_calisan as $calisan)
								{
									if ($calisan['tur']!=1)
									{
									$selected = ($calisan['id'] == $this->input->post('yapan')) ? ' selected="selected"' : "";

									echo '<option value="'.$calisan['id'].'" '.$selected.'>'.$calisan['ad'].'</option>';
									}
								} 
								?>
							</select>
						</div>
					</div>
					<div class="col-md-4">
						<label for="istur" class="control-label">İş Türü</label>
						<div class="form-group">
							<select name="istur" class="form-control" data-plugin="select2">
								<option value="">İş Türü Seçiniz</option>
								<?php 
								foreach($all_calisantur as $calisantur)
								{
									if ($calisantur['id']!=1)
									{
									$selected = ($calisantur['id'] == $this->input->post('istur')) ? ' selected="selected"' : "";

									echo '<option value="'.$calisantur['id'].'" '.$selected.'>'.$calisantur['brans'].'</option>';
									}
								} 
								?>
							</select>
						</div>
					</div>
					<div class="col-md-12">
						<label for="aciklama" class="control-label">Açıklama</label>
						<div class="form-group">
							<textarea name="aciklama" class="form-control" rows="5" style="width:100%" value="<?php echo $this->input->post('aciklama'); ?>" ><?=set_value('aciklama')?></textarea>
							
						</div>
					</div>
					<div class="col-md-6">
						<label for="fiyat" class="control-label ">Fiyat</label>
						<div class="form-group">
							<input type="number" class="form-control" name="fiyat" value="<?php echo $this->input->post('fiyat'); ?>" data-plugin="TouchSpin"
                    data-min="-1000000000" data-max="1000000000" data-stepinterval="50"
                    data-maxboostedstep="10000000" data-prefix="TL" value="750" />
						</div>
					</div>
					
							
						
					<div class="col-md-6">
						<label for="acil" class="control-label">Acil</label>
						<div class="form-group">
							<select name="acil" class="form-control" data-plugin="select2">
								<option value="1">Çok Acil</option>
								<option value="2" >Acil</option>
								<option value="3">Normal</option>
								<option value="4" >Yavaş</option>
								
							</select>
						</div>
					</div>
								
							<input type="Hidden" name="onay" value="0" class="form-control" id="onay" />
							<input type="Hidden" name="bastarih" value="<?php echo $this->input->post('bastarih'); ?>" class="form-control" id="bastarih" />
							<input type="Hidden" name="dosyagiden" value="<?php echo $this->input->post('dosyagiden'); ?>" class="form-control" id="dosyagiden" />
							
							<div class="col-md-12">
							<button type="submit" class="btn btn-success">
								<i class="fa fa-check"></i> Kaydet
							</button>
							</div>
							
						
				</div>
			</div>
			
          	
            <?php echo form_close();?>
     </br>
     </br>
			<div class="row ">
				<div class="col-md-12">
				<form method="post" action="<?php echo site_url('isler/dropyukle');?>" enctype="multipart/form-data" class="dropzone" id="myAwesomeDropzone">
				</form>
				 <br>
				<button type="button" class="btn btn-info" id="submit_dropzone_form">Yükle</button>
				 
				 </div>
			</div>
			
	 
	   
	 </div>
           </div>

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