HEX
Server: LiteSpeed
System: Linux Angkanet 5.15.0-94-generic #104-Ubuntu SMP Tue Jan 9 15:25:40 UTC 2024 x86_64
User: webpa4002 (1011)
PHP: 8.2.15
Disabled: NONE
Upload Files
File: /home/web.paitoan.com/public_html/data/rekap_angka3d.php
<?php
add_shortcode( 'rekap_angka3d', 'rekap_angka3d' );
function rekap_angka3d(){ob_start();
include('fungsi.php'); 
?>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<style> 
html {
    font-size: 100%;
}
.blog-view,
.single-view,
.author-info,
.archive-info,
.form-404 {

    margin: 0;

    word-wrap: break-word;
}

textarea {
    background: #fefbda none repeat scroll 0 0 !important;
    border: 1px solid #000000 !important;
    border-radius: 0 !important;
    font-family: arial;
}

input,
select {
    background: #efefef none repeat scroll 0 0;
    border: 1px solid #000000;
    color: #000;
}

header.entry-header {
    text-align: center;
}

.entry-title > a {

    text-align: center;
}

.entry-byline.cf {
    display: none;
}

.panel-heading {
    background: black none repeat scroll 0 0 !important;
    color: #ffffff !important;
    text-align: center;
}

.container {
    margin: 0 auto;
    max-width: 100%;
}

table.kontrol {
    border-collapse: collapse;
    background: none repeat scroll 0 0 #023376;
    border: 2px solid #5f5f5f;
    padding: 0;
    width: 100%;
}

.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
    line-height: 1.42857;
    padding: 0;
    vertical-align: middle;
}

.panel.panel-success {
  
}

.panel {

    border: medium none;
}

th {
    text-align: center;
}

.oke {
    background: none repeat scroll 0 0 green;
    color: #fff !important;
    font-size: 150%;
}

.oke1 {
    color: #fff !important;
    font-size: 11px;
}

span.label {
    box-shadow: 1px 1px #ff8989;
    font-size: 130%;
    margin: 5px;
}

#ln td {
    border: 1px solid #091f99;
    color: #fffefe;
    height: 24px;
    text-align: center;
}

.kontrol td {
    text-align: center;
    vertical-align: top;
}

select {
    background: #dcfee2 none repeat scroll 0 0;
    color: #442121;
    font-size: 13px;
    width: 49%;
}

select.unik {
    background: #1621de none repeat scroll 0 0;
    color: white;
}

textarea#countMe {
    background: none repeat scroll 0 0 #ebf9ff;
    width: 100%;
}

textarea.ln {
    background: none repeat scroll 0 0 #f8f4de;
    color: #000000;
    padding: 10px;
    width: 100%;
}

span.koma {
    color: #ff9000;
}

#ln td {
    border: 1px solid #2d2d2d;
    color: #595454;
    height: 24px;
    text-align: center;
}

.col-xs-1,
.col-sm-1,
.col-md-1,
.col-lg-1,
.col-xs-2,
.col-sm-2,
.col-md-2,
.col-lg-2,
.col-xs-3,
.col-sm-3,
.col-md-3,
.col-lg-3,
.col-xs-4,
.col-sm-4,
.col-md-4,
.col-lg-4,
.col-xs-5,
.col-sm-5,
.col-md-5,
.col-lg-5,
.col-xs-6,
.col-sm-6,
.col-md-6,
.col-lg-6,
.col-xs-7,
.col-sm-7,
.col-md-7,
.col-lg-7,
.col-xs-8,
.col-sm-8,
.col-md-8,
.col-lg-8,
.col-xs-9,
.col-sm-9,
.col-md-9,
.col-lg-9,
.col-xs-10,
.col-sm-10,
.col-md-10,
.col-lg-10,
.col-xs-11,
.col-sm-11,
.col-md-11,
.col-lg-11,
.col-xs-12,
.col-sm-12,
.col-md-12,
.col-lg-12 {
    min-height: 5px;
    padding-right: 5px;
    position: relative;
}

.col-xs-1,
.col-sm-1,
.col-md-1,
.col-lg-1,
.col-xs-2,
.col-sm-2,
.col-md-2,
.col-lg-2,
.col-xs-3,
.col-sm-3,
.col-md-3,
.col-lg-3,
.col-xs-4,
.col-sm-4,
.col-md-4,
.col-lg-4,
.col-xs-5,
.col-sm-5,
.col-md-5,
.col-lg-5,
.col-xs-6,
.col-sm-6,
.col-md-6,
.col-lg-6,
.col-xs-7,
.col-sm-7,
.col-md-7,
.col-lg-7,
.col-xs-8,
.col-sm-8,
.col-md-8,
.col-lg-8,
.col-xs-9,
.col-sm-9,
.col-md-9,
.col-lg-9,
.col-xs-10,
.col-sm-10,
.col-md-10,
.col-lg-10,
.col-xs-11,
.col-sm-11,
.col-md-11,
.col-lg-11,
.col-xs-12,
.col-sm-12,
.col-md-12,
.col-lg-12 {
    min-height: 1px;
    padding-left: 5px;
    padding-right: 5px;
    position: relative;
}

