MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /home/cafsindia/allyindian_com/backend/application/views/package_ticket/booking_form.php
<?php
	echo form_open('package_type/save/' . $package_type->package_type_id,array('id'=>'package_type_form','class'=>'form-inline'));
?>
<fieldset id="FundBasicInfo">    
	<div class="row">
    <div class="col-md-12">
        <h4 style='color:#000000 !important;font-size:22px;margin:0;margin-bottom:8px;font-weight:bold;text-align: center;'>Blocked Seat List</h4>
            <table class="table table-hover table-striped table-bordered">
                <thead style="background-color: #1658a0;">
                <tr style="color: #FFFFFF;">  
                <th>S No</th>      
                <th>Date</th>
                <th>Seat No</th>
                <th>Blocked Seat Remarks</th>
                <th>Blocked By</th>
                <th>Status</th>
                <th colspan="2" style="text-align: center;">Update</th>
                </tr>
                </thead>
                <tbody id="blocked_data" style="text-align:center">
                <?php
                    $i = 1;

                    foreach ($blocked_data as $key => $value){                      
                    $quid             = $value['quid'];
                    $quseat           = $value['quseat'];
                    $quseat           = $value['quseat'];
                    $quremarks        = $value['quremarks'];
                    $first_name       = $value['first_name'];
                    $last_name        = $value['last_name'];

                    echo "<tr>
                    <td>$i</td>                 
                    <td>$package_date</td>
                    <td>$quseat</td>
                    <td width='50%'><textarea style='width: 100%;' id='blocked_remarks$quid'>$quremarks</textarea></td>
                    <td>$first_name $last_name</td>
                    <td><select id='status$quid'><option value='1'>Available for All</option><option value='2' selected>Blocked</option><option value='3'>Available Only for Admin/Staff</option></select></td>
                    <td><button class='btn btn-info btn-sm' style='cursor:pointer;' onclick='update_seat_status($quid)'>Update</button></td>
                    </tr>";
                    $i++;
                    }
                ?>
                </tbody>
            </table>
    </div>
</div>
</fieldset>
<?php echo form_close(); ?>
<script type="text/javascript">
	$(document).ready(function()
	{
        $(".number").bind('keyup', function(e) {
            this.value = this.value.replace(/[^0-9_.]/g,'');
        });

        /*========= Allow text validation =========*/
        $(".alpha").on("keydown", function(event){

            var arr = [8,9,16,17,20,32,35,36,37,38,39,40,45,46];
            for(var i = 65; i <= 90; i++){
            arr.push(i);
        }
        if(jQuery.inArray(event.which, arr) === -1){
        event.preventDefault();
        }
        });
        $.validator.addMethod("pan", function (value, element) {
            return this.optional(element) || /^[A-Z]{5}\d{4}[A-Z]{1}$/.test(value);
        }, "Invalid Pan Number");
        $.validator.addMethod("gst_in", function (value, element) {
            return this.optional(element) || /^[0-9]{2}[A-Za-z]{5}[0-9]{4}[a-zA-Z][0-9]{1}[a-zA-Z]{1}[0-9]{1}$/.test(value);
        }, "Invalid GST Number");


        $('#package_type_form').validate($.extend({
            submitHandler: function (form)
            {
              $('#submit').attr('disabled','disabled');
                $(form).ajaxSubmit({
                    success: function (response)
                    {
                        dialog_support.hide();
                        table_support.handle_submit('<?php echo site_url($controller_name); ?>', response);
                        table_support.refresh();
                    },
                    dataType: 'json'
                });
            },
            rules:{  
				package_type: "required",    
			}
        }));
	});
</script>