	<?php $this->load->view("common/header"); ?>
	<!-- end: HEAD -->
       
		<!-- start: CSS REQUIRED FOR THIS PAGE ONLY -->

		<link rel="stylesheet" href="<?php echo asset_url(); ?>plugins/select2/select2.css">
		<link rel="stylesheet" href="<?php echo asset_url(); ?>plugins/datepicker/css/datepicker.css">
		<link rel="stylesheet" href="<?php echo asset_url(); ?>plugins/bootstrap-timepicker/css/bootstrap-timepicker.min.css">
		<link rel="stylesheet" href="<?php echo asset_url(); ?>plugins/bootstrap-daterangepicker/daterangepicker-bs3.css">
		<link rel="stylesheet" href="<?php echo asset_url(); ?>plugins/bootstrap-colorpicker/css/bootstrap-colorpicker.css">
		<link rel="stylesheet" href="<?php echo asset_url(); ?>plugins/jQuery-Tags-Input/jquery.tagsinput.css">
		<link rel="stylesheet" href="<?php echo asset_url(); ?>plugins/bootstrap-fileupload/bootstrap-fileupload.min.css">
		<link rel="stylesheet" href="<?php echo asset_url(); ?>plugins/summernote/build/summernote.css">
  <link rel="stylesheet" href="<?php echo asset_url(); ?>css/jquery-ui.css">
		<style type="text/css">
			label {
					font-weight: 700;
				  }

				.table > thead:first-child > tr:first-child > th, .table > thead:first-child > tr:first-child > td, .table-striped thead tr.primary:nth-child(2n+1) th {
				    background-color: #428bca;
				    border-color: #357ebd;
				    border-top: 1px solid #357ebd;
				    color: white;
				    text-align: center;
				}
				
				.form-horizontal .form-group {
 					 margin-left: 0;
 					 margin-right: 0;
				}
		</style>

		<!-- end: CSS REQUIRED FOR THIS PAGE ONLY -->
	<!-- end: HEAD -->
	<!-- start: BODY -->
	<body>
    
		<!-- start: HEADER -->
		<div class="navbar navbar-inverse navbar-fixed-top">
			<!-- start: TOP NAVIGATION CONTAINER -->
			<div class="container">
				<div class="navbar-header">
					<!-- start: RESPONSIVE MENU TOGGLER -->
					<button data-target=".navbar-collapse" data-toggle="collapse" class="navbar-toggle" type="button">
						<span class="clip-list-2"></span>
					</button>
					<!-- end: RESPONSIVE MENU TOGGLER -->
					<!-- start: LOGO -->
					<?php $this->load->view("common/logo"); ?>
					<!-- end: LOGO -->
				</div>
				<div class="navbar-tools">
					<!-- start: TOP NAVIGATION MENU -->
				<?php $this->load->view("common/notifications.php"); ?>
					<!-- end: TOP NAVIGATION MENU -->
				</div>
			</div>
			<!-- end: TOP NAVIGATION CONTAINER -->
		</div>
		<!-- end: HEADER -->
		<!-- start: MAIN CONTAINER -->
		<div class="main-container">
			<div class="navbar-content">
				<!-- start: SIDEBAR -->
				<?php $this->load->view("common/navigation"); ?>
				<!-- end: SIDEBAR -->
			</div>
			<!-- start: PAGE -->
			<div class="main-content">
				<!-- start: PANEL CONFIGURATION MODAL FORM -->
				<div class="modal fade" id="panel-config" tabindex="-1" role="dialog" aria-hidden="true">
					<div class="modal-dialog">
						<div class="modal-content">
							<div class="modal-header">
								<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
									&times;
								</button>
								<h4 class="modal-title">Panel Configuration</h4>
							</div>
							<div class="modal-body">
								Here will be a configuration form
							</div>
							<div class="modal-footer">
								<button type="button" class="btn btn-default" data-dismiss="modal">
									Close
								</button>
								<button type="button" class="btn btn-primary">
									Save changes
								</button>
							</div>
						</div>
						<!-- /.modal-content -->
					</div>
					<!-- /.modal-dialog -->
				</div>
				<!-- /.modal -->
				<!-- end: SPANEL CONFIGURATION MODAL FORM -->
				<div class="container">
					<!-- start: PAGE HEADER -->
					<div class="row">
						<div class="col-sm-12">
							<!-- start: PAGE TITLE & BREADCRUMB -->
							<ol class="breadcrumb">
								<li>
									<a href="<?php echo base_url('dashboard'); ?>">
										 Dashboard 
									</a>
								</li>
                                <li>
									<a href="#">
										 Product 
									</a>
								</li>
                                
								<li class="active">
									Edit Product
								</li>
								<li class="search-box">
									<form class="sidebar-search">
										<div class="form-group">
											<input type="text" placeholder="Start Searching...">
											<button class="submit">
												<i class="fa fa-search"></i>
											</button>
										</div>
									</form>
								</li>
							</ol>
							<div class="page-header">
								<h1>Edit Product</h1>
							</div>
							<!-- end: PAGE TITLE & BREADCRUMB -->
						</div>
					</div>
                    <!-- start grid -->
                    <div class="row">
						<div class="col-md-12">
							<!-- start: DYNAMIC TABLE PANEL -->
							<div class="panel panel-default">
								<div class="panel-heading">
									<i class="fa fa-external-link-square"></i>
									Edit Product
								</div>
                                
