Re: Added copy feature
Phil Dunford <pdunford <at> btg-secondary.lambeth.sch.uk>
2008-01-08 12:14:08 GMT
Excellent feature and very handy.
Is there a simple way to copy a whole day (all rooms, all bookings) and
paste it to another day. Would be very useful for me, but I'm very much a
PHP novice.
Phil Dunford
Bishop Thomas Grant School
-----Original Message-----
From: mrbs-general-bounces <at> lists.sourceforge.net
[mailto:mrbs-general-bounces <at> lists.sourceforge.net] On Behalf Of Julian
Egelstaff
Sent: 07 January 2008 18:17
To: mrbs-general <at> lists.sourceforge.net
Subject: [MRBS-general] Added copy feature
Hello,
We've recently added a feature to MRBS that lets you copy entries and
series, in addition to editing and deleting them. The modified files
are here: http://www.freeformsolutions.ca/temp/mrbs-copy_feature.zip
The changes were very minor, since the edit system is so cleanly
written, nice work!
Basically, we make two new links on the view_entry page, and those links
have a special flag parameter in the URL to indicate that the entry is
being copied (we used "clone" for the param name, since © in the URL
results in a copyright symbol appearing there).
Then, on the edit page, if the clone param is in the URL, we change the
text in the title of the page, and we omit the entry ID so the entry
handler treats the submission as a new entry. But since an ID was in
the URL, the form is populated with the data from the original entry.
Nice and elegant, and a neat new feature. I hope you find it useful and
perhaps can include it in a future release.
Feel free to get in touch if there's any questions.
--Julian
=============================================================
Julian Egelstaff ( Technical Architect ~ Web Applications
647 723-5415 x101 ) Freeform Solutions
=============================================================
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
mrbs-general mailing list
mrbs-general <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mrbs-general
..
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace