403Webshell
Server IP : 103.234.187.230  /  Your IP : 216.73.216.216
Web Server : Apache
System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/b2bzend/application/views/scripts/transport/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/b2bzend/application/views/scripts/transport/view-transport-inventory-table.phtml
<?php 
$car_type_arr  = unserialize(CAR_AC_TYPE);
$arrTransportInventoryList = $this->arrTransportInventoryList;
if(!empty($arrTransportInventoryList))
{
    foreach($arrTransportInventoryList as $arrTransportInventory)
    {        
        $objTransport = new Travel_Model_TblTransport();
        //Get Vehicle Name 
        $vehicle_arr = $objTransport->getVehicleNameList($arrTransportInventory['VehicleName']);
        //echo "<pre>"; print_r($vehicle_arr);
        
        //Get Customize Markup Data
        $markup_arr = $objTransport->getAllTransportInventoryMarkupList($arrTransportInventory['InvnItemSysId'], $arrTransportInventory['AgencySysId']);
        $total_markup_cus = count($markup_arr);
        if($total_markup_cus>0)
        {
          $markup_name = "CUSTOMIZE";
        } else {
          $markup_name = "STANDARD";  
        }
?>      
<tr>
    <td class="small"><?php echo $arrTransportInventory['carType'];?></td> 
    <td class="small"><?php echo $vehicle_arr['VehicleName'];?></td>                                          
    <td class="small"><?php echo $car_type_arr[$arrTransportInventory['IsAC']]; ?></td>
    <td class="small"><span id="NightCharges_<?php echo $arrTransportInventory['InvnItemSysId']; ?>"><?php echo $arrTransportInventory['NightCharges'];?> </span>
    <input type="text" maxlength="10" id="edit_NightCharges_<?php echo $arrTransportInventory['InvnItemSysId']; ?>" name="from_date" style="padding-left:4px; padding-right:4px;display:none;" class="form-control whbg priceonly">
    </td>
    <td class="small"> <span id="MinKmPerDay_<?php echo $arrTransportInventory['InvnItemSysId']; ?>"><?php echo $arrTransportInventory['MinKmPerDay'];?></span>
    <input type="text" maxlength="6" id="edit_MinKmPerDay_<?php echo $arrTransportInventory['InvnItemSysId']; ?>" name="to_date" style="padding-left:4px; padding-right:4px;display:none;" class="form-control whbg priceonly">
    </td>
   
    <td class="small"><span id="PerKMRate_<?php echo $arrTransportInventory['InvnItemSysId']; ?>"><?php echo $arrTransportInventory['PerKMRate'];?></span>
      <input class="form-control whbg priceonly" maxlength="6" type="text" id="edit_PerKMRate_<?php echo $arrTransportInventory['InvnItemSysId']; ?>" name="adult_cost_natives" style="width:50px; padding-left:4px; padding-right:4px;display:none;"/>
    </td>
    <td class="small"><span id="Rate40Km_<?php echo $arrTransportInventory['InvnItemSysId']; ?>"><?php echo $arrTransportInventory['Rate40Km'];?></span>
      <input class="form-control whbg priceonly" maxlength="10" type="text" id="edit_Rate40Km_<?php echo $arrTransportInventory['InvnItemSysId']; ?>" name="kids_cost_natives" style="width:50px; padding-left:4px; padding-right:4px;display:none;"/>
    </td>
    <td class="small"><span id="Rate80Km_<?php echo $arrTransportInventory['InvnItemSysId']; ?>"><?php echo $arrTransportInventory['Rate80Km'];?></span>
      <input class="form-control whbg priceonly" maxlength="10" type="text" id="edit_Rate80Km_<?php echo $arrTransportInventory['InvnItemSysId']; ?>" name="adult_cost_foreigners" style="width:50px; padding-left:4px; padding-right:4px;display:none;"/>
    </td>
    <td class="small"><span id="PerKmsRate_<?php echo $arrTransportInventory['InvnItemSysId']; ?>"><?php echo $arrTransportInventory['PerKmsRate'];?></span>
      <input class="form-control whbg priceonly" maxlength="6" type="text" id="edit_PerKmsRate_<?php echo $arrTransportInventory['InvnItemSysId']; ?>" name="kids_cost_foreigners" style="width:50px; padding-left:4px; padding-right:4px;display:none;"/>
    </td>  
    <td class="small"><span id="ExtraHrsRate_<?php echo $arrTransportInventory['InvnItemSysId']; ?>"><?php echo $arrTransportInventory['ExtraHrsRate'];?></span>
      <input class="form-control whbg priceonly" maxlength="6" type="text" id="edit_ExtraHrsRate_<?php echo $arrTransportInventory['InvnItemSysId']; ?>" name="adult_cost_natives" style="width:50px; padding-left:4px; padding-right:4px;display:none;"/>
    </td>
    <td> <?php echo $arrTransportInventory['Currency'];?> </td>
    <td class="small"><?php echo $arrTransportInventory['BookingName'];?></td>
    <td class="small"><?php echo $arrTransportInventory['SupplierType'];?></td>
    <td><a id="manage-markup_policies-<?php echo $arrTransportInventory['InvnItemSysId']; ?>" style="cursor:pointer;" onclick="viewMarkUpPolicies('<?php echo $arrTransportInventory['InvnItemSysId']; ?>','STANDARDPOLICIES');" data-toggle="modal" class="small">Manage</a></td>
    <td><a id="manage-markup-<?php echo $arrTransportInventory['InvnItemSysId']; ?>" style="cursor:pointer;" onclick="viewMarkUp('<?php echo $arrTransportInventory['InvnItemSysId']; ?>','<?php echo $markup_name; ?>');" data-toggle="modal" class="small"><?php echo ucfirst(strtolower($markup_name)); ?></a></td>
    <td style="white-space:nowrap;">
    <a type="button" id="copy_button_<?php echo $arrTransportInventory['InvnItemSysId']; ?>" title="" data-placement="top" data-toggle="tooltip" class="btn btn-xs btn-danger tooltipLink" data-original-title="Copy" onclick="copyTransports('<?php echo $arrTransportInventory['InvnItemSysId']; ?>');"><i class="fa fa-copy"></i></a> 
    <button type="button" id="edit_button_<?php echo $arrTransportInventory['InvnItemSysId']; ?>" title="" data-placement="top" data-toggle="tooltip" class="btn btn-xs btn-warning tooltipLink" data-original-title="Edit" onclick="editTransports('<?php echo $arrTransportInventory['InvnItemSysId']; ?>');"><i class="fa fa-pencil-square-o"></i></button> 
    <?php if($arrTransportInventory['IsSaleStart']==1) { ?>
            <a href="javascript:void(0);" id="action_button_<?php echo $arrTransportInventory['InvnItemSysId']; ?>" title="Stop Sale" data-placement="top" data-toggle="tooltip" class="btn btn-xs btn-danger tooltipLink" data-original-title="Stop Sale" onclick="updateTransportSale('<?php echo $arrTransportInventory['InvnItemSysId']; ?>','0');"><i class="fa fa-stop"></i></a>
    <?php } else { ?>
        <a href="javascript:void(0);" id="action_button_<?php echo $arrTransportInventory['InvnItemSysId']; ?>" title="Start Sale" data-placement="top" data-toggle="tooltip" class="btn btn-xs ls-green-btn tooltipLink" data-original-title="Start Sale" onclick="updateTransportSale('<?php echo $arrTransportInventory['InvnItemSysId']; ?>','1');"><i class="fa fa-play"></i></a>
    <?php } ?>  
    
    <a title="Update" id="update_div_<?php echo $arrTransportInventory['InvnItemSysId']; ?>" href="javascript:void(0);" style="display:none;" class="btn btn-success btn-sm" onclick="updateTransports('<?php echo $arrTransportInventory['InvnItemSysId']; ?>');">Update</a>    
    <a title="Cancel" id="cencle_div_<?php echo $arrTransportInventory['InvnItemSysId']; ?>" href="javascript:void(0);" style="display:none;" class="btn btn-success btn-sm" onclick="cancelTransports('<?php echo $arrTransportInventory['InvnItemSysId']; ?>');">Cancel</a>  
    
    </td>
</tr>
<?php } } else { ?>  
<tr>
  <td colspan="16" class="red">No result found.</td> 
</tr>
<?php } ?>