<?php 
$config = array('role' =>'form', 'class'=>'form-horizontal','id'=>'add_product_form', 'name'=>'add_product_form');
echo form_open_multipart("#",$config);
?>
<input type="hidden" name="product_id" value="<?php echo $product_details->product_id; ?>">                                
                                
 <div class="panel-body"> 
<!--coll left start-->
<div class="col-md-6 pull-left">
<div class="form-group">
    <label class="col-sm-3 control-label" for="form-field-1">
    Product Name
    *</label>
    <div class="col-sm-8">
    <input type="text" id="product_name" class="form-control" name="product_name" value="<?php echo $product_details->product_name; ?>">
    </div>
    </div>
<div class="form-group">
<label class="col-sm-3 control-label" for="form-field-2">
Product Code
*</label>
<div class="col-sm-8">
<input type="text" readonly id="product_code" class="form-control" value="<?php echo $product_details->product_code; ?>" name="product_code">
</div>
</div> 
  <div class="form-group">
<label class="col-sm-3 control-label" for="form-field-3" >
Category*
</label>
<div class="col-sm-8">
<select class="form-control search-select" id="category" name="category">
<option value="">&nbsp;</option>
<?php foreach ($main_category as $key => $category) {
if ($product_details->cat_id == $category->cat_id) {
echo "<option selected value='$category->cat_id; ?>'>$category->cat_name</option>";										
} else {
echo "<option value='$category->cat_id'>$category->cat_name</option>";										
}
} ?>
</select>

</div>
</div>  
<div class="form-group">
<label class="col-sm-3 control-label" for="form-field-3" >
Sub Category
</label>
<div id="subcat_data" class="col-sm-8">
<select data-placeholder="Select Category to load Subcategories" id="subcategory" class="form-control search-select" name="subcategory">
<?php foreach ($sub_category as $key => $sub_category) {
if ($product_details->sub_cat_id == $sub_category->sub_cat_id) {
echo "<option selected value='$sub_category->sub_cat_id; ?>'>$sub_category->sub_cat_name</option>";										
} else {
echo "<option value='$sub_category->sub_cat_id'>$sub_category->sub_cat_name</option>";										
}
} ?>
</select>
</div>
</div> 

<div class="form-group">
											<label class="col-sm-3 control-label" for="form-field-2">
											Product Unit *
											</label>
											<div class="col-sm-8">
												<select id="form-field-select-3 unit" class="form-control search-select" name="unit">
					                                <option value="">&nbsp;</option>
						                            <?php foreach ($unit_type as $key => $unit) {
						                            	if ($product_details->product_unit == $unit->unit_id) {
						                            	echo "<option selected value='$unit->unit_id'>$unit->unit_code</option>";
						                            	} else {
						                            	echo "<option value='$unit->unit_id'>$unit->unit_code</option>";
						                            	}
						                            	
						                            } ?>  
					                             </select>
											</div>
										</div>
                                        
