EVOLUTION-NINJA
Edit File: po_fabric_details.php
<script src="<?php echo base_url('assets/js/jquery.table2excel.js');?>"></script> <script src="<?php echo base_url('assets/js/jspdf.debug.js');?>"></script> <script src="<?php echo base_url('assets/js/jspdf.min.js');?>"></script> <script type="text/javascript" src="<?php echo base_url('assets/js/shim.min.js');?>"></script> <script type="text/javascript" src="<?php echo base_url('assets/js/xlsx.full.min.js');?>"></script> <script type="text/javascript" src="<?php echo base_url('assets/js/Blob.js');?>"></script> <script type="text/javascript" src="<?php echo base_url('assets/js/FileSaver.js');?>"></script> <style> .ui-jqgrid { text-transform: capitalize !important; } .tablediv { text-transform: uppercase !important; } .ui-jqgrid tr.jqgrow td{ text-transform: uppercase !important; } .ui-jqgrid .ui-jqgrid-titlebar { height: 27px !important; background: #485b7f !important; color: white !important; } #client_delete_new { display:none; } #edit_list3 { display:none; } #search_list3 { display:none; } #refresh_list3 { display:none; } </style> <script> function back_func() { window.location.href = "<?php echo base_url('reports/po_fabric_receipt'); ?>" } function ordre_qty_sum() { var f=$('#from_delivery_date_required_on').val(); var t=$('#to_delivery_date_required_on').val(); $.ajax({ type : 'post', url:"<?php echo base_url('reports/ordre_qty_po_fabric_summary_data')?>", data : {'f':f,'t':t}, success:function(data) { response=jQuery.parseJSON(data); window.location.href = "<?php echo base_url('reports/po_fabric_receipts_preview'); ?>" } }); } </script> <div class="page-content-wrapper"> <div class="page-content"> <!-- BEGIN PAGE HEADER--> <h3 class="page-title"> Fabric Details </h3> <div class="page-bar"> <ul class="page-breadcrumb"> <li><i class="fa fa-home"></i> <a href="https://swansilk.co/dashboard/dashboard_fun">Home</a> <i class="fa fa-angle-right"></i> <a href="<?php echo base_url('reports/po_fabric_receipt'); ?>" > Fabric Details </a></li> </ul> </div> <button type="text" onclick="back_func()" style="float: right;" value="Back">Back</button> <button id="export" onclick="print_page();" style="display:none;">Print</button> <div class="row date_row"> <form action="<?php echo base_url('reports/po_fabric_receipt_details'); ?>" method="post" class="form"> <div class="col-md-3"> <div class="form-group"> <label class="control-label col-md-4">From Date :</label> <div class="col-md-8"> <input type="text" class="form-control input-group openDatePicker from_delivery_date_required_on" name="from_delivery_date_required_on" id="from_delivery_date_required_on" data-provide="datepicker" value="<?php echo $from_dates; ?>"> </div> </div> </div> <div class="col-md-3"> <div class="form-group"> <label class="control-label col-md-4">To Date :</label> <div class="col-md-8"> <input type="text" class="form-control input-group openDatePicker to_delivery_date_required_on" name="to_delivery_date_required_on" id="to_delivery_date_required_on" data-provide="datepicker" value="<?php echo $to_dates; ?>"> </div> </div> </div> <div class="col-md-3"> <input type="submit" id="" value="Submit" class="" style="margin-right: 22px;"/> <input type="button" id="" value="Preview" class="" onclick="ordre_qty_sum()" style="margin-right: 5px;"/> <button type="button" onclick="export_page();" style="padding-top: 4px;padding-bottom: 4px;" class="btn btn-primary">Export </button> </div> </form> </div> <!-- row -2--> <div id = "jaytab3" style="margin-top:0%;margin-left: -28px;" class="col-sm-12 grid"> <div class="grid_div"></div><table id="list3"></table> <div id="pager3"></div> <div id="dialogSelectRow3" title="Warning" style="display:none"> <p>Please select row</p> </div> </div> </div> </div> </div> <div style="display:none;"><table border="1" style="border-spacing: 0px !important;" id="export_table" class="export_table"></table></div> <div style="display:none;"> <table border="1" style="border-spacing: 0px !important;" id="print_table" class="print_table"></table> </div> <script> function print_page1() { var divToPrint=document.getElementById('print_table'); newWin= window.open(""); newWin.document.write('<html><head><title></title>'); newWin.document.write('</head>'); newWin.document.write(divToPrint.outerHTML); newWin.document.write('</html>'); newWin.print(); document.getElementById('print_table').style.display=''; newWin.close(); location.reload(); } </script> <style type="text/css"> a{ color: inherit; } #print_broker_report{ display:none; } </style> <!-- This is the Javascript file of jqGrid --> <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 --> <link rel="stylesheet" type="text/css" media="screen" href="<?php echo base_url('assets/css/jquery-ui.min.css'); ?>" /> <!-- 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'); ?>" /> <script src="<?php echo base_url('assets/js/jquery-ui.min.js'); ?>" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function (){ var ll; var type = $('#type').val(); jQuery("#list3").jqGrid({ url:"<?php echo base_url('reports/date_wise_po_fabric_receipt_details')?>", mtype : "post", datatype: "json", colNames:['Id','PO#','Vendor Name', 'Article Name','Width','Shade','Rec Qty','Rec Wt','Piece#','Invoice#','Rec Date','Location','StatusPO#'], colModel:[ {name:'id',index:'id',hidden:true, width:50,editable:true,width:100}, {name:'po_no',index:'po_no',editable:false, width:150}, {name:'vendor_name',index:'vendor_name', width:50,editable:false,width:150}, {name:'product_name',index:'product_name',editable:false,editrules:{required: true}, width:150}, {name:'width',index:'width',edittype:'text',editable:false,editrules:{required: true}, width:100}, {name:'shades',index:'shades',edittype:'text', width:100,editrules:{required: true}}, {name:'rec_goods',index:'rec_goods',edittype:'text', width:100,editrules:{required: true}}, {name:'rec_weight',index:'rec_weight',edittype:'text', width:100,editrules:{required: true}}, {name:'piece_no',index:'piece_no',edittype:'text', width:100,editrules:{required: true}}, {name:'no_type_val',index:'no_type_val',edittype:'text', width:120,editrules:{required: true}}, {name:'received_date',index:'received_date', width:120,editrules:{required: true}}, {name:'consumed_at',index:'consumed_at',edittype:'text', width:120,editrules:{required: true}}, {name:'quantity_approval',index:'quantity_approval',edittype:'text', width:120,editrules:{required: true}}, ], height: 'auto', rowNum:50, rowTotal: 2000, rowList : [10,20,30,50,100,500,1000], rownumbers: true, rownumWidth: 40, pager:"#pager3", sortname:'owner_id', viewrecords: true, gridview: true, autowidth: true, sortorder:"asc", shrinkToFit: false, emptyrecords: 'No records to display', // multiselect: true, // multiboxonly: true, loadonce:true, caption:"Fabric Details", footerrow: true, loadComplete: function () { var sumOfPrice_rec_goods = jQuery("#list3").jqGrid('getCol','rec_goods',false,'sum'); var sumOfPrice_rec_weight = jQuery("#list3").jqGrid('getCol','rec_weight',false,'sum'); //var s=sumOfPrice_rec_weight.toFixed(2); jQuery("#list3").jqGrid('footerData', 'set', { shades: 'Total:', rec_goods: sumOfPrice_rec_goods .toFixed(2) , rec_weight: sumOfPrice_rec_weight .toFixed(2) }); }, }); $("#list3").jqGrid("setLabel", "rn", "SL"); $("#list3").jqGrid('filterToolbar',{searchOperators : false}); //for multisearch code,remove if not required $("#list3").jqGrid('navGrid','#pager3', {edit:true,add:false,del:false,search:true,refreshstate:"current"}, { }, { }, { }, { sopt:['eq', 'ne', 'lt', 'gt', 'cn', 'bw', 'ew'], closeOnEscape: true, multipleSearch: true, closeAfterSearch: true } ).navButtonAdd('#pager3', { caption:"Print", buttonicon:"ui-icon-print", onClickButton:print_page, position: "last", title:"", cursor: "pointer", id:"client_delete_new" } ); $("#list3").navButtonAdd('#pager3', { caption:"Export", buttonicon:"", onClickButton: export_page_list, position: "last", title:"", cursor: "pointer", id:"client_delete" } ); }); function export_page() { id = jQuery("#list3").jqGrid('getDataIDs'); var type= $('#type').val(); $.ajax({ type : 'post', url:"<?php echo base_url('reports/date_wise_po_fabric_receipt_details')?>", data : {id:id}, success:function(data){ response=jQuery.parseJSON(data); //alert(d); console.log(response); var count =1; var material_gross_weights=0; var material_net_weights =0; $('.export_table').empty(); var content = ''; content +='<thead><tr><th><b>SL No.</b></th><th><b>PO#</b></th> <th><b>Vendor Name</b></th> <th><b>Article Name</b></th> <th><b>Width</b></th> <th><b>Shade</b></th> <th><b>Rec Qty</b></th> <th><b>Rec Wt</b></th> <th><b>Piece#</b></th><th><b>Invoice#</b></th><th><b>Rec Date</b></th><th><b>Location</b></th><th><b>StatusPO#</b></th></tr></thead>'; $.each(response,function(key,vas){ if(vas.rec_goods== '') { } else { material_gross_weights +=parseFloat(vas.rec_goods); } if(vas.rec_weight== '') { } else { material_net_weights +=parseFloat(vas.rec_weight); } content +='<tr><td>'+count+'</td> <td>'+vas.po_no+'</td> <td>'+vas.vendor_name+'</td> <td>'+vas.product_name+'</td> <td>'+vas.width+'</td><td>'+vas.shades+'</td> <td>'+vas.rec_goods+'</td><td>'+vas.rec_weight+'</td><td>'+vas.piece_no+'</td><td>'+vas.no_type_val+'</td> <td>'+vas.received_date+'</td><td>'+vas.consumed_at+'</td><td>'+vas.quantity_approval+'</td></tr>'; count++; }); content +='<tr></tr>'; content +='<tr><th><b>SUMMARY</b></th><th></th> <th></th> <th></th> <th></th> <th></th> <th></th> <th></th> <th></th><th></th></tr>'; content +='<tr><th><b>Total Rec Qty (Kgs)</b></th><th></th> <th><b>'+material_gross_weights+'</b></th> <th></th> <th></th> <th></th> <th></th> <th></th> <th></th><th></th></tr>'; content +='<tr><th><b>Total Rec Wt (Kgs)</b></th><th></th> <th><b>'+material_net_weights+'</b></th> <th></th> <th></th> <th></th> <th></th> <th></th> <th></th><th></th></tr>'; $('.export_table').append(content); doit('xlsx'); // doit(type, fn, dl); // export_data(); // pdf_download(); } }); } function doit(type, fn, dl) { var elt = document.getElementById('export_table'); var wb = XLSX.utils.table_to_book(elt, {sheet:"Sheet JS"}); return dl ? XLSX.write(wb, {bookType:type, bookSST:true, type: 'base64'}) : XLSX.writeFile(wb, fn || ('PO Fabrics Report.' + (type || 'xlsx'))); } function tableau(pid, iid, fmt, ofile) { if(typeof Downloadify !== 'undefined') Downloadify.create(pid,{ swf: 'downloadify.swf', downloadImage: 'download.png', width: 100, height: 30, filename: ofile, data: function() { return doit(fmt, ofile, true); }, transparent: false, append: false, dataType: 'base64', onComplete: function(){ alert('Your File Has Been Saved!'); }, onCancel: function(){ alert('You have cancelled the saving of this file.'); }, onError: function(){ alert('You must put something in the File Contents or there will be nothing to save!'); } }); else document.getElementById(pid).innerHTML = ""; } tableau('biff8btn', 'xportbiff8', 'biff8', 'test.xls'); tableau('odsbtn', 'xportods', 'ods', 'test.ods'); tableau('fodsbtn', 'xportfods', 'fods', 'test.fods'); tableau('xlsbbtn', 'xportxlsb', 'xlsb', 'test.xlsb'); tableau('xlsxbtn', 'xportxlsx', 'xlsx', 'test.xlsx'); function export_page_list() { id = jQuery("#list3").jqGrid('getDataIDs'); var type= $('#type').val(); $.ajax({ type : 'post', url:"<?php echo base_url('reports/date_wise_po_fabric_receipt_details')?>", data : {id:id}, success:function(data){ response=jQuery.parseJSON(data); //alert(d); console.log(response); var count =1; var material_gross_weights=0; var material_net_weights =0; $('.export_table').empty(); var content = ''; content +='<thead><tr><th><b>SL No.</b></th><th><b>PO#</b></th> <th><b>Vendor Name</b></th> <th><b>Article Name</b></th> <th><b>Width</b></th> <th><b>Shade</b></th> <th><b>Rec Qty</b></th> <th><b>Rec Wt</b></th> <th><b>Piece#</b></th><th><b>Invoice#</b></th><th><b>Rec Date</b></th><th><b>Location</b></th><th><b>StatusPO#</b></th></tr></thead>'; $.each(response,function(key,vas){ if(vas.rec_goods== '') { } else { material_gross_weights +=parseFloat(vas.rec_goods); } if(vas.rec_weight== '') { } else { material_net_weights +=parseFloat(vas.rec_weight); } content +='<tr><td>'+count+'</td> <td>'+vas.po_no+'</td> <td>'+vas.vendor_name+'</td> <td>'+vas.product_name+'</td> <td>'+vas.width+'</td><td>'+vas.shades+'</td> <td>'+vas.rec_goods+'</td><td>'+vas.rec_weight+'</td><td>'+vas.piece_no+'</td><td>'+vas.no_type_val+'</td> <td>'+vas.received_date+'</td><td>'+vas.consumed_at+'</td><td>'+vas.quantity_approval+'</td></tr>'; count++; }); content +='<tr></tr>'; content +='<tr><th><b>SUMMARY</b></th><th></th> <th></th> <th></th> <th></th> <th></th> <th></th> <th></th> <th></th><th></th></tr>'; content +='<tr><th><b>Total Rec Qty (Kgs)</b></th><th></th> <th><b>'+material_gross_weights+'</b></th> <th></th> <th></th> <th></th> <th></th> <th></th> <th></th><th></th></tr>'; content +='<tr><th><b>Total Rec Wt (Kgs)</b></th><th></th> <th><b>'+material_net_weights+'</b></th> <th></th> <th></th> <th></th> <th></th> <th></th> <th></th><th></th></tr>'; $('.export_table').append(content); export_data(); pdf_download(); } }); } function export_data() { //alert(); $("#export_table").table2excel({ exclude: ".noExl", name: "Excel Document Name", filename: "PO Fabrics Details", fileext: ".xls", exclude_img: true, exclude_links: true, exclude_inputs: true }); } // function pdf_download() // { // alert(); // var options = { // }; // var pdf = new jsPDF('p', 'pt', 'a4'); // pdf.addHTML($("#export_table"), 0, 0, options, function() { // pdf.save('inspected_fabric.pdf'); // }); // } $("#export").on("click", function(){ $("#list3").jqGrid("exportToHtml",{ includeLabels : true, includeGroupHeader : true, includeFooter: true, autoPrint : true }); }); function print_page() { id = jQuery("#list3").jqGrid('getDataIDs'); alert(); $.ajax({ type : 'post', url:"<?php echo base_url('reports/pdf_print')?>", data : {id:id}, success:function(){ } }); } function print_page1() { //alert(); var divToPrint=document.getElementById('print_table'); newWin= window.open(""); newWin.document.write('<html><head><title></title>'); newWin.document.write('</head>'); newWin.document.write(divToPrint.outerHTML); newWin.document.write('</html>'); newWin.print(); document.getElementById('print_table').style.display=''; newWin.close(); location.reload(); } function fun(rowId) { var type= $('#type').val(); var id = rowId.closest('tr').attr('id'); $.ajax({ type : 'post', url : "<?php echo site_url("edit-broker")?>?type="+type, data : {broker_id:id}, success:function(response) { response=jQuery.parseJSON(response); console.log(response); if(response.result == 1) { $(".broker_id_pk").val(response.broker_details.broker_id); $(".name_or_id").val(response.broker_details.name_or_id); $(".associate_name").val(response.broker_details.associate_name); $(".address").val(response.broker_details.address); $(".email").val(response.broker_details.email); $(".mobile").val(response.broker_details.mobile); $(".mobile2").val(response.broker_details.mobile2); $(".reference_details").val(response.broker_details.reference_details); $(".pan_number").val(response.broker_details.pan_number); $(".adhar_number").val(response.broker_details.adhar_number); var ext = response.broker_details.scan_copy.split('.').pop(); if(ext == 'JPG' || ext == 'jpg' || ext == 'JPEG' || ext == 'jpeg' || ext == 'png' || ext == 'PNG') { $(".scanned_image").html('<img src ="<?php echo base_url("broker_uploads");?>/'+response.broker_details.scan_copy+'" style="width:250px;height:350px"/>'); } else if(ext == 'pdf') { $(".scanned_image").html('<embed src ="<?php echo base_url("broker_uploads");?>/'+response.broker_details.scan_copy+'" style="width:250px;height:350px"/>'); } var content = ''; if(response.broker_details.type == "Executives") { content += '<label class="radio-inline"><input type="radio" value="Executives" name="type" checked>Executives</label>'; } else { content +='<label class="radio-inline"><input type="radio" value="Executives" name="type">Executives</label>'; } if(response.broker_details.type == "Associate") { content += '<label class="radio-inline"><input type="radio" value="Associate" name="type" checked>Associate</label>'; } else { content +='<label class="radio-inline"><input type="radio" value="Associate" name="type">Associate</label>'; } if(response.broker_details.type == "Logistic") { content += '<label class="radio-inline"><input type="radio" value="Logistic" name="type" checked>Logistic</label>'; } else { content +='<label class="radio-inline"><input type="radio" value="Logistic" name="type">Logistic</label>'; } if(response.broker_details.type == "Sub Associate") { content += '<label class="radio-inline"><input type="radio" value="Sub Associate" name="type" checked>Sub Associate</label>'; } else { content +='<label class="radio-inline"><input type="radio" value="Sub Associate" name="type">Sub Associate</label>'; } $(".radio_button_class").html(content); $("#edit_modal").modal("show"); $("#list3").jqGrid('setGridParam',{datatype:'json'}).trigger('reloadGrid'); } } }); } function fun_delete(rowId) { var type= $('#type').val(); var id = rowId.closest('tr').attr('id'); var broker_id=id; swal({ title: "Are you sure?", text: "You will not be able to recover this data!", type: "warning", showCancelButton: true, confirmButtonColor: "#DD6B55", confirmButtonText: "Yes, delete it!", cancelButtonText: "No, cancel plz!", closeOnConfirm: false, closeOnCancel: false }, function(isConfirm){ if (isConfirm) { $(".sweet-alert").hide(); $(".sweet-overlay").hide(); // test.attr('disabled', 'disabled'); //test.text("Deleting..."); $.ajax({ type : 'post', url : "<?php echo site_url("delete-broker")?>?type="+type, data : {broker_id:broker_id}, success:function(response) { response=jQuery.parseJSON(response); console.log(response); if(response.result == 1) { toastr["success"](response.message); //BrokersList(); $("#list3").jqGrid('setGridParam',{datatype:'json'}).trigger('reloadGrid'); } } }); } else { $(".sweet-alert").hide(); $(".sweet-overlay").hide(); } }); } $('.update_form').submit(function(e){ e.preventDefault(); var type= $('#type').val(); formdata = new FormData($(this)[0]); // $(".submit").attr('disabled', 'disabled'); // $(".submit").text("Updating..."); $.ajax({ type : 'post', url : "<?php echo site_url("update-broker")?>?type="+type, data : formdata, contentType: false, processData: false, success:function(response){ response=jQuery.parseJSON(response); console.log(response); if(response.result==1) { $("#edit_modal").modal("hide"); $("#list3").jqGrid('setGridParam',{datatype:'json'}).trigger('reloadGrid'); toastr["success"](response.message); $('.update_form')[0].reset(); $(".submit").text("Submit"); $(".submit").removeAttr('disabled'); } else if(response.result==2) { toastr["error"](response.message); $(".submit").text("Submit"); $(".submit").removeAttr('disabled'); } else { toastr["error"](response.message); $(".submit").text("Submit"); $(".submit").removeAttr('disabled'); } } }); }); function SortedResult(brokers_list) { tbody.empty(); var table_row = []; var slno = 1; var index = 1; $.each(brokers_list,function(idx,vx){ var row = []; var image = ""; row.push(slno); image='<img src ="<?php echo base_url("broker_uploads");?>/'+vx.scan_copy+'" style="width:80px;height:70px"/>'; row.push(vx.type); row.push(vx.name_or_id); row.push(vx.associate_name); row.push(vx.email); row.push(vx.mobile); row.push(vx.address); row.push(vx.pan_number); row.push(vx.reference_details); row.push(vx.adhar_number); var table_content = ''; table_content += '<div style="float:left;">'; table_content += '<a data-toggle="tooltip" title="Edit" class="edit" broker_id="'+vx.broker_id+'" href="javascript:void(0);"><span class="glyphicon glyphicon-edit"></span></a> <a data-toggle="tooltip" title="Delete" class="delete" broker_id="'+vx.broker_id+'" href="javascript:void(0);"><span class="glyphicon glyphicon-trash"></span></a>'; table_content += '</div>' row.push(table_content); table_row.push(row); slno++; index ++; }); datatable.clear(); datatable.rows.add(table_row).draw(); datatable.draw(); } </script> <style type="text/css"> .form-control:focus, input[type="Submit"]:focus, input[type="button"]:focus { border-color: #FF0000; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(255, 0, 0, 0.6); } #FrmGrid_list3 { width: 100% !important; } .ui-jqdialog .ui-jqdialog-titlebar { height: 29px !important; background-color: #001a00; color: white; padding-left: 10px; } .fm-button { height: 21px !important; padding: 1px; margin-right: 10px !important; height: 21px !important; width: 50%; margin-top: -7px !important; } .ui-jqdialog-content td.navButton { padding-top: 12px !important; } .ui-jqgrid .ui-jqgrid-titlebar { height: 27px !important; background:#485b7f !important; color:white !important; } .ui-jqgrid-bdiv { height: auto !important; } .ui-widget-overlay { z-index:0 !important; } .ui-widget-header { background: #1e7ad7 !important; } .ui-jqgrid-hdiv ui-state-default { width: 873px !important; cursor: default!important } ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight { border: 1px solid #fed22f; background: #ffe45c; } .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { font-weight: bold; color: black; } .ui-jqgrid .ui-jqgrid-bdiv { overflow-y: scroll; //overflow-x: hidden; } </style> <script type="text/javascript"> $(document).ready(function(){ $("#sites_print").click(function(){ var divToPrint=document.getElementById("print_sites_report"); newWin= window.open(""); newWin.document.write(divToPrint.outerHTML); newWin.print(); newWin.close(); }); $("#sites_export").click(function(){ $(".sites_table_print").table2excel({ exclude: ".noExl", name: "Excel Document Name", filename: "Broker List", fileext: ".xls", exclude_img: true, exclude_links: true, exclude_inputs: true }); }); }); </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'); ?>" /> <script> $(function(){ $(".from_delivery_date_required_on").datepicker({ dateFormat: 'dd-mm-yy', }).on('changeDate', function(ev){ $('.from_delivery_date_required_on').datepicker('hide'); }); }); $('.from_delivery_date_required_on').on('change', function(){ var date = $(this).val(); $('.to_delivery_date_required_on').datepicker({ dateFormat: 'dd-mm-yy', minDate: date, }); }); </script> <style type="text/css"> .content-wrapper, .right-side { //min-height:900px !important; } a { color: inherit; } .checkbox input[type=checkbox], .checkbox-inline input[type=checkbox], .radio input[type=radio], .radio-inline input[type=radio] { position: absolute; margin-top: 4px\9; margin-left: -47px; } input[type=checkbox], input[type=radio] { margin: -8px 0 0; margin-top: 1px\9; line-height: normal; } .radio-inline input[type=radio] { margin-left: -20px; width: 15px !important; margin-top: -5px; } #ui-datepicker-div { z-index: 1000 !important; } .date_row { padding-bottom: 3%; } </style>