Jump to content

Tato123

Members
  • Posts

    150
  • Joined

  • Last visited

Everything posted by Tato123

  1. Hi Vangelis, thanks for your help, I am attaching my css file. The table in question has id tableVar from line 70 vairline.css
  2. I would like to place the logo of the company, but the skin "Vairline" will not let me. Do you have any idea on how to maintain the shape and character and adapt my top for the site? Second problem, if I use chrome everything is ok, with IE and Firefox tables in CSS are not displayed.
  3. Hello everyone, I am looking for someone willing to help me set my site in terms of graphics. http://www.virtualiroma.it/newvar Thanks
  4. After: <tr> <td>Slot Interval (1 minute min)</td> <td><input type="text" name="interval" <?php if(isset($event)) {echo 'value="'.$event['interval'].'"';} else {echo 'value="1"';} ?> ></td> </tr> i insert this: <tr> <td>Category of Event?</td> <td> <select name="category"> <option value="Tour">Tour</option> <option value="Charter">Charter</option> <option value="Fly-In">Fly-In</option> <option value="Airline">Airline</option> <option value="Ivao Tour">Ivao Tour</option> <option value="Neuroflight">Neuroflight</option> <option value="Business">Business</option> <option value="F.E.F">F.E.F</option> <option value="Eli">Eli</option> </select> </td> </tr> Remember: the "category" table in your Dbase must be Varchar Regards
  5. i try $allhubs = OperationsData::GetAllHubs(); if(!$allhubs) $allhubs = array(); foreach($allhubs as $hub) { $this->set('pilotcode', PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid)); $this->set('title', $hub->name); $this->set('icao', $hub->icao); $this->set('allawards', AwardsData::GetPilotAwards(Auth::$userinfo->pilotid)); $this->set('allpilots', PilotData::findPilots(array('p.hub'=>$hub->icao))); $this->set('userinfo', Auth::$userinfo); $this->render('pilots_list.tpl'); } $nohub = PilotData::findPilots(array('p.hub'=>'')); if(!$nohub) { return; } $this->set('pilotcode', PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid)); $this->set('allawards', AwardsData::GetPilotAwards(Auth::$userinfo->pilotid)); $this->set('userinfo', Auth::$userinfo); $this->set('title', 'No Hub'); $this->set('icao', ''); $this->set('allpilots', $nohub); $this->render('pilots_list.tpl'); } public function reports($pilotid='') { if($pilotid == '') { $this->set('message', 'No pilot specified!'); $this->render('core_error.tpl'); return; } $this->set('pilotcode', PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid)); $this->set('userinfo', Auth::$userinfo); $this->set('allawards', AwardsData::GetPilotAwards(Auth::$userinfo->pilotid)); $this->set('pireps', PIREPData::GetAllReportsForPilot($pilotid)); $this->render('pireps_viewall.tpl'); Now i show the pilot award but for all pilot is the same. I show only my award because i'm logged. If i enter without pilot i show for all pilot the pilot award logged in the site Please help me
  6. Hello, but if i wont to see the award in pilot list?
  7. Hello guys, I would like to display the award in my pilot list. I added this code <?php if(!$allawards) { echo '<center><img src="http://www.voegolv.n...g_recusado.png" border="0" /><br><font face="Trebuchet MS" size="2">Pilota non iscritto al roster online.</font></center>'; } else { /* To show the image: <img src="<?php echo $award->image?>" alt="<?php echo $award->descrip?>" /> */ ?> <?php foreach($allawards as $award){ ?> <img src="<?php echo $award->image?>" alt="<?php echo $award->name ?> - <?php echo $award->descrip?>" /> <?php } ?> <?php } ?> and in the pilot.php: public function index() { // Get all of our hubs, and list pilots by hub $allhubs = OperationsData::GetAllHubs(); if(!$allhubs) $allhubs = array(); foreach($allhubs as $hub) { $this->set('title', $hub->name); $this->set('icao', $hub->icao); $this->set('allawards', AwardsData::GetPilotAwards($userinfo->pilotid)); $this->set('allpilots', PilotData::findPilots(array('p.hub'=>$hub->icao))); $this->set('allawards', AwardsData::GetPilotAwards($userinfo->pilotid)); $this->render('pilots_list.tpl'); } $nohub = PilotData::findPilots(array('p.hub'=>'')); if(!$nohub) { return; } $this->set('allawards', AwardsData::GetPilotAwards($userinfo->pilotid)); $this->set('title', 'No Hub'); $this->set('icao', ''); $this->set('allpilots', $nohub); $this->render('pilots_list.tpl'); } I don't show any award. Anyone can help me? Thanks
  8. Hello to all, I would like to ask you for help to structure a system of independent ranks. Let me explain what I want to create. My virtual company uses a rank refers to kacars but I would also rank reported at an online fly on VATSIM and IVAO. I have created in the data base "pilots" a field called online hours. I wish I had the opportunity, when manually increment this field, it is assigned a rank or award. I tried to duplicate the pilot current rank, but I still see only the rank of totalhours. when I delete the cache of my site from administration panel, I see the new rank, but I no longer see the original. I could also solve going to give an award that increases onlinehours referring to, but I do not know how to do. Does anyone know how to help me? Thank you in advance
  9. hello guys I tried to run the scrip on my site but nothing. Someone can help me? i copy the file jquery.js jquery.dataTables.js jquery.dataTables.min.js in lib/js/ i copy the image in: in lib/images This is my core_htmlhead.tpl ?> <script type="text/javascript"> var baseurl = "<?php echo SITE_URL;?>"; var geourl = "<?php echo GEONAME_URL; ?>"; </script> <link rel="stylesheet" media="all" type="text/css" href="<?php echo fileurl('lib/css/phpvms.css')?>" /> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo Config::Get('PAGE_ENCODING');?>" /> <script type="text/javascript" src="http://ajax.googleap...n.js"></script> <script type="text/javascript" src="http://ajax.googleap...n.js"></script> <script type="text/javascript" src="http://maps.google.c...true"></script> <script type="text/javascript" src="<?php echo fileurl('lib/js/jquery.form.js');?>"></script> <script type="text/javascript" src="<?php echo fileurl('lib/js/phpvms.js');?>"></script> <script type="text/javascript" src="<?php echo fileurl('lib/js/jquery_dataTables.js');?>"></script> <?php echo $MODULE_HEAD_INC; This is my schedule_result.tpl <script type="text/javascript"> $(document).ready(function() { $('#tabledlist').dataTable( { "sPaginationType": "full_numbers" } ); } ); </script> <table id="tabledlist" class="display""> <thead> <tr> <th>Flight Info</th> <th>Info</th> </tr> </thead> <tbody> <?php if(!$allroutes) { echo '<p align="center">No routes have been found!</p>'; return; } ?> <tbody> <?php foreach($allroutes as $route) { /* Uncomment this code if you want only schedules which are from the last PIREP that pilot filed */ /*if(Auth::LoggedIn()) { $search = array( 'p.pilotid' => Auth::$userinfo->pilotid, 'p.accepted' => PIREP_ACCEPTED ); $reports = PIREPData::findPIREPS($search, 1); // return only one if(is_object($reports)) { # IF the arrival airport doesn't match the departure airport if($reports->arricao != $route->depicao) { continue; } } }*/ /* Skip over a route if it's not for this day of week Left this here, so it can be omitted if your VA doesn't use this. Comment out these two lines if you don't want to. */ /* Check if a 7 is being used for Sunday, since PHP thinks 0 is Sunday */ $route->daysofweek = str_replace('7', '0', $route->daysofweek); if(strpos($route->daysofweek, date('w')) === false) continue; /* END DAY OF WEEK CHECK */ /* This will skip over a schedule if it's been bid on This only runs if the below setting is enabled If you don't want it to skip, then comment out this code below by adding // in front of each line until the END DISABLE SCHEDULE comment below If you do that, and want to show some text when it's been bid on, see the comment below */ if(Config::Get('DISABLE_SCHED_ON_BID') == true && $route->bidid != 0) { continue; } /* END DISABLE SCHEDULE ON BID */ /* Skip any schedules which have aircraft that the pilot is not rated to fly (according to RANK), only skip them if they are logged in. */ if(Config::Get('RESTRICT_AIRCRAFT_RANKS') === true && Auth::LoggedIn()) { /* This means the aircraft rank level is higher than what the pilot's ranklevel, so just do "continue" and move onto the next route in the list */ if($route->aircraftlevel > Auth::$userinfo->ranklevel) { continue; } } /* THIS BEGINS ONE TABLE ROW */ ?> <tr> <td><a href="<?php echo url('/schedules/details/'.$route->id);?>"><?php echo '('.$route->depicao.' - '.$route->arricao.')'?><?php echo $route->code . $route->flightnum?></a></td> <td nowrap> </td> </tr> <tr> <td><strong>Departure: </strong><?php echo $route->deptime;?> <strong>Arrival: </strong><?php echo $route->arrtime;?></td> <td nowrap><a href="<?php echo url('/schedules/details/'.$route->id);?>">View Details</a></td> </tr> <tr> <td><strong>Equipment: </strong><?php echo $route->aircraft; ?> (<?php echo $route->registration;?>) <strong>Distance: </strong><?php echo $route->distance . Config::Get('UNITS');?></td> <td nowrap><a href="<?php echo url('/schedules/brief/'.$route->id);?>">Pilot Brief</a></td> </tr> <tr> <td><strong>Days Flown: </strong><?php echo Util::GetDaysCompact($route->daysofweek); ?></td> <td nowrap><?php # Don't allow overlapping bids and a bid exists if(Config::Get('DISABLE_SCHED_ON_BID') == true && $route->bidid != 0) { ?> <a id="<?php echo $route->id; ?>" class="addbid" href="<?php echo actionurl('/schedules/addbid');?>">Add to Bid</a> <?php } else { if(Auth::LoggedIn()) { ?> <a id="<?php echo $route->id; ?>" class="addbid" href="<?php echo url('/schedules/addbid');?>">Add to Bid</a> <?php } } ?></td> </tr> <tr> <td><br /> <?php echo ($route->route=='') ? '' : '<strong>Route: </strong>'.$route->route.'<br />' ?> <?php echo ($route->notes=='') ? '' : '<strong>Notes: </strong>'.html_entity_decode($route->notes).'<br />' ?> <?php # Note: this will only show if the above code to # skip the schedule is commented out if($route->bidid != 0) { echo 'This route has been bid on'; } ?> </td> <td nowrap><br /> <br /></td> </tr> <?php /* END OF ONE TABLE ROW */ } ?> </tbody> </table> <hr>
  10. You must before create a table in your dbase event named 'category' You mustadd in the the file: \core\common\EventsData.class.php with public function get_flyin_events() { $query = "SELECT * FROM ".TABLE_PREFIX."events WHERE category = 'Fly-In' AND date >= NOW() ORDER BY date ASC"; return DB::get_results($query); } where Fly-In is the name of category You must add in the file: \core\modules\Events\Events.php public function get_event_flyin() { $id= DB::escape ($_GET[id]); $this->set('events', EventsData::get_flyin_events()); $this->set('history', EventsData::get_flyin_past_events()); $this->show('events/events_cat.tpl'); } where get_flyin_events is the name of class definited before in EventsData.class.php now you must modify a the template file in \core\templates\events\events_cat.tpl in ?> <h3><?php echo SITE_NAME; ?> Upcoming Events - Fly - In</h3> <?php if(!$events) { echo 'No Upcoming Events'; } else { ?> <center> <table border="1px" width="80%"> <tr> <td width="10%"><b>Date:</b></td> <td width="48%"><b>Event:</b></td> <td width="17%"><b>Category:</b></td> <td width="25%"><b>Details/Signups</b></td> </tr> <?php foreach($events as $event) { if($event->active == '2') { continue; } echo '<tr><td>'.date('n/j/Y', strtotime($event->date)).'</td>'; echo '<td>'.$event->title.'</td>'; echo '<td>'.$event->category.'</td>'; echo '<td><a href="'.SITE_URL.'/index.php/events/get_event?id='.$event->id.'">Details/Signups</a></td></tr>'; } ?> </table> </center> <?php } ?> <h3><?php echo SITE_NAME; ?> Past Events</h3> <?php if(!$history) { echo 'No Past Events'; } else { ?> <center> <table border="1px" width="80%"> <tr> <td width="25%"><b>Date:</b></td> <td width="60%"><b>Event:</b></td> <td><b>Details</b></td> </tr> <?php foreach($history as $event) { echo '<tr><td>'.date('n/j/Y', strtotime($event->date)).'</td>'; echo '<td>'.$event->title.'</td>'; echo '<td><a href="'.SITE_URL.'/index.php/events/get_past_event?id='.$event->id.'">Details</a></td></tr>'; } ?> </table> </center> <?php } ?> <hr /> <a href="<?php echo url('/events/get_rankings'); ?>">Show Pilot Rankings For Events</a> Regards
  11. Hi Parkho, i try to install your fantastic addon, but when i calculate the fuel, i see this error: Estimated enroute time: Fatal error: Call to undefined method Util::FormatDuration() in /web/htdocs/www.virtualiroma.it/home/newvar/core/templates/result.tpl on line 224/www.virtualiroma.it/home/newvar/core/templates/result.tplon line 224
  12. Hi, i need your help for a question. I need report in my website only one category of staff. For example, i need to sort my category instructor in a page. How i do to crate this query?
  13. Hi Guys, i need your help. I have create in event DB the table category I need in a template show the event with the category = for example 'Tour'. I modify the EventsData.class.php and i have insert this: public function get_category_events($category) { $query = "SELECT * FROM ".TABLE_PREFIX."events WHERE category ='$Tour' ORDER BY date DESC"; return DB::get_results($query); } also i modify the module /events.php in: public function get_event_category() { $id= DB::escape($_GET[id]); $this->set('event', EventsData::get_category_events($id)); $this->set('signups', EventsData::get_signups($id)); $this->show('events/events_tour.tpl'); and i create the TPL events_tour.tpl whit this code: ?> <h3><?php echo SITE_NAME; ?> Upcoming Events Tour</h3> <?php if(!$events) { echo 'No Upcoming Events'; } else { ?> <center> <table border="1px" width="80%"> <tr> <td width="10%"><b>Date:</b></td> <td width="48%"><b>Event:</b></td> <td width="17%"><b>Category:</b></td> <td width="25%"><div align="center"><b>Details/Signups</b></div></td> </tr> <?php foreach($events as $event) { if($event->active == '2') { continue; } echo '<tr><td>'.date('n/j/Y', strtotime($event->date)).'</td>'; echo '<td>'.$event->title.'</td>'; echo '<td>'.$event->category.'</td>'; echo '<td><a href="'.SITE_URL.'/index.php/events/get_event?id='.$event->id.'">Details/Signups</a></td></tr>'; } ?> </table> </center> <?php } ?> <h3><?php echo SITE_NAME; ?> Past Events</h3> <?php if(!$history) { echo 'No Past Events'; } else { ?> <center> <table border="1px" width="80%"> <tr> <td width="10%"><b>Date:</b></td> <td width="48%"><b>Event:</b></td> <td width="17%"><b>Category:</b></td> <td width="25%"><div align="center"><b>Details</b></div></td> </tr> <?php foreach($history as $event) { echo '<tr><td>'.date('n/j/Y', strtotime($event->date)).'</td>'; echo '<td>'.$event->title.'</td>'; echo '<td>'.$event->category.'</td>'; echo '<td><a href="'.SITE_URL.'/index.php/events/get_past_event?id='.$event->id.'">Details</a></td></tr>'; } ?> </table> </center> <?php } ?> <hr /> <a href="<?php echo url('/events/get_rankings'); ?>">Show Pilot Rankings For Events</a> Now, when i open the module my site show the events_tour.tpl but don't show any one record Can you help me?
  14. Hi Guys I need to install a calendar for show the event in my home page What is the way to create? Any one help me? Thank's
  15. I'm very interesting for this release
  16. Good day guy i have this problem. I try to install the phpVMS-AirMail-master.zip When i try to upload plugin i have this error: Fatal error: Class 'ZipArchive' not found in /web/htdocs/www.virtualiroma.it/home/newvar/admin/modules/Plugins/Plugins.php on line 403 In the folder ..../admin/modules/Plugins/uploads i see the file.zip but i have unsuccesful process Have you any idea? Regards
  17. where is possible download this template?
  18. Very nice !! It would be great to have this available
  19. I solved, my problem was Internet Explorer 8. Whit chrome o Firefox or IE9 i' don'have a problem Thanks
  20. Hi, I have installed the Addon but when i click the Submit scenery or admin scenery or Scenary list nothing happens Please Help me.
×
×
  • Create New...