-
Posts
1954 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by TAV1702
-
It just got me again and I am using the latest version. Warning: Invalid argument supplied for foreach() in /home/xxxxxx/public_html/xxxxxx/core/common/FinanceData.class.php on line 153 Here is the code snippet in question # Remove expenses first self::removeExpensesforMonth($timestamp); $time = date('Ym', $timestamp); foreach ($all_expenses as $expense) { $sql = 'INSERT INTO ' . TABLE_PREFIX . "expenselog (`dateadded`, `name`, `type`, `cost`) VALUES ('{$time}', '{$expense->name}', '{$expense->type}', '{$expense->cost}');"; DB::query($sql); } } Could this be because I have no expenses in the system yet? This is a test site only so I was not worried about adding expenses yet. I am going to go and add an expense real quick and see if it ever comes up again.
-
Hi Nabeel. From time to time I get an error at the very top of my site that says something about FinanceData.class.php on line 153 That is all I grabbed of the error. I will try to grab more info next time it happens. Not sure what is up with it. Each time it happens, if I refresh the page, the error goes away and the template falls back into place how it should be. My apologies for refreshing the page before I got the whole error. Yet another blonde moment by Ray.
-
Kind Bump.
-
Yeah it is a really good idea and that is what this V2 of Ultimate traffic was built around was VAs using the time tables. Like I said though my only problem is having 80 or more flights a day with only 12 aircraft to do it with. I could add a whole bunch more aircraft I suppose if I feel like breaking out of the Keeping it Real idea. I know there is a way. It is just digging through the time tables and figuring out how they scheduled each aircraft. Some of the schedules are pretty easy to do. Some have 1 stop or two. Those ones are easy to track and schedule. The other ones though are a bit tough.
-
I have searched for the answer I seek and am coming up empty handed. I am curious if it is possible for the pilot center to recognize a pilots Airline of choice and output that info to their pilot center. Say for example, I open up Wild Animals Airline and their callsign is Wild then I go and add another airline and Call it Wild Express and their callsign is Casper (for lack of anything better). Now If Pilot A registers for the airline Wild Express, then when he or she views the pilot center it would give them their airline name and call sign with all their profile info up to by rank hours flown etc etc. Possible to do?
-
+1 added. I forgot I even posted here about this. I will have to give it a shot and see what happens. I have been so dam busy doing other things, I completely forgot all about this until I looked at a very long schedules list. Thanks again! Ray
-
Anyone here ever attempted to use the time tables from Ultimate traffic for their airline? My test site is a mirror of a real world airline who has since been taken over by another airline. I used Ultimate traffic to generate time tables for all of their flights as of 2003. Now that particular airline only had a very small number of aircraft and a very large schedule system. I am trying to figure out how in the hell they could possibly pull off that many flights per day using 12 of one type of aircraft and 9 of another type. I know some of the routes were out sourced. The time tables I got were figured without any partner airlines though. Was just curious if anyone has ever attempted this and if so how did you remedy the situation. I am using the exact number of aircraft they had on their fleet roster as of that date and even using real tail numbers. So it is as real as I can make it......except for the dreaded time tables. They are driving me insane trying to figure out how to get all the schedules in.
-
Yeah I have had that issue for a long time. A guy on my va site found a work around for it. Not sure what it was. If I can get a hold of him I will ask him about it. I know we had a airports do not exist error as well. We ended up finding out the airports were not in PAX database? He added something to his PAX database or something like that and that error was gone.
-
This is a shot in the dark, but it always panned out in phpBB. Go to the file in question and make sure there is no blank spaces before or after the php tags. In this case, I would say have a look at login.php And what version vms are you using?
-
Yeah +100 to Dave but it will only let us up the vote by 1
-
Ahh ok I got ya. I was curious. It gets a little rough when reply on reply is used but it's all good either way. I still love the module and use it daily regardless. Thanks for the reply Simpilot. And I was not aware that html was allowed to be used in this module. I never even tried it.
-
Not sure why it did not work for you. Many others have done it and it works like a charm. I did it on my test site which is the lates beta and it worked on there as well. And there was no point in me posting it to this thread when I had already done so in another thread. If I would have know you felt that way about me PMing you the details, I would not have done it and simply told you to go search for the answer. Fair do's eh?
-
Hi Simpilot. I was shooting the jive in the VA forum Beta 2 thread one day and we talked about line breaks in Airmail how the forum adds them to make a nice paragraph structure. http://forum.phpvms.net/topic/3748-vaforum-2/page__st__60__gopid__30493#entry30493 He gave me a bit of code to try but I can't make heads or tails of it. I was wondering if you have a moment to spare if you could take a look at it for me. I would really appreciate it. I have been trying for weeks now and I can not seem to get it to go. Finally figured it was time to ask for a little help. Thanks in advance either way. Ray
-
Gotta kick this one back up again. I know you are doing the forum, but if you could help me out with the line break thing in airmail only if you get a minute or 5 to spare, I would really appreciate it. Well, I suppose I could go ask Simpilot in his thread eh?
-
Another thing that was shafting me was the original Doubles in my 3 text boxes that I was using. Since doubles use decimals, Double would not have worked here so they needed to be Integers. The double came in to play during the whole calculate cost deal due to the fact that decimals were going to be used.
-
Even though I got my original one back out and working, it is good to go. However, the whole large text box thing and not working really had me P*ssed off very bad. I am going to work on it for the hell of it and try what you have suggested here to see if I can get it to work. And you are correct. It is VB.Net I am using 2008 Express.
-
Ok I got it! Once I found out that I was able to use a list view after all instead of having to use a large text box, I opened up the original project that I started and worked on it for a few minutes and tah dah! She works! Originally, I had the project done once and it worked. We then got told that if we used a listbox it would be incorrect so I scrapped the project and started from scratch. Here is the final results in all her glory FINALLY working the right way.
-
Nabeel, you are correct. And now the plot thickens. We just got an email from school saying there was a typo in the grading rubric and that we can in fact use a list box. However, I have been working on some code using the large text box. Here is what I have thus far. 'Pizza Price Dim PizzaPrice As Double = 1.75 Dim FriesPrice As Double = 2.0 Dim DrinkPrice As Double = 1.75 Private Sub btncompute_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCompute.Click Dim pizza As Double Dim fries As Double Dim drink As Double Dim TotalCost As Double Amount(pizza, fries, drink) TotalCost = Total_Cost(pizza, drink, fries) Display(TotalCost, pizza, fries, Drink) End Sub Sub Amount(ByRef pizza As Double, ByRef fries As Double, ByRef drink As Double) pizza = CDbl(FormatNumber(CDbl(txtpizza.Text))) fries = CDbl(FormatNumber(CDbl(txtfries.Text))) drink = CDbl(FormatNumber(CDbl(txtdrinks.Text))) End Sub Function Total_Cost(ByVal pizza As Double, ByVal Drink As Double, ByVal fries As Double) As Double 'Computing total cost Return (PizzaPrice * pizza) + (FriesPrice * fries) + (DrinkPrice * Drink) End Function I do not think this is correct though. It really needs a catch for each text box to say if a in valid character has been entered. And I am positive I need constants in here as well which I do not have.
-
Not a problem at all.
-
I have been trying pretty much most of the day and striking out on it all the way. Well here is what I do have so far, I got a nice GUI at least.
-
No probs. I would recommend putting the code that I gave you after the code that I showed you. I find it works best that way really. And really it has nothing to do with Simpilot's modules. I was just comparing how the author of the Pilot shop modded his module verses the correct way like Simpilot did. Hope you get it sorted out. Now please note, when you click the over view for pilot shop, you are going to get an error. That error will go away once you add a type, a shop, and a product. I think it needs coded so that it shows an error page explaining what is wrong rather than toss out a error code.
-
A quick search reveals that I posted a fix to this in the Old Idea being Rehashed thread in the Addons area. To fix the admin nav, simply do the following FIND <li style="padding: 0; margin: 0;"><a class="menu" href="#"> <img src="<?php echo SITE_URL?>/admin/lib/layout/images/settings_icon.gif" />Addons</a> <ul style="padding: 0; margin: 0;"> <?php echo $MODULE_NAV_INC; ?> </ul> </li> ADD AFTER <li style="padding: 0; margin: 0;"><a class="menu" href="#"> <img src="<?php echo SITE_URL?>/admin/lib/images/shopadmin.png" />Shop Admin</a> <ul style="padding: 0; margin: 0;"> <li><a href="<?php echo SITE_URL?>/admin/index.php/ShopAdmin/shopsoverview">Overview</a></li> </ul> </li> That will fix the sidebar nav for the admin page. Realistically, this Pilot SHop module needs it's own admin module due to the fact that every single time you upgrade your website, you are going to over write that file and have to come back in later and re add that code to the admin/templates/core_navigation.tpl file. It needs to be made in the admin panel like Simpilot's Events Module. I am still trying to figure outhow to do just that. Once I do, I will fix the files and give them to the chap who reuploaded the file. I am really hoping to get everything on that module fixed so we can all have one good file and get rid of all the others that need fixing.
-
Yeah I did google and found a few different sources but the code is all wrong for the grading rubric that I have. In most of them that are found on line they use a list box where as have to use a large text box. And then some of them are code that people posted and have an error, only to never get help or answer from anyone. I am literally stuck in a catch 22. When I do google and they start using big long fancy words and stuff I get lost and just walk away. I do not know why in the hell I had to take this dam class anyhow. To me VB has nothing to do with Network Admin or basic web design or computer forensics even.
-
Yeah that is a nice looking drop down. It actually has nice form to it and it just not rectangle blocks of color. Nice job Selwynorren.
-
Oh I never turned it in last night. I got pissed off at it and said the hell with it for the night. I am still trying to get it right. I just suck at VB real bad. Here is what I am up to. A fast-food vendor sells: • pizza slices ($1.75) • fries ($2.00) • soft drinks ($1.25) Write a program to compute a customer’s bill. The program should request the quantity of each item ordered in a Sub procedure, calculate the total cost with a Function procedure, and use a Sub procedure to display an itemized bill. I have attached the grading rubric as well. ----------------------------------------------------------------------------------------------------------- Sounds easy enough to most that know how to do it. I am in week 7 of the class and still do not have a clue what I am doing. I have roughed my way through the rest of it thus far. My problem is, instead of using a list box in this project, they want us to use a large text box instead. That makes it much harder for me. A list box I feel a person has more control over. I still could use a hand if anyone is willing to help. So far all I have done is the GUI and the constants added. Ray