<div class="form-group">
    <label class="col-sm-3 control-label" for="form-field-2">
    Product Image
    </label>
    <div class="col-sm-8">
    <div class="fileupload fileupload-new" data-provides="fileupload">

													<div class="input-group">
														<div class="form-control uneditable-input">
															<i class="fa fa-file fileupload-exists"></i>
															<span class="fileupload-preview"></span>
														</div>
														<div class="input-group-btn">
															<div class="btn btn-light-grey btn-file">
																<span class="fileupload-new"><i class="fa fa-folder-open-o"></i> Select file</span>
																<span class="fileupload-exists"><i class="fa fa-folder-open-o"></i> Change</span>
																<input type="file" class="file-input" name="userfile">
															</div>
															<a href="#" class="btn btn-light-grey fileupload-exists" data-dismiss="fileupload">
																<i class="fa fa-times"></i> Remove
															</a>
														</div>
													</div>
												</div>
    </div>
    </div>
    
</div>  <!--coll left end-->

<!--coll right start-->
<div class="col-md-6 pull-left">
											<div class="form-group">
											<label class="col-sm-3 control-label" for="form-field-2">
												Product Price  ..*
											</label>
											<div class="col-sm-8">
												<input type="text" id="product_price" class="form-control auto" name="product_price" data-a-sign="Rs. " data-d-group="2" value="<?php echo $product_details->product_price; ?>">
											</div>
										</div>
                                        <div class="form-group">
											<label class="col-sm-3 control-label" for="form-field-2">
												Product Cost *
											</label>
											<div class="col-sm-8">
												<input type="text" id="product_cost" class="form-control auto" name="product_cost" data-a-sign="Rs. " data-d-group="2" value="<?php echo $product_details->product_cost; ?>">
											</div>
										</div>
                                         <div class="form-group">
											<label class="col-sm-3 control-label" for="form-field-2">
												Wholesale Price *
											</label>
											<div class="col-sm-8">
												<input type="text" id="wholesale_price" class="form-control auto" name="wholesale_price" data-a-sign="Rs. " data-d-group="2" value="<?php echo $product_details->wholesale_price; ?>">
											</div>
										</div>   
                                         <div class="form-group">
											<label class="col-sm-3 control-label" for="form-field-2">
												Credit Selling Price 
											</label>
											<div class="col-sm-8">
												<input type="text" id="credit_salling_price" class="form-control auto" name="credit_salling_price" data-a-sign="Rs. " data-d-group="2" value="<?php echo $product_details->credit_salling_price; ?>">
											</div>
										</div> 
                                        <div class="form-group">
											<label class="col-sm-3 control-label" for="form-field-2">
												Alert Quantity
											</label>
											<div class="col-sm-8">
												<input type="text" id="alert_quty" name="alert_quty" class="form-control" value="<?php echo $product_details->product_alert_qty; ?>">
											</div>
										</div>
                                         <div class="form-group">
											<label class="col-sm-3 control-label" for="form-field-2">
												Store Position
											</label>
											<div class="col-sm-8">
                                             <input type="text" id="store_position" class="form-control" name="store_position" value="<?php echo $product_details->store_position; ?>">
											
											
											</div>
										</div> 
                                        
<div class="form-group">
                                        <div class="col-sm-12">
												<label class="control-label col-sm-3" style="margin-left:-14px">
													Product Details
												</label>
                                            <div class="col-sm-8">    
												<textarea style="margin-left:8px; width:106%;" class="ckeditor form-control" cols="12" rows="2" name="product_details" ><?php echo $product_details->product_details; ?></textarea></div>
    </div>
    </div>
    <div class="form-group">
    <div class="col-sm-12">       
    <button class="btn btn-primary btn-squared pull-right" type="submit">
    Update Product
    </button>
    </div>
    </div>                                        
</div> <!--coll right end--> 
</div>
</form>

                             
                                
                                <div class="panel-body">
								    <div id="error"></div>

