Hi.. I have some issue with hide button...I have on list page button .. when my employees press it I got email that job accepted. and I need after it button is hide and they start follow instruction on job.i have table:
id,
CompanyName,
ChauffeurName,
ChauffeurShortName,
ChauffeurE-Mail
,
Job,
Date
,
JobDay,
Misc,
PassengerName,
Extras,
AddStop1,
AddStop2,
AddStop3,
AddStop4,
Cars,
PassengerQuantity,
Fare,
NoShow,
Confirmation,
AirportName,
AirportCode,
AirlineName,
AirlineCode,
AirlineCountry,
AirlineDoorNumber,
FlightNumber,
ArlineInfo,
AirlinePickUp,
AirportName1,
AirportCode1,
AirlineName1,
AirlineCode1,
AirlineCountry1,
FlightNumber1,
AirlineDoorNumber1,
ArlineInfoDo,
AirlineDropOff,
PortName,
PortCode,
CruiseLine,
CruiseLineCode,
ShipName,
Terminal,
PortPickUp,
PortName1,
PortCode1,
CruiseLine1,
CruiseLineCode1,
ShipName1,
Terminal1,
PortDropOff,
HotelName,
BuildingNumber,
StreetName,
City,
State
,
ZipCode,
HotelPickup,
HotelName1,
BuildingNumber1,
StreetName1,
City1,
State1,
ZipCode1,
HotelDropOff,
RideDetails,
SpecialReguirments,
Quantity,
Name,
[u][color="#FF0000"]CurrentStatus,
Time
,
CurrentStatus1,
Time1,
CurrentStatus2,
Time2,
CurrentStatus3,
Time3,
Hourly,
FareByHour,
WatingTime,
Picture,
Express Line
,
Tolls,
Parking,
Comments,
Completed,
DateCompleted,
ForDate,
ForPassenger,
ForPickUp,
ForDropOff,
ForCar,
ForFlight,
ForStatus,
ForPassengers,
ForCurrency,
ForMisc,
ForExtras,
ForConfirmation,
ForRideDetails,
ForMitting,
PortInfo,
PortInfoDo,
JobsTime,
PassengerMitting,
PickUpFrom,
DropOffTo
FROM AdminJobs
I try to use code:
on editor:::
{BEGIN Accept_Job}
<A class="rnr-button btn btn-default" id="New_Button2" href="#" typeid="ib">
Accept Job
</A>
{END Accept_Job}
and event:after record processed:
if ($data['CurrentStatus']!=1)
$record["Accept_Job"]=true;
button still visible
when I change Current Status=0, after I add new record button still invisible, if Status=1 it visible.
Help me please