</style>
<style>
input, select{background: #efefef repeat scroll 0 0;border: 1px solid #000000; color: #000;}
th{text-align: center;}
textarea[readonly] { background:#f9f9f9 !important; }
textarea.input-sm { padding:10px !important; }
select.input-sm { padding-top:7px; padding-bottom:7px; }
.colnopad { margin:0 !important; } .colnopad div[class^="col-"] { padding:0 0 5px; }
.colnopad .colnopad div[class^="col-"], .colnopad2 div[class^="col-"] { padding:0 2px 5px; } 
.input-sm { font-size:12px; padding-left:5px; padding-right:5px; }
.table-sm td, .table-sm th {  padding: .3rem; font-size:12px; }
.form-control.input-sm{height: calc(2.25rem+0px) !important;}
label{display: inline-block;text-align: center;text-transform: uppercase;width: 25px;color: black;font-weight: bold;background-color: #fff;margin:5px 0px !important;}
:checked + label{color: white;font-weight: bold;background-color: #ff0000;}
table.sum td {display: table-cell;margin: 0;padding: 0;text-align: center;vertical-align:middle;width: auto;}
.no-padding>.table{margin-bottom:0 !important;}
</style>
<script type="text/javascript">
jQuery(document).ready(function($){
	$(window).on('load', function(){
		$('.week_none').click(function(){
			$('input:checkbox[name*="3d"]').prop("checked", false);
		});
		$('.week_all').click(function(){
			$('input:checkbox[name*="3d"]').prop("checked", true);
		});
		$('.week_odd').click(function(){
			$('input:checkbox[name*="3d"]').prop("checked", false);
			$('input:checkbox[name*="3d"]:even').prop("checked", true);
		});
		$('.week_even').click(function(){
			$('input:checkbox[name*="3d"]').prop("checked", false);
			$('input:checkbox[name*="3d"]:odd').prop("checked", true);
		});
	});
});
function checkInput(ob){var invalidChars = /[^0-9\n]/gi;if(invalidChars.test(ob.value)){ob.value = ob.value.replace(invalidChars,"");}}
function checkShio(ob){var invalidChars = /[^0-9,\n]/gi;if(invalidChars.test(ob.value)){ob.value = ob.value.replace(invalidChars,"");}}
</script>
<style>
.card-body {
    background: #eee;
}
</style>

<form class="lineCount" method="POST" action="">
<div class="row colnopad colnopad2">
				<div class="col-md-12">
			<div class="card box1 text-white sum">
				<div class="card-header text-center font-weight-bold bg-green" style="background:#dc3545">Sum 3D Off</div>
				<div class="card-body sum">				
<table class="table table-bordered sum">
						<tbody>
						<tr>
                            <td><input type="checkbox" name="3d_0" value="0"<?php if (isset($_POST['3d_0'])) {if($_POST['3d_0']=='0' ) {echo 'checked' ;}}?>><label>0</label></td>
                            <td><input type="checkbox" name="3d_1" value="1"<?php if (isset($_POST['3d_1'])) {if($_POST['3d_1']=='1' ) {echo 'checked' ;}}?>><label>1</label></td>
                            <td><input type="checkbox" name="3d_2" value="2"<?php if (isset($_POST['3d_2'])) {if($_POST['3d_2']=='2' ) {echo 'checked' ;}}?>><label>2</label></td>
                            <td><input type="checkbox" name="3d_3" value="3"<?php if (isset($_POST['3d_3'])) {if($_POST['3d_3']=='3' ) {echo 'checked' ;}}?>><label>3</label></td>
                            <td><input type="checkbox" name="3d_4" value="4"<?php if (isset($_POST['3d_4'])) {if($_POST['3d_4']=='4' ) {echo 'checked' ;}}?>><label>4</label></td>
                            <td><input type="checkbox" name="3d_5" value="5"<?php if (isset($_POST['3d_5'])) {if($_POST['3d_5']=='5' ) {echo 'checked' ;}}?>><label>5</label></td>
                            <td><input type="checkbox" name="3d_6" value="6"<?php if (isset($_POST['3d_6'])) {if($_POST['3d_6']=='6' ) {echo 'checked' ;}}?>><label>6</label></td>
                            <td><input type="checkbox" name="3d_7" value="7"<?php if (isset($_POST['3d_7'])) {if($_POST['3d_7']=='7' ) {echo 'checked' ;}}?>><label>7</label></td>
                            <td><input type="checkbox" name="3d_8" value="8"<?php if (isset($_POST['3d_8'])) {if($_POST['3d_8']=='8' ) {echo 'checked' ;}}?>><label>8</label></td>
                            <td><input type="checkbox" name="3d_9" value="9"<?php if (isset($_POST['3d_9'])) {if($_POST['3d_9']=='9' ) {echo 'checked' ;}}?>><label>9</label></td>
                        </tr>
                        <tr>
                            <td><input type="checkbox" name="3d_10" value="10"<?php if (isset($_POST['3d_10'])) {if($_POST['3d_10']=='10' ) {echo 'checked' ;}}?>><label>10</label></td>
                            <td><input type="checkbox" name="3d_11" value="11"<?php if (isset($_POST['3d_11'])) {if($_POST['3d_11']=='11' ) {echo 'checked' ;}}?>><label>11</label></td>
                            <td><input type="checkbox" name="3d_12" value="12"<?php if (isset($_POST['3d_12'])) {if($_POST['3d_12']=='12' ) {echo 'checked' ;}}?>><label>12</label></td>
                            <td><input type="checkbox" name="3d_13" value="13"<?php if (isset($_POST['3d_13'])) {if($_POST['3d_13']=='13' ) {echo 'checked' ;}}?>><label>13</label></td>
                            <td><input type="checkbox" name="3d_14" value="14"<?php if (isset($_POST['3d_14'])) {if($_POST['3d_14']=='14' ) {echo 'checked' ;}}?>><label>14</label></td>
                            <td><input type="checkbox" name="3d_15" value="15"<?php if (isset($_POST['3d_15'])) {if($_POST['3d_15']=='15' ) {echo 'checked' ;}}?>><label>15</label></td>
                            <td><input type="checkbox" name="3d_16" value="16"<?php if (isset($_POST['3d_16'])) {if($_POST['3d_16']=='16' ) {echo 'checked' ;}}?>><label>16</label></td>
                            <td><input type="checkbox" name="3d_17" value="17"<?php if (isset($_POST['3d_17'])) {if($_POST['3d_17']=='17' ) {echo 'checked' ;}}?>><label>17</label></td>
                            <td><input type="checkbox" name="3d_18" value="18"<?php if (isset($_POST['3d_18'])) {if($_POST['3d_18']=='18' ) {echo 'checked' ;}}?>><label>18</label></td>
                            <td><input type="checkbox" name="3d_19" value="19"<?php if (isset($_POST['3d_19'])) {if($_POST['3d_19']=='19' ) {echo 'checked' ;}}?>><label>19</label></td>
                        </tr>
                        <tr>
                            <td><input type="checkbox" name="3d_20" value="20"<?php if (isset($_POST['3d_20'])) {if($_POST['3d_20']=='20' ) {echo 'checked' ;}}?>><label>20</label></td>
                            <td><input type="checkbox" name="3d_21" value="21"<?php if (isset($_POST['3d_21'])) {if($_POST['3d_21']=='21' ) {echo 'checked' ;}}?>><label>21</label></td>
                            <td><input type="checkbox" name="3d_22" value="22"<?php if (isset($_POST['3d_22'])) {if($_POST['3d_22']=='22' ) {echo 'checked' ;}}?>><label>22</label></td>
                            <td><input type="checkbox" name="3d_23" value="23"<?php if (isset($_POST['3d_23'])) {if($_POST['3d_23']=='23' ) {echo 'checked' ;}}?>><label>23</label></td>
                            <td><input type="checkbox" name="3d_24" value="24"<?php if (isset($_POST['3d_24'])) {if($_POST['3d_24']=='24' ) {echo 'checked' ;}}?>><label>24</label></td>
                            <td><input type="checkbox" name="3d_25" value="25"<?php if (isset($_POST['3d_25'])) {if($_POST['3d_25']=='25' ) {echo 'checked' ;}}?>><label>25</label></td>
                            <td><input type="checkbox" name="3d_26" value="26"<?php if (isset($_POST['3d_26'])) {if($_POST['3d_26']=='26' ) {echo 'checked' ;}}?>><label>26</label></td>
                            <td><input type="checkbox" name="3d_27" value="27"<?php if (isset($_POST['3d_27'])) {if($_POST['3d_27']=='27' ) {echo 'checked' ;}}?>><label>27</label></td>
 
</tr>
<tr>
            <td colspan="3"><button type="button" class="week_odd blue-pill btn-success btn-block"> GenapOff</button></td>
            <td colspan="3"><button type="button" class="week_even blue-pill btn-warning btn-block"> GanjilOff</button></td>
			<td colspan="4"><button type="button" class="week_none blue-pill btn-danger btn-block">Clear</button></td>

</tr>
					</tbody></table>
					</div></div>
					</div>
					
    <div class="col-md-6 column">
        <div class="panel panel-default">
            <div class="panel-heading">LN 3D ON</div>
            <div class="panel-body">
                                <textarea onkeyup="if (/[^0-9*]/g.test(this.value)) this.value = this.value.replace(/[^0-9*]/g, '')" placeholder="masukan 3d On pisahkan dengan * " name="on3d" class="form-control" rows="3"><?php if (isset($_POST['on3d'])) { echo $_POST['on3d'];}?></textarea>
            </div>
        </div>
    </div>

    <div class="col-md-6 column">
        <div class="panel panel-default">
            <div class="panel-heading">LN 3D OFF</div>
            <div class="panel-body">
                                <textarea onkeyup="if (/[^0-9*]/g.test(this.value)) this.value = this.value.replace(/[^0-9*]/g, '')" placeholder="masukan 3d Off pisahkan dengan * " name="mati3d" class="form-control" rows="3"><?php if (isset($_POST['mati3d'])) { echo $_POST['mati3d'];}?></textarea>
            </div>
        </div>
    </div>

    <div class="col-md-6 column">
        <div class="panel panel-danger">
            <div class="panel-heading">Pangkas 2D Tengah</div>
            <div class="panel-body">

                LN DASAR 2D TENGAH
                <br>
                                <textarea onkeyup="if (/[^0-9*]/g.test(this.value)) this.value = this.value.replace(/[^0-9*]/g, '')" placeholder="masukan 2D Tengah on pisahkan dengan * " name="ids" class="form-control" rows="3"><?php if (isset($_POST['ids'])) { echo $_POST['ids'];}?></textarea>
                        <input onkeyup="if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" style="width:49%;" class="form" id="kep" maxlength="20" placeholder="Kepala Off, misal 123" type="text" name="kepala" value="<?php if (isset($_POST['kepala'])) {echo $_POST['kepala'];}?>">
                        <input onkeyup="if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" style="width:49%;" class="form" id="eko" maxlength="20" placeholder="Ekor Off, , misal 123" type="text" name="ekor" value="<?php if (isset($_POST['ekor'])) {echo $_POST['ekor'];}?>">
                        <input onkeyup="if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" style="width:49%;" class="form" id="kep" maxlength="20" placeholder="Jarak Lemah Dari" type="text" name="jalem1" value="<?php if (isset($_POST['jalem1'])) {echo $_POST['jalem1'];}?>">
                        <input onkeyup="if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" style="width:49%;" class="form" id="eko" maxlength="20" placeholder="Jarak Lemah Sampai, , misal 123" type="text" name="jalem2" value="<?php if (isset($_POST['jalem2'])) {echo $_POST['jalem2'];}?>">
                        <input style="width:99%;" onkeyup="if (/[^0-9,]/g.test(this.value)) this.value = this.value.replace(/[^0-9,]/g, '')" class="form" id="shio" maxlength="30" name="shio" placeholder="Shio Off, pisah dgn koma, misal 11,12" value="<?php if (isset($_POST['shio'])) {echo $_POST['shio'];}?>">
                        <input onkeyup="if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" style="width:99%;" class="form" id="jml" maxlength="20" placeholder="Jumlah Off, misal 123" type="text" name="jml" value="<?php if (isset($_POST['jml'])) {echo $_POST['jml'];}?>">
                        <input onkeyup="if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" style="width:99%;" class="form" id="sls" maxlength="20" placeholder="Selisih Off (0-9), misal 123" type="text" name="sls" value="<?php if (isset($_POST['sls'])) {echo $_POST['sls'];}?>">
                        <br>
                        <select name="kbk">
                            <option value="Normal">K Besar/Kecil</option>
                            <option <?php if (isset($_POST['kbk'])) {if($_POST['kbk'] == 'Besar') {echo 'selected';}}?> value="Besar">KBesar</option>
                            <option <?php if (isset($_POST['kbk'])) {if($_POST['kbk'] == 'Kecil') {echo 'selected';}}?> value="Kecil">KKecil</option>
                        </select>
                        <select name="ebk">
                            <option value="Normal">E Besar/Kecil</option>
                            <option <?php if (isset($_POST['ebk'])) {if($_POST['ebk'] == 'Besar') {echo 'selected';}}?> value="Besar">EBesar</option>
                            <option <?php if (isset($_POST['ebk'])) {if($_POST['ebk'] == 'Kecil') {echo 'selected';}}?> value="Kecil">EKecil</option>
                        </select>
                        <br>
                        <select name="kgj">
                            <option value="Normal">K Ganjil/Genap</option>
                            <option <?php if (isset($_POST['kgj'])) {if($_POST['kgj'] == 'Ganjil') {echo 'selected';}}?> value="Ganjil">Kganjil</option>
                            <option <?php if (isset($_POST['kgj'])) {if($_POST['kgj'] == 'Genap') {echo 'selected';}}?> value="Genap">Kgenap</option>
                        </select>
                        <select name="egj">
                            <option value="Normal">E Ganjil/Genap</option>
                            <option <?php if (isset($_POST['egj'])) {if($_POST['egj'] == 'Ganjil') {echo 'selected';}}?> value="Ganjil">Eganjil</option>
                            <option <?php if (isset($_POST['egj'])) {if($_POST['egj'] == 'Genap') {echo 'selected';}}?> value="Genap">Egenap</option>
                        </select>
                        <br>
                        <select name="homsil">
                            <option value="Normal">Silang/Home</option>
                            <option <?php if (isset($_POST['homsil'])) {if($_POST['homsil'] == 'Homo') {echo 'selected';}}?> value="Homo">Homo</option>
                            <option <?php if (isset($_POST['homsil'])) {if($_POST['homsil'] == 'Silang') {echo 'selected';}}?> value="Silang">Silang</option>
                        </select>
                        <select name="ttepi">
                            <option value="Normal">Tengah/Tepi</option>
                            <option <?php if (isset($_POST['ttepi'])) {if($_POST['ttepi'] == 'Tengah') {echo 'selected';}}?> value="Tengah">Tengah</option>
                            <option <?php if (isset($_POST['ttepi'])) {if($_POST['ttepi'] == 'Tepi') {echo 'selected';}}?> value="Tepi">Tepi</option>
                        </select> <br>
                        <select name="jbs">
                            <option value="Normal">Jbesar/Jkecil</option>
                            <option <?php if (isset($_POST['jbs'])) {if($_POST['jbs'] == 'Jbesar') {echo 'selected';}}?> value="Jbesar">Jbesar</option>
                            <option <?php if (isset($_POST['jbs'])) {if($_POST['jbs'] == 'Jkecil') {echo 'selected';}}?> value="Jkecil">Jkecil</option>
                        </select>
                        <select name="jgj">
                            <option value="Normal">Jgenap/Jgenap</option>
                            <option <?php if (isset($_POST['jgj'])) {if($_POST['jgj'] == 'Jganjil') {echo 'selected';}}?> value="Jganjil">Jganjil</option>
                            <option <?php if (isset($_POST['jgj'])) {if($_POST['jgj'] == 'Jgenap') {echo 'selected';}}?> value="Jgenap">Jgenap</option>
                        </select> <br>
                        <select name="bangpi">
                            <option value="Normal">Kembang/Kempis</option>
                            <option <?php if (isset($_POST['bangpi'])) {if($_POST['bangpi'] == 'Kembang') {echo 'selected';}}?> value="Kembang">Kembang</option>
                            <option <?php if (isset($_POST['bangpi'])) {if($_POST['bangpi'] == 'Kempis') {echo 'selected';}}?> value="Kempis">Kempis</option>
                        </select>
                        <select name="koma">
                            <option <?php if (isset($_POST['koma'])) {if($_POST['koma'] == '*') {echo 'selected';}}?> value="*">*</option>
                            <option <?php if (isset($_POST['koma'])) {if($_POST['koma'] == '#') {echo 'selected';}}?> value="#">#</option>
                            <option <?php if (isset($_POST['koma'])) {if($_POST['koma'] == ',') {echo 'selected';}}?> value=",">,</option>
                            <option <?php if (isset($_POST['koma'])) {if($_POST['koma'] == '.') {echo 'selected';}}?> value=".">.</option>
                        </select>
                <br>
                <br>
                <div class="panel panel-success">
                    <div class="panel-heading">AI/AK/CT/ 2D TENGAH</div>
                    <div class="panel-body">

                                        <textarea placeholder="masukan [perbaris] max 100 ai/kontrol" id="countMe" onkeyup="if (/[^0-9\n]/g.test(this.value)) this.value = this.value.replace(/[^0-9\n]/g, '')" name="ctr" class="form-control" rows="3"><?php if (isset($_POST['ctr'])) { echo $_POST['ctr'];}?></textarea>

                    </div>
                </div>

            </div>

        </div>
    </div>
    <div class="col-md-6 column">
        <div class="panel panel-success">
            <div class="panel-heading">Pangkas 2D Belakang</div>
            <div class="panel-body ln">
                LN DASAR 2D BELAKANG
                <br>
                                <textarea onkeyup="if (/[^0-9*]/g.test(this.value)) this.value = this.value.replace(/[^0-9*]/g, '')" placeholder="masukan 2D Belakang on pisahkan dengan * " name="ids2" class="form-control" rows="3"><?php if (isset($_POST['ids2'])) { echo $_POST['ids2'];}?></textarea>
                       <input onkeyup="if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" style="width:49%;" class="form" id="kep" maxlength="20" placeholder="Kepala Off, misal 123" type="text" name="kepala2" value="<?php if (isset($_POST['kepala2'])) {echo $_POST['kepala2'];}?>">
                        <input onkeyup="if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" style="width:49%;" class="form" id="eko" maxlength="20" placeholder="Ekor Off, , misal 123" type="text" name="ekor2" value="<?php if (isset($_POST['ekor2'])) {echo $_POST['ekor2'];}?>">
                        <input onkeyup="if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" style="width:49%;" class="form" id="kep" maxlength="20" placeholder="Jarak Lemah Dari" type="text" name="jalem12" value="<?php if (isset($_POST['jalem12'])) {echo $_POST['jalem12'];}?>">
                        <input onkeyup="if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" style="width:49%;" class="form" id="eko" maxlength="20" placeholder="Jarak Lemah Sampai, , misal 123" type="text" name="jalem22" value="<?php if (isset($_POST['jalem22'])) {echo $_POST['jalem22'];}?>">
                        <input style="width:99%;" onkeyup="if (/[^0-9,]/g.test(this.value)) this.value = this.value.replace(/[^0-9,]/g, '')" class="form" id="shio" maxlength="30" name="shio2" placeholder="Shio Off, pisah dgn koma, misal 11,12" value="<?php if (isset($_POST['shio2'])) {echo $_POST['shio2'];}?>">
                        <input onkeyup="if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" style="width:99%;" class="form" id="jml" maxlength="20" placeholder="Jumlah Off, misal 123" type="text" name="jml2" value="<?php if (isset($_POST['jml2'])) {echo $_POST['jml2'];}?>">
                        <input onkeyup="if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" style="width:99%;" class="form" id="sls" maxlength="20" placeholder="Selisih Off (0-9), misal 123" type="text" name="sls2" value="<?php if (isset($_POST['sls2'])) {echo $_POST['sls2'];}?>">
                        <br>
                        <select name="kbk2">
                            <option value="Normal">K Besar/Kecil</option>
                            <option <?php if (isset($_POST['kbk2'])) {if($_POST['kbk2'] == 'Besar') {echo 'selected';}}?> value="Besar">KBesar</option>
                            <option <?php if (isset($_POST['kbk2'])) {if($_POST['kbk2'] == 'Kecil') {echo 'selected';}}?> value="Kecil">KKecil</option>
                        </select>
                        <select name="ebk2">
                            <option value="Normal">E Besar/Kecil</option>
                            <option <?php if (isset($_POST['ebk2'])) {if($_POST['ebk2'] == 'Besar') {echo 'selected';}}?> value="Besar">EBesar</option>
                            <option <?php if (isset($_POST['ebk2'])) {if($_POST['ebk2'] == 'Kecil') {echo 'selected';}}?> value="Kecil">EKecil</option>
                        </select>
                        <br>
                        <select name="kgj2">
                            <option value="Normal">K Ganjil/Genap</option>
                            <option <?php if (isset($_POST['kgj2'])) {if($_POST['kgj2'] == 'Ganjil') {echo 'selected';}}?> value="Ganjil">Kganjil</option>
                            <option <?php if (isset($_POST['kgj2'])) {if($_POST['kgj2'] == 'Genap') {echo 'selected';}}?> value="Genap">Kgenap</option>
                        </select>
                        <select name="egj2">
                            <option value="Normal">E Ganjil/Genap</option>
                            <option <?php if (isset($_POST['egj2'])) {if($_POST['egj2'] == 'Ganjil') {echo 'selected';}}?> value="Ganjil">Eganjil</option>
                            <option <?php if (isset($_POST['egj2'])) {if($_POST['egj2'] == 'Genap') {echo 'selected';}}?> value="Genap">Egenap</option>
                        </select>
                        <br>
                        <select name="homsil2">
                            <option value="Normal">Silang/Home</option>
                            <option <?php if (isset($_POST['homsil2'])) {if($_POST['homsil2'] == 'Homo') {echo 'selected';}}?> value="Homo">Homo</option>
                            <option <?php if (isset($_POST['homsil2'])) {if($_POST['homsil2'] == 'Silang') {echo 'selected';}}?> value="Silang">Silang</option>
                        </select>
                        <select name="ttepi2">
                            <option value="Normal">Tengah/Tepi</option>
                            <option <?php if (isset($_POST['ttepi2'])) {if($_POST['ttepi2'] == 'Tengah') {echo 'selected';}}?> value="Tengah">Tengah</option>
                            <option <?php if (isset($_POST['ttepi2'])) {if($_POST['ttepi2'] == 'Tepi') {echo 'selected';}}?> value="Tepi">Tepi</option>
                        </select> <br>
                        <select name="jbs2">
                            <option value="Normal">Jbesar/Jkecil</option>
                            <option <?php if (isset($_POST['jbs2'])) {if($_POST['jbs2'] == 'Jbesar') {echo 'selected';}}?> value="Jbesar">Jbesar</option>
                            <option <?php if (isset($_POST['jbs2'])) {if($_POST['jbs2'] == 'Jkecil') {echo 'selected';}}?> value="Jkecil">Jkecil</option>
                        </select>
                        <select name="jgj2">
                            <option value="Normal">Jgenap/Jgenap</option>
                            <option <?php if (isset($_POST['jgj2'])) {if($_POST['jgj2'] == 'Jganjil') {echo 'selected';}}?> value="Jganjil">Jganjil</option>
                            <option <?php if (isset($_POST['jgj2'])) {if($_POST['jgj2'] == 'Jgenap') {echo 'selected';}}?> value="Jgenap">Jgenap</option>
                        </select> <br>
                        <select name="bangpi2">
                            <option value="Normal">Kembang/Kempis</option>
                            <option <?php if (isset($_POST['bangpi2'])) {if($_POST['bangpi2'] == 'Kembang') {echo 'selected';}}?> value="Kembang">Kembang</option>
                            <option <?php if (isset($_POST['bangpi2'])) {if($_POST['bangpi2'] == 'Kempis') {echo 'selected';}}?> value="Kempis">Kempis</option>
                        </select>
                                <select class="unik" name="unik">
                                    <option <?php if (isset($_POST['unik'])) {if($_POST['unik'] == 'Normal') {echo 'selected';}}?> value="Normal">Normal</option>
                                    <option <?php if (isset($_POST['unik'])) {if($_POST['unik'] == 'Twin') {echo 'selected';}}?> value="Twin">Twin</option>
                                    <option <?php if (isset($_POST['unik'])) {if($_POST['unik'] == 'Nontwin') {echo 'selected';}}?> value="Nontwin">Nontwin</option>
                                </select>
                <br>
                <br>
                <div class="panel panel-success">
                    <div class="panel-heading">AI/AK/CT/ 2D Belakang</div>

                    <div class="panel-body">
                                        <textarea placeholder="masukan [perbaris] max 100 ai/kontrol" id="countMe" onkeyup="if (/[^0-9\n]/g.test(this.value)) this.value = this.value.replace(/[^0-9\n]/g, '')" name="ctr2" class="form-control" rows="3"><?php if (isset($_POST['ctr2'])) { echo $_POST['ctr2'];}?></textarea>
                    </div>
                </div>
            </div>

        </div>

    </div>
<div class="col-md-6 column">
    <div class="panel-body">
        <div class="panel-heading">AI 3D </div>
            <textarea onkeyup="if (/[^0-9\n]/g.test(this.value)) this.value = this.value.replace(/[^0-9\n]/g, '')" placeholder="masukan [perbaris] ai 3D" name="ai3d" class="form-control" rows="3"><?php if (isset($_POST['ai3d'])) { echo $_POST['ai3d'];}?></textarea>
    </div>
  </div>
  <div class="col-md-6 column">
    <div class="panel-body">
    <div class="panel-heading">Twin/kembar dan jumlah ganjil/genap 3D</div>
    
                        <center><select name="ktengah">
                            <option <?php if (isset($_POST['ktengah'])) {if($_POST['ktengah'] == 'kembartengah on') {echo 'selected';}}?> value="kembartengah on">kembartengah on</option>
                            <option <?php if (isset($_POST['ktengah'])) {if($_POST['ktengah'] == 'kembartengah off') {echo 'selected';}}?> value="kembartengah off">kembartengah off</option>
                        </select>
                        <select name="kbelakang">
                            <option <?php if (isset($_POST['kbelakang'])) {if($_POST['kbelakang'] == 'kembarbelakang on') {echo 'selected';}}?> value="kembarbelakang on">kembarbelakang on</option>
                            <option <?php if (isset($_POST['kbelakang'])) {if($_POST['kbelakang'] == 'kembarbelakang off') {echo 'selected';}}?> value="kembarbelakang off">kembarbelakang off</option>
                        </select>
                        <select name="kcopek">
                            <option <?php if (isset($_POST['kcopek'])) {if($_POST['kcopek'] == 'kembar cop ekor on') {echo 'selected';}}?> value="kembar cop ekor on">kembar cop ekor on</option>
                            <option <?php if (isset($_POST['kcopek'])) {if($_POST['kcopek'] == 'kembar cop ekor off') {echo 'selected';}}?> value="kembar cop ekor off">kembar cop ekor off</option>
                        </select>
                        <select name="jumtigad">
                            <option value="Normal">Normal jml3d</option>
                            <option <?php if (isset($_POST['jumtigad'])) {if($_POST['jumtigad'] == 'jumgenap') {echo 'selected';}}?> value="jumgenap">OFFjml genap</option>
                            <option <?php if (isset($_POST['jumtigad'])) {if($_POST['jumtigad'] == 'jumganjil') {echo 'selected';}}?> value="jumganjil">OFFjml ganjil</option>
                        </select></center>

  </div>
      </div>
 <div class="col-md-12 column text-center my-3">
      <button id="simpan" name="simpan" type="submit" value="Proses" class="btn btn-success btn-sm">Proses</button>
    <input type="button" onclick="window.location.href=window.location.href" value="Reset" class="btn btn-danger btn-sm">
    <button type="button" id="copy" class="btn btn-warning btn-sm">Copy</button>
    </div>
  </div>
</form>
    <script>
jQuery("#copy").click(function(){
    jQuery("#dataret").select();
    document.execCommand('copy');
});
</script>
<?php
$pisah = $asile=$olehe='';
$nilaiai=0;
$asli = array();
for ($i=00; $i < 100; $i++) {
    if (strlen($i) == 1) { $i='0'.$i;}
    $asli[] = $i;
}
$aslia = ''; $cas = array();
for ($i=00; $i < 100; $i++) {
    if (strlen($i) == 1) { $i='0'.$i;}
    $aslia .= $i.'*';
}
$asli3 = array();
for ($i=000; $i < 1000; $i++) {
    if (strlen($i) == 1) { $i='00'.$i;}
    if (strlen($i) == 2) { $i='0'.$i;}
    $asli3[] = $i;
}
$asli33 = array();
for ($i=000; $i < 1000; $i++) {
    if (strlen($i) == 1) { $i='00'.$i;}
    if (strlen($i) == 2) { $i='0'.$i;}
    $asli33[] = $i.'*';
}
$nomor = array("0","1","2","3","4","5","6","7","8","9");
$numb = ''; $numba = ''; $numbi = ''; $numbai = '';
$hln3d = $asli33; 

if (isset($_POST['simpan'])) {
if (isset($_POST['ids']) && $_POST['ids'] != '') {
   $ids2 = array_filter(explode("*", $_POST['ids']), 'strlen' );
   $lon = array();
   foreach ($ids2 as $key) {
      if (strlen($key) == 2) {
        $lon[] =$key;
    }
}
asort($lon);
} else {$lon = $asli;}   
if (isset($_POST['kepala']) && $_POST['kepala'] != '') {
   $kpl = str_split($_POST['kepala']);
   $multidimensionalk = array($kpl, $nomor);
   $kepala = array();
   $count = count($multidimensionalk);
   for ($i = 0; $i < $count; $i++) {
      $temp = array_map("permute",array($kepala),array($multidimensionalk[$i]));
      $kepala = $temp[0];
  }
  asort($kepala);
} else {$kepala = array();} 

if (isset($_POST['ekor']) && $_POST['ekor'] != '') {
   $ekr = str_split($_POST['ekor']);
   $multidimensionale = array($nomor, $ekr);
$ekor = array();
$count = count($multidimensionale);
    for ($i = 0; $i < $count; $i++) {
      $temp = array_map("permute",array($ekor),array($multidimensionale[$i]));
      $ekor = $temp[0];
    }
asort($ekor);
} else {$ekor = array();} 

if (isset($_POST['jalem1']) && $_POST['jalem1'] != '' && isset($_POST['jalem2']) && $_POST['jalem2'] != '') {
    $jdr = $_POST['jalem1']; $jsr = $_POST['jalem2']; $jarak = array(); $angka ='';
    if ($jsr > $jdr && strlen($jdr) > 1 && strlen($jdr) < 3 && strlen($jsr) > 1 && strlen($jsr) < 3 ) {
      for ($i=$jdr; $i < ($jsr+1); $i++) {
        if (strlen($i) < 2) {$angka = '0'.$i;} else {$angka = $i;}
        $jarak[] = $angka;}
    }
}  else {$jarak = array();} 

if (isset($_POST['shio']) && $_POST['shio'] != '') {
   $os = array_filter(explode(',', $_POST['shio']), 'strlen' );
if (in_array("1", $os)) { $shio1 = array("01","13","25","37","49","61","73","85","97"); }else{ $shio1 = array(); }
if (in_array("2", $os)) { $shio2 = array("02","14","26","38","50","62","74","86","98"); }else{ $shio2 = array(); }
if (in_array("3", $os)) { $shio3 = array("03","15","27","39","51","63","75","87","99"); }else{ $shio3 = array(); }
if (in_array("4", $os)) { $shio4 = array("04","16","28","40","52","64","76","88","00"); }else{ $shio4 = array(); }
if (in_array("5", $os)) { $shio5 = array("05","17","29","41","53","65","77","89"); }else{ $shio5 = array(); }
if (in_array("6", $os)) { $shio6 = array("06","18","30","42","54","66","78","90"); }else{ $shio6 = array(); }
if (in_array("7", $os)) { $shio7 = array("07","19","31","43","55","67","79","91"); }else{ $shio7 = array(); }
if (in_array("8", $os)) { $shio8 = array("08","20","32","44","56","68","80","92"); }else{ $shio8 = array(); }
if (in_array("9", $os)) { $shio9 = array("09","21","33","45","57","69","81","93"); }else{ $shio9 = array(); }
if (in_array("10", $os)) { $shio10 = array("10","22","34","46","58","70","82","94"); }else{ $shio10 = array(); }
if (in_array("11", $os)) { $shio11 = array("11","23","35","47","59","71","83","95"); }else{ $shio11 = array(); }
if (in_array("12", $os)) { $shio12 = array("12","24","36","48","60","72","84","96"); }else{ $shio12 = array(); }
$shio = array_merge($shio1,$shio2,$shio3,$shio4,$shio5,$shio6,$shio7,$shio7,$shio8,$shio9,$shio10,$shio11,$shio12);
asort($shio);
} else {$shio = array();}

if (isset($_POST['jml']) && $_POST['jml'] != '') {
   $osh = str_split($_POST['jml']);
if (in_array("1", $osh)) { $jml1= array("01","10","19","28","37","46","55","64","73","82","91"); }else{ $jml1= array(); }
if (in_array("2", $osh)) { $jml2= array("02","11","20","29","38","47","56","65","74","83","92"); }else{ $jml2= array(); }
if (in_array("3", $osh)) { $jml3= array("03","12","21","30","39","48","57","66","75","84","93"); }else{ $jml3= array(); }
if (in_array("4", $osh)) { $jml4= array("04","13","22","31","40","49","58","67","76","85","94"); }else{ $jml4= array(); }
if (in_array("5", $osh)) { $jml5= array("05","14","23","32","41","50","59","68","77","86","95"); }else{ $jml5= array(); }
if (in_array("6", $osh)) { $jml6= array("06","15","24","33","42","51","60","69","78","87","96"); }else{ $jml6= array(); }
if (in_array("7", $osh)) { $jml7= array("07","16","25","34","43","52","61","70","79","88","97"); }else{ $jml7= array(); }
if (in_array("8", $osh)) { $jml8= array("08","17","26","35","44","53","62","71","80","89","98"); }else{ $jml8= array(); }
if (in_array("9", $osh)) { $jml9= array("09","18","27","36","45","54","63","72","81","90","99"); }else{ $jml9= array(); }
if (in_array("0", $osh)) { $jml0= array("00"); }else{ $jml0 = array(); }
$jml = array_merge($jml1,$jml2,$jml3,$jml4,$jml5,$jml6,$jml7,$jml7,$jml8,$jml9,$jml0);
asort($jml);
} else {$jml = array();}

if (isset($_POST['sls']) && $_POST['sls'] != '') {
   $oshs = str_split($_POST['sls']);
if (in_array("1", $oshs)) { $sel1= array("01","10","12","21","23","32","34","43","45","54","56","65","67","76","78","87","89","98"); }else{ $sel1= array(); }
if (in_array("2", $oshs)) { $sel2= array("02","20","13","31","24","42","35","53","46","64","57","75","68","86","79","97"); }else{ $sel2= array(); }
if (in_array("3", $oshs)) { $sel3= array("03","30","14","41","25","52","36","63","47","74","58","85","69","96"); }else{ $sel3= array(); }
if (in_array("4", $oshs)) { $sel4= array("04","40","15","51","26","62","37","73","48","84","59","95"); }else{ $sel4= array(); }
if (in_array("5", $oshs)) { $sel5= array("05","50","16","61","27","72","38","83","49","94"); }else{ $sel5= array(); }
if (in_array("6", $oshs)) { $sel6= array("06","60","17","71","28","82","39","93"); }else{ $sel6= array(); }
if (in_array("7", $oshs)) { $sel7= array("07","70","18","81","29","92"); }else{ $sel7= array(); }
if (in_array("8", $oshs)) { $sel8= array("08","80","19","91"); }else{ $sel8= array(); }
if (in_array("9", $oshs)) { $sel9= array("09","90"); }else{ $sel9= array(); }
if (in_array("0", $oshs)) { $sel0= array("00","11","22","33","44","55","66","77","88","99"); }else{ $sel0 = array(); }
$sel = array_merge($sel1,$sel2,$sel3,$sel4,$sel5,$sel6,$sel7,$sel7,$sel8,$sel9,$sel0);
asort($sel);
} else {$sel = array();}

if (isset($_POST['kbk']) && !empty($_POST['kbk'])) {
   $jkpl = $_POST['kbk'];
   if ($jkpl == 'Kecil') {
    $kpb = array(
        "50","51","52","53","54","55","56","57","58","59","60","61","62","63","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","81","82","83","84","85","86","87","88","89","90","91","92","93","94","95","96","97","98","99");}
    else if ($jkpl == 'Besar') {
        $kpb = array(
            "00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49");}
    else {$kpb = array();}
} else {$kpb = array();}

if (isset($_POST['ebk']) && !empty($_POST['ebk'])) {
   $jekr = $_POST['ebk'];
   if ($jekr == 'Kecil') {
    $ekb = array(
        "05","06","07","08","09","15","16","17","18","19","25","26","27","28","29","35","36","37","38","39","45","46","47","48","49","55","56","57","58","59","65","66","67","68","69","75","76","77","78","79","85","86","87","88","89","95","96","97","98","99");}
    else if ($jekr == 'Besar') {
        $ekb = array(
            "00","01","02","03","04","10","11","12","13","14","20","21","22","23","24","30","31","32","33","34","40","41","42","43","44","50","51","52","53","54","60","61","62","63","64","70","71","72","73","74","80","81","82","83","84","90","91","92","93","94");}
        else {$ekb = array();}

} else {$ekb = array();}

if (isset($_POST['kgj']) && !empty($_POST['kgj'])) {
 $gkpl = $_POST['kgj'];
 if ($gkpl == 'Ganjil') {
    $kpg = array(
        "00","01","02","03","04","05","06","07","08","09","20","21","22","23","24","25","26","27","28","29","40","41","42","43","44","45","46","47","48","49","60","61","62","63","64","65","66","67","68","69","80","81","82","83","84","85","86","87","88","89");}
    else if ($gkpl == 'Genap') {
        $kpg = array(
            "10","11","12","13","14","15","16","17","18","19","30","31","32","33","34","35","36","37","38","39","50","51","52","53","54","55","56","57","58","59","70","71","72","73","74","75","76","77","78","79","90","91","92","93","94","95","96","97","98","99");}
        else {$kpg = array();}
} else {$kpg = array();}

if (isset($_POST['egj']) && !empty($_POST['egj'])) {
    $gekr = $_POST['egj'];
    if ($gekr == 'Ganjil') {
        $ekg = array(
            "00","02","04","06","08","10","12","14","16","18","20","22","24","26","28","30","32","34","36","38","40","42","44","46","48","50","52","54","56","58","60","62","64","66","68","70","72","74","76","78","80","82","84","86","88","90","92","94","96","98");}
        else if ($gekr == 'Genap') {
            $ekg = array(
                "01","03","05","07","09","11","13","15","17","19","21","23","25","27","29","31","33","35","37","39","41","43","45","47","49","51","53","55","57","59","61","63","65","67","69","71","73","75","77","79","81","83","85","87","89","91","93","95","97","99");}
            else {$ekg = array();}
} else {$ekg = array();}

if (isset($_POST['homsil']) && !empty($_POST['homsil'])) {
$hsr = $_POST['homsil'];
if ($hsr == 'Silang') {
$hs = array(
"00","02","04","06","08","11","13","15","17","19","20","22","24","26","28","31","33","35","37","39","40","42","44","46","48","51","53","55","57","59","60","62","64","66","68","71","73","75","77","79","80","82","84","86","88","91","93","95","97","99");}
else if ($hsr == 'Homo') {
$hs = array(
"01","03","05","07","09","10","12","14","16","18","21","23","25","27","29","30","32","34","36","38","41","43","45","47","49","50",
"52","54","56","58","61","63","65","67","69","70","72","74","76","78","81","83","85","87","89","90","92","94","96","98");}
else {$hs = array();}
} else {$hs = array();}

if (isset($_POST['ttepi']) && !empty($_POST['ttepi'])) {
$ttr = $_POST['ttepi'];
if ($ttr == 'Tengah') {
$tt = array(
"00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","75","76","77","78","79","80","81","82","83","84","85","86","87","88","89","90","91","92","93","94","95","96","97","98","99");}
else if ($ttr == 'Tepi') {
$tt = array(
"25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59","60","61","62","63","64","65","66","67","68","69","70","71","72","73","74",);}
else {$tt = array();}
} else {$tt = array();}

if (isset($_POST['jbs']) && !empty($_POST['jbs'])) {
$jmbr = $_POST['jbs'];
if ($jmbr == 'Jkecil') {
$jmb = array(
"05","06","07","08","09","14","15","16","17","18","23","24","25","26","27","32","33","34","35","36","41","42","43","44","45","50","51","52","53","54","59","60","61","62","63","68","69","70","71","72","77","78","79","80","81","86","87","88","89","90","95","96","97","98","99");}
else if ($jmbr == 'Jbesar') {
$jmb = array(
"00","01","02","03","04","10","11","12","13","19","20","21","22","28","29","30","31","37","38","39","40","46","47","48","49","55","56","57","58","64","65","66","67","73","74","75","76","82","83","84","85","91","92","93","94");}
else {$jmb = array();}
} else {$jmb = array();}

if (isset($_POST['jgj']) && !empty($_POST['jgj'])) {
$jmgr = $_POST['jgj'];
if ($jmgr == 'Jganjil') {
$jmg = array(
"00","02","04","06","08","11","13","15","17","20","22","24","26","29","31","33","35","38","40","42","44","47","49","51","53","56","58","60","62","65","67","69","71","74","76","78","80","83","85","87","89","92","94","96","98");}
else if ($jmgr == 'Jgenap') {
$jmg = array(
"01","03","05","07","09","10","12","14","16","18","19","21","23","25","27","28","30","32","34","36","37","39","41","43","45","46","48","50","52","54","55","57","59","61","63","64","66","68","70","72","73","75","77","79","81","82","84","86","88","90","91","93","95","97","99");}
else {$jmg = array();}
} else {$jmg = array();}

if (isset($_POST['bangpi']) && !empty($_POST['bangpi'])) {
$kkr = $_POST['bangpi'];
if ($kkr == 'Kembang') {
$kk = array(
"10","20","21","30","31","32","40","41","42","43","50","51","52","53","54","60","61","62","63","64","65","70","71","72","73","74","75","76","80","81","82","83","84","85","86","87","90","91","92","93","94","95","96","97","98");}
else if ($kkr == 'Kempis') {
$kk = array(
"01","02","03","04","05","06","07","08","09","12","13","14","15","16","17","18","19","23","24","25","26","27","28","29","34","35","36","37","38","39","45","46","47","48","49","56","57","58","59","67","68","69","78","79","89");}
else {$kk = array();}
} else {$kk = array();}

if (isset($_POST['idoff']) && $_POST['idoff'] != '') {
$lnof = array_map('trim',array_filter(explode('*',$_POST['idoff']))); $loff = array();
$loff = array();
foreach ($lnof as $key) {
  if (strlen($key) == 2) {
    $loff[] =$key;
  }
}
} else {$loff = array();}

if (isset($_POST['ctr']) && $_POST['ctr'] != '') {
$idso = splitNewLine($_POST['ctr']);
$idseo = count($idso); 
for ($i = 0; $i < $idseo; $i++) {
$kumateo[] = permutations(array_diff($nomor,str_split($idso[$i])),2);
}
$kumat = array();
foreach($kumateo as $arrcto) {
    if(is_array($arrcto)) {$kumat = array_merge($kumat, $arrcto);}
}
} else {$kumat = array();}

if (isset($_POST['koma']) && !empty($_POST['koma'])) {
$sah = $_POST['koma'];
if ($sah == "*") {$pisah = "*";}
else if ($sah == "#") {$pisah = "#";}
else if ($sah == ",") {$pisah = ",";}
else if ($sah == ".") {$pisah = ".";}
else {$pisah = "*";}
} else {$pisah = "*";}

if (isset($_POST['unik']) && !empty($_POST['unik'])) {
if ($_POST['unik'] == 'Nontwin') {$twin = array("00","11","22","33","44","55","66","77","88","99");}
else {$twin = array();}
} else {$twin = array();}

$array10 = array();
$array10 = array_filter(array_merge($array10, $kepala, $ekor, $jarak, $shio, $jml, $sel, $kpb, $ekb, $kpg, $ekg, $hs, $tt, $jmb, $jmg, $kk, $loff, $kumat));
asort($array10);
$valx = array_diff($lon, $array10);
$cvalxi = count($valx);
if(is_array($valx)) {
foreach($valx as $nilai) {$numbi .= $nilai.$pisah;}    
}
  

if (isset($_POST['ids2']) && $_POST['ids2'] != '') {
   $ids2 = array_filter(explode("*", $_POST['ids2']), 'strlen' );
   $lona = array();
   foreach ($ids2 as $key) {
      if (strlen($key) == 2) {
        $lona[] =$key;
    }
}
asort($lona);
} else {$lona = $asli;}   
if (isset($_POST['kepala2']) && $_POST['kepala2'] != '') {
   $kpl = str_split($_POST['kepala2']);
   $multidimensionalk = array($kpl, $nomor);
   $kepalaa = array();
   $count = count($multidimensionalk);
   for ($i = 0; $i < $count; $i++) {
      $temp = array_map("permute",array($kepalaa),array($multidimensionalk[$i]));
      $kepalaa = $temp[0];
  }
  asort($kepalaa);
} else {$kepalaa = array();} 

if (isset($_POST['ekor2']) && $_POST['ekor2'] != '') {
   $ekr = str_split($_POST['ekor2']);
   $multidimensionale = array($nomor, $ekr);
$ekora = array();
$count = count($multidimensionale);
    for ($i = 0; $i < $count; $i++) {
      $temp = array_map("permute",array($ekora),array($multidimensionale[$i]));
      $ekora = $temp[0];
    }

asort($ekora);
} else {$ekora = array();} 

if (isset($_POST['jalem12']) && $_POST['jalem12'] != '' && isset($_POST['jalem22']) && $_POST['jalem22'] != '') {
    $jdr = $_POST['jalem12']; $jsr = $_POST['jalem22']; $jaraka = array(); $angka ='';
    if ($jsr > $jdr && strlen($jdr) > 1 && strlen($jdr) < 3 && strlen($jsr) > 1 && strlen($jsr) < 3 ) {
      for ($i=$jdr; $i < ($jsr+1); $i++) {
        if (strlen($i) < 2) {$angka = '0'.$i;} else {$angka = $i;}
        $jaraka[] = $angka;}
    }
}  else {$jaraka = array();} 

if (isset($_POST['shio2']) && $_POST['shio2'] != '') {
   $os = array_filter(explode(',', $_POST['shio2']), 'strlen' );
if (in_array("1", $os)) { $shio1 = array("01","13","25","37","49","61","73","85","97"); }else{ $shio1 = array(); }
if (in_array("2", $os)) { $shio2 = array("02","14","26","38","50","62","74","86","98"); }else{ $shio2 = array(); }
if (in_array("3", $os)) { $shio3 = array("03","15","27","39","51","63","75","87","99"); }else{ $shio3 = array(); }
if (in_array("4", $os)) { $shio4 = array("04","16","28","40","52","64","76","88","00"); }else{ $shio4 = array(); }
if (in_array("5", $os)) { $shio5 = array("05","17","29","41","53","65","77","89"); }else{ $shio5 = array(); }
if (in_array("6", $os)) { $shio6 = array("06","18","30","42","54","66","78","90"); }else{ $shio6 = array(); }
if (in_array("7", $os)) { $shio7 = array("07","19","31","43","55","67","79","91"); }else{ $shio7 = array(); }
if (in_array("8", $os)) { $shio8 = array("08","20","32","44","56","68","80","92"); }else{ $shio8 = array(); }
if (in_array("9", $os)) { $shio9 = array("09","21","33","45","57","69","81","93"); }else{ $shio9 = array(); }
if (in_array("10", $os)) { $shio10 = array("10","22","34","46","58","70","82","94"); }else{ $shio10 = array(); }
if (in_array("11", $os)) { $shio11 = array("11","23","35","47","59","71","83","95"); }else{ $shio11 = array(); }
if (in_array("12", $os)) { $shio12 = array("12","24","36","48","60","72","84","96"); }else{ $shio12 = array(); }
$shioa = array_merge($shio1,$shio2,$shio3,$shio4,$shio5,$shio6,$shio7,$shio7,$shio8,$shio9,$shio10,$shio11,$shio12);
asort($shioa);
} else {$shioa = array();}

if (isset($_POST['jml2']) && $_POST['jml2'] != '') {
   $osh = str_split($_POST['jml2']);
if (in_array("1", $osh)) { $jml1= array("01","10","19","28","37","46","55","64","73","82","91"); }else{ $jml1= array(); }
if (in_array("2", $osh)) { $jml2= array("02","11","20","29","38","47","56","65","74","83","92"); }else{ $jml2= array(); }
if (in_array("3", $osh)) { $jml3= array("03","12","21","30","39","48","57","66","75","84","93"); }else{ $jml3= array(); }
if (in_array("4", $osh)) { $jml4= array("04","13","22","31","40","49","58","67","76","85","94"); }else{ $jml4= array(); }
if (in_array("5", $osh)) { $jml5= array("05","14","23","32","41","50","59","68","77","86","95"); }else{ $jml5= array(); }
if (in_array("6", $osh)) { $jml6= array("06","15","24","33","42","51","60","69","78","87","96"); }else{ $jml6= array(); }
if (in_array("7", $osh)) { $jml7= array("07","16","25","34","43","52","61","70","79","88","97"); }else{ $jml7= array(); }
if (in_array("8", $osh)) { $jml8= array("08","17","26","35","44","53","62","71","80","89","98"); }else{ $jml8= array(); }
if (in_array("9", $osh)) { $jml9= array("09","18","27","36","45","54","63","72","81","90","99"); }else{ $jml9= array(); }
if (in_array("0", $osh)) { $jml0= array("00"); }else{ $jml0 = array(); }
$jmla = array_merge($jml1,$jml2,$jml3,$jml4,$jml5,$jml6,$jml7,$jml7,$jml8,$jml9,$jml0);
asort($jmla);
} else {$jmla = array();}

if (isset($_POST['sls2']) && $_POST['sls2'] != '') {
   $oshs = str_split($_POST['sls2']);
if (in_array("1", $oshs)) { $sel1= array("01","10","12","21","23","32","34","43","45","54","56","65","67","76","78","87","89","98"); }else{ $sel1= array(); }
if (in_array("2", $oshs)) { $sel2= array("02","20","13","31","24","42","35","53","46","64","57","75","68","86","79","97"); }else{ $sel2= array(); }
if (in_array("3", $oshs)) { $sel3= array("03","30","14","41","25","52","36","63","47","74","58","85","69","96"); }else{ $sel3= array(); }
if (in_array("4", $oshs)) { $sel4= array("04","40","15","51","26","62","37","73","48","84","59","95"); }else{ $sel4= array(); }
if (in_array("5", $oshs)) { $sel5= array("05","50","16","61","27","72","38","83","49","94"); }else{ $sel5= array(); }
if (in_array("6", $oshs)) { $sel6= array("06","60","17","71","28","82","39","93"); }else{ $sel6= array(); }
if (in_array("7", $oshs)) { $sel7= array("07","70","18","81","29","92"); }else{ $sel7= array(); }
if (in_array("8", $oshs)) { $sel8= array("08","80","19","91"); }else{ $sel8= array(); }
if (in_array("9", $oshs)) { $sel9= array("09","90"); }else{ $sel9= array(); }
if (in_array("0", $oshs)) { $sel0= array("00","11","22","33","44","55","66","77","88","99"); }else{ $sel0 = array(); }
$sela = array_merge($sel1,$sel2,$sel3,$sel4,$sel5,$sel6,$sel7,$sel7,$sel8,$sel9,$sel0);
asort($sela);
} else {$sela = array();}

if (isset($_POST['kbk2']) && !empty($_POST['kbk2'])) {
   $jkpl = $_POST['kbk2'];
   if ($jkpl == 'Kecil') {
    $kpba = array(
        "50","51","52","53","54","55","56","57","58","59","60","61","62","63","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","81","82","83","84","85","86","87","88","89","90","91","92","93","94","95","96","97","98","99");}
    else if ($jkpl == 'Besar') {
        $kpba = array(
            "00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49");}
    else {$kpba = array();}
} else {$kpba = array();}

if (isset($_POST['ebk2']) && !empty($_POST['ebk2'])) {
   $jekr = $_POST['ebk2'];
   if ($jekr == 'Kecil') {
    $ekba = array(
        "05","06","07","08","09","15","16","17","18","19","25","26","27","28","29","35","36","37","38","39","45","46","47","48","49","55","56","57","58","59","65","66","67","68","69","75","76","77","78","79","85","86","87","88","89","95","96","97","98","99");}
    else if ($jekr == 'Besar') {
        $ekba = array(
            "00","01","02","03","04","10","11","12","13","14","20","21","22","23","24","30","31","32","33","34","40","41","42","43","44","50","51","52","53","54","60","61","62","63","64","70","71","72","73","74","80","81","82","83","84","90","91","92","93","94");}
        else {$ekba = array();}

} else {$ekba = array();}

if (isset($_POST['kgj2']) && !empty($_POST['kgj2'])) {
 $gkpl = $_POST['kgj2'];
 if ($gkpl == 'Ganjil') {
    $kpga = array(
        "00","01","02","03","04","05","06","07","08","09","20","21","22","23","24","25","26","27","28","29","40","41","42","43","44","45","46","47","48","49","60","61","62","63","64","65","66","67","68","69","80","81","82","83","84","85","86","87","88","89");}
    else if ($gkpl == 'Genap') {
        $kpga = array(
            "10","11","12","13","14","15","16","17","18","19","30","31","32","33","34","35","36","37","38","39","50","51","52","53","54","55","56","57","58","59","70","71","72","73","74","75","76","77","78","79","90","91","92","93","94","95","96","97","98","99");}
        else {$kpga = array();}
} else {$kpga = array();}

if (isset($_POST['egj2']) && !empty($_POST['egj2'])) {
    $gekr = $_POST['egj2'];
    if ($gekr == 'Ganjil') {
        $ekga = array(
            "00","02","04","06","08","10","12","14","16","18","20","22","24","26","28","30","32","34","36","38","40","42","44","46","48","50","52","54","56","58","60","62","64","66","68","70","72","74","76","78","80","82","84","86","88","90","92","94","96","98");}
        else if ($gekr == 'Genap') {
            $ekga = array(
                "01","03","05","07","09","11","13","15","17","19","21","23","25","27","29","31","33","35","37","39","41","43","45","47","49","51","53","55","57","59","61","63","65","67","69","71","73","75","77","79","81","83","85","87","89","91","93","95","97","99");}
            else {$ekga = array();}
} else {$ekga = array();}

if (isset($_POST['homsil2']) && !empty($_POST['homsil2'])) {
$hsr = $_POST['homsil2'];
if ($hsr == 'Silang') {
$hsa = array(
"00","02","04","06","08","11","13","15","17","19","20","22","24","26","28","31","33","35","37","39","40","42","44","46","48","51","53","55","57","59","60","62","64","66","68","71","73","75","77","79","80","82","84","86","88","91","93","95","97","99");}
else if ($hsr == 'Homo') {
$hsa = array(
"01","03","05","07","09","10","12","14","16","18","21","23","25","27","29","30","32","34","36","38","41","43","45","47","49","50",
"52","54","56","58","61","63","65","67","69","70","72","74","76","78","81","83","85","87","89","90","92","94","96","98");}
else {$hsa = array();}
} else {$hsa = array();}

if (isset($_POST['ttepi2']) && !empty($_POST['ttepi2'])) {
$ttr = $_POST['ttepi2'];
if ($ttr == 'Tengah') {
$tta = array(
"00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","75","76","77","78","79","80","81","82","83","84","85","86","87","88","89","90","91","92","93","94","95","96","97","98","99");}
else if ($ttr == 'Tepi') {
$tta = array(
"25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59","60","61","62","63","64","65","66","67","68","69","70","71","72","73","74",);}
else {$tta = array();}
} else {$tta = array();}

if (isset($_POST['jbs2']) && !empty($_POST['jbs2'])) {
$jmbr = $_POST['jbs2'];
if ($jmbr == 'Jkecil') {
$jmba = array(
"05","06","07","08","09","14","15","16","17","18","23","24","25","26","27","32","33","34","35","36","41","42","43","44","45","50","51","52","53","54","59","60","61","62","63","68","69","70","71","72","77","78","79","80","81","86","87","88","89","90","95","96","97","98","99");}
else if ($jmbr == 'Jbesar') {
$jmba = array(
"00","01","02","03","04","10","11","12","13","19","20","21","22","28","29","30","31","37","38","39","40","46","47","48","49","55","56","57","58","64","65","66","67","73","74","75","76","82","83","84","85","91","92","93","94");}
else {$jmba = array();}
} else {$jmba = array();}

if (isset($_POST['jgj2']) && !empty($_POST['jgj2'])) {
$jmgr = $_POST['jgj2'];
if ($jmgr == 'Jganjil') {
$jmga = array(
"00","02","04","06","08","11","13","15","17","20","22","24","26","29","31","33","35","38","40","42","44","47","49","51","53","56","58","60","62","65","67","69","71","74","76","78","80","83","85","87","89","92","94","96","98");}
else if ($jmgr == 'Jgenap') {
$jmga = array(
"01","03","05","07","09","10","12","14","16","18","19","21","23","25","27","28","30","32","34","36","37","39","41","43","45","46","48","50","52","54","55","57","59","61","63","64","66","68","70","72","73","75","77","79","81","82","84","86","88","90","91","93","95","97","99");}
else {$jmga = array();}
} else {$jmga = array();}

if (isset($_POST['bangpi2']) && !empty($_POST['bangpi2'])) {
$kkr = $_POST['bangpi2'];
if ($kkr == 'Kembang') {
$kka = array(
"10","20","21","30","31","32","40","41","42","43","50","51","52","53","54","60","61","62","63","64","65","70","71","72","73","74","75","76","80","81","82","83","84","85","86","87","90","91","92","93","94","95","96","97","98");}
else if ($kkr == 'Kempis') {
$kka = array(
"01","02","03","04","05","06","07","08","09","12","13","14","15","16","17","18","19","23","24","25","26","27","28","29","34","35","36","37","38","39","45","46","47","48","49","56","57","58","59","67","68","69","78","79","89");}
else {$kka = array();}
} else {$kka = array();}

if (isset($_POST['idoff2']) && $_POST['idoff2'] != '') {
$lnof = array_map('trim',array_filter(explode('*',$_POST['idoff2']))); $loffa = array();
foreach ($lnof as $key) {
  if (strlen($key) == 2) {
    $loffa[] =$key;
  }
}
} else {$loffa = array();}

if (isset($_POST['ctr2']) && $_POST['ctr2'] != '') {
$ids = splitNewLine($_POST['ctr2']);
$idse = count($ids); 
for ($i = 0; $i < $idse; $i++) {
$kumate[] = permutations(array_diff($nomor,str_split($ids[$i])),2);
}
$kumata = array();
foreach($kumate as $arrct) {
    if(is_array($arrct)) {$kumata = array_merge($kumata, $arrct);}
}
} else {$kumata = array();}

$array10a = array();
$array10a = array_filter(array_merge($array10a, $kepalaa, $ekora, $jaraka, $shioa, $jmla, $sela, $kpba, $ekba, $kpga, $ekga, $hsa, $tta, $jmba, $jmga, $kka, $loffa, $kumata, $twin));
asort($array10a);
$valxa = array_diff($lona, $array10a);
$cvalxai = count($valxa);
if(is_array($valxa)) {
    foreach($valxa as $nilaai) {$nilaiai++; $numbai .= $nilaai.$pisah;}

}

if (isset($_POST['on3d']) && $_POST['on3d'] != '') {
$ln3don = array_map('trim',array_filter(explode('*',$_POST['on3d'])));
$ln3d = array();
if(!empty($ln3don)) {
foreach ($ln3don as $keyd) {
  if (strlen($keyd) == 3) {
    $ln3d[] =$keyd;
  }
}} else {$ln3d = $asli3;}
} else {$ln3d = $asli3;}

if (isset($_POST['mati3d']) && $_POST['mati3d'] != '') {
$ln3doff = array_map('trim',array_filter(explode('*',$_POST['mati3d'])));
if(!empty($ln3doff)) {
$ln3df = array();
foreach ($ln3doff as $keyd) {
  if (strlen($keyd) == 3) {
    $ln3df[] =$keyd;
  }
} }  else {$ln3df = array();}
} else {$ln3df = array();}

//if (isset($_POST['ai3d']) && $_POST['ai3d'] != '') {
//$idsd3 = splitNewLine($_POST['ai3d']);    
//$idsed3 = count($idsd3);

 //$kumatd3 = array();
//for ($id3 = 0; $id3 < $idsed3; $id3++) {
//$kumatd3[] = permutations(array_diff($nomor,str_split($idsd3[$id3])),3);
//}
//$arrayctt3 = array();
//foreach($kumatd3 as $arrctt3) {
//    if(is_array($arrctt3)) {$arrayctt3 = array_merge($arrayctt3, $arrctt3);}
//}
//} else {$arrayctt3 = array();}
if (isset($_POST['ai3d']) && $_POST['ai3d'] != '') {
$em = splitNewLine($_POST['ai3d']);
$emp = count($em); 

for ($ial = 0; $ial < $emp; $ial++) {
$empe[] = permutations(array_diff($nomor,str_split($em[$ial])),3);
}
$empek = array();
foreach($empe as $bosok) {
    if(is_array($bosok)) {$empek = array_merge($empek, $bosok);}
}
} else {$empek = array();}
//////////////////////////////////////////////
$offjum = array();
for($i=0;$i<28;$i++){
    if(isset($_POST['3d_'.$i])) {
      $offjum[] = $_POST['3d_'.$i];   
    }
}

$hoffjum = array();
if (!empty($offjum)) {
for ($i=000; $i < 1000; $i++) {
    if (strlen($i) == 1) { $i='00'.$i;}
    if (strlen($i) == 2) { $i='0'.$i;}
    $c = substr($i, 0, 1);
    $k = substr($i, 1, 1);
    $e = substr($i, 2, 1);
    $jj = $c+$k+$e;
    foreach ($offjum as $key) {
        if ($key == $jj) {
            $hoffjum[] = $i;  
        }
    }
}  
}

/////////////////////////////////////////////////
$combinations = array();
foreach ($valx as $i) {
  foreach ($valxa as $j) {
    $cekha = kanan($i,1); $cekhb = kiri($j,1);
    if($cekha == $cekhb) {$combinations[] = $i.''.kanan($j,1);}
        else {
            $combinations[] = '';
        }

  }
}

$tesh = array_filter($combinations);
$end = array_values(array_diff($asli3, $tesh));
$arrayne = array();
$hln3d = array();
$arrayne = array_merge($end, $ln3df, $empek, $hoffjum);
$hln3d = array_values(array_diff($ln3d, $arrayne));
}
//echo count($empek);
//print_r($kumatd3);



if (isset($_POST['ktengah']) && !empty($_POST['ktengah'])) {
$htigad = $_POST['ktengah'];
if ($htigad == 'kembartengah off') {
$htigadne = array(
"000","001","002","003","004","005","006","007","008","009","110","111","112","113","114","115","116","117","118","119","220","221","222","223","224","225","226","227","228","229","330","331","332","333","334","335","336","337","338","339","440","441","442","443","444","445","446","447","448","449","550","551","552","553","554","555","556","557","558","559","660","661","662","663","664","665","666","667","668","669","770","771","772","773","774","775","776","777","778","779","880","881","882","883","884","885","886","887","888","889","990","991","992","993","994","995","996","997","998","999");}
else if ($htigad == 'kembartengah on') {
$htigadne = array();}
else {$htigadne = array();}
} else {$htigadne = array();}

if (isset($_POST['kbelakang']) && !empty($_POST['kbelakang'])) {
$htigad1 = $_POST['kbelakang'];
if ($htigad1 == 'kembarbelakang off') {
$htigadne1 = array(
"000","011","022","033","044","055","066","077","088","099","100","111","122","133","144","155","166","177","188","199","200","211","222","233","244","255","266","277","288","299","300","311","322","333","344","355","366","377","388","399","400","411","422","433","444","455","466","477","488","499","500","511","522","533","544","555","566","577","588","599","600","611","622","633","644","655","666","677","688","699","700","711","722","733","744","755","766","777","788","799","800","811","822","833","844","855","866","877","888","899","900","911","922","933","944","955","966","977","988","999");}
else if ($htigad1 == 'kembarbelakang on') {
$htigadne1 = array();}
else {$htigadne1 = array();}
} else {$htigadne1 = array();}

if (isset($_POST['kcopek']) && !empty($_POST['kcopek'])) {
$htigad2 = $_POST['kcopek'];
if ($htigad2 == 'kembar cop ekor off') {
$htigadne2 = array(
"000","010","020","030","040","050","060","070","080","090","101","111","121","131","141","151","161","171","181","191","202","212","222","232","242","252","262","272","282","292","303","313","323","333","343","353","363","373","383","393","404","414","424","434","444","454","464","474","484","494","505","515","525","535","545","555","565","575","585","595","606","616","626","636","646","656","666","676","686","696","707","717","727","737","747","757","767","777","787","797","808","818","828","838","848","858","868","878","888","898","909","919","929","939","949","959","969","979","989","999");}
else if ($htigad2 == 'kembar cop ekor on') {
$htigadne2 = array();}
else {$htigadne2 = array();}
} else {$htigadne2 = array();}








$asil = array_diff($hln3d, $htigadne, $htigadne1, $htigadne2);
foreach($asil as $rowh){
$asile .= $rowh.$pisah;
}

//ganjilgenap 3d

if (isset($_POST['jumtigad']) && !empty($_POST['jumtigad'])) {
$jumtigad = $_POST['jumtigad'];
if ($jumtigad == 'jumgenap') {
$hasiljum = array(
"000","002","004","006","008","011","013","015","017","020","022","024","026","029","031","033","035","038","040","042","044","047","049","051","053","056","058","060","062","065","067","069","071","074","076","078","080","083","085","087","089","092","094","096","098","101","103","105","107","110","112","114","116","119","121","123","125","128","130","132","134","137","139","141","143","146","148","150","152","155","157","159","161","164","166","168","170","173","175","177","179","182","184","186","188","191","193","195","197","200","202","204","206","209","211","213","215","218","220","222","224","227","229","231","233","236","238","240","242","245","247","249","251","254","256","258","260","263","265","267","269","272","274","276","278","281","283","285","287","290","292","294","296","299","301","303","305","308","310","312","314","317","319","321","323","326","328","330","332","335","337","339","341","344","346","348","350","353","355","357","359","362","364","366","368","371","373","375","377","380","382","384","386","389","391","393","395","398","400","402","404","407","409","411","413","416","418","420","422","425","427","429","431","434","436","438","440","443","445","447","449","452","454","456","458","461","463","465","467","470","472","474","476","479","481","483","485","488","490","492","494","497","499","501","503","506","508","510","512","515","517","519","521","524","526","528","530","533","535","537","539","542","544","546","548","551","553","555","557","560","562","564","566","569","571","573","575","578","580","582","584","587","589","591","593","596","598","600","602","605","607","609","611","614","616","618","620","623","625","627","629","632","634","636","638","641","643","645","647","650","652","654","656","659","661","663","665","668","670","672","674","677","679","681","683","686","688","690","692","695","697","699","701","704","706","708","710","713","715","717","719","722","724","726","728","731","733","735","737","740","742","744","746","749","751","753","755","758","760","762","764","767","769","771","773","776","778","780","782","785","787","789","791","794","796","798","800","803","805","807","809","812","814","816","818","821","823","825","827","830","832","834","836","839","841","843","845","848","850","852","854","857","859","861","863","866","868","870","872","875","877","879","881","884","886","888","890","893","895","897","899","902","904","906","908","911","913","915","917","920","922","924","926","929","931","933","935","938","940","942","944","947","949","951","953","956","958","960","962","965","967","969","971","974","976","978","980","983","985","987","989","992","994","996","998");}
else if ($jumtigad == 'jumganjil') {
$hasiljum = array(
"001","003","005","007","009","010","012","014","016","018","019","021","023","025","027","028","030","032","034","036","037","039","041","043","045","046","048","050","052","054","055","057","059","061","063","064","066","068","070","072","073","075","077","079","081","082","084","086","088","090","091","093","095","097","099","100","102","104","106","108","109","111","113","115","117","118","120","122","124","126","127","129","131","133","135","136","138","140","142","144","145","147","149","151","153","154","156","158","160","162","163","165","167","169","171","172","174","176","178","180","181","183","185","187","189","190","192","194","196","198","199","201","203","205","207","208","210","212","214","216","217","219","221","223","225","226","228","230","232","234","235","237","239","241","243","244","246","248","250","252","253","255","257","259","261","262","264","266","268","270","271","273","275","277","279","280","282","284","286","288","289","291","293","295","297","298","300","302","304","306","307","309","311","313","315","316","318","320","322","324","325","327","329","331","333","334","336","338","340","342","343","345","347","349","351","352","354","356","358","360","361","363","365","367","369","370","372","374","376","378","379","381","383","385","387","388","390","392","394","396","397","399","401","403","405","406","408","410","412","414","415","417","419","421","423","424","426","428","430","432","433","435","437","439","441","442","444","446","448","450","451","453","455","457","459","460","462","464","466","468","469","471","473","475","477","478","480","482","484","486","487","489","491","493","495","496","498","500","502","504","505","507","509","511","513","514","516","518","520","522","523","525","527","529","531","532","534","536","538","540","541","543","545","547","549","550","552","554","556","558","559","561","563","565","567","568","570","572","574","576","577","579","581","583","585","586","588","590","592","594","595","597","599","601","603","604","606","608","610","612","613","615","617","619","621","622","624","626","628","630","631","633","635","637","639","640","642","644","646","648","649","651","653","655","657","658","660","662","664","666","667","669","671","673","675","676","678","680","682","684","685","687","689","691","693","694","696","698","700","702","703","705","707","709","711","712","714","716","718","720","721","723","725","727","729","730","732","734","736","738","739","741","743","745","747","748","750","752","754","756","757","759","761","763","765","766","768","770","772","774","775","777","779","781","783","784","786","788","790","792","793","795","797","799","801","802","804","806","808","810","811","813","815","817","819","820","822","824","826","828","829","831","833","835","837","838","840","842","844","846","847","849","851","853","855","856","858","860","862","864","865","867","869","871","873","874","876","878","880","882","883","885","887","889","891","892","894","896","898","900","901","903","905","907","909","910","912","914","916","918","919","921","923","925","927","928","930","932","934","936","937","939","941","943","945","946","948","950","952","954","955","957","959","961","963","964","966","968","970","972","973","975","977","979","981","982","984","986","988","990","991","993","995","997","999");}
else {$hasiljum = array();}
} else {$hasiljum = array();}

$oleh = array_diff($asil, $hasiljum);
foreach($oleh as $mbut){
$olehe .= $mbut.$pisah;
}




?>
<div class="panel panel-default">
   <div class="panel-body">    
<div class="panel-heading" id="textarea_feedback"><h3 class="text-center text-primary">3D <?php echo count($oleh);?> LN</h3></div>
         
                 <textarea id="dataret" class="form-control" rows="9"><?php echo $olehe; ?></textarea>
    </div>
</div>    
<?php return ob_get_clean(); } ?>