<!-- start cost -->
 <!--Extra menu items-->
                                    <div class="panel panel-default">
                                        <div class="panel-heading">
                                          
                                              
                                                    <i class="icon-arrow"></i>
                                                 Calculate Product Cost
                                               
                                         
                                        </div>
                                        <div >
                                            <div class="panel-body">
                                            <!--start Extra menu items body-->
   <!-- item add box-->
                
                <div class="well well-sm">
                  <div class=""> 
                    <!-- auto complete start -->
                    <div class="input-group wide-tip">
                      <div style="padding-left: 10px; padding-right: 10px;" class="input-group-addon"> <i class="fa fa-2x fa-barcode addIcon"></i> </div>
                      
                      <input type="text" placeholder="Add Items" id="add_extra_item_tab" class="form-control input-lg" value="" name="add_extra_item_tab"  style="border-radius: 6px;font-size: 18px;height: 46px;line-height: 1.33;padding: 10px 16px;">
                      <div style="padding-left: 10px; padding-right: 10px;" class="input-group-addon"> <!--<a href="#" data-toggle="modal" id="modal_ajax_service_btn" title=" Add Service"> <span class="title">
                      <i id="addIcon" class="fa fa-2x fa-plus-circle addIcon"></i></span></a>--> </div>
                    </div>
                    <!-- end auto complete end --> 
                    
                  </div>
                  <div class="clearfix"></div>
                  <div class="control-group table-group"> <br>
                  
                    <div class="controls table-controls">
                    <?php //print_r($selected_menu_list);?>
                      <table class="table items table-striped table-bordered table-condensed table-hover" id="ExtraItemTable">
                        <thead>
                          <tr>
                            <th>Description</th>
                            <th class="text-right col-sm-4">Note</th>
                           <th class="text-right col-sm-2">Amount per Unit</th>
                            <th class="text-right col-sm-1" style="width:150px">Qty<span class="currency"></span> </th>
                            <th class="text-right col-sm-1">Sub Total</th>
                            <th style="width: 30px !important; text-align: center;"><i class="fa fa-trash-o"></i></th>
                            
                          </tr>
                        </thead>
                        <tbody>
                        
                        <?php 
						$tmp_th_ext=0;
                                                $tmp_th_e=0;
												$extra_item_tot_amount=0;
                                                if (isset($selected_extra_menu_list)){
													//print_r($selected_extra_menu_list);
                                                     foreach ($selected_extra_menu_list as $row)
                                      {
                                          $tmp_th_e++;
										  $tmp_th_ext++;
										  
										  
										  $extra_item_tot_amount=$extra_item_tot_amount+$row->tot_amount;
										  
										  
										  //get unit id
										  $itmmod=new Menu_Items_List_Model();
										  $item_dtls=$itmmod->get_item_info($row->item_id);
										  $item_unit=$item_dtls['item_unit'];
										  $um=new Unit_Model();
										  $unit_dtls=$um->get_unit_info($item_unit);
										  $unit_code=$unit_dtls['unit_code'];
											//bkng_itm_note
                                                 ?>
                        <tr id="row_e_<?php echo $tmp_th_e;?>" class="child"><td>
						<?php echo $row->item_name; ?> 
                        <input type="hidden" id="extra_item_<?php echo $tmp_th_e;?>" value="<?php echo $row->item_id; ?>" name="row_e[<?php echo $tmp_th_e;?>][item_id][]" class="rquantity">
                        <input name="row_e[<?php echo $tmp_th_e;?>][extra_item][]" type="hidden" id="itm_type_<?php echo $tmp_th_e;?>" value="<?php echo $row->bkng_extra_item ?>">
                        </td>
                          <td class="text-right">
                          <input type="text" value="<?php echo $row->bkng_itm_note ?>" id="input" name="row_e[<?php echo $tmp_th_e;?>][bkng_itm_note][]" style="width:100%; text-align:left"></td>
                        <td class="text-right">
                        <input type="text" value="<?php echo $row->bkng_itm_price; ?>" id="price_e_<?php echo $tmp_th_e;?>" name="row_e[<?php echo $tmp_th_e;?>][price][]" style="width:100px; text-align:right">
                        </td>
                        <td class="text-right">(<?php echo $unit_code ?>)
                        <input type="text" onSelect="this.select() setTmpVal(this.value);" onChange="extra_item_qty_change(<?php echo $tmp_th_e;?>)" value="<?php echo $row->bkng_itm_qty; ?>" id="itm_qty_<?php echo $tmp_th_e;?>" name="row_e[<?php echo $tmp_th_e;?>][itm_qty][]" style="width:100px; text-align:right"> 
                        </td>
                         <td class="text-right">
                        <input type="text" value="<?php echo $row->tot_amount; ?>" id="sub_tot_<?php echo $tmp_th_e;?>" name="row_e[<?php echo $tmp_th_e;?>][sub_tot][]" style="width:100px; text-align:right">
                        </td>
                        <td><a onClick="deleteExtraItem(<?php echo $tmp_th_e;?>)"><i style="cursor:pointer;" title="Remove" id="1446800197032" class="fa fa-times tip podel"></i></a></td></tr>
                        <?php } }?>
                        <tfoot>
                          <tr data-item-id="144680019784" class="row_144680019784" id="row_1446800197032">
                          
                            
                            <td colspan="4" align="right" class="text-right"><strong>Total Amount</strong></td>
                             <td class="text-right"><input readonly type="text" value="<?php echo $extra_item_tot_amount ?>" id="extra_item_tot_amount" name="extra_item_tot_amount" style="width:100px; text-align:right; float:right;"></td>
                              <td class="text-right"></td>
                          </tr>
                          </tfoot>
                        </tbody>
                        
                      </table>
                      
                      <!-- start list --> 
                      <!-- end list --> 
                    </div>
                  </div>
                </div>
                <!-- end item add box-->
                
                
                <div class="form-group">
                  <div class="col-sm-12"> 
                  
                  <input type="submit" style="margin-right:10px;" id="booking_add_extra_items" name="booking_add_extra_items" value="Add Items" class="pull-right btn btn-primary">
                  
                 </div>
                </div>                                           
                                                
                                                  <!--end Extra menu items body-->
                                            </div>
                                        </div>
                                    </div><!--Extra menu items-->
