OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?

VehicleManager component support

Go to bottom Favoured: 0

ISSUE_YEAR descending

redmac (Visitor)
Posts: 0
graphgraph
User Offline
Re:ISSUE_YEAR descending 8 Years ago
Karma: 0  
Ah, sorry. I was referring to adding years.
As mentioned, this code works for me. The $num line differs.

Code:

        <?php
        echo "<option value=''>";
        echo _VEHICLE_MANAGER_OPTION_SELECT;
        echo "</option>";
        $num =  date('Y');
        for ($i = 0; $num >= 1990 ; $i++) {
            echo "<option value="";
            echo $num;
            echo """;
            if ($num == $row->year)
            {
                echo " selected= "true" ";
            }
            echo ">";
            echo $num;
            echo "</option>";
            $num--;
        }
        ?>

Logged Logged
The administrator has disabled public write access.
01system (User)
Senior Boarder
Posts: 47
graphgraph
User Offline Click here to see the profile of this user
Re:ISSUE_YEAR descending 8 Years ago
Karma: 0  
It doesn't form me, i get a white page in the back-end.

The original code inside "../web/administrator/components/com_vehiclemanager/vehiclemanager.html.php" is:

Code:


      <?php
      echo "<option value=''>";
      echo _VEHICLE_MANAGER_OPTION_SELECT;
      echo "</option>";
      $num = 1900;
      for ($i = 0; $num <= date('Y'); $i++) {
          echo "<option value="";
          echo $num;
          echo """;
          if ($num == $row->year)
          {
              echo " selected= "true" ";
          }
          echo ">";
          echo $num;
          echo "</option>";
          $num++;
      }
      ?>

Logged Logged
The administrator has disabled public write access.
Taras (User)
Platinum Boarder
Posts: 2857
graphgraph
User Offline Click here to see the profile of this user
Re:ISSUE_YEAR descending 8 Years ago
Karma: 58  
Hello,
You can write on our contact form and we will help you with your issue.

ordasoft.com/contact-us-form

Thanks,
Taras
OrdaSoft team.
Logged Logged
The administrator has disabled public write access.
01system (User)
Senior Boarder
Posts: 47
graphgraph
User Offline Click here to see the profile of this user
Re:ISSUE_YEAR descending 8 Years ago
Karma: 0  
Admin access sent, thanks
Logged Logged
The administrator has disabled public write access.
Taras (User)
Platinum Boarder
Posts: 2857
graphgraph
User Offline Click here to see the profile of this user
Re:ISSUE_YEAR descending 8 Years ago
Karma: 58  
Could you send it again from other email.

We have no got any email.

thanks
Taras
Logged Logged
The administrator has disabled public write access.
Go to top
»