Jump to content

CarlosEduardo2409

Members
  • Posts

    224
  • Joined

  • Last visited

  • Days Won

    10

Posts posted by CarlosEduardo2409

  1. I know how to solve both. The first one is because I have two jQuery and the second one is the same skin error, it's so u. The file that is missing, the more I needed to take. The error that could probably fix the forum error is the first one, jQuery, but I took one of my jQuery and the error in the console disappeared, but I did not fix the error of the forms.

  2. @web541 

    Yes, the forms are as a post method.

    And also has error in the console, has two errors (yes, includes one with jquery), they are:

     

    1. Quote

      Uncaught TypeError: $(...).ajaxForm is not a function
          at HTMLDocument.<anonymous> (phpvms.js:27)
          at j (jquery.min.js:2)
          at Object.fireWith [as resolveWith] (jquery.min.js:2)
          at Function.ready (jquery.min.js:2)
          at HTMLDocument.I (jquery.min.js:2)

       

      In phpvms.js:27

       

    2. Quote

      Uncaught TypeError: $.toast is not a function
          at dashboard-data.js:19

       

      In dashboard-data.js:19

       

  3. So... Hello everyone, again. I have a new problem again.

     

    This time the error is in the forms. On all forms of my VA (Airmail, fltbook, all) are not working. When I submit something it does not lead to the correct place and the link gets weird (the information stays in it, as in the image below).

    H1sh39m0SDSfBfl_LaN9aQ.png (https://prnt.sc/imjq3b)

    The image above is an example of the fltbook, when I click to search for a flight the form does not work but enters this link.

     

    I'm using a custom skin that I'm doing. I'm sure it was some file that I moved and now is giving error, because before was not giving any error, worked perfectly.

    I'm sorry for not passing more information, because I literally do not know which files to pass. I can only say that I'm using the admin template 'Elmer'.

     

    Regards,

    Carlos.

  4. Hi @Omerr01, so I do not know if I understood very well, from what I understood you want to put a map of the route that the pilot flight on the page of the reports, right? I'm not sure if this was it, because in standard phpVMS it already comes with this.

     

    You have to add this to wherever the map appears:

    <?php $this->render('route_map.php'); ?>

     

  5. Try this:

    <li class="list-group-item">
                    <b>Rank Progress</b> 
    					  
                    <?php $percentage = ($pilot_hours/$nextrank->minhours) * 100; ?>
                    <?php $round = round($percentage); ?>
                    <div style="width: 80%;display: inline;" class="progress-group">     
                        <span class="progress-number"><?php echo $round ?>% Completed</span>
    						  
                        <div class="progress sm">
                            <?php echo "<div class='progress-bar progress-bar-blue-light' role='progressbar' aria-valuenow='60' aria-valuemin='0' aria-valuemax='100' style='width: ", $round, "%'></div>"; // Progress bar inner ?>
                        </div>
                    </div>                     
                </li>

     

    • Thanks 1
  6. @Relja12 Try this

    <li class="list-group-item">
    	<b>Rank Progress</b> 
      
      	<?php $percentage = ($pilot_hours/$nextrank->minhours) * 100; ?>
      	<?php $round = round($percentage); ?>
    	<div style="width: 80%;display: inline;" class="progress-group">     
        	<span class="progress-number"><?php echo $round ?>% Completed</span>
          
        	<div class="progress sm">
              	<div class="progress-bar progress-bar-blue-light" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style='width: ", <?php echo $round ?>, "%'></div>
            </div>
        </div>                     
    </li>

    Code by: Alp Yeni

  7. Are you sure, my jquery is 3.0

    This is the code of foother.php

                    </div>
                </div>
                    <footer class="footer">
                        <div class="container-fluid">
                            <nav class="pull-left">
                                <ul>
                                    <li>
                                        <a href="#"> Home </a>
                                    </li>
                                    
                                    <li>
                                        <a href="#"> Company </a>
                                    </li>
                                    
                                    <li>
                                        <a href="#"> Portfolio </a>
                                    </li>
                                    
                                    <li>
                                        <a href="#"> Blog </a>
                                    </li>
                                </ul>
                            </nav>
                            
                            <p class="copyright pull-right">
                                &copy;
                                <script>
                                    document.write(new Date().getFullYear())
                                </script>
                                <a href="http://www.creative-tim.com">Creative Tim</a>, made with love for a better web
                            </p>
                        </div>
                    </footer>
                </div>
            </div>
        </body>
        
        <?php Template::Show('core_footer.php'); ?>
        
        <!--   Core JS Files   -->
        <script src="<?php echo SITE_URL;?>/admin/lib/layout/js/jquery-3.2.1.min.js" type="text/javascript"></script>
        <script src="<?php echo SITE_URL;?>/admin/lib/layout/js/bootstrap.min.js" type="text/javascript"></script>
        <script src="<?php echo SITE_URL;?>/admin/lib/layout/js/material.min.js" type="text/javascript"></script>
        
        <!--  Charts Plugin -->
        <script src="<?php echo SITE_URL;?>/admin/lib/layout/js/chartist.min.js"></script>
        
        <!--  Dynamic Elements plugin -->
        <script src="<?php echo SITE_URL;?>/admin/lib/layout/js/arrive.min.js"></script>
        
        <!--  PerfectScrollbar Library -->
        <script src="<?php echo SITE_URL;?>/admin/lib/layout/js/perfect-scrollbar.jquery.min.js"></script>
        
        <!--  Notifications Plugin    -->
        <script src="<?php echo SITE_URL;?>/admin/lib/layout/js/bootstrap-notify.js"></script>
        
        
        <!-- Material Dashboard javascript methods -->
        <script src="<?php echo SITE_URL;?>/admin/lib/layout/js/material-dashboard.js?v=1.2.0"></script>
        
        <!-- Material Dashboard DEMO methods, don't include it in your project! -->
        <script src="<?php echo SITE_URL;?>/admin/lib/layout/js/demo.js"></script>
        <script type="text/javascript">
            $(document).ready(function() {
                // Javascript method's body can be found in assets/js/demos.js
                demo.initDashboardPageCharts();
        
            });
        </script>
    </html>

     

    But the only problem is that if I remove it from the site to do most of the functions, then I'll have to leave the skin default, unless I have a solution.

     

    But thank you @web541, I thank you every time you helped me, there were several.

  8. Greetings everyone,

     

    From a time to here, I start to change the layout of my admin panel, everything is working perfectly, actually almost perfection, I have a problem in the pending pirep, when I click to accept the pirep it does not accept, does not happen anything.

     

    My code of the pirep button:

    <?php if($error == false) { ?>
    	<button class="pirepaction btn btn-success {button:{icons:{primary:'ui-icon-trash'}}}" href="<?php echo adminaction('/pirepadmin/'.$load.'?pilotid='.$pirep->pilotid.'');?>" action="approvepirep" id="<?php echo $pirep->pirepid;?>"> Accept </button>
    <?php } ?>

     

    My whole code:

    Quote
    
    <?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?>
    <div class="row">
        <div class="col-md-12">
            <div class="card">
                <div class="card-header" data-background-color="purple">
                    <h4 class="title">Pilot Reports</h4>
                    <p class="category">There are a total of <?php echo count($pireps);?> flight reports in this category. <a href="<?php echo SITE_URL?>/admin/index.php/pirepadmin/approveall">Click to approve all</a></p>
                </div>
                
                <div class="card-content table-responsive">
                    <?php 
                    	if($_GET['module'] == 'pirepadmin' && $_GET['page'] == 'viewall') {
                    		Template::Show('pireps_filter.tpl');
                    	}
                    
                    	if(isset($paginate)) {
                    ?>
                    	<div style="float: right;">
                    		<a href="?admin=<?php echo $admin?>&start=<?php echo $start?>">Next Page</a>
                    		<br />
                    	</div>
                    <?php } ?>
                    
                    <?php if(!$pireps) {
                    	echo '<p>No reports have been found</p></div>';
                    	return;
                    } ?>
                    <table class="table">
                        <thead class="text-primary">
                            <th>Pilot</th>
                            <th>Flight</th>
                        	<th>Dep/Arr</th>	
                        	<th>Flight Time</th>
                        	<th>Submit Date</th>
                            <th>Current Status</th>
                            <th>Details</th>
                            <th>Options</th>
                        </thead>
                                                
                        <tbody>
                            <?php foreach($pireps as $pirep) {	
                                	if($pirep->accepted == PIREP_PENDING)
                                		$td_class = 'pending';
                                	else
                                		$td_class = '';
                                	
                                	$error = false;
                            ?>
                            <tr class="<?php echo $class?> pirep_list" id="row<?php echo $pirep->pirepid;?>">
                                <td>
                                    <a href="<?php echo SITE_URL?>/admin/index.php/pilotadmin/viewpilots?action=viewoptions&pilotid=<?php echo $pirep->pilotid;?>"><?php echo PilotData::GetPilotCode($pirep->pcode, $pirep->pilotid) . ' - ' .$pirep->firstname .' ' . $pirep->lastname;?></a>
    		                    </td>
                                <td><?php echo $pirep->code . $pirep->flightnum; ?></td>
                                <td><?php echo $pirep->depicao; ?>/<?php echo $pirep->arricao; ?></td>
                                <td><?php echo $pirep->flighttime; ?></td>
                                <td><?php echo date(DATE_FORMAT, $pirep->submitdate); ?> </td>
                                <td><?php
                                        if($pirep->accepted == PIREP_ACCEPTED)
                                        	echo 'Accepted';
                                    	elseif($pirep->accepted == PIREP_REJECTED)
                                    		echo 'Rejected';
                                    	elseif($pirep->accepted == PIREP_PENDING)
                                    		echo 'Approval Pending';
                                	?>
                                	<?php
                                    	if($pirep->aircraft == '') {
                                    		$error = true;
                                    	}	
                                	?>
                                </td>
                                
                                
                                <td>
                                    <a href="#" onclick="$('#details_dialog_<?php echo $pirep->pirepid;?>').toggle()">Details</a>
                                
                                    <!-- Start Table - Details -->
                                    <table class="table" id="details_dialog_<?php echo $pirep->pirepid;?>" style="display:none; border-left: 3px solid #FF6633; margin-top: 3px;padding-left: 3px;" width="100%">
                                        <tr>
                                            <td><strong>Client: </strong> <?php echo $pirep->source; ?></td>
                                        	<td><strong>Aircraft: </strong>
                                        	    <?php 
                                        		    if($pirep->aircraft == '') {
                                        			    $error = true;
                                        				echo '<span style="color: red">No aircraft! Edit to change</span>';
                                        			} else
                                        				echo $pirep->aircraft. " ($pirep->registration)";
                                        	    ?>
                                            </td>
                                        	<td><strong>Flight Time: </strong> <?php echo $pirep->flighttime_stamp; ?></td>
                                        	<td><strong>Distance: </strong><?php echo $pirep->distance; ?> </td>
                                        	<td><strong>Landing Rate: </strong><?php echo $pirep->landingrate; ?> </td>
                                        </tr>
                                        <tr>
                                        	<td colspan="5"><strong>Route: </strong><?php echo $pirep->route;?> 
                                                <a data-toggle="modal" href="<?php echo SITE_URL?>/admin/action.php/operations/viewmap?type=pirep&id=<?php echo $pirep->pirepid;?>" data-target="#route">View</a>
                                            </td>
                                        </tr>
                                        <tr>
                                        	<td><strong>Load/Price: </strong><?php echo (($pirep->load!='')?$pirep->load:'-').' / '.FinanceData::formatMoney($pirep->price);?></td>
                                        	<td><strong>Pilot Pay: </strong><?php echo FinanceData::formatMoney($pirep->pilotpay);?></td>
                                        	<td><strong>Fuel Used: </strong><?php echo ($pirep->fuelused!='') ? $pirep->fuelused.Config::Get('LIQUID_UNIT_NAMES', Config::Get('LiquidUnit')) : '-';?></td>
                                        	<td><strong>Revenue: </strong><?php echo FinanceData::formatMoney($pirep->revenue);?></td>
                                        	<td><strong>Gross: </strong><?php echo FinanceData::formatMoney($pirep->gross);?></td>
                                        </tr>
                                        <?php
                                            // Get the additional fields
                                            //	I know, badish place to put it, but it's pulled per-PIREP
                                            $fields = PIREPData::GetFieldData($pirep->pirepid);
                                            if(!$fields) {
                                            	echo '';
                                            } else {
                                            	$i=1;
                                            	echo '<tr>';
                                            	
                                            	foreach ($fields as $field)	{
                                            		if($i == 1) {
                                            			echo '<tr>';
                                            		}
                                            		
                                            		echo "<td><strong>{$field->title}:</strong> {$field->value}</td>";
                                            		
                                            		if($i == 5) {
                                            			echo '</tr>';
                                            			$i = 0;
                                            		}
                                            		
                                            		$i++;
                                            	}
                                            }
                                            
                                            echo '</tr>';
                                        ?>
                                    </table>
                                </td>
                                
                                <td class="<?php echo $td_class;?>" align="center" width="1%" nowrap>
                                    <!-- Accept Pirep Button -->
                                    <?php if($error == false) { ?>
                                    <button class="pirepaction btn btn-success {button:{icons:{primary:'ui-icon-trash'}}}" href="<?php echo adminaction('/pirepadmin/'.$load.'?pilotid='.$pirep->pilotid.'');?>" action="approvepirep" id="<?php echo $pirep->pirepid;?>"> Accept </button>
                                    <?php } ?>
                                    <!-- /. Accept Pirep Button -->
                                    <a data-toggle="modal" class="btn btn-danger" href="<?php echo SITE_URL?>/admin/action.php/pirepadmin/rejectpirep?pirepid=<?php echo $pirep->pirepid;?>&pilotid=<?php echo $pirep->pilotid; ?>" data-target="#reject">Reject</a>
                                </td>
                            </tr>
                            <?php } ?>
                        </tbody>
                    </table>
                    
                    <?php if(isset($paginate)) { ?>
                    	<div style="float: right;">
                    		<a href="?admin=<?php echo $admin?>&start=<?php echo $start?>">Next Page</a>
                    		<br />
                    	</div>
                    <?php } /* Close the paginate loop */ ?>
                    
                    <script type="text/javascript">
                        $("button, input:button, input:submit").button();
                    </script>
                    
                    <!-- Modal -->
                    <div class="modal fade" id="log" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                    	<div class="modal-dialog" role="document">
                            <div class="modal-content">
                                <div class="modal-header">
                    				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
                    				<h4 class="modal-title" id="myModalLabel">Log for <?php echo $report->code.$report->pirepid?></h4>
                                </div>
                    			
                                <div class="modal-body">
                                            
                                </div>
                    			
                                <div class="modal-footer">
                    				<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                    				<button type="button" class="btn btn-primary">Save changes</button>
                                </div>
                            </div>
                    	</div>
                    </div>
                    
                    <!-- Modal -->
                    <div class="modal fade" id="comments" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                    	<div class="modal-dialog" role="document">
                            <div class="modal-content">
                                <div class="modal-header">
                    				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
                    				<h4 class="modal-title" id="myModalLabel"></h4>
                                </div>
                    			
                                <div class="modal-body" style="padding:5px;">
                                            
                                </div>
                    			
                                <div class="modal-footer">
                    				<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                    				<button type="button" class="btn btn-primary">Save changes</button>
                                </div>
                            </div>
                    	</div>
                    </div>
                    
                    <!-- Modal -->
                    <div class="modal fade" id="addcomment" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                    	<div class="modal-dialog" role="document">
                            <div class="modal-content">
                                <div class="modal-header">
                    				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
                    				<h4 class="modal-title" id="myModalLabel">Add Comment For <?php echo $report->code.$report->pirepid?></h4>
                                </div>
                    			
                                <div class="modal-body" style="padding:5px;">
                                            
                                </div>
                    			
                                <div class="modal-footer">
                    				<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                    				<button type="button" class="btn btn-primary">Save changes</button>
                                </div>
                            </div>
                    	</div>
                    </div>
                    
                    <!-- Modal -->
                    <div class="modal fade" id="reject" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                    	<div class="modal-dialog" role="document">
                            <div class="modal-content">
                                <div class="modal-header">
                    				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
                    				<h4 class="modal-title" id="myModalLabel">Reject Pilot Report <?php echo $report->code.$report->pirepid?></h4>
                                </div>
                    			
                                <div class="modal-body">
                                            
                                </div>
                    			
                                <div class="modal-footer">
                    				<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                    				<button type="button" class="btn btn-primary">Save changes</button>
                                </div>
                            </div>
                    	</div>
                    </div>
                    
                    <!-- Modal -->
                    <div class="modal fade" id="route" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                    	<div class="modal-dialog" role="document">
                            <div class="modal-content">
                                <div class="modal-header">
                    				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
                    				<h4 class="modal-title" id="myModalLabel"></h4>
                                </div>
                    			
                                <div class="modal-body">
                                            
                                </div>
                    			
                                <div class="modal-footer">
                    				<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                    				<button type="button" class="btn btn-primary">Save changes</button>
                                </div>
                            </div>
                    	</div>
                    </div>
                </div>
            </div>
        </div>
    </div>

     

    Regards,

    Carlos.

  9. Hello everyone,
     

    I wanted to know if there is a code to know the airport latitude of arrival and destination of a reservation ($bid), because I am trying to put a map in the page of bids and it goes blank, I believe it is because he does not can find the latitude and longitude, because for an pyrep would be that '$pirep-> arrlat' right? So if I put '$bid' in place of '$pirep' it does not work.

     

    Thanks.

  10. 14 hours ago, BlakePope said:

    Hello, can anyone tell me where to navigate and insert my keys for the 

    1. reCAPTCHA
    2. Google map

    Ok, it's very simple,

    1. reCAPTCHA - Go to core/app.config.php or tpl, and approximately on lines 242 to 245 you will find this:

    /* Keys for recaptcha, you can change these if you want to your own but it's
    	a global key so it should just work */
    Config::Set('RECAPTCHA_PUBLIC_KEY', 'YOUR_RECAPTCHA_PUBLIC_KEY');
    Config::Set('RECAPTCHA_PRIVATE_KEY', 'YOUR_RECAPTCHA_PRIVATE_KEY');

    Just change to your reCAPTCHA public key and private key

     

    2. Google Map - Go to /lib/skins/crewcenter/core_htmlhead.php or tpl, and the line you are looking for is,

    <script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=true"></script>

    Replace to

    <script async defer src="https://maps.googleapis.com/maps/api/js?key=PLACE YOURKEY IN HERE&callback=initMap"></script>

    Replace PLACE YOURKEY IN HERE with your generated key

    • Like 1
  11. Hi everyone, everything fine?

    So I've been updating my VA in the settings profile part, but I get an error when I'm going to change the avatar.

    So, I'm leaving the profile settings on several tabs (https://prnt.sc/ho331l), all the tabs are ready, the profile tab containing the name, email and location changes and are working correctly, the password change tab is also working, but avatar change tab is not working properly.

    The problem is this, when I click to select the avatar and then I click to save the profile I get this message 'The email address can not be blank.', But the avatar change tab only has the function to change the avatar and I believe you do not need to put a space for the email. But I know that my problem is not in my code because when I was with the standard phpVMS code I already received this message. NOTE: The email address was not blank, and even then I got this error and keep getting it.

    That's the problem, does anyone know how to fix it?

    My profile_edit.php:

    <form action="<?php echo url('/profile');?>" method="post" enctype="multipart/form-data">
    	<div class="control-group">
    		<div class="controls">
    			<div class="fileinput fileinput-new" data-provides="fileinput">
    				<div class="fileinput-preview thumbnail" data-trigger="fileinput" style="width: 200px; height: 150px;">
    					<?php	
    						if(!file_exists(SITE_ROOT.AVATAR_PATH.'/'.$pilotcode.'.png'))
                            {
                            	echo '';
                            } else {
                            ?>
                                <img src="<?php	echo SITE_URL.AVATAR_PATH.'/'.$pilotcode.'.png';?>" /></dd>
                            <?php
                                }
                            ?>
                    </div>
              
                    <div>
    					<span class="btn red btn-outline btn-file">
                        	<span class="fileinput-new"> Select image </span>
                            <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo Config::Get('AVATAR_FILE_SIZE');?>" />
                            <input type="file" name="avatar" size="40" class="form-control">
                        </span>
                    </div>
    			</div>
    		</div>
    	</div>
                                                                
       	<br>
                                                                
        <input type="hidden" name="action" value="saveprofile" />
        <input type="submit" name="submit" class="btn btn-primary red btn-block" value="Upload Avatar">
    </form>

     

    My save_profile_post from core/module/Profile.php

    	/**
    	 * Profile::save_profile_post()
    	 *
    	 * @return
    	 */
    	protected function save_profile_post()
    	{
    		if(!Auth::LoggedIn()) {
    			$this->set('message', 'You must be logged in to access this feature!');
    			$this->render('core_error.php');
    			return;
    		}
    
    		$pilot = Auth::$pilot;
    
    		//TODO: check email validity
    		if($this->post->email == '') {
    			$this->set('message', 'The email address cannot be blank.');
    			$this->render('core_error.php');
    			return;
    		}
    		
    		$fields = RegistrationData::getCustomFields();
    		
    		if(count($fields) > 0) {
                		foreach ($fields as $field) {
    				$value = Vars::POST($field->fieldname);
    				$value1 = DB::escape($value);
    				if ($field->required == 1 && $value1 == '') {
    					$this->set('message', ''.$field->title.' cannot be blank!');
    					$this->render('core_error.php');
    					return;
    				} 
    			}
    		}
    
    		$params = array(
    		    'firstname' => $this->post->firstname,
    		    'lastname' => $this->post->lastname,
    			'code' => $pilot->code,
    			'email' => $this->post->email,
    			'location' => $this->post->location,
    			'hub' => $pilot->hub,
    			'bgimage' => $this->post->bgimage,
    			'avatar' => $this->post->avatar,
    			'retired' => false
    		);
    
    		PilotData::updateProfile($pilot->pilotid, $params);
    		PilotData::SaveFields($pilot->pilotid, $_POST);
    
    		# Generate a fresh signature
    		PilotData::GenerateSignature($pilot->pilotid);
    
    		PilotData::SaveAvatar($pilot->code, $pilot->pilotid, $_FILES);
    
    		$this->set('message', '<strong>Your profile changes have been saved!</strong> Please, refresh the page to receive the profile changes.');
    		$this->render('core_success.php');
    	}

     

    Sorry for all the embarrassment I said, it was very confusing and sorry if I said something wrong because I'm using google translator.

    I already want to thank you all in advance,

    Regards,
    Carlos

  12. Hello everyone, for a while, I made some changes in my business center, now I'm modifying the layout of my bid, but when I go modify my map, I have an error, not a mistake, but let's call it an error. 

    You can see in my topic what I wanted to do with my map HERE. You can see that in this topic I was able to do what I wanted, but I'm not able to put it in the layout of my bid page.

     

    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    What is the error:

    Click here to see an error image.

    Click here to see the map code.

    You notice that in this image in the place where the flight map was supposed to be, it does not appear, but it occupies the size of the map. But the code is not a mistake, because I tested it on the reports page (pirep_viewreport.php) and it worked perfectly, but on the bids page it did not. (schedule_bids.php).

    Code that I'm using to appear in the layout:

    <?php $this->show('routemap_report.php'); ?>

    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

     

    Summing up: My mistake is that my custom map is not appearing on the bids page, remembering that the code works because in the layout of the reports it works.

    So my question is, does anyone know how I can fix this? Remembering, this error is on the bids page (schedule_bids.php).

     

    Observations:

    • Using Simpilot phpVMS 5.5.
    • Using crewcenter of web541 and Mark Swan
    • I have my google maps key at core_htmlhead.php.
    • Error in bids page

     

    Thanks,

     

    Carlos.

  13. 20 hours ago, web541 said:

    You should have something in your core_htmlhead.php or layout.php file, because otherwise all maps on your site won't work (including ACARS).

    https://github.com/DavidJClark/phpvms_5.5.x/blob/master/core/templates/core_htmlhead.php#L35

    And "Google Maps API warning: NoApiKeys" tells me that you have not included your API key in the reference so you should check here how to properly add it

     

    Thanks web541, the API problem has already been solved, now the same problem is the map that does not work in schedule_bids.php

     

    But in the console of the site it speaks of an error like this:

    Error parsing header X-XSS-Protection: 1, 1; mode=block: expected semicolon at character position 2. The default protections will be applied.

×
×
  • Create New...