<!-- end cost -->
                                       
										</div>
                                        
  <input name="rowCount_e" id="rowCount_e" type="text" value="0">                                      

										
									</form>
								</div>
							</div>
							</div>
							<!-- end: DYNAMIC TABLE PANEL -->
						</div>
					</div>
                    <!-- end grid -->
			</div>
			<!-- end: PAGE -->
			<!-- end: PAGE -->
		</div>
		<!-- end: MAIN CONTAINER -->
		<!-- start: FOOTER -->
		<div class="footer clearfix">
			<div class="footer-inner">
				2018 &copy; smartsalleepos.com
			</div>
			<div class="footer-items">
				<span class="go-top"><i class="clip-chevron-up"></i></span>
			</div>
		</div>
		<!-- end: FOOTER -->
		<!-- start: RIGHT SIDEBAR -->
		<!-- end: RIGHT SIDEBAR -->
		<div id="event-management" class="modal fade" tabindex="-1" data-width="760" style="display: none;">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
							&times;
						</button>
						<h4 class="modal-title">Event Management</h4>
					</div>
					<div class="modal-body"></div>
					<div class="modal-footer">
						<button type="button" data-dismiss="modal" class="btn btn-light-grey">
							Close
						</button>
						<button type="button" class="btn btn-danger remove-event no-display">
							<i class='fa fa-trash-o'></i> Delete Event
						</button>
						<button type='submit' class='btn btn-success save-event'>
							<i class='fa fa-check'></i> Save
						</button>
					</div>
				</div>
			</div>
		</div>


<input name="tmpVal" type="hidden" id="tmpVal" value="0">

<input name="" id="type_sale" type="hidden" value="22">
<input name="" id="warehouse_id" type="hidden" value="1">



		<!-- start ajax model -->
		<div id="ajax-modal" class="modal fade" data-backdrop="static" data-keyboard="false" tabindex="-1" style="display: none;"></div>
		<!-- end ajax model -->
        
        

		<!-- start: MAIN JAVASCRIPTS -->
		<?php $this->load->view("common/footer"); ?>
        
		<script src="<?php echo asset_url(); ?>js/jquery-ui.js" ></script>		
		<script src="<?php echo asset_url(); ?>js/moment-with-locales.js"></script>
		<script type="text/javascript" src="<?php echo asset_url(); ?>js/bootstrap-datetimepicker.js"></script>
		
		<script type="text/javascript" src="<?php echo asset_url(); ?>js/bootbox.min.js"></script>
        
         <script type="text/javascript" src="<?php echo asset_url(); ?>js/accounting.js"></script>
          <script type="text/javascript" src="<?php echo asset_url(); ?>js/accounting.min.js"></script>
        
		<!-- end: MAIN JAVASCRIPTS -->
        
 		<!-- start: JAVASCRIPTS REQUIRED FOR THIS PAGE ONLY VALIDATION-->
		<script src="<?php echo asset_url(); ?>js/form-validation-create_sales.js"></script>
        <script src="<?php echo asset_url(); ?>js/sales.js"></script>
        <script src="<?php echo asset_url(); ?>js/booking_add.js"></script>
         <script src="<?php echo asset_url(); ?>js/booking_extra_itm_add.js"></script>
		<!-- end: JAVASCRIPTS REQUIRED FOR THIS PAGE ONLY  VALIDATION-->
        
