Jump to content

Francisco

Members
  • Posts

    9
  • Joined

  • Last visited

Posts posted by Francisco

  1. Take a look at those dive on line 3 and also below the map code you have an empty div there fir no reason, your right it is a div issue just finding the right one ;)

    As a start get rid of that div id mainbox extra one so remove lines 3 and 4

    Hello Mark, the problem was solved, now i have the problem with the table of info pilot:

    avionr.png

    <style type="text/css">
    <!--
    .Estilo1 {font-size: 10px}
    -->
    </style>
    <div id="mainbox">
    <h3>Vuelos Recientes</h3>
    
    
     <div align="left">
       <?php
           $flights = PIREPData::getRecentReportsByCount(10);                                                                      
           $string = "";
           foreach($flights as $flight)
           {       
                   $string = $string.$flight->depicao.'+-+'.$flight->arricao.',+';
           }                                                                       
    ?>
    
       <img src="http://www.gcmap.com/map?P=&MS=bm&MP=RECT&MR=350x350&PM=pemr:star10:white%2b%22%25I%22:white&PC=orange" /><br />
       <span class="Estilo1">   Maps generated by the <a href="http://www.gcmap.com/">Great Circle Mapper</a> - copyright © <a href="http://www.kls2.com/~karl/">Karl L. Swartz</a></span>
       <?php
    $count = 15;
    $pireps = PIREPData::getRecentReportsByCount($count);
    ?>
    
    <table width="94%" border="0" bordercolor="#FFFFFF">
      <thead>
        <tr align="center" valign="middle" bgcolor="#7D95AF">
          <th>Flight #</th>
          <th>Departure</th>
          <th>Arrival</th>
          <th>Duration</th>
          <th>Pilot</th>
          <th>Landing Rate</th>
          <th>Aircraft</th>
        </tr>
       </thead>
       <tbody>
    
    <?php
    
    if(count($pireps) > 0)
    {
     foreach ($pireps as $pirep)
     {
       $pilotinfo = PilotData::getPilotData($pirep->pilotid);
       $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); 
    
       echo "<tr>";
       echo "<td align=center> $pirep->code $pirep->flightnum </td>";
       echo "<td align=center> $pirep->depicao </td>";
       echo "<td align=center> $pirep->arricao </td>";
       echo "<td align=center> $pirep->flighttime </td>";
       echo "<td align=center> $pilotid $pilotinfo->firstname $pilotinfo->lastname </td>";
       echo "<td align=center> $pirep->landingrate </td>";
       echo "<td align=center> $pirep->aircraft </td>";
       echo "</tr>";
     }
    }
    else
    {
       echo "<tr><td>There are no recent flights!</td></tr>";
    }
    ?>
    
    
       <?php
    
    // Show the News module, call the function ShowNewsFront
    //	This is in the modules/Frontpage folder
    
    MainController::Run('News', 'ShowNewsFront', 5);
    ?>
     </div>
    </div>
    
    </div>
    
    
    
    <div id="sidebar">
           <div class="mcbox01">
    
                           <div class="mc01t2">
    
                               Acceso
    
                           </div>
    
                           <div class="mc01cc">
    
                               <p>
    
                               <?php 
                   /* 
                   Quick example of how to see if they're logged in or not
                   Only show this login form if they're logged in */
                   if(Auth::LoggedIn() == false)
                   { ?>
                           <form name="loginform" action="<?php echo url('/login'); ?>" method="post">
                                   <p> Sí aú no estas registrado</p>
                                   <p>registrate <a href="<?php echo url('/registration'); ?>">aquí</a>.<br />
                                     <input type="text" name="email" value="FLE" onClick="this.value=''" />
                                   </p>
                       <p>
                                     <input type="password" name="password" value="Password" />
                             </p>
                                   <p>
                                     <input type="hidden" name="remember" value="on" />
                                     <input type="hidden" name="redir" value="index.php/profile" />
                                     <input type="hidden" name="action" value="login" />
                                     <input type="submit" name="submit" value="Log In" />
                             </p>
     </form>
                           <p>
                           <?php
                   }       
                   /* End the Auth::LoggedIn() if */
                   else /* else - they're logged in, so show some info about the pilot, and a few links */
                   {
    
                   /*      Auth::$userinfo has the information about the user currently logged in
                           We will use this next line - this gets their full pilot id, formatted properly */
                   $pilotid = PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid);
                   ?>
                       <strong>Pilot ID: </strong> <?php echo $pilotid ; ?>
                       <strong>Rank: </strong><?php echo Auth::$userinfo->rank;?><br />
                       <strong>Total Flights: </strong><?php echo Auth::$userinfo->totalflights?>, <strong>Total Hours: </strong><?php echo Auth::$userinfo->totalhours;?>
                   <br />
                   <a href="<?php echo url('/pireps/new');?>">File a New PIREP</a></p>
                           <p><a href="<?php echo url('/schedules/bids');?>">View My Bids</a></p>
                           <p><a href="<?php echo url('/profile/');?>">View Pilot Center</a><?php
                   } /* End the else */
                   ?>
    
     </p>
                           <p>
                             <?php MainController::Run('Mail', 'checkmail'); ?>
                           </p>
    
    
     <div class="mc01b">
    
                               <img src="http://flygreenva.com/img_272.jpg" alt="" />                        </div>
         </div>
    
    
           <div class="mcbox01">
    
                           <div class="mc01t2">
    
                                Spotting
    
                           </div>
    
                           <div class="mc01cc">
    
    <?php Screenshots::show_random_screenshot(); ?>
    
    
                               <div align="center"><img src="http://flygreenva.com/img_272.jpg" alt="" />                        </div>
     </div>
     <div class="mcbox01">
    
                           <div class="mc01t2">
    
                               Usuarios On line
    
                           </div>
    
                           <div class="mc01cc">
    
    <p><i>Había <?php echo count($usersonline)?> usuario(s), y <?php echo count($guestsonline);?> visitante(s) On line hace <?php echo Config::Get('USERS_ONLINE_TIME')?> minutos.</i></p>
    
           <?php
           /* $usersonline also has the list of users -
                   really simple example
    
                   Or if you're not on the frontpage:
                   $usersonline = StatsData::UsersOnline();
    
    
           foreach($usersonline as $pilot) 
           {
                   echo "{$pilot->firstname} {$pilot->lastname}<br />";
           }
           */
           ?>
    
    
                               <div align="center"><img src="http://flygreenva.com/img_272.jpg" alt="" />                        </div>
     </div>
         </div>
    
    
     <div align="center">
          <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
        </div>
        <fb:like-box href="http://www.facebook.com/pages/Fly-Green-Virtual/233652459983234" width="205" show_faces="true" border_color="#298625" stream="false" header="false"></fb:like-box>
    
    </div>

    Kind Regards.

  2. Hello Mark,

    Yes, I have a problem with frontpage_main.tpl and I think that the problem is the '<div>'

    Picture:

    preuba.png

    CODE (frontpage_main.tpl):

    <div id="mainbox">
    <h3>Bienvenido a Fly Green Virtual<h3>
    </div>
    <div id="mainbox">
    <?php
           $flights = PIREPData::getRecentReportsByCount(10);                                                                      
           $string = "";
           foreach($flights as $flight)
           {       
                   $string = $string.$flight->depicao.'+-+'.$flight->arricao.',+';
           }                                                                       
    ?>
    
    <img src="http://www.gcmap.com/map?P=<?php echo $string ?>&MS=bm&MR=240&MX=650x360&PM=pemr:diamond7:red%2b%22%25I%22:red&PC=%230000ff" /><br />
                 Maps generated by the <a href="http://www.gcmap.com/">Great Circle Mapper</a> - copyright © <a href="http://www.kls2.com/~karl/">Karl L. Swartz</a> 
                 <div>    
                 </div>                     
    <div id="mainbox">
    <?php
    // Show the News module, call the function ShowNewsFront
    //	This is in the modules/Frontpage folder
    MainController::Run('News', 'ShowNewsFront', 5);
    ?>
    </div>
    
    
    <div id="sidebar">
    <div class="mcbox01">
    
                           <div class="mc01t2">
    
                               Acceso
    
                           </div>
    
                           <div class="mc01cc">
    
                               <p>
    
                               <?php 
    	/* 
    	Quick example of how to see if they're logged in or not
    	Only show this login form if they're logged in */
    	if(Auth::LoggedIn() == false)
    	{ ?>
    		<form name="loginform" action="<?php echo url('/login'); ?>" method="post">
    			<p>Log in to your pilot center or <a href="<?php echo url('/registration'); ?>">register</a><br />
    		<input type="text" name="email" value="Email/Pilot ID" onClick="this.value=''" />
    			</p>
    			<p>
    			  <input type="password" name="password" value="Password" />
    		  </p>
    			<p>
    			  <input type="hidden" name="remember" value="on" />
    			  <input type="hidden" name="redir" value="index.php/profile" />
    			  <input type="hidden" name="action" value="login" />
    			  <input type="submit" name="submit" value="Log In" />
    		  </p>
     </form>
    		<p>
    		<?php
    	}	
    	/* End the Auth::LoggedIn() if */
    	else /* else - they're logged in, so show some info about the pilot, and a few links */
    	{
    
    	/*	Auth::$userinfo has the information about the user currently logged in
    		We will use this next line - this gets their full pilot id, formatted properly */
    	$pilotid = PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid);
    	?>
    	    <strong>Pilot ID: </strong> <?php echo $pilotid ; ?>
    	    <strong>Rank: </strong><?php echo Auth::$userinfo->rank;?><br />
    	    <strong>Total Flights: </strong><?php echo Auth::$userinfo->totalflights?>, <strong>Total Hours: </strong><?php echo Auth::$userinfo->totalhours;?>
    	<br />
    	<a href="<?php echo url('/pireps/new');?>">File a New PIREP</a></p>
    		<p><a href="<?php echo url('/schedules/bids');?>">View My Bids</a></p>
    		<p><a href="<?php echo url('/profile/');?>">View Pilot Center</a><?php
    	} /* End the else */
    	?>
    
     </p>
    		<p>
    		  <?php MainController::Run('Mail', 'checkmail'); ?>
    		</p>
    
    
     <div class="mc01b">
    
                               <img src="http://flygreenva.com/img_272.jpg" alt="" />                        </div>
         </div>
    
    
    <div class="mcbox01">
    
                           <div class="mc01t2">
    
                                Spotting
    
                           </div>
    
                           <div class="mc01cc">
    
    <?php Screenshots::show_random_screenshot(); ?>
    
    
                               <div align="center"><img src="http://flygreenva.com/img_272.jpg" alt="" />                        </div>
     </div>
     <div class="mcbox01">
    
                           <div class="mc01t2">
    
                               Usuarios On line
    
                           </div>
    
                           <div class="mc01cc">
    
    <p><i>Había <?php echo count($usersonline)?> usuario(s), y <?php echo count($guestsonline);?> visitante(s) On line hace <?php echo Config::Get('USERS_ONLINE_TIME')?> minutos.</i></p>
    
    <?php
    /* $usersonline also has the list of users -
    	really simple example
    
    	Or if you're not on the frontpage:
    	$usersonline = StatsData::UsersOnline();
    
    
    foreach($usersonline as $pilot)	
    {
    	echo "{$pilot->firstname} {$pilot->lastname}<br />";
    }
    */
    ?>
    
    
                               <div align="center"><img src="http://flygreenva.com/img_272.jpg" alt="" />                        </div>
     </div>
         </div>
    
    
     <div align="center">
          <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
        </div>
        <fb:like-box href="http://www.facebook.com/pages/Fly-Green-Virtual/233652459983234" width="205" show_faces="true" border_color="#298625" stream="false" header="false"></fb:like-box>
    
    </div>

    Kind Regards.

×
×
  • Create New...