EVOLUTION-NINJA
Edit File: customer_master_details.php
<?php //die(); ?> <script> $(document).ready(function(){ $("#inhouse").show(); $("#outsource").hide(); }); function planningtypes(type) { if(type=="In-House Productions") { //alert(type); $("#inhouse").show(); $("#outsource").hide(); $('#production').val('inhouse'); } else if(type=="Out-Source Productions") { //alert(type); $("#inhouse").hide(); $("#outsource").show(); $('#production').val('outsource'); } } function articleno_getDesignAndQuality(articleNo) { $.ajax({ type: "post", url: "<?php echo base_url(); ?>marketing/articleNo_getDesignAndQuality", data: "articleNo=" + articleNo, success: function (data) { var objData = jQuery.parseJSON(data); document.getElementById("design").value = objData.design; document.getElementById("quality").value = objData.quality; } }); } function outsource(product) { //alert(); $.ajax({ type: "post", url: "<?php echo base_url(); ?>marketing/getproducts", data: "articleNo=" + product, success: function (data) { // alert(); var objData = jQuery.parseJSON(data); // document.getElementById("design").value = objData.design; document.getElementById("quality").value = objData.arrArticleDet.product_description; // document.getElementById("article_width").value = objData.arrArticleDet.width; // document.getElementById("weight").value =objData.arrArticleDet.weight; // document.getElementById("composition").value = objData.arrArticleDet.construction_details; } }); } function parmissionunits(str){ $.ajax({ type: "post", url: "<?php echo base_url(); ?>marketing/getProductType", data: "fabricType=" + str, success: function (data) { // alert(data); //document.getElementById("sslShade").innerHTML = data; document.getElementById("unit").innerHTML=""; document.getElementById("unit").innerHTML="<option value=''>Select</option>"; if(data=="FABRIC") { var origdata = "YARDS,MTRs"; document.getElementById("changewss").innerHTML="Width:"; } else if(data=="MADEUPS") { var origdata = "No(s),PAIRS,PCS,SETS"; document.getElementById("changewss").innerHTML="Size:"; } var spdatas = origdata.split(","); for(var i=0;i<spdatas.length;i++) { // alert(spdatas[i]); document.getElementById("unit").innerHTML+="<option value="+spdatas[i]+">"+spdatas[i]+"</option>"; } } }); } function back_fun() { window.location.href="<?php echo base_url('quality_check/customer_product_details11'); ?>"; } function modal_show_fun() { var v=$('#insert_id').val(); if(v==1) { var rand = Math.floor((Math.random() * 10000) + 1); var man=$('#customer_id').val(); var name=$('#customer_name').val(); var as=$('#c_id').val(); window.open('<?php echo base_url("quality_check/customer_details88"); ?>/'+ '?id='+as+'&rand='+rand); } else { swal({ title: "You Don't Have Access For This", text: "", }); } } function modal_show_fun1() { var v=$('#insert_id').val(); if(v==1) { var rand1 = Math.floor((Math.random() * 10000) + 1); var man=$('#customer_id').val(); var name=$('#customer_name').val(); var as=$('#c_id').val(); window.open('<?php echo base_url("quality_check/madeups_details88"); ?>/'+ '?id='+as+'&rand='+rand1); } else { swal({ title: "You Don't Have Access For This", text: "", }); } } </script> <div class="page-content-wrapper"> <div class="page-content"> <!-- BEGIN PAGE HEADER--> <h3 class="page-title"> Customer Product Details </h3> <div class="page-bar"> <ul class="page-breadcrumb"> <li><i class="fa fa-home"></i> <a href="<?php echo base_url();?>dashboard/dashboard_fun">Home</a> <i class="fa fa-angle-right"></i> <a href="<?php echo base_url('marketing/customer_master_details'); ?>" > Customer Master </a></li> </ul> </div> <input type="button" id="show_modal" onclick="modal_show_fun()" value="Insert Fabric" /> <input type="button" id="show_modal" onclick="modal_show_fun1()" value="Insert Madeups" /> <input type="button" id="show_modal" onclick="add_shades()" value="Add Shades" /> <input type="button" id="show_modal" onclick="upload_shades()" value="Upload Shades" /> <input type="button" name="co" onclick="fun_preview()" value="Preview" /> <input type="button" onclick="back_fun();" value="Back" /><br><br> <input type="hidden" id="hhh_id" > <input type="hidden" id="pro" > <input type="hidden" id="edit_id" class="edit_id" value="<?php echo $access_row->edit_id; ?>" > <input type="hidden" id="insert_id" class="insert_id" value="<?php echo $access_row->insert_id; ?>" > <input type="hidden" id="delete_id" class="delete_id" value="<?php echo $access_row->delete_id; ?>" > <input type="hidden" id="preview_id" class="preview_id" value="<?php echo $access_row->preview_id; ?>" > <div class="row"> <div class="col-md-12"> <div class="form-group"> <label class="control-label col-md-3"><b>Customer Name: <?php echo $result->customerName; ?></b></label> <label class="control-label col-md-3"><b>Customer ID: <?php echo $result->customerID; ?></b></label> </div> </div> </div> <div id = "jaytab" class="jaytab"> <table id="list2"></table> <div id="pager2"></div> <div id="dialogSelectRow" title="Warning" style="display:none"> <p>Please select row</p> </div> </div> <input type="hidden" name="c_id" id="c_id" class="form-control" style="height: 30px;" value="<?php echo $result->id; ?>" readonly="readonly"> </div> </div> <div class="row"> <div class="col-md-12"> <div class="form-group"> <label class="control-label col-md-3"></label> <div class="col-md-7"> <input type="hidden" name="customer_id" id="customer_id" class="form-control" style="height: 30px;" value="<?php echo $result->customerID; ?>" readonly="readonly"> <!--<input type="hidden" name="customer_name" id="customer_name" class="customer_name" value="<?php echo $result->customerName; ?>">--> </div> </div> </div> </div> <!-- row -2--> <div class="modal-footer"> <button class="btn btn-default" data-dismiss="modal">Close</button> <button type="submit" id="submit_modal" name="submit" class="btn btn-primary">Submit</button> </div> </form> </div> <!-- /.modal-content --> </div> <!-- /.modal-dialog --> </div> <!-- End BEGIN CONTAINER --> <script src="<?php echo base_url(); ?>assets/js/sweetalert.min.js" type="text/javascript"></script> <link href="<?php echo base_url(); ?>assets/css/sweetalert.min.css" rel="stylesheet" type="text/css" > <script> $('.transfer_box_application').submit(function(e) { e.preventDefault(); var cus_id=$('#customer_id').val(); var customer_name=$('#customer_name').val(); formdata = new FormData($(this)[0]); $.ajax({ type : 'post', url : '<?php echo base_url('marketing/insert_view_customer_data');?>', data : formdata, contentType: false, processData: false, success:function(response) { $('.transfer_box_application')[0].reset(); $('#customer_id').val(cus_id); $('#customer_name').val(customer_name); $('#production').val('inhouse'); $('#myModal').modal('toggle'); $("#list2").jqGrid('setGridParam',{datatype:'json'}).trigger('reloadGrid'); $("#show_modal").fieldcontain('refresh'); $('#myModal').modal('toggle'); } }); }); </script> <link rel="stylesheet" href="<?php echo base_url('assets/css/code_jquery.min.css');?>"> <script src="<?php echo base_url('assets/js/jquery-ui.min.js'); ?>" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="<?php echo base_url('assets/css/jquery-ui.min.css'); ?>" /> <style> .modal-content { height:auto; } .ss{ padding-right: 0 !important; padding-left: 0 !important; } .form-control { width:65% !important; height:27px !important; padding: 3px 12px !important; border-radius: 0px !important; //margin-bottom:15px; } label { font-weight: normal; text-align: left; } .hr-line{ border-top: 1px solid #465A81; } .well-sm { padding: 3px !important; border-radius: 0px !important; } input[type="file"] { padding-bottom: 28px !important; height: 25px !important; color:transparent; } .portlet.box.blue-madison { border: 1px solid #fff !important; border-top: 0; background:#fff !important; } #table_approved_indent { display:none; } #refresh_list3 { display:none !important; } @media only screen and (min-width:320px) and (max-width:640px) { } .ui-jqgrid { text-transform: capitalize !important; } .tablediv { text-transform: uppercase !important; } .ui-jqgrid tr.jqgrow td{ text-transform: uppercase !important; } .form-control { margin-bottom: 12px; } </style> <script> function getDesignAndQuality(articleNo) { $.ajax({ type: "post", url: "<?php echo base_url(); ?>marketing/getDesignAndQuality", data: "articleNo=" + articleNo, success: function (data) { var objData = jQuery.parseJSON(data); document.getElementById("design").value = objData.design; document.getElementById("quality").value = objData.quality; } }); } </script> <!-----------------datepicker-------------> <!-- The link to the CSS that the grid needs --> <link href="<?php echo base_url('assets/css/sweetalert2.min.css');?>" rel="stylesheet"/> <script src="<?php echo base_url('assets/js/sweetalert2.min.js');?>"></script> <script type="text/ecmascript" src="<?php echo base_url('jqgrid/js/jquery.jqGrid.min.js'); ?>"></script> <!-- This is the localization file of the grid controlling messages, labels, etc. <!-- We support more than 40 localizations --> <script type="text/ecmascript" src="<?php echo base_url('jqgrid/js/i18n/grid.locale-en.min.js'); ?>"></script> <!-- A link to a jQuery UI ThemeRoller theme, more than 22 built-in and many more custom --> <!-- The link to the CSS that the grid needs --> <link rel="stylesheet" type="text/css" media="screen" href="<?php echo base_url('jqgrid/css/ui.jqgrid.min.css'); ?>" /> <link rel="stylesheet" type="text/css" media="screen" href="<?php echo base_url('jqgrid/css/ui.jqgrid-bootstrap.min.css'); ?>" /> <link rel="stylesheet" type="text/css" media="screen" href="<?php echo base_url('jqgrid/css/ui.jqgrid-bootstrap-ui.min.css'); ?>" /> <link rel="stylesheet" href="<?php echo base_url('assets/css/code_jquery.min.css');?>"> <script src="<?php echo base_url('assets/js/jquery-ui.min.js'); ?>" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="<?php echo base_url('assets/css/jquery-ui.min.css'); ?>" /> <style type="text/css"> .ss{ padding-right: 0 !important; padding-left: 0 !important; } label { font-weight: normal; text-align: left; } .hr-line{ border-top: 1px solid #465A81; } .well-sm { padding: 3px !important; border-radius: 0px !important; } input[type="file"] { padding-bottom: 28px !important; height: 25px !important; color:transparent; } .portlet.box.blue-madison { border: 1px solid #fff !important; border-top: 0; background:#fff !important; } input[type=file] { display: none; } .ui-jqgrid .ui-jqgrid-caption { text-align: left; background: rgb(72,91,127); color: white; } .ui-jqdialog .ui-jqdialog-titlebar { padding: .1em .1em; min-height: 35px; background: rgb(72,91,127); color: white; } .ui-jqdialog .ui-jqdialog-titlebar-close span { display: block; margin: -9px; } #sData { height: 27px; } #cData { height: 27px; } #dData { height: 27px; } #eData { height: 27px; } .coledit { cursor:pointer; padding-right: 22px !important; padding-left: 23px !important; margin-top: 4px !important; color:bold !important; } </style> <!-----------------datepicker-------------> <!-- The link to the CSS that the grid needs --> <script> <!----------------------------------access controll -------------------------------> $(document).ready(function (){ var l=$("#customer_id").val(); jQuery("#list2").jqGrid({ url:"<?php echo base_url('quality_check/fetch_inserted')?>/"+l+"/", datatype: "json", colNames:['Id','Select','Order Type','Width/Size','Article No','Design','Description','Units','Price','Currency','Contract Type','Pricev from','pricev until','Approval','EDIT','DELETE'], colModel:[ {name:'id',index:'id',hidden:true, width:50,editable:true,width:100}, { name: 'select', width:25,align: 'center',cellattr: function (rowId, tv, rawObject, cm, rdata) { return ' onclick="fun_radio_val($(this))" '; }, formatter: function radio(cellValue, option) { return '<input type="radio" name="radio_' + option.id + '" />'; } }, {name:'orderType',index:'subOrderType', width:120,editable:false}, {name:'width',index:'width', width:120,editable:true,editrules:{required: true}}, {name:'articleNo',index:'articleNo', editable:true,editrules:{required: true},width:100}, {name:'design',index:'design', width:120,editable:true,editrules:{required: true}}, {name:'description',index:'description', editable:true,editrules:{required: true},width:120}, {name:'unit',index:'unit', width:100,editable:true,editrules:{required: true}}, {name:'unitPrice',index:'unitPrice', editable:true,editrules:{required: true},width:120}, {name:'currency',index:'currency', editable:true,editrules:{required: true},width:120}, {name:'contractType',index:'contractType', width:140,editable:true,editrules:{required: true}}, {name:'price_valid_from',index:'price_valid_from', width:140,editable:false}, {name:'price_valid_until',index:'price_valid_until', width:140,editable:false}, {name:'approved_by',index:'approved_by', editable:true,editrules:{required: true},width:100, formatter: 'checkbox', editoptions: { value: '1:0' }, formatoptions: { disabled: false }, cellattr: function (rowId, tv, rawObject, cm, rdata) { return ' onclick="approve_assignment($(this))" '; } }, {name:'edit',index:'edit', width:120,editable:false,cellattr: function (rowId, tv, rawObject, cm, rdata) { return ' onclick="fun_edit($(this))" '; },formatter:function (cellvalue, options, rowObject) { return "<input type='button' class='fa fa-eye' value='Edit' \>"; }}, {name:'delete',index:'delete', editable:true,editrules:{required: true},width:120,cellattr: function (rowId, tv, rawObject, cm, rdata) { return ' onclick="fun_delete($(this))" '; },formatter:function (cellvalue, options, rowObject) { return "<input type='button' class='fa fa-eye' value='DELETE' \>"; }} ], height: 'auto', rowNum:50, rowTotal: 20000000000000000000000000, rowList : [50,100,200,300,500,1000,5000], rownumbers: true, rownumWidth: 40, pager:"#pager2", sortname:'id', viewrecords: true, gridview: true, autowidth: true, sortorder:"asc", loadonce:true, caption:"Product Details", subGrid: true, subGridRowExpanded: function(subgrid_id, row_id) { var subgrid_table_id; //alert(row_id); swan_id=row_id; //alert(swan_id); subgrid_table_id = subgrid_id+"_t"; jQuery("#"+subgrid_id).html("<table id='"+subgrid_table_id+"' class='scroll'></table>"); jQuery("#"+subgrid_table_id).jqGrid({ url:"<?php echo base_url('quality_check/subgrid_inserted');?>/"+row_id+"/", //data:{'sub_id':123}, mtype : "get", datatype: "json", colNames:['id','Our shade','Buyer Shade','SKU','Buyer product','Barcode','vendor Item','Payment Term','piece/case','net_wt','gross_wt','box_dimention','EDIT','DELETE'], colModel:[ {name:'id',index:'id',width:100,editable:true}, {name:'our_shade',index:'our_shade', width:100,editable:false}, {name:'buyer_shade',index:'buyer_shade', width:100,editable:false}, {name:'sku',index:'sku', width:100,editable:false}, {name:'buyer_product_name',index:'buyer_product_name', width:100,editable:false}, {name:'buyer_product_barcode',index:'buyer_product_barcode', width:100,editable:false}, {name:'vendor_item',index:'vendor_item', width:100,editable:false}, {name:'paymentTerms',index:'paymentTerms', width:100,editable:false}, {name:'piececase',index:'piececase', width:50,editable:false}, {name:'net_wt',index:'net_wt', width:50,editable:false}, {name:'gross_wt',index:'gross_wt', width:50,editable:false}, {name:'box_dimention',index:'box_dimention', width:100,editable:false}, {name:'edit',index:'edit', width:75,editable:false,cellattr: function (rowId, tv, rawObject, cm, rdata) { return ' onclick="shade_edit($(this))" '; },formatter:function (cellvalue, options, rowObject) { return "<input type='button' class='fa fa-eye' value='Shade-Edit' \>"; }}, {name:'delete',index:'delete', editable:true,editrules:{required: true},width:100,cellattr: function (rowId, tv, rawObject, cm, rdata) { var shade_id = $("#list2").getCell(rowId,"shade_id"); return ' onclick="shade_delete($(this))" '; },formatter:function (cellvalue, options, rowObject) { return "<input type='button' class='fa fa-eye' value='Shade-DEL' \>"; }} ], height: 'auto', rowNum:20000000, sortname: 'num', sortorder: "asc" }); } }); //$("#list2").jqGrid('filterToolbar',{searchOperators : false}); //for multisearch code,remove if not required jQuery("#list2").jqGrid('filterToolbar', { stringResult: true, searchOnEnter: false, defaultSearch: "cn" }); $("#list2").jqGrid('navGrid','#pager2', {edit:false,add:false,del:false,search:false,refreshstate:"current"}, { }, { }, { }, { sopt:['eq', 'ne', 'lt', 'gt', 'cn', 'bw', 'ew'], closeOnEscape: true, multipleSearch: true, closeAfterSearch: true } ); // $("#list2").navButtonAdd('#pager2', // { caption:"Delete", // buttonicon:"ui-icon-trash", // onClickButton: deleteRow, // position: "last", // title:"", // cursor: "pointer", // id:"client_delete" // } // ); }); function shade_delete(rowId){ var id = rowId.closest('tr').attr('id'); var as=id; alert(id); // alert(as); //return; var v=$('#delete_id').val(); if(v == 1) { $.ajax({ type:'post', url:'<?php echo base_url("quality_check/shade_delete"); ?>', data:{'as':as}, async:false, success:function() { $("#list2").jqGrid('setGridParam',{datatype:'json'}).trigger('reloadGrid'); } }); } else { swal({ title: "You Don't Have Access For This Delete", text: "", }); } } function shade_edit(rowId) { var id = rowId.closest('tr').attr('id'); var as=id; var v=$('#edit_id').val(); if(v == 1) { window.open('<?php echo base_url("quality_check/edit_shade_id"); ?>/'+as, '_blank'); } else { swal({ title: "You Don't Have Access For This Edit", text: "", }); } } function fun_edit(rowId) { var id = rowId.closest('tr').attr('id'); var as=id; $.ajax({ type:'post', url:'<?php echo base_url("quality_check/fetch_profab_dtls"); ?>', data:{'as':as}, async:false, success:function(data) { console.log(data); var objData = jQuery.parseJSON(data); console.log(objData); console.log('pro'+objData.orderType); document.getElementById("pro").value = objData.orderType; } }); var pro = $('#pro').val(); //alert(pro); var m=$('#c_id').val(); var v=$('#edit_id').val(); if(v == 1) { if(pro=='FABRIC' || pro=='EMB FABRIC' || pro=='QUILT FABRIC') { window.open('<?php echo base_url("quality_check/edit_product_id"); ?>/'+as+'/'+m, '_blank'); //window.location.href = '<?php echo base_url("quality_check/edit_product_id"); ?>/'+as+'&'+m; } else { window.open('<?php echo base_url("quality_check/edit_product_madeups_id"); ?>/'+as+'/'+m, '_blank'); } } else { swal({ title: "You Don't Have Access For This Edit", text: "", }); } } function fun_delete(rowId) { var confirmMsg= confirm("Are You Sure To Delete This Product??"); if (confirmMsg==true) { var pro = $('#pro').val(); //alert(pro); var m=$('#c_id').val(); var v=$('#delete_id').val(); if(v == 1) { var id = rowId.closest('tr').attr('id'); var as=id; $.ajax({ type:'post', url:'<?php echo base_url("quality_check/delete_customer_product"); ?>', data:{'as':as}, async:false, success:function(data) { alert("Product is Deleeted Sucessfully...."); $("#list2").jqGrid('setGridParam',{datatype:'json'}).trigger('reloadGrid'); } }); } else { swal({ title: "You Don't Have Access For This Edit", text: "", }); } } else if (confirmMsg==false) { } } function fun_preview(rowId) { // var id = rowId.closest('tr').attr('id'); var id=$('#hhh_id').val(); var as=id; $.ajax({ type:'post', url:'<?php echo base_url("quality_check/fetch_profab_dtls"); ?>', data:{'as':as}, async:false, success:function(data) { console.log(data); var objData = jQuery.parseJSON(data); console.log(objData); console.log('pro'+objData.orderType); document.getElementById("pro").value = objData.orderType; } }); var pro = $('#pro').val(); //alert(pro); var m=$('#c_id').val(); var v=$('#preview_id').val(); if(v == 1) { if(pro=='FABRIC' || pro=='EMB FABRIC' || pro=='QUILT FABRIC') { window.open('<?php echo base_url("quality_check/fabric_product_preview"); ?>/'+as+'/'+m, '_blank'); //window.location.href = '<?php echo base_url("quality_check/edit_product_id"); ?>/'+as+'&'+m; } else { window.open('<?php echo base_url("quality_check/madeups_product_preview"); ?>/'+as+'/'+m, '_blank'); } } else { swal({ title: "You Don't Have Access For This Edit", text: "", }); } } function upload_shades(rowId) { // var id = rowId.closest('tr').attr('id'); var id=$('#hhh_id').val(); var as=id; $.ajax({ type:'post', url:'<?php echo base_url("quality_check/fetch_profab_dtls"); ?>', data:{'as':as}, async:false, success:function(data) { console.log(data); var objData = jQuery.parseJSON(data); console.log(objData); console.log('pro'+objData.orderType); document.getElementById("pro").value = objData.orderType; } }); var pro = $('#pro').val(); //alert(pro); var m=$('#c_id').val(); var v=$('#preview_id').val(); if(v == 1) { window.open('<?php echo base_url("quality_check/upload_shades"); ?>/'+as+'/'+m, '_blank'); } else { swal({ title: "You Don't Have Access For This Edit", text: "", }); } } function add_shades(rowId) { // var id = rowId.closest('tr').attr('id'); var id=$('#hhh_id').val(); var as=id; $.ajax({ type:'post', url:'<?php echo base_url("quality_check/fetch_profab_dtls"); ?>', data:{'as':as}, async:false, success:function(data) { console.log(data); var objData = jQuery.parseJSON(data); console.log(objData); console.log('pro'+objData.orderType); document.getElementById("pro").value = objData.orderType; } }); var pro = $('#pro').val(); //alert(pro); var m=$('#c_id').val(); var v=$('#preview_id').val(); if(v == 1) { if(pro=='EMB FABRIC' || pro=='QUILT FABRIC') { //window.open('<?php echo base_url("quality_check/fabric_product_preview"); ?>/'+as+'/'+m, '_blank'); //window.location.href = '<?php echo base_url("quality_check/edit_product_id"); ?>/'+as+'&'+m; } else { window.open('<?php echo base_url("quality_check/add_shades"); ?>/'+as+'/'+m, '_blank'); } } else { swal({ title: "You Don't Have Access For This Edit", text: "", }); } } function fun_radio_val(rowId) { var id = rowId.closest('tr').attr('id'); var as=id; var m=$('#hhh_id').val(as); // alert(id); // return; } </script> <style> .preview { padding-bottom:3px !important; padding-top:3px !important; } .preview { padding-bottom:3px !important; padding-top:3px !important; } .tablediv { width: auto !important; overflow: scroll !important; } .ui-jqgrid .ui-jqgrid-btable tbody tr.jqgrow td { overflow: hidden; white-space: pre; } </style> <link rel="stylesheet" href="<?php echo base_url('assets/css/code_jquery.min.css');?>"> <script src="<?php echo base_url('assets/js/jquery-ui.min.js'); ?>" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="<?php echo base_url('assets/css/jquery-ui.min.css'); ?>" /> <script> $(document).ready(function() { $( "#customer" ).autocomplete({ source: '<?php echo base_url('request/auto_sea'); ?>', }); }); function searchname() { var customer = document.getElementById('customer').value; $.ajax({ url:"<?php echo base_url('request/search_by_fetch')?>", dataType: "json", data:{'customer':customer}, type:"POST", async:true, success:function(data) { // alert('hai'); var obj=JSON.parse(data); document.getElementById('customer_id').value=obj[0].customerID; } }); } </script> <style> #jaytab{ width:100%; overflow:auto; } } #search_list2 { display:none !important; } #list2_122_t { height:0px !important; } list2_136_t { height:12px !important; } .scroll { height:12px !important; } .ui-jqgrid-btable { } .ui-common-table { height:12px !important; } #refresh_list2 { display:none !important; } #client_edit { padding-right:12px !important; } #list2 { width: 1050px; height: 0px !important; } #gbox_list2 { height: auto !important; } #gview_list2 { height: auto !important; } @media only screen and (min-width:320px) and (max-width:641px){ .ui-jqgrid { margin-left: 1px !important; } .radio-list { margin-left:7% !important; } #table_pending_indent{ overflow-x: scroll; } #jaytab{ margin-top: 0 !important; margin-left: 0 !important; overflow-x: scroll; width: 600px !important; padding-left: 0 !important; } #jaytab1 { margin-top: 0 !important; margin-left: 0 !important; overflow-x: scroll; width: 300px !important; padding-left: 0 !important; } #editmodlist2 { width:90% !important; } #sData span, #cData span { margin-left: 0 !important; } } @media only screen and (min-width:641px) and (max-width:991px){ .ui-jqgrid { margin-left: 1px !important; } #jaytab{ margin-top: 0 !important; margin-left: 0 !important; overflow-x: scroll; width: 100% !important; padding-left:0 !important; padding-right:9px !important; } } #sData span, #cData span { margin-left: 3px; } #sData { height: 29px; } #cData { height: 29px; } .jqgfirstrow { height: 0px !important; } </style>