OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
Year of issue where to add more (0 viewing) 

VehicleManager component support

Go to bottom Favoured: 1

Year of issue where to add more

info@multiapp.gr (User)
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
Year of issue where to add more 10 Years, 11 Months ago
Karma: 0  
Hi,

Where to add more year of issue or even remove some?
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8230
graph
User Offline Click here to see the profile of this user
Re:Year of issue where to add more 10 Years, 11 Months ago
Karma: 101  
Hello,

For create Year in Vhicle manager responsible code:

Code:

<td valign="top" align="right">
                <strong><?php echo _VEHICLE_MANAGER_LABEL_ISSUE_YEAR;?>:</strong>
            </td>
            <td align="left">
              <select name="year" id="year" class="inputbox" size="1" >

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

it located in admin part at file:
{yours site}/administrator/components/com_vehiclemanager/admin.vehiclemanager.html.php

as you see we take Year - from current site date.

Thanks,
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
seoa (Visitor)
Posts: 0
graphgraph
User Offline
Re:Year of issue where to add more 10 Years, 7 Months ago
Karma: 0  
Ok, so how do you add model years for a year that hasn't happened yet? My customer is selling 2014 models, how do I insert that??
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8230
graph
User Offline Click here to see the profile of this user
Re:Year of issue where to add more 10 Years, 7 Months ago
Karma: 101  
Hello,

Ok, so how do you add model years for a year that hasn't happened yet in vehicle manager? My customer is selling 2014 models, how do I insert that??

You need in file:
{site}/administrator/components/com_vehiclemanager/vehiclemanager.html.php

find code look like:

Code:

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



replace row
Code:

for($i= 0;$num<=date('Y');$i++)


to
Code:

for($i= 0;$num<=date('Y')+1;$i++)


Thanks,
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
bshea (User)
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
Re:Year of issue where to add more 8 Years ago
Karma: 0  
This code only worked when I updated vehiclemanager.html.php in administrator/compontents/com_vehiclemanger

Code:

for($i= 0;$num<=date('Y')+1;$i++)
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:Year of issue where to add more 8 Years ago
Karma: 58  
Hello,

That code was for old version of component.

So, do you have any other question?

Do you need any help?

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