OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
VehicleManager component support
Go to bottom Favoured: 0
TOPIC: vehicle type
#1314
tracy14 (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
vehicle type 6 Years ago Karma: 0  
Just curious on how I can add what I want for the vehicle type. I do not like the ones that are in there and would like to put my own names in. I read some stuff on the forum but it did not make alot of sense to me.
 
Logged Logged  
  The administrator has disabled public write access.
#1317
admin (Admin)
Admin
Posts: 4861
graph
User Offline Click here to see the profile of this user
Re:vehicle type 6 Years ago Karma: 61  
Hi,

For add new "vehicle type" in vehicle Manager

Please open file admin.vehiclemanager.php
and find in it function: editVehicle

and in it change code:
Code:

//Select list for vehicle type
        $vehicletype[] = mosHtml::makeOption('sedan',_VEHICLE_MANAGER_OPTION_SEDAN);
        $vehicletype[] = mosHtml::makeOption('convertible',_VEHICLE_MANAGER_OPTION_CONVERTIBLE);
        $vehicletype[] = mosHtml::makeOption('coupe',_VEHICLE_MANAGER_OPTION_COUPE);
        $vehicletype[] = mosHtml::makeOption('crossover',_VEHICLE_MANAGER_OPTION_CROSSOVER);
        $vehicletype[] = mosHtml::makeOption('hatchback',_VEHICLE_MANAGER_OPTION_HATCHBACK);
        $vehicletype[] = mosHtml::makeOption('pickup',_VEHICLE_MANAGER_OPTION_PICKUP);
        $vehicletype[] = mosHtml::makeOption('suv',_VEHICLE_MANAGER_OPTION_SUV);
        $vehicletype[] = mosHtml::makeOption('truck',_VEHICLE_MANAGER_OPTION_TRUCK);
        $vehicletype[] = mosHtml::makeOption('wagon',_VEHICLE_MANAGER_OPTION_WAGON);
        $vehicle_type_list = mosHTML :: selectList($vehicletype, 'vtype', 'class="inputbox" size="1"', 'value', 'text', $vehicle->vtype);



Thanks,
OrdaSoft team
 
Logged Logged  
  The administrator has disabled public write access.
Go to top
What are you looking for?
Anti-spam question: How many eyes has a typical person?