Clone a shortcut for a new project. I never thought about how to quickly copy one of the most common projects and then change it to a new group buying project? In other words, when editing an old project, you want to save it as a new project instead of having to think about how to quickly copy it out, and then change it to a new group buying project?
Or when editing an old project, you want to save it as a new project instead of a new project,
Check the red part
The specific development code (not detailed) is as follows:
Modify template, add button
Include/template/manage_team_edit.html
Add js to process cloneteam functions
Function cloneteam ()
{
Document. getElementById ('-user-form'). action = "/manage/team/edit. php? Clone = 1 ″;
Document. getElementById ('-user-form'). submit ();
}
Note clone = 1
In addition, the template is modified with several hidden Den contents to copy the image image1 image2 field of the old project.
Modify manage/team/edit. php
The original code is like this.
Now the code is like this
Why? Or when editing an old project, you want to save it as a new project instead...