-
Posts
21 -
Joined
-
Last visited
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Posts posted by CitationCJ
-
-
Hey CitationCJ,
I managed to find this somewhere on these massive forums a while back
<tr> <?php // We are gonna loop each day of the week for($dayofweek = 0; $dayofweek < 7; $dayofweek++) { // echo our column opening echo '<td>'; // Check if $i (the current day of week) exists if(substr_count($route->daysofweek, $dayofweek) > 0) { // there is a flight for sunday , so echo that plane icon out echo 'imagehere'; } // Close that column echo '</td>'; } ?> </tr>
Feel free to edit the code as required (e.g. removing <td>/<tr> is not in table, etc.)
Pseudo code I believe
Thank you!
I will give this one a try when I get back home.
Cheers,
Pierre
-
Thanks simpilot for the answer.
What I am trying to do is having a table showing MON-SUN and if the route is flown on Monday (1) only, an image will appear in the respective field under MON and the rest of the table will show nothing.
So if a route is flown on MON and TUE, the image will appear under MON and TUE only
Thanks in advance
Pierre
-
Hey guys
I tried using this code to display an image on the day the flight is flown:
<?php if($route->daysofweek == 1) { echo'imagehere' ; } ?>
Now, if I want to display a empty entry if there is no flight on that day, I will use this:
<?php if($route->daysofweek == 1) { echo'imagehere' ; } else { echo''; } ?>
For some reasons, this isnt working and its either showing nothing or the image shows up even though there is no flight on Day 1.
Does anyone have a quick fix for this?
Thanks in advance and have a good sunday.
Pierre
-
Hey guys
I installed this version again (https://github.com/nshahzad/phpVMS) and for some reasons it works now without a problem.
I am trying to find the cause of this and will publish it here.
Thanks for your support!
Best,
Pierre
-
Ok, this version of phpVMS is not compatible with the PHP version which is installed on your server. Try downloading phpVMS via here.
Thanks! I gave it a try but the .htaccess is blocking something.
I'll get the logfile of my server shortly.
I also gave this version a try: https://github.com/nshahzad/phpVMS only to experience the same, blank pages as before :/
Have a good day!
-
Where did you download this version from? Before making the last upload, did you try to re download it in case there are any corrupted files?
Thanks for your reply!
I downloaded the file from the download section of phpvms: http://www.phpvms.net/downloads/ (phpvms.full.zip)
Best,
Pierre
-
Hey guys
so i uploaded a new version of phpvms to a new folder.
The install path won't open and gives me a blank page as well: http://www.jetluxembourg.com/fly/phpvms/install/install.php
However, the check file works correctly: http://www.jetluxembourg.com/fly/phpvms/install/checkinstall.php
I really believe that some settings are off on my server ...
Best,
Pierre
-
Hmm, I don't have any other good suggestions. Maybe have a look at your .htaccess file? Also, have you recently installed a plugin? Try deleting all contents of frontpage_main.tpl and load the homepage without anything on there.
Thank you!
I haven't installed any plugin recently. In fact, it worked and when I tried to check the site again a few days ago, I stumbled across the problems.
I will try to upload phpvms in a different folder later and give it a second go. The first try didn't load the install.php .
Best,
Pierre
-
I see the other pages work: http://www.jetluxemb...index.php/login
Open up frontpage_main.tpl and that's where your problem will be. Maybe you recently added a code that was a little wrong. My suggestion is to just override with the default frontpage_main.tpl, and rebuild from there(Unless you have a functional backup)
Thanks guys for the replies!
The thing is, I haven't touched the code in a few months I guess.
When I try to access the admin site in the browser, it gives me a blank site as well. I can login, but it then refers to a blank side.
I uploaded a fresh download to a new folder on my server. The check function works and shows all documents are fine, however the install.php also gives me a blank page. I believe it has to do with my server then?
Thanks and cheers,
Pierre
-
Good Morning everyone
for some reasons, my index page seems to be without a reference to a skin: http://www.jetluxembourg.com/ops/index.php/
The other sites (pilots, login, etc.) do not work either for some reasons.
I changed the PHP version back to 5.5 on my hosting to no avail.
Has someone experienced the same issues?
Thanks in advance for any help.
Best,
Pierre
-
Say if its a Friday. Set that flight for only Friday. Than remove it before next Friday so it doesn't appear again.
Yeah, this would be a way to do this. But I thought that this can be done with a code.
Thanks anyways
-
Basically what I want is to have flights for booking on a specific date only.
Like a maintenance flight on 26-07-2013 and this will only be available for booking on that date.
-
So no one has an idea on how to code this?
-
Thanks for the Code! Is there a way to add an error message if no flight has been found?
-
I will fix it and make a manual explanatory. thanks for the criticism is valid and causes the code to be improved.
This looks pretty nice! Thanks for your effort! Will try to somehow implent this into my website
-
Hey guys,
I was wondering if there is a way to input special flights on specific dates only? I guess this has to be modded into the admin section?
Thanks in advance for your help and happy flying
-
Hey everyone,
I did exactly what Iain said, but it won't display the image in the background.
Here is some code:
<style> /* Some integrated styles here, for the popup */ .boardingpass { font-family: Tahoma, Verdana; font-size: 14px; background-image: url(images/boardingpass.png) }
I put the image in the.boardingpass class and also moved the template file into my skins folder.
Does anyone has a solution?
Thanks in advance
-
You installed the wrong version for phpVMS that the header.php files are not yet ready. There was some mess up when we were updating phpVMS to really a Beta Verison.
Please download the stable one here at http://downloads.php...phpvms.full.zip
Hey,
I install this exact version. I also tried the update to no avail
-
Done that. It was a faulty .htaccess file. I guess my webhosting does only allow a few rules in the .htaccess.
I got it installed and now I get this error message in the admin panel:
Notice: The template file "/is/htdocs/wp11069230_GOH1PQF13E/www/base//admin/lib/layout/header.php" doesn't exist in /is/htdocs/wp11069230_GOH1PQF13E/www/base/core/classes/TemplateSet.class.php on line 231The pilot panel looks just fine though and everything seems to work.
-
Hey everyone,
I just uploaded phpVMS onto my server, granted all permissions, set up the database. When I want to enter the install/directory, it gives me this error:
The script could not be executed correctly.
Common causes might be that the file was uploaded in a non-ASCII format or the path to the interpreter (e.g.: #!/usr/bin/perl) is missing or set incorrectly.
I am using paid hosting, uploaded the files via Dreamweaver and FileZille to check but still get the error.
Can someone help me please?
On a second thought, I am missing the local.config file?
Thanks in advance and have a great day!
Pierre
Display Days Flown in Schedule
in Support Forum
Posted
Works exactly like it is supposed to, thanks!
Now I only need to change sunday to monday (i.e. 7->0 in php).
I tried using the code that already comes with phpvms, however the results still show up on the wrong days.
Best,
Pierre