AW: [Mrbs-general] Editing problem with a twist
Brought to you by:
jberanek
From: Jochen H. <joc...@we...> - 2002-09-26 15:46:37
|
I also have found a bug, When i insert a new reservation for a room, I only can delete this reservation. Ican=B4t modify my entry. If i try to modify th entry i get an PHP error that say tha "Headers were already sent" Any ideas ? maybe ist a known bug ... but I don=B4t know how to fix it Greez=20 Jochen=20 -----Urspr=FCngliche Nachricht----- Von: mrb...@li... [mailto:mrb...@li...] Im Auftrag von Phil Greer Gesendet: Donnerstag, 26. September 2002 13:43 An: mc_...@ci...; mrb...@li... Betreff: Re: [Mrbs-general] Editing problem with a twist After this message you will find a mail I sent to the list over a month ago that seems to have gotten lost in the "new" archive under another thread. =20 see if this info will help -Phil Greer On 9/26/02 4:39 AM, "mc_...@ci..." <mc_...@ci...> wrote: > I=B4ve got the same editing problem as many others here, but I ran = into a little > twist within it. I used Victor=B4s way of fixing the problem: >=20 > "Thanks Marcel, but I still had to change =B4if ($row[0] =3D=3D = $room)=B4 into =B4if > ($row[0] =3D=3D $room_id)=B4 > (located in the room selectbox area in edit_entry.php) > to get the right room selected." >=20 > The twist is that this fix seems to work for one area, not fot multiple areas. > Meaning that that now I can edit bookings made to floor 1=B4s meeting rooms, but > if I try to edit bookings in second floor=B4s (other area) meeting = rooms I still > get the same error messages as before. >=20 > Any ideas? >=20 > ---------------------------------------------------------------------- > City-lehti proudly presents: Uuden sukupolven soitto=E4=E4net! > Ensimm=E4isen=E4 Suomessa! K=E4y testaamassa = http://www.city.fi/mobile/poly ------ Forwarded Message From: Phil Greer <gr...@mr...> Date: Tue, 20 Aug 2002 13:36:07 -0400 To: <mrb...@li...> Subject: Re: [Mrbs-general] edit entry on in default area I think I have found a bug. when you have more than one area, and you wish to edit an entry in an area that is not in the default area, the room box comes up with the wrong room choices. (all from the default area [1]). so, I think what is needed is that instead of the default lines from edit_entry.php, we need to do a lookup on the area_id from the mrbs_room table or send the area_id in the header from view_entry. I think this is the easier method this entails adding another lookup row in the select statement. passing the value of the new row to $area_id and then sending with the edit_entry.php commands -Phil J Greer CODE BELOW THIS LINE ------------------------------------------------- SELECT mrbs_entry.name, mrbs_entry.description, mrbs_entry.create_by, mrbs_room.room_name, mrbs_area.area_name, mrbs_entry.type, mrbs_entry.room_id, mrbs_entry.repeat_id, " . sql_syntax_timestamp_to_unix("mrbs_entry.timestamp") . ", (mrbs_entry.end_time - mrbs_entry.start_time), mrbs_entry.start_time, mrbs_entry.end_time, mrbs_room.area_id =20 FROM mrbs_entry, mrbs_room, mrbs_area WHERE mrbs_entry.room_id =3D mrbs_room.id AND mrbs_room.area_id =3D mrbs_area.id AND mrbs_entry.id=3D$id "; $area_id =3D $row[12]; <a href=3D"edit_entry.php?area=3D<? echo $area_id ?>&id=3D<? echo $id = ?>"><? echo $vocab["editentry"] ?></a> <? if($repeat_id) echo " - <a href=3D\"edit_entry.php?area=3D$area_id&id=3D$id&edit_type=3Dseries&day=3D= $day&mon th=3D$ month&year=3D$year\">$vocab[editseries]</a>"; ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=3Dsourceforge1&refcode1=3Dvs3390 _______________________________________________ Mrbs-general mailing list Mrb...@li... https://lists.sourceforge.net/lists/listinfo/mrbs-general ------ End of Forwarded Message ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Mrbs-general mailing list Mrb...@li... https://lists.sourceforge.net/lists/listinfo/mrbs-general |