Jump to content

mattia

Members
  • Posts

    267
  • Joined

  • Last visited

Posts posted by mattia

  1. ok sorry for the wait

    check in your profile_main.tpl

    search this

    <strong>My Awards</strong><br />
    		<?php
    		if(!$allawards)
    		{
    			echo 'No awards yet';
    		}
    		else
    		{
    
    		?>	

    and after delete all and add this:

    <?php 
    
    $break = 5;
    $i=0;
    
    foreach($allawards as $award){ ?>
    
    
    <img src="<?php echo $award->image?>" title="<?php echo $award->descrip?>" />
    
    <?php 
    
    {
       $i++;
    
       if($i%$break == 0)
           echo "<br />";
    
    
    }
    
    ?>

    my full code is:

    <p>
    
    		<strong>My Awards</strong><br />
    		<?php
    		if(!$allawards)
    		{
    			echo 'No awards yet';
    		}
    		else
    		{
    
    		?>	
    
    
    
    <?php 
    
    $break = 5;
    $i=0;
    
    foreach($allawards as $award){ ?>
    
    <img src="<?php echo $award->image?>" title="<?php echo $award->descrip?>" />
    
    <?php 
    
    {
       $i++;
    
       if($i%$break == 0)
           echo "<br />";
    
    
    }
    
    ?>
    			<?php } ?>
    
    
    
    		<?php
    		}
    		?>
    	</p>
    
    </td>
    
    </tr>
    </table>
    </div>
    </div>

    • Like 1
  2. This is the link:

    www.yoursite.com/index.php/pilotshop/pilotHomePage

    in my pilot center (profile_main.tpl) I added this:

    <li><a href="<?php echo url('/PilotShop/pilotHomePage'); ?>">View My purchases</a></li>

    • Like 1
  3. Hi Nabel

    i found a error in your code

    your code:

    $break = 5;
    $i=0;
    
    // This loop should already be there
    foreach (.....)
    {
    
       if($i%$break == 0)
           echo "<br />";
    
       $i++;
    }

    my correction:

    $break = 5;
    $i=0;
    
    // This loop should already be there
    foreach (.....)
    {
       $i++;
    
       if($i%$break == 0)
           echo "<br />";
    
    
    }

  4. hi all

    you can order the list of pending pirep for the submission date in descending order (DESC)

    If anyone can please help, i will be eternally grateful. I'm fairly sure it's an easy fix, but anything I've tried hasn't worked.

    sorry for my English

  5. Hi All

    is possible add in the admin center new group permission for "addons"?

    i have add this code but doesn't work

    <?php 
    if(PilotGroups::group_has_perm(Auth::$usergroups, FULL_ADMIN)
    if(strlen($MODULE_NAV_INC) > 0)
    {
    ?>
    <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>
    <?php
    }
    ?>

    in my case only FULL_AMDIM may view the "Addons"

    Best regards

    Mattia

  6. Try this:

    This is an example for the proposed schedule

    <body>
    <form action="mailto:YOUR EMAIL@.COM?subject=YOUR SUBJECT" method="post" id="miomodulo" enctype="text/plain">
    
    <label for="nome"><font color=yellow><b>DEPP ICAO</b></font></label><br />
    <input type="text" id="DEPP ICAO" name="DEPP ICAO" size="20" />
    <br />
    <br />
    <label for="cognome"><font color=yellow><b>ARR ICAO</b></font></label><br />
    <input type="text" id="ARR ICAO" name=ARR ICAO" size="20" />
    <br />
    <br />
    <label for="parere"><font color=yellow><b>DEP TIME</b></font></label><br />
    <input type="text" id="DEP TIME" name="DEP TIME" size="20" />
    <br />
    <br />
    <label for="parere"><font color=yellow><b>ARR TIME</b></font></label><br />
    <input type="text" id="ARR TIME" name="ARR TIME" size="20" />
    <br />
    <br />
    <label for="parere"><font color=yellow><b>Flight Time:</b></font></label> <br />
    <input type="text" id="Flight Time:" name="Flight Time:" size="20" />
    <br />
    <br />
    
    <font color=yellow><b>Days of Week:</b></font>
    <br />
    
    <label for="parere"><font color=yellow>sunday:</label>
    <input type="Checkbox" id="sunday" name="sunday" size="20" />
    
    <label for="parere">monday:</label>
    <input type="Checkbox" id="monday" name="monday" size="20" />
    
    <label for="parere">tuesday:</label>
    <input type="Checkbox" id="tuesday" name="tuesday" size="20" />
    
    <label for="parere">Wednesday:</label>
    <input type="Checkbox" id="Wednesday" name="Wednesday" size="20" />
    
    <label for="parere">Thursday :</label>
    <input type="Checkbox" id="Thursday " name="Thursday " size="20" />
    
    <label for="parere">Friday :</label>
    <input type="Checkbox" id="Friday " name="Friday " size="20" />
    
    <label for="parere">Saturday :</font></label>
    <input type="Checkbox" id="Saturday " name="Saturday " size="10" />
    <br />
    <br />
    
    <font color=yellow><b>Equipment: :</b></font><br />
    <SELECT size=1 cols=4 NAME="Equipment">
    <OPTION value=YOUR AIRCRAFT CODE > YOUR AIRCRAFT CODE
    
    </select>
    <br />
    <br />
    <label for="parere"><font color=yellow><b>FLIGHT LEVEL:</b></font></label><br />
    <input type="text" id="FLIGHT LEVEL" name="FLIGHT LEVEL" size="20" />
    <br />
    <br />
    
    <font color=yellow><b>Flight Type:</b></font><br />
    <SELECT size=1 cols=4 NAME="Flight Type">
    <OPTION value=Passenger> Passenger
    <OPTION value=Cargo> Cargo
    </select>
    <br />
    <br />
    <label for="parere"><font color=yellow><b>price:</b></font></label><br />
    <input type="text" id="Price" name="price" size="20" />
    <br />
    <br />
    
    <font color=yellow><b>Route</b></font> <br />
    <textarea cols="50" rows="4" WRAP="physical" name="Routes
    "></textarea>
    <br />
    <br />
    
    <font color=yellow><b>Notes</b></font><br />
    <textarea cols="50" rows="4" WRAP="physical" name="Notes
    "></textarea>
    <br />
    <br />
    
    <input type="submit" value="send" />
    <input type="reset" value="delete" />
    </form>
    </body>
    

×
×
  • Create New...