<script>

//Save Extra Items
$( "#booking_add_extra_items" ).click(function() {
	//alert();
	 var fields = $("#booking_item_save").serialize();
	 $.post( "<?php echo base_url();?>products/booking_extra_item_save", fields)
	.done(function( data ) {
		  //alert();
		  var obj = jQuery.parseJSON(data);
			if(obj.error==1){
				$('.alert-success').hide();
				$('.alert-danger').show();
				$( ".errortxt" ).text( obj.disMsg );
			}
			if(obj.error==0){
				 displayNotice('page','Extra items successfully added!');
				 $("#booking_add_extra_items").prop("disabled", false);
		 		 $("#booking_add_extra_items").val('Add Exttra Items');
				//clearForm();
				calculateBookingGrandTotal();
				
			}
	  });
	return false;
	
});


//extra item start
        $("#add_extra_item_tab").autocomplete({
			
            source: '<?php echo base_url();?>products/menu_extra_item_suggestions?w='+$("#warehouse_id").val(),
            minLength: 1,
            autoFocus: false,
            delay: 5,
            response: function (event, ui) {
				
			
				if (ui.content.length == 1 && ui.content[0].product_id != 0)
				{
					//ui.item = ui.content[0];
 					//$(this).data('ui-autocomplete')._trigger('select', 'autocompleteselect', ui);
					//$(this).autocomplete('close');
                    //$(this).removeClass('ui-autocomplete-loading');
				}else if(ui.content.length ==0){
					var noResult = { value:"",label:"No matching result found! Service might be out of stock in the selected warehouse." };
            		ui.content.push(noResult);
				}else {

				}
			
            },
            select: function (event, data) {
				//alert( "You selected: " + data.item.product_id );
				if(data.item.value){
					
					//check is added prodcut
					rowCount=parseInt($('#rowCount_e').val());
					
					var tmp='';
					if(rowCount){
	  					tmp=isExtraAddedProduct(data.item.item_id);
					}
	   				if(!tmp){
						addExtraItemToListByID(data.item.item_id,data.item.item_code,data.item.item_name,data.item.item_price,data.item.unit_code);
					}else {
						calculateTotal();
						displayNotice('page','Already added menu item');
					}
				
				
				$("#add_extra_item_tab").val('');
					 return false;
				}
				$(this).autocomplete('close');
                $(this).removeClass('ui-autocomplete-loading');
				
            }
        });
		//end extra item	
		
		
		function add_product(form) {
alert(444);
               $('body').modalmanager('loading');
                setTimeout(function () {
                    $.ajax({
                    url: "<?php echo base_url('products/edit_product'); ?>", // Url to which the request is send
                    type: "POST",             // Type of request to be send, called as method
                    data: new FormData(form), // Data sent to server, a set of key/value pairs (i.e. form fields and values)
                    contentType: false,       // The content type used when sending data to the server.
                    cache: false,             // To unable request pages to be cached
                    processData:false,        // To send DOMDocument or non processed data file it is set to false
                        success: function(data)   // A function to be called if request succeeds
                        {
                            var obj = jQuery.parseJSON(data);
                            if (obj.status==0) 
                                {
                                    $('div#error').html('<div class="alert alert-block alert-danger fade in"><button type="button" class="close" data-dismiss="alert">×</button><h4 class="alert-heading"><i class="fa fa-times-circle"></i> Error!</h4>'+obj.validation+'</div>');
                                    $('body').modalmanager('removeLoading');
                                    $('body').attr('class','');
                                } 
                                else
                                {
                                    $('body').modalmanager('removeLoading');
                                    $('body').attr('class','');
                                    set_message('categories notice!','Product successfully Added');
									//document.getElementById("add_product_form").reset();
                                };

                        }
                    });
                }, 1000);
		}

			jQuery(document).ready(function() {
				$(".search-select").select2({
					allowClear: true
				});

				FormValidator.init();
    			//$('.auto').autoNumeric('init');
			});

</script>


	</body>
	<!-- end: BODY -->
</html>