foreach ($_POST['eips'] as &$eip) { $eip = ip2value($eip); } foreach ($_POST['assigned'] as &$ass) { $ass = strtotime($ass); } $BILL->SaveDiapasons($_POST['ids'], $_POST['sips'], $_POST['eips'], $_POST['sources'], $_POST['assigned']); die("<script>document.location.href='?p={$p}&act={$act}&country={$country}';</script>"); } elseif ($_GET['action'] == "adddiap") { // ... $diap = array('sip' => ip2value($_POST['addsip']), 'eip' => ip2value($_POST['addeip']), 'source' => $_POST['addsource'], 'ctry' => $_POST['addctry'], 'cntry' => $_POST['addcntry'], 'country' => $_POST['addcountry']); $BILL->AddDiapason($diap); die("<script>document.location.href='?p={$p}&act={$act}&country={$country}';</script>"); } elseif ($_GET['action'] == "delete") { // ... $BILL->DeleteDiapason($_GET['id']); die("<script>document.location.href='?p={$p}&act={$act}&country={$country}';</script>"); } ?> <form action="<?php echo "?p={$p}&act={$act}&country={$country}&action=save"; ?> " method="post"> <table width=100% class="tbl1"> <tr> <td>ID</td> <td>От</td> <td>До</td> <td>Источник</td> <td>Присвоено</td> <td>Админ</td>