-
Posts
8141 -
Joined
-
Last visited
-
Days Won
38
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Posts posted by Nabeel
-
-
Haha, I usually stick to 970 width, that's well for 1024 maximized.
-
Nice, faked the POST so it error'd... nice. BTW, your page overflows sideways, so I have to scroll over
-
In that case, using skins... almost no PHP needed:
-
I suppose you could, but why? You can skin/customize the entire site to look however you want/modify any templates as well.
-
under the include 'core/codon.config.php';
Template::Set('extrafields', RegistrationData::GetCustomFields()); Template::Set('allairlines', OperationsData::GetAllAirlines(true)); Template::Set('allhubs', OperationsData::GetAllHubs()); Template::Set('countries', Countries::getAllCountries());
Then
Template::Show('registration_mainform.tpl');
-
Ahh yeah, the dropdowns won't work, because the template variables need to be set. The reason I do that is because I may change stuff on the backend, etc. But if you want to know how to set those, It's 5/6 lines of copy/paste
-
Maybe, but I doubt it's cause of the holidays.
Haha, yeah, but I'm glad it's taking off now, I really appreciate all the feedback. Wait till I finish these next round of updates
-
Hey thanks guys! I'm glad people are starting to use it and find it useful. And I like it when people are helpin each other out! Maybe it's the holidays ;D
-
Yeah someone pointed this out to me last night, another bug. Le-sigh.
I'm gonna take a look and see if it's a quick patch, I'll post it up. But since right now the guts are lying open it may take a few.
-
Yup, the names have to be the same, it checks the local skin folder first to see if it's there, otherwise it'll go to the default.
I've seen some people make a custom .php page with stuff, but the problem is, it'll forward back to the one within the system.
You can include the registration form like:
Template::Show('registration_mainform.tpl') (I think that's what it's called... lol), instead of re-doing the entire form, so
<head> <title><?php echo $title ?></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <?php include 'core/codon.config.php'; Template::Show('core_htmlhead.tpl'); ?> </head> <?php Template::Show('core_htmlreq.tpl'); ?> <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> .... <?php Template::Show('registration_mainform.tpl'); ?> ...
Maybe that helps? I need my coffee
-
just do
include 'core/codon.config.php';
-
Yup np. I'm revamping a ton of backend code. I've eliminated about 10 function calls so far on the backend. I'm revisiting alot of code and changing things up.
-
Change it to .php, not .html, and include core/codon.config.php at the top of the file.
-
Ignore it, the versioning code needs to be changed, but don't worry about it
-
I am looking into it, may be difficult though, since there are alot of factors, including OS (wget, unzip, unavailable or differe from one system to another), host settings for external url fopen() etc, but I'm going to look into it
-
You will need phpMyAdmin. Open it up, goto the phpvms_aircraft table. Click on structure, and scroll down until you see the "Indexes" section. There is an index on the "name" column, called "UNIQUE". Click the red X to remove it.
Indexes: Keyname Type Cardinality Action FieldPRIMARY PRIMARY 19 id
name UNIQUE 19 name <<<<<<<<<
This usually happens if you missed an update, or just did a fresh install without refreshing the database.
-
You don't have to add distance or routes; and leave the times as is, as long as the time format you use is consistent it doesn't matter.
Office ******* about CSV, but just ignore it.
-
You call the function from the StatsData module as such:
Total Hours: <?php echo StatsData::TotalHours(); ?><br /> Total Flights: <?php echo StatsData::TotalFlights(); ?>
-
Done, thanks
-
Also you need commas between the fields (CSV = comma separated values), though excel will insert those if you export.
Match up the columns as well. Distance, etc are optional, though they will come in handy in the future for financials and reports.
Also make sure you're using the registration number for the aircraft.
I know times in decimal format are a little unnatural, but its easier to handle it in mysql.
-
Well, can't argue if it works
May have been an older version, since there were not database updates in this latest one. From here on out, I'm minimizing any database changes.
-
I will add that into the docs! Thanks.
What was the problem?
-
Reupload that file, usually means it broke in the middle of uploading, and did not resume correctly
Hmm my posts are in reverse order.
-
Excellent! Glad to hear
And no prob... I forgot to make that clear
links and stuff
in Skinning
Posted
Total profit? I'm building those functions in, including cost per flight, passengers per flight, cost, you know, basic financials.
Those numbers, not yet, I'm gonna be shortening that to the hundreth place