QAD - SEARCHABLE DROPDOWN IN MASTER
This commit is contained in:
parent
3333e34db7
commit
285599169a
@ -84,30 +84,31 @@ foreach($customersinward as $customer)
|
|||||||
<div class="col-md-1">
|
<div class="col-md-1">
|
||||||
<input type="radio" value="0" name="type" id="Inward" onclick="changeType(this.value);"/> InWard
|
<input type="radio" value="0" name="type" id="Inward" onclick="changeType(this.value);"/> InWard
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-4" id='outwardarea' >
|
||||||
|
|
||||||
|
<div class="col-md-6">
|
||||||
|
|
||||||
<div id='outwardarea' style="display:block;">
|
<?php echo form_dropdown('name="product"',$products2,set_value('product',$products2[-1]),'id="product"' ,'class="form-control select2','style="width:200px;"');?>
|
||||||
<div class="col-md-3">
|
|
||||||
|
|
||||||
<?php echo form_dropdown('name="product"',$products2,set_value('product',$products2[-1]),'id="product"' ,'class="form-control select2');?>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-3">
|
<div class="col-md-6">
|
||||||
<?php echo form_dropdown('name="customer"',$customers2,set_value('customer',$customers2[-1]),'id="customer"' ,'class="form-control select2');?>
|
<?php echo form_dropdown('name="customer"',$customers2,set_value('customer',$customers2[-1]),'id="customer"' ,'class="form-control select2');?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-4" id='inwardarea' >
|
||||||
<div id='inwardarea' style="display:none;">
|
|
||||||
<div class="col-md-3">
|
<div class="col-md-6">
|
||||||
|
|
||||||
<?php echo form_dropdown('name="productinward"',$productsinward1,set_value('productinward',$productsinward1[-1]),'id="productinward"' ,'class="form-control select2');?>
|
<?php echo form_dropdown('name="productinward"',$productsinward1,set_value('productinward',$productsinward1[-1]),'id="productinward"' ,'class="form-control select2');?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-3">
|
<div class="col-md-6">
|
||||||
<?php echo form_dropdown('name="customerinward"',$customersinward1,set_value('customerinward',$customersinward1[-1]),'id="customerinward"' ,'class="form-control select2');?>
|
<?php echo form_dropdown('name="customerinward"',$customersinward1,set_value('customerinward',$customersinward1[-1]),'id="customerinward"' ,'class="form-control select2');?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-2">
|
||||||
<div class="col-md-3">
|
|
||||||
<input type="button" id="addspec" class="btn btn-primary" value = "Add New Specification">
|
<input type="button" id="addspec" class="btn btn-primary" value = "Add New Specification">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -233,7 +234,8 @@ foreach($customersinward as $customer)
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
//alert();
|
//alert();
|
||||||
$('#OutWard').attr('checked','true');
|
$('#OutWard').attr('checked','true');
|
||||||
|
$('#inwardarea').hide();
|
||||||
|
$('#outwardarea').show();
|
||||||
});
|
});
|
||||||
|
|
||||||
function changeType(v)
|
function changeType(v)
|
||||||
@ -243,16 +245,20 @@ $('#OutWard').attr('checked','true');
|
|||||||
if(val == 0)
|
if(val == 0)
|
||||||
{
|
{
|
||||||
//alert('InWard');
|
//alert('InWard');
|
||||||
$('#inwardarea').css({'display':'block'});
|
$('#inwardarea').show();
|
||||||
$('#outwardarea').css({'display':'none'});
|
$('#outwardarea').hide();
|
||||||
}
|
}
|
||||||
else if(val == 1)
|
else if(val == 1)
|
||||||
{
|
{
|
||||||
//alert('OutWard');
|
//alert('OutWard');
|
||||||
$('#inwardarea').css({'display':'none'});
|
$('#inwardarea').hide();
|
||||||
$('#outwardarea').css({'display':'block'});
|
$('#outwardarea').show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$('#product').select2();
|
||||||
|
$('#customer').select2();
|
||||||
|
$('#productinward').select2();
|
||||||
|
$('#customerinward').select2();
|
||||||
|
|
||||||
$('#addspec').click(function(){
|
$('#addspec').click(function(){
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user