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

VehicleManager component support

Go to bottom Favoured: 0

Vehicle type

tracy14 (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
vehicle type 14 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.
admin (Admin)
Admin
Posts: 8367
graph
User Offline Click here to see the profile of this user
Re:vehicle type 14 Years ago
Karma: 102  
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
»