<commit_before>
<hr class="colorgraph">

<div id="footer" class="footer">
    &nbsp; &copy; 2017 <NAME>, All Rights Reserved. 
</div>  

</div>

<script type="text/javascript">

    jQuery(document).ready(function() 
        {
            $('.mPageloader').hide();
            $(document.getElementById("cellNo")).mask("9999-9999999", { placeholder: "_" });
            $(document.getElementById("phone")).mask("999-9999999", { placeholder: "_" });
            $("#dob").attr( 'readOnly' , 'true' );
            $("#paidDate").attr( 'readOnly' , 'true' );

            $( "#paidDate" ).datepicker(
                {
                    dateFormat: 'yy-mm-dd'
                    ,changeMonth: true,changeYear:true
                    , yearRange: '-1:'
                    ,maxDate: new Date()
            }).val();

            $( "#dob" ).datepicker(
                {
                    dateFormat: 'dd-mm-yy'
                    ,changeMonth: true,changeYear:true
                    , yearRange: '-50:'
                    ,maxDate: '12-07-2004'
            }).val();
    });


    $("#Download").click(function () {
        $("#wrapper").show();
        $("#hidDivForPrint").hide();
        $("#hidDivForPrint1").hide();
        $("#footer").hide();
        window.print();

        $("#hidDivForPrint").show();
        $("#hidDivForPrint1").show();
        $("#footer").show();
    });


    $("#challan").keypress(function (e) {

        var challan = $("#challan").val();    
        if(challan.length >= 8 && (e.which != 13)) {
            alertify.error('You cannot enter more than 8 digits');
            return false;
        }
        else if (e.which != 8 && e.which != 0 && (e.which < 48 || e.which > 57) && (e.which != 13)) {
            alertify.error('Please Use Numaric Only');
            return false;
        }
    });

    $("#matRno").keypress(function (e) {

        var matRno = $("#matRno").val()    
        if(matRno.length >= 20 && (e.which != 13)) {
            alertify.error('You cannot enter more than 20 digits');
            return false;
        }
      /*  else if (e.which != 8 && e.which != 0 && (e.which < 48 || e.which > 57) && (e.which != 13)) {
            alertify.error('Please Use Numaric Only');
            return false;
        }*/
    });

    $("#interRno").keypress(function (e) {

        var interRno = $("#interRno").val()    

        if(interRno.length >= 6 && (e.which != 13)) {
            alertify.error('You cannot enter more than 6 digits');
            return false;
        }

        else if (e.which != 8 && e.which != 0 && (e.which < 48 || e.which > 57) && (e.which != 13)) {
            alertify.error('Please Use Numaric Only');
            return false;
        }
    });

    $("#amount").keypress(function (e) {

        var amount = $("#amount").val()    

        if(amount.length >= 5 && (e.which != 13)) {<commit_msg>resolve paid max date set to server date<commit_after>
<hr class="colorgraph">

<div id="footer" class="footer">
    &nbsp; &copy; 2017 BISE Gujranwala, All Rights Reserved. 
</div>  

</div>

<script type="text/javascript">

    jQuery(document).ready(function() 
        {
            $('.mPageloader').hide();
            $(document.getElementById("cellNo")).mask("9999-9999999", { placeholder: "_" });
            $(document.getElementById("phone")).mask("999-9999999", { placeholder: "_" });
            $("#dob").attr( 'readOnly' , 'true' );
            $("#paidDate").attr( 'readOnly' , 'true' );

            $( "#paidDate" ).datepicker(
                {
                    dateFormat: 'yy-mm-dd'
                    ,changeMonth: true,changeYear:true
                    , yearRange: '-1:'
                    //,maxDate: new Date()
                    ,maxDate: '<?php echo date("Y-m-d"); ?>'
            }).val();

            $( "#dob" ).datepicker(
                {
                    dateFormat: 'dd-mm-yy'
                    ,changeMonth: true,changeYear:true
                    , yearRange: '-50:'
                    ,maxDate: '12-07-2004'
            }).val();
    });


    $("#Download").click(function () {
        $("#wrapper").show();
        $("#hidDivForPrint").hide();
        $("#hidDivForPrint1").hide();
        $("#footer").hide();
        window.print();

        $("#hidDivForPrint").show();
        $("#hidDivForPrint1").show();
        $("#footer").show();
    });


    $("#challan").keypress(function (e) {

        var challan = $("#challan").val();    
        if(challan.length >= 8 && (e.which != 13)) {
            alertify.error('You cannot enter more than 8 digits');
            return false;
        }
        else if (e.which != 8 && e.which != 0 && (e.which < 48 || e.which > 57) && (e.which != 13)) {
            alertify.error('Please Use Numaric Only');
            return false;
        }
    });

    $("#matRno").keypress(function (e) {

        var matRno = $("#matRno").val()    
        if(matRno.length >= 20 && (e.which != 13)) {
            alertify.error('You cannot enter more than 20 digits');
            return false;
        }
        /*  else if (e.which != 8 && e.which != 0 && (e.which < 48 || e.which > 57) && (e.which != 13)) {
        alertify.error('Please Use Numaric Only');
        return false;
        }*/
    });

    $("#interRno").keypress(function (e) {

        var interRno = $("#interRno").val()    

        if(interRno.length >= 6 && (e.which != 13)) {
            alertify.error('You cannot enter more than 6 digits');
            return false;
        }

        else if (e.which != 8 && e.which != 0 && (e.which < 48 || e.which > 57) && (e.which != 13)) {
            alertify.error('Please Use Numaric Only');
            return false;
        }
    });

    $("#amount").keypress(function (e) {

        var amount = $("#amount").val()    

        if(amount.length >= 5 && (e.which != 13)) {
{'fraction_non_alphanumeric': 0.1955819881053526, 'fraction_numerical': 0.026847918436703484, 'mean_word_length': 1.6925892040256176, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 4, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6424756', 'n_tokens_mistral': 1906, 'n_tokens_neox': 1743, 'n_words': 374}