Welcome, Guest
Please Login or Register.    Lost Password?

row and col numbers / german date form
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: row and col numbers / german date form
#1198
row and col numbers / german date form 1 Year, 9 Months ago Karma: 0
Hi mylansite users

I´ve two little problems and need your help.


I don't want rows and cols in the seatmap to begin with the starting number "0" but with "1".


I'd like to have the german date form (DD:MM:YYYY H:I:S) when I put the mouse over (hoover) a reserved seat in the seatmap.


Where and how I can change this?
Migru
Migru
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1199
Re:row and col numbers / german date form 1 Year, 9 Months ago Karma: 9
For the date:
check mls_seatmap.php line 353. Then you just combine this with a bit of strtotime() and date() to get whatever you want.

For the row/column numbers:
check mls_seatmap.html.php line 94. Change:
Code:

<td align="center" style="spacing: 1px; padding: 0px;<?php echo $style;?>"><small><?php echo $col?></small></td>


to:

Code:

<td align="center" style="spacing: 1px; padding: 0px;<?php echo $style;?>"><small><?php echo $col + 1?></small></td>


And on line 108 change:
Code:

<td align="right" style="spacing: 1px; padding: 0px;<?php echo $style;?>"><small><?php echo $row?></small></td>


to:

Code:

<td align="right" style="spacing: 1px; padding: 0px;<?php echo $style;?>"><small><?php echo $row+1?></small></td>
moensch
moensch
Administrator
Posts: 678
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1288
Re:row and col numbers / german date form 1 Year, 9 Months ago Karma: 0
Thank you, it works but just in the Frontend.
In the Frontend the seating plan is shown with row "1" and col "1" starting.

Unfortunately the correlation in the Backend is not right.
In the formular components >Seatmap > Seats > Seats the rows and cols still begin with "0" so that the correlation of the seats does not accord with the seating plan in the fronted.

Example:

Seatmap (Frontend)

User 1 – reserve - Seat col „1“ – row „1“ OK

Seats (Backend)

User 1 – reserve - Seat col „0“ – row „0“

That means User 1 has the wrong seat

also the "Seat-Details" in the reservation form do not accord.

Wouldn't it be better or rather easier to change the numeration for col and row in components > myLansite Seatmap > Rooms > Edit Map

Sorry for my english, Answers possible in german too, thank you
Migru
Migru
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1289
Re:row and col numbers / german date form 1 Year, 9 Months ago Karma: 9
Technically, you should NOT rely on the row/col numbers for your seats.

There is a function in the back end "Assign Names". You should use this to give each seat a unique name.

Let me know if you need more information about this option.
moensch
moensch
Administrator
Posts: 678
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1591
Re:row and col numbers / german date form 1 Year, 2 Months ago Karma: 0
Wie und wo kann ich in der "Seat-Details"-Anzeige:

Status:Reserved
Name:
IP-Address:
Reserved by: User1
Reserved at: 2010-11-11 23:14:39
Reserved until: 2010-11-15 23:14:39


die Datums-/Zeitanzeige in "d-m-Y H:i:s" umwandeln ?
Bodo58
Bodo58
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: moensch