<!DOCTYPE html>
<head>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<title>Результаты поиска</title>
<style>
.table
{
text-align:center;
background:#F5F5F5;
font-family:Arial;
margin-left:180px;
}
.tab1
{
width:40px;
}
.tab2
{
width:450px;
}
.tab3
{
width:100px;
}
.tab4
{
width:200px;
}
.tabh1
{
width:40px;
}
.tabh2
{
width:450px;
}
.tabh3
{
width:100px;
}
.tabh4
{
width:200px;
}
.tabb1
{
width:40px;
}
.tabb2
{
width:450px;
}
.tabb3
{
width:100px;
}
.tabb4
{
width:200px;
}
tr:hover {background:#F0E68C;
color:Black;
}
.tr0 {background:#FFFFE0;
}
.tr1 {background:#90EE90;
}
.tr3 {background:#FA8072;
}
.tr4 {background:#FFD700;
}
.tr5 {background:#ff8c00;
}
.tr7 {background:skyblue
}
</style>
<script>
$(document).ready(function(){
var arr = [];
//$("#tr").click(function(){
$('tr').click(function(){
//ev.preventDefault();
var chk = $( this ).find( "input" );
if ($(chk).prop("checked")) {
$(chk).prop("checked",false);
arr.splice(arr.indexOf(chk.data('id')),1);
//alert (arr);
}
else
{
//alert ('dsfasfaf');
$(chk).prop("checked",true);
arr.push(chk.data('id'));
//alert (arr);
}
document.getElementById('ckh').value = arr;
document.getElementById('skb').value = arr;
document.getElementById('skbr').value = arr;
document.getElementById('skbrd').value = arr;
document.getElementById('skbrn').value = arr;
document.getElementById('skp').value = arr;
document.getElementById('skg').value = arr;
document.getElementById('skoutb').value = arr;
})
})
</script>
</head>
<body>
<div style="position: fixed;" >
<form action="skladghost.php" method="POST" name="ckh" >
<button type="submit" style="width:160px;">В суточный наряд</button>
<input type="hidden" id="ckh" value="" name="ckh">
</form>
<form action="index5.php?width=275&width2=275&material=19&action=search&submit=submit" method="POST" name="skp" >
<button type="submit" style="width:160px;">На склад производства</button>
<input type="hidden" id="skp" value="" name="skp">
</form>
<form action="index5.php?width=275&width2=275&material=19&action=search&submit=submit" method="POST" name="skg" >
<button type="submit" style="width:160px;">На склад Gallus_340</button>
<input type="hidden" id="skg" value="" name="skg">
</form>
<form action="index5.php?width=275&width2=275&material=19&action=search&submit=submit" method="POST" name="skb" >
<button type="submit" style="width:160px;">В брак материала</button>
<input type="hidden" id="skb" value="" name="skb">
</form>
<form action="index5.php?width=275&width2=275&material=19&action=search&submit=submit" method="POST" name="skoutb" >
<button type="submit" style="width:160px;">Отменить брак</button>
<input type="hidden" id="skoutb" value="" name="skoutb">
</form>
<form action="index5.php?width=275&width2=275&material=19&action=search&submit=submit" method="POST" name="skbr" >
<button type="submit" style="width:160px;">Смотанные ролики</button>
<input type="hidden" id="skbr" value="" name="skbr">
</form>
<form action="index5.php?width=275&width2=275&material=19&action=search&submit=submit" method="POST" name="skbrd" >
<button type="submit" style="width:160px;">Пометить на удаление</button>
<input type="hidden" id="skbrd" value="" name="skbrd">
</form>
<form action="index5.php?width=275&width2=275&material=19&action=search&submit=submit" method="POST" name="skbrn" >
<button type="submit" style="width:160px;">Отменить брак/смотанные/удаление</button>
<input type="hidden" id="skbrn" value="" name="skbrn">
</form>
</div>
</table>
<table class="table" >
<tr class='tr0'>
<td class="tab1"><input type=checkbox data-id= 175688 id= 175688></input> </td>
<td class="tab3" bgcolor="">175688 </td>
<td class="tab3">09.11.20 </td>
<td class="tab2">(1) RAFLACOAT PLUS PEFC / RH9X / HG65 </td>
<td class="tab3"> 275 </td>
<td class="tab3">135 </td>
<td class="tab3">G </td>
<td class="tab3">512 </td>
<td class="tab4">001756880135275019 </td>
</tr>
</table>
</body>
</html>