<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php
ini_set('memory_limit', '256M');
// error_reporting(0);
require('connect.php');
include('header.php');
date_default_timezone_set("Europe/Athens");
require('includes/resizeImage.class.php');
?>
<link rel="stylesheet" href="css/control_styles.css">
<script src="js/smtp.js"></script>
<script src="js/plupload.full.min.js"></script>
<script src="js/jquery.plupload.queue/jquery.plupload.queue.js"></script>
<script src="js/control_functions.js"></script>
<?php
date_default_timezone_set("Europe/Athens");
$qry = "SELECT * FROM companies";
$qry2 = "SELECT * FROM packing";
$qrymon = "SELECT * FROM monada";
$qryusr = "SELECT * FROM users";
$res = mysqli_query($dbC,$qry);
$res2 = mysqli_query($dbC,$qry2);
$resmon = mysqli_query($dbC,$qrymon);
$resusr = mysqli_query($dbC,$qryusr);
$etiketeza = ["-","A","B","D","E","F","K","L","M","N","O","P","Q","R","S","T","TW","Z","KL","LR","LV","Δεν αναγράφεται"];
$metatopish = ["Όχι","1 ημέρα","2 ημέρες","3 ημέρες","4 ημέρες","5 ημέρες","6 ημέρες","7 ημέρες","Άλλο"];
$cols = Array(
"" => ["S/N Κιβωτίου"=>"sn_kib","Ποσότητα Πάγου %"=>"posothta_pagou","Ποσότητα Πάγου σε Kg"=>"pagos_kg",
			 "Θερμοκρασία Κιβωτίου"=>"therm_kiv","Θερμοκρασία Ψαριού"=>"therm_psariwn","Αριθμός Ψαριών"=>"ar_psariwn",
			 "Αναγραφόμενο Βάρος Κιβωτίου"=>"varos_kiv","Αποβολή Τροφής"=>"apobolh_trofhs","Αποβολή Γενετικού Υλικού"=>"apobolh_genul",
			 "Υπομεγέθη"=>"upomege8h","Υπερμεγέθη"=>"upermege8h"
		 	],
"Αιματώματα"=>["Κεφαλή"=>["Ελαφρά"=>"kefalh_elafra", "Μεσαία"=>"kefalh_mesaia", "Έντονα"=>"kefalh_entona"],
               "Κοιλιά"=>["Κηλίδες"=>"koilia_khlides","Στικτά"=>"koilia_stikta","Διάχυτα"=>"koilia_diaxuta"],
               "Σώμα"=>["Κηλίδες"=>"swma_khlides","Στικτά"=>"swma_stikta","Διάχυτα"=>"swma_diaxuta"]
             ],
"Βράγχια"=>["Ρόδινα"=>"vragxia_rodina","Φαιά"=>"vragxia_faia","Μ.Ε.Β.Ν."=>"vragxia_mebn","Αιματώματα"=>"vragxia_aimat",
            "Καφέ"=>"vragxia_kafe","Αποχρωματισμένα"=>"vragxia_apoxr","Βλέννα"=>"vragxia_vlenna","Αιματηρή Βλέννα"=>"vragxia_aim_vlenn"
           ],

"Μάτια"=>["Λαμπερά"=>"matia_lampera","Θολά"=>"matia_thola","Λευκά"=>"matia_leuka","Επουλωμένα"=>"matia_epoulwmena",
          "Τυφλά"=>"matia_tufla","Αιμοραγικά"=>"matia_aimoragika"
         ],

"Δυσμορφίες"=>["Στραβό Στόμα"=>"stravo_stoma","Εξόγκωμα κάτω σιαγώνας"=>"eksogkoma_katw","Προέκταση κάτω σιαγώνας"=>"proekt_katw",
               "Παραμορφωμένο κεφάλι"=>"paramorf_kefali","Κάθετο εμπρός κεφάλι"=>"katheto_kefali","Παπαγαλάκι"=>"papagalaki",
               "Μόνο Βραγχιοκάλυμμα"=>"vragxiokaluma","Ραχιτικά"=>"raxitika","Λόρδωση"=>"lordwsh","Κοντόχοντρα"=>"kontoxontra","Κλίση ουράς"=>"klish_ouras"
              ],

"Αλλοιώσεις"=>["Φαγωμένες ουρές/πτερύγια"=>"fagwmenes_oures","Πληγές & γδαρμένα"=>"plhges_gdarmena"],

"Παράσιτα"=>["Ψείρες"=>"pseires","lernanthropus"=>"lamanthropus"]
);
?>
<form id="uploadimage" action="" method="post" enctype="multipart/form-data"></form>
<div class="container-fluid">
	<div class="panel-group">
		<div class="panel panel-default">
			 <div class="panel-body">
					<div class="row">
						 <div class="col-sm-5">
								<div class="form-group">
									 <label for="hm_paralav">Ημ/νία Παραλαβής</label>
									 <input class="form-control hmfrm" type="date" name="hm_paralav" id="hm_paralav" />
								</div>
						 </div>
						 <div class="col-sm-5">
							 <label>Δελτίο Αποστολής</label>
							 <div class="form-group">
									<input class="form-control" type="text" name="deltio_apost" />
							 </div>
						 </div>
						 <div class="col-sm-2">
								<div class="form-group">
									 <label for="hm_paralav2">Καμία ημερομηνία</label>
									 <input type="checkbox" class="form-control" name="hm_paralav2" value="-" id="hm_paralav2" />
								</div>
						 </div>
					</div>
			 </div>
		</div>

		<div class="panel panel-default">
			 <div class="panel-body">
					<div class="row">
						 <div class="col-sm-4">
								<label for="etairia">Εταιρία:</label>
								<div class="form-group">
									 <select class="selectpicker" name="etairia" data-live-search="true" id="etairia">
											<?php
												 while($row=mysqli_fetch_array($res)){
														echo "<option data-compid=\"".$row['id']."\">".$row['company_name']."</option>";
												 }
											?>
									 </select>
								</div>
						 </div>
						 <div class="col-sm-4">
								<label for="monada_paxunshs">Μονάδα Πάχυνσης:</label>
								<div class="form-group">
									 <select class="selectpicker" name="monada_paxunshs" id="monada_paxunshs" data-live-search="true">
											<?php
												 while($rowmon=mysqli_fetch_array($resmon)){
														echo "<option>".$rowmon['text']."</option>";
												 }
											?>
									 </select>
								</div>
						 </div>
						 <div class="col-sm-4">
								<label for="kwd_sus">Συσκευαστήριο:</label>
								<div class="form-group">
									 <select class="selectpicker" name="kwd_sus" id="kwd_sus" data-live-search="true">
											<?php
												 while($row=mysqli_fetch_array($res2)){
														echo "<option>".$row['text']."</option>";
												 }
											?>
									 </select>
								</div>
						 </div>
					</div>

					<div class="row">
						 <div class="col-sm-4">
								<label for="etiketeza">Ετικετέζα:</label>
								<div class="form-group">
									 <select class="selectpicker" name="etiketeza" id="etiketeza">
										 <?php
											 foreach($etiketeza as $etiket){
												 echo "<option>".$etiket."</option>";
											 }
										 ?>
									 </select>
								</div>
						 </div>
						 <div class="col-sm-4">
								<label for="metatopish">Μετατόπιση:</label>
								<div class="form-group">
									 <select class="selectpicker" name="metatopish" id="metatopish">
										 <?php
											foreach($metatopish as $metat){
												echo "<option>".$metat."</option>";
											}
										?>
									 </select>
								</div>
						 </div>
						 <div class="col-sm-4">
								<label for="elegkths">Ελεγκτής:</label>
								<div class="form-group">
									 <select class="selectpicker" name="elegkths" id="elegkths">
										 <option>Άλλο</option>
										 <?php
											 while($usr = mysqli_fetch_array($resusr)){
												 echo "<option value='".$usr['ALogin']."'>".$usr['fullname']."</option>";
											 }
										 ?>
									 </select>
								</div>
						 </div>
					</div>
			 </div>
		</div>

		<div class="panel panel-default">
			 <div class="panel-body">
					<div class="row">
						 <div class="col-sm-4">
								<label>Ημ/νία Ελέγχου:</label>
								<div class="form-group">
									 <input class="form-control" type="date" name="hm_elegxou" value="<?php echo date('Y-m-d'); ?>"/>
								</div>
						 </div>
						 <div class="col-sm-4">
								<label>Ώρα Ελέγχου:</label>
								<div class="form-group">
									 <input class="form-control" type="time" name="wra_elegxou" value="<?php echo date('G:i'); ?>"/>
								</div>
						 </div>
						 <div class="col-sm-4">
								<label>Ημερομηνία Λήξης - Παραγωγής:</label>
								<div class="form-group">
									 <input class="form-control hmfrm" type="date" name="hm_lixpar"/>&nbsp;Καμία Ημ/νία&nbsp;<input class="incheck" type="checkbox" name="no_lixpar" class="form-control"/>
								</div>
						 </div>
					</div>
			 </div>
		</div>

		<div class="panel panel-default">
			 <div class="panel-body">
					<div class="row">
						 <div class="col-sm-4">
								<label>Είδος Ψαριών</label>
								<div class="row">
									<div class="col-sm-8 col-sm-offset-2">
										<select class="form-control" name="eidos">
											 <option>Κ</option>
											 <option>Λ</option>
											 <option>Μ</option>
											 <option>Τ</option>
											 <option>Άλλο</option>
										</select>
									</div>
								</div>
						 </div>
						 <div class="col-sm-4">
								<label>Είδος Κιβωτίου</label>
								<div class="form-group">
									 <select class="selectpicker" name="eidos_kiv">
											<option>Κανονικό</option>
											<option>Ροκάκι</option>
											<option>Καστράκι</option>
									 </select>
								</div>
						 </div>
						 <div class="col-sm-4">
								<label>Παρτίδα</label>
								<div class="form-group">
									 <input class="form-control" type="number" name="partida" />
								</div>
						 </div>
					</div>
			 </div>
		</div>

		<div class="panel panel-default">
			 <div class="panel-body">
					<div class="row">
						 <div class="col-sm-3 col-sm-offset-3">
								<div class="checkbox">
									 <label><input type="checkbox" value="1" name="apousia_swmatwn"> Απουσία ξένων σωμάτων</label>
								</div>
						 </div>
						 <div class="col-sm-3">
							<button class="btn btn-danger" onClick="control2db('midsave');">Αποθήκευση</button>
						 </div>
					</div>
			 </div>
		</div>
	</div>

			<div class="panel panel-default">
				 <div class="panel-heading" id="toggle_partbl" style="cursor:pointer;">Πίνακας Παραγωγής <span class="pull-right"><i id="toggle_partbl2" class="glyphicon glyphicon-plus"></i></span></div>
				 <div class="panel-body" style="display: none;" id="partbl_body">
						<table class="table table-striped table-responsive table-bordered">
							 <thead>
									<tr>
										 <th><button class="btn btn-default"><i title="Προσθήκη Επιπλέον Γραμμών" style="text-align:center;" class="glyphicon glyphicon-plus" onClick="add_row(15);"></i></button></th>
										 <th>Κιβώτιο 1</th>
										 <th>Κιβώτιο 2</th>
										 <th>Κιβώτιο 3</th>
										 <th>Κιβώτιο 4</th>
										 <th>Κιβώτιο 5</th>
										 <th>Κιβώτιο 6</th>
										 <th>Κιβώτιο 7</th>
										 <th>Κιβώτιο 8</th>
										 <th>Κιβώτιο 9</th>
										 <th>Κιβώτιο 10</th>
									</tr>
									<tr>

										<th>Μέγεθος</th>
										<?php
											for($i=1;$i<=10;$i++){
												echo '<th>
																<select class="form-control megethos" name="megethos[]" data-order="'.$i.'">
													 				<option>2/3</option>
													 				<option>3/4</option>
													 				<option>400/500</option>
													 				<option>300/500</option>
													 				<option>500/600</option>
													 				<option>500/1000</option>
													 				<option>4/6</option>
															 		<option>6/8</option>
													 				<option>8/1000</option>
													 				<option>1000+</option>
													 				<option>1500+</option>
													 				<option>Άλλο</option>
																</select>
															</th>';
											}
										?>
									</tr>
									<tr>
										<th>Βαρ.Κιβ.</th>
										<?php
											for($i=1;$i<=10;$i++){
												echo "<th>
																<select class=\"form-control varos_kiv\" name=\"varos_kiv2[]\" data-order=\"".$i."\">
													 				<option>3</option>
													 				<option>6</option>
													 				<option>10</option>
																</select>
															</th>";
											}
										?>
									</tr>
							 </thead>
							 <tbody id="pinpar">
								 <!-- <tr class="partr" id="1">
										<td class='parrow'>1</td>
										<td><center><input class="form-control" type='number' data-order='1' name='par_kiv1[]' /></center></td>
										<td><center><input class="form-control" type='number' data-order='2' name='par_kiv2[]' /></center></td>
										<td><center><input class="form-control" type='number' data-order='3' name='par_kiv3[]' /></center></td>
										<td><center><input class="form-control" type='number' data-order='4' name='par_kiv4[]' /></center></td>
										<td><center><input class="form-control" type='number' data-order='5' name='par_kiv5[]' /></center></td>
										<td><center><input class="form-control" type='number' data-order='6' name='par_kiv6[]' /></center></td>
										<td><center><input class="form-control" type='number' data-order='7' name='par_kiv7[]' /></center></td>
										<td><center><input class="form-control" type='number' data-order='8' name='par_kiv8[]' /></center></td>
										<td><center><input class="form-control" type='number' data-order='9' name='par_kiv9[]' /></center></td>
										<td><center><input class="form-control" type='number' data-order='10' name='par_kiv10[]' /></center></td>
								 </tr> -->
								 <?php
								 	for($i=1;$i<=25;$i++){
										echo "<tr class=\"partr\">
	 										<td class='parrow'>".$i."</td>
	 										<td><center><input class=\"form-control\" type='number' data-order='1' name='par_kiv1[]' /></center></td>
	 										<td><center><input class=\"form-control\" type='number' data-order='2' name='par_kiv2[]' /></center></td>
	 										<td><center><input class=\"form-control\" type='number' data-order='3' name='par_kiv3[]' /></center></td>
	 										<td><center><input class=\"form-control\" type='number' data-order='4' name='par_kiv4[]' /></center></td>
	 										<td><center><input class=\"form-control\" type='number' data-order='5' name='par_kiv5[]' /></center></td>
	 										<td><center><input class=\"form-control\" type='number' data-order='6' name='par_kiv6[]' /></center></td>
	 										<td><center><input class=\"form-control\" type='number' data-order='7' name='par_kiv7[]' /></center></td>
	 										<td><center><input class=\"form-control\" type='number' data-order='8' name='par_kiv8[]' /></center></td>
	 										<td><center><input class=\"form-control\" type='number' data-order='9' name='par_kiv9[]' /></center></td>
	 										<td><center><input class=\"form-control\" type='number' data-order='10' name='par_kiv10[]' /></center></td>
	 								 </tr>";
									}
								 ?>
								<tfoot>
									<tr>
										<td>Σύνολο</td>
										<td id="athr1"><center><input class="form-control" name="pinsum[]" type="number" /></center></td>
										<td id="athr2"><center><input class="form-control" name="pinsum[]" type="number" /></center></td>
										<td id="athr3"><center><input class="form-control" name="pinsum[]" type="number" /></center></td>
										<td id="athr4"><center><input class="form-control" name="pinsum[]" type="number" /></center></td>
										<td id="athr5"><center><input class="form-control" name="pinsum[]" type="number" /></center></td>
										<td id="athr6"><center><input class="form-control" name="pinsum[]" type="number" /></center></td>
										<td id="athr7"><center><input class="form-control" name="pinsum[]" type="number" /></center></td>
										<td id="athr8"><center><input class="form-control" name="pinsum[]" type="number" /></center></td>
										<td id="athr9"><center><input class="form-control" name="pinsum[]" type="number" /></center></td>
										<td id="athr10"><center><input class="form-control" name="pinsum[]" type="number" /></center></td>
									</tr>
								</tfoot>
						 	</tbody>
						</table>
				 </div>
			</div>

				<div class="panel-group">
					<?php


						foreach($cols as $title => $col){
							if(is_array($col)){
								echo "<div class='panel panel-info'>
												<div class='panel-heading' style='font-weight:600;'>";
								echo "<div class='row'>
												<div class='col-sm-2'>".$title."</div>";
								for($i=1;$i<=10;$i++){
									echo "<div class='col-sm-1'>".$i."</div>";
								}
								echo "</div></div>
											<div class='panel-body ".greeklish($title)."'>";
								foreach($col as $title => $col){
									if(is_array($col)){
										echo "<div class='panel panel-default'>
														<div class='panel-heading' style='font-weight:600;'>".$title."</div>
														<div class='panel-body'>";
										foreach($col as $title => $col){
											echo "<div class='row'>
															<div class='col-sm-2'>
																".$title."
															</div>";
											for($i=0;$i<=9;$i++){
												echo "<div class='col-sm-1'>
																<input type='number' name='".$col."[]' data-kivn='".$i."' class='form-control' />
															</div>";
											}
											echo "</div>";
										}
										echo "</div>"; //panel-body
										echo "</div>"; //panel-info
									} else {
										echo "<div class='row'>
														<div class='col-sm-2'>
															".$title."
														</div>";
										for($i=0;$i<=9;$i++){
											echo "<div class='col-sm-1'>
															<input type='number' name='".$col."[]' data-kivn='".$i."' class='form-control' />
														</div>";
										}
										echo "</div>";
									}
								}
								echo "</div>"; //panel-body
								echo "</div>"; //panel-info
							} else {
								echo "<div class='row'>
												<div class='col-sm-2'>
													".$title."
												</div>";
								for($i=0;$i<=9;$i++){
									echo "<div class='col-sm-1'>
													<input type='number' name='".$col."[]' data-kivn='".$i."' class='form-control' />
												</div>";
								}
								echo "</div>";
							}
						}

					?>
				</div>

				<div class="row">
					<table border="1" style="text-align: center;" class="table table-striped table-bordered table-condensed  table-responsive">
						 <tr>
								<th>Κατάσταση Δέρματος</th>
								<th></th>
								<th>Κατάσταση Οφθαλμού</th>
								<th></th>
								<th>Κατάσταση Βραγχίων</th>
								<th></th>
						 </tr>
						 <tr>
								<td>Ζωηρό και ιριδίζον χρώμα χωρίς αποχρωματισμό. <br />Υδαρή και διαυγή επικαλύπτουσα γλοιώδη ουσία.</td>
								<td>Βαθ.<br />4<br /><input type="radio" class="form-control rating" name="katast_dermatos" value="4" /></td>
								<td>Κυρτός (bombe). Κερατοειδής διαυγής, <br />κόρη μαύρη και στίλβουσα.</td>
								<td>Βαθ.<br />4<br /><input type="radio" class="form-control rating" name="katast_ofthalmou" value="4" /></td>
								<td>Στίλβοντα. Άνευ βλέννας.</td>
								<td>Βαθ.<br />4<br /><input type="radio" class="form-control rating" name="katast_bragxiwn" value="4" /></td>
						 </tr>
						 <tr>
								<td>Ζωηρό χρώμα χωρίς λάμψη. <br />Επικαλύπτουσα γλοιώδη ουσία, ελαφρώς θολή.</td>
								<td>Βαθ.<br />3<br /><input type="radio" class="form-control rating" name="katast_dermatos" value="3" /></td>
								<td>Κυρτός ελαφρώς αποκυρτούμενος. <br />Κερατοειδής ελαφρώς αδιαφανής, μαύρη κόρη, θαμπή.</td>
								<td>Βαθ.<br />3<br /><input type="radio" class="form-control rating" name="katast_ofthalmou" value="3" /></td>
								<td>Λιγότερο χρωματισμένα. <br />Ελαφρά ίχνη διαυγούς επικαλύπτουσας γλοιώδους ουσίας.</td>
								<td>Βαθ.<br />3<br /><input type="radio" class="form-control rating" name="katast_bragxiwn" value="3" /></td>
						 </tr>
						 <tr>
								<td>Αποχρωματισμένο & θαμπό με<br />θολή γλοιώδης ουσία.</td>
								<td>Βαθ.<br />2<br /><input type="radio" class="form-control rating" name="katast_dermatos" value="2" /></td>
								<td>Επίπεδος, αδιαφανής, κόρη διαφανής.</td>
								<td>Βαθ.<br />2<br /><input type="radio" class="form-control rating" name="katast_ofthalmou" value="2" /></td>
								<td>Αποχρωματισμένα με ελαφρώς θολή<br />γλοιώδης ουσία.</td>
								<td>Βαθ.<br />2<br /><input type="radio" class="form-control rating" name="katast_bragxiwn" value="2" /></td>
						 </tr>
						 <tr>
								<td>Χρώμα θαμπό. Αδιαφανή επιλύπτουσα γλοιώδη ουσία.</td>
								<td>Βαθ.<br />1<br /><input type="radio" class="form-control rating" name="katast_dermatos" value="1" /></td>
								<td>Κοίλος εις το μέσον. <br />Κερατοειδής γαλακτόχρους, κόρη γκρίζα.</td>
								<td>Βαθ.<br />1<br /><input type="radio" class="form-control rating" name="katast_ofthalmou" value="1" /></td>
								<td>Κιτρινωπά. <br />Γαλακτόχροα επικαλύπτουσα γλοιώδη ουσία.</td>
								<td>Βαθ.<br />1<br /><input type="radio" class="form-control rating" name="katast_bragxiwn" value="1" /></td>
						 </tr>
					</table>
				</div>

				<div class="row">
					<table border="1" id="rate_tbl" class="table table-bordered table-condensed  table-responsive">
						 <tr>
								<th>Βαθμοί</th>
								<th>Χαρακτηρισμός</th>
						 </tr>
						 <tr class="ratings">
								<td>10 - 12</td>
								<td>EXTRA</td>
						 </tr>
						 <tr class="ratings">
								<td>7 - 9</td>
								<td>A</td>
						 </tr>
						 <tr class="ratings">
								<td>4 - 6</td>
								<td>B</td>
						 </tr>
						 <tr class="ratings">
								<td>4</td>
								<td>Απορριπτέο</td>
						 </tr>
					</table>
				</div>

				<div class="row">
					<center><b>Γενικά</b></center>
					<table border="1" class="table table-striped table-bordered table-condensed  table-responsive">
						 <tr>
								<th>Κατάσταση Σάρκας</th>
								<th></th>
								<th>Χρώμα</th>
								<th></th>
								<th>Απολέπιση</th>
								<th></th>
								<th>Αιματώματα</th>
								<th></th>
								<th>Κοιλιά</th>
						 </tr>
						 <tr>
								<td>Λεία & Υγρή <input class="form-control" type="radio" name="stat_sarkas" value="Λεία & Υγρή" /></td>
								<td></td>
								<td>Ιριδίζον <input class="form-control" type="radio" name="stat_xrwma" value="Ιριδίζον" /></td>
								<td></td>
								<td>Ελαφρή <input class="form-control" type="radio" name="stat_apolepish" value="Ελαφρή" /></td>
								<td></td>
								<td>Κεφαλή <input class="form-control" type="radio" name="stat_aimatwmata" value="Κεφαλή" /></td>
								<td></td>
								<td>Κυλινδρική <input class="form-control" type="radio" name="stat_koilia" value="Κυλινδρική" /></td>
						 </tr>
						 <tr>
								<td>Κέρινη <input class="form-control" type="radio" name="stat_sarkas" value="Κέρινη" /></td>
								<td></td>
								<td>Ζωηρό <input class="form-control" type="radio" name="stat_xrwma" value="Ζωηρό" /></td>
								<td></td>
								<td>Μεσαία <input class="form-control" type="radio" name="stat_apolepish" value="Μεσαία" /></td>
								<td></td>
								<td>Σώμα <input class="form-control" type="radio" name="stat_aimatwmata" value="Σώμα" /></td>
								<td></td>
								<td>Διογκωμένη <input class="form-control" type="radio" name="stat_koilia" value="Διογκωμένη" /></td>
						 </tr>
						 <tr>
								<td>Στεγνή <input class="form-control" type="radio" name="stat_sarkas" value="Στεγνή" /></td>
								<td></td>
								<td>Θαμπό <input class="form-control" type="radio" name="stat_xrwma" value="Θαμπό" /></td>
								<td></td>
								<td>Έντονη <input class="form-control" type="radio" name="stat_apolepish" value="Έντονη" /></td>
								<td></td>
								<td>Περιοχές <input class="form-control" type="radio" name="stat_aimatwmata" value="Περιοχές" /></td>
								<td></td>
								<td>Μαλακή <input class="form-control" type="radio" name="stat_koilia" value="Μαλακή" /></td>
						 </tr>
					</table>
				</div>

				<div class="row">
					<table border="1" class="table table-striped table-bordered table-condensed  table-responsive">
						 <tr>
								<th></th>
								<th>Τυπική</th>
								<th>Προβληματική</th>
								<th>Μη Αποδεκτή</th>
								<th>Διόρθωση</th>
						 </tr>
						 <tr>
								<td>Κουρμπάρισμα</td>
								<td><input class="form-control" type="radio" name="susk_kourmparisma" value="Τυπική" /></td>
								<td><input class="form-control" type="radio" name="susk_kourmparisma" value="Προβληματική" /></td>
								<td><input class="form-control" type="radio" name="susk_kourmparisma" value="Μη Αποδεκτή" /></td>
								<td><input class="form-control" type="radio" name="susk_kourmparisma" value="Διόρθωση" /></td>
						 </tr>
						 <tr>
								<td>Κατάσταση Φελιζόλ</td>
								<td><input class="form-control" type="radio" name="susk_felizol" value="Τυπική" /></td>
								<td><input class="form-control" type="radio" name="susk_felizol" value="Προβληματική" /></td>
								<td><input class="form-control" type="radio" name="susk_felizol" value="Μη Αποδεκτή" /></td>
								<td><input class="form-control" type="radio" name="susk_felizol" value="Διόρθωση" /></td>
						 </tr>
						 <tr>
								<td>Κατάσταση Πάγου</td>
								<td><input class="form-control" type="radio" name="susk_pagos" value="Τυπική" /></td>
								<td><input class="form-control" type="radio" name="susk_pagos" value="Προβληματική" /></td>
								<td><input class="form-control" type="radio" name="susk_pagos" value="Μη Αποδεκτή" /></td>
								<td><input class="form-control" type="radio" name="susk_pagos" value="Διόρθωση" /></td>
						 </tr>
						 <tr>
								<td>Κατάσταση Παλέτας</td>
								<td><input class="form-control" type="radio" name="susk_paleta" value="Τυπική" /></td>
								<td><input class="form-control" type="radio" name="susk_paleta" value="Προβληματική" /></td>
								<td><input class="form-control" type="radio" name="susk_paleta" value="Μη Αποδεκτή" /></td>
								<td><input class="form-control" type="radio" name="susk_paleta" value="Διόρθωση" /></td>
						 </tr>
						 <tr>
								<td>Κατάσταση Σήμανσης</td>
								<td><input class="form-control" type="radio" name="susk_shmansh" value="Τυπική" /></td>
								<td><input class="form-control" type="radio" name="susk_shmansh" value="Προβληματική" /></td>
								<td><input class="form-control" type="radio" name="susk_shmansh" value="Μη Αποδεκτή" /></td>
								<td><input class="form-control" type="radio" name="susk_shmansh" value="Διόρθωση" /></td>
						 </tr>
					</table>

				</div>
				<div class="row">
					<div class="panel panel-default">
						 <div class="panel-body">
								<div class="row">
									 <div class="col-sm-12">
											<div style="text-align:center;" class="checkbox">
												 <label><input type="checkbox" value="1" name="apodekth">Η παρτίδα είναι αποδεκτή</label>
											</div>
									 </div>
								</div>
						 </div>
					</div>
				</div>
			</div>

			<div class="row">
				<div class="col-sm-6 col-sm-offset-3" style="text-align:center;">
					<div id="filelist">Your browser doesn't have Flash, Silverlight or HTML5 support.</div>
					<div id="console"></div>
					<div id="upcontainer" class="row">
						<div class="col-sm-2 col-sm-offset-4">
							<a id="pickfiles" href="javascript:;" class="btn btn-default">Select files</a>
						</div>
						<div class="col-sm-2">
							<a id="uploadfiles" href="javascript:;" class="btn btn-default">Upload files</a>
						</div>

					</div>
					<div class="row" style="margin-top:1rem;margin-bottom:2.5rem;">
						 <p><b>ΠΑΡΑΤΗΡΗΣΕΙΣ: Οι θερμογράφοι να είναι σε ετοιμότητα 24ωρης εγγραφής!!! <br />Σύντομη Περιγραφή του Δείγματος</b></p>
						 <textarea class="form-control" name="parathrhseis" style="height:200px;width:400px;margin-left: auto;margin-right: auto;"></textarea>
						 <br />
						 <input class="btn btn-default" type="submit" name="submit" value="Καταχώρηση" onClick="control2db('new',-1,false);" style="height:70px;width:200px;margin-left: auto;margin-right: auto;" id="form-submit" />
						 <input type="hidden" name="picture" id="picinp" /><input type="hidden" id="freskothta" name="freskothta" value="" />
					</div>
				</div>
			</div>

		</body>
		<footer>
			<div class="row">
				<div class="col-sm-6 col-sm-offset-3" style="text-align:center;">
					<h3 class="h3"><b><u>Selonda Group - Δ09Ε09 ΕΝΤΥΠΟ ΕΛΕΓΧΟΥ ΠΑΡΑΛΑΜΒΑΝΟΜΕΝΩΝ ΝΩΠΩΝ ΜΑΝΔΡΑ v03 d20090101</u></b></h3>
				</div>
			</div>
		</footer>
