startpoint
Active Member
I want to make application for user orders. Each order will have several fields. Each order must have uploaded images from the user. After sending the user should be able to reorder the uploaded images. Possible to adjust certain amounts already filled fields. Once everything is OK to finalize your order. Then you can not edit, but can only delete it or create a new order.
I created these two lists:
1) list 'tp_order'
id, date_time, username, status ... some fields
2) list 'tp_images'
id, date_time, order_id, ordering, image_upload
Element 'order_id' from list 'tp_images' now database joined with the element 'id' from list 'tp_order'.
IN list 'tp_order' in tab Data-> Releated Data I set to 'yes' link to list 'Images'. Thus created the column 'Images For Order'. Through it can be added a new image to the order . After selecting a image and then 'save' the user is redirected to the list of orders. Furthermore, there is a link to a list of all images from this order, where user can delete a image or all images and to change their order with handle.
The idea that I want to accomplish is the following:
- User can create a new order by filling in the required fields - done;
- See only their orders - done;
- User can add a number of images to a order (eg 5). After reaching the maximum can not add another;
- Images must be saved in a folder with value from element 'order_id';
- To list 'tp_order' I added php plugin, which created a button to each row of the list with name 'Send Order'. He must be inactive. After reaching the maximum number of images, button should become active. It would have to be displayed in read-only data form with order and her images, must have explanatory text and a button through which to finalize the order by sending a e-mail to user and site administrator and set element 'Status' to 'closed' and order row must to be read-only.
Share how you can implement the project. If there is an easier way I tried it.
All your help is important for me.
?ccess data for my site is filled in the section "My sites".
Logins for details and test:
user: test
pwd: test
I created these two lists:
1) list 'tp_order'
id, date_time, username, status ... some fields
2) list 'tp_images'
id, date_time, order_id, ordering, image_upload
Element 'order_id' from list 'tp_images' now database joined with the element 'id' from list 'tp_order'.
IN list 'tp_order' in tab Data-> Releated Data I set to 'yes' link to list 'Images'. Thus created the column 'Images For Order'. Through it can be added a new image to the order . After selecting a image and then 'save' the user is redirected to the list of orders. Furthermore, there is a link to a list of all images from this order, where user can delete a image or all images and to change their order with handle.
The idea that I want to accomplish is the following:
- User can create a new order by filling in the required fields - done;
- See only their orders - done;
- User can add a number of images to a order (eg 5). After reaching the maximum can not add another;
- Images must be saved in a folder with value from element 'order_id';
- To list 'tp_order' I added php plugin, which created a button to each row of the list with name 'Send Order'. He must be inactive. After reaching the maximum number of images, button should become active. It would have to be displayed in read-only data form with order and her images, must have explanatory text and a button through which to finalize the order by sending a e-mail to user and site administrator and set element 'Status' to 'closed' and order row must to be read-only.
Share how you can implement the project. If there is an easier way I tried it.
All your help is important for me.
?ccess data for my site is filled in the section "My sites".
Logins for details and test:
user: test
pwd: test