<script src="<?php echo $this->baseUrl('public/js/transport/transport.js'); ?>"></script>
<script type="text/javascript">   
function viewMarkUpPolicies(id, popupType) {  

    $('#myModalPolicy').removeData('bs.modal');
    $("#myModalPolicy").modal({
        remote: '/transport/manage-policies/id/' + id + '/popupType/' + popupType
    });
}

function viewMarkUp(id, popupType) { 
    $('#myModal').removeData('bs.modal');
    $("#myModal").modal({
        remote: '/transport/manage-markup/id/' + id + '/key/single/popupType/' + popupType
    });
}

function editTransports(InvnItemSysId)
{
   editTransportsBulkForm(InvnItemSysId); 
}

function cancelTransports(itemId)
{
    //Edit Hide Column
    $("#NightCharges_" + itemId).show();
    $("#MinKmPerDay_" + itemId).show();
    $("#PerKMRate_" + itemId).show();
    $("#Rate40Km_" + itemId).show();
    $("#Rate80Km_" + itemId).show();
    $("#PerKmsRate_" + itemId).show();
    $("#ExtraHrsRate_" + itemId).show();

    //Edit Show Column
    $("#edit_NightCharges_" + itemId).hide();
    $("#edit_MinKmPerDay_" + itemId).hide();
    $("#edit_PerKMRate_" + itemId).hide();
    $("#edit_Rate40Km_" + itemId).hide();
    $("#edit_Rate80Km_" + itemId).hide();
    $("#edit_PerKmsRate_" + itemId).hide();
    $("#edit_ExtraHrsRate_" + itemId).hide();
    
    $("#copy_button_" + itemId).show();
    $("#edit_button_" + itemId).show();
    $("#action_button_" + itemId).show();

    $("#update_div_" + itemId).hide();
    $("#cencle_div_" + itemId).hide();
}
</script>

<link rel="stylesheet" href="<?php echo $this->baseUrl('public/assets/css/plugins/jquery.toolbars.css'); ?>">
<!--Tooltip Bar Library Script Start -->
<script src="<?php echo $this->baseUrl('public/assets/js/jquery.toolbar.min.js'); ?>"></script>
<!--Tooltip Bar Library Script End -->

Youez - 2016 - github.com/yon3zu
LinuXploit