[phpwebapp-commits] CVS: top10/templates/edit_project edit_project_adm.js,1.1,1.1.2.1 edit_project.p
Brought to you by:
dashohoxha
From: Dashamir H. <das...@us...> - 2004-01-09 16:32:41
|
Update of /cvsroot/phpwebapp/top10/templates/edit_project In directory sc8-pr-cvs1:/tmp/cvs-serv27897/templates/edit_project Modified Files: Tag: maisp edit_project_adm.js edit_project.php edit_project.html edit_project.db Log Message: Index: edit_project_adm.js =================================================================== RCS file: /cvsroot/phpwebapp/top10/templates/edit_project/edit_project_adm.js,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** edit_project_adm.js 2 Oct 2003 07:09:40 -0000 1.1 --- edit_project_adm.js 9 Jan 2004 16:32:37 -0000 1.1.2.1 *************** *** 3,8 **** function send_to_user() { ! var username = prompt("Give the username to which you will send it:"); ! if (username==null) return; //canceled ! SendEvent("edit_project", "send_to_user", "username="+username); } --- 3,8 ---- function send_to_user() { ! var email = prompt("Give the e-mail to which you will send it:"); ! if (email==null) return; //canceled ! SendEvent("edit_project", "send_to_user", "email="+email); } Index: edit_project.php =================================================================== RCS file: /cvsroot/phpwebapp/top10/templates/edit_project/edit_project.php,v retrieving revision 1.5 retrieving revision 1.5.2.1 diff -C2 -d -r1.5 -r1.5.2.1 *** edit_project.php 5 Jan 2004 14:42:00 -0000 1.5 --- edit_project.php 9 Jan 2004 16:32:37 -0000 1.5.2.1 *************** *** 94,104 **** $this->setSVar("mode", "done"); ! //notification mesage to the user ! $msg = "Thank you for your submittion.\n" ! . "This project will be added in the list\n" ! . "after it is approved by the admin.\n" ! . "From now on it can be deleted or modified\n" ! . "only by admin: '".ADMIN_EMAIL."'."; ! WebApp::message($msg); } --- 94,107 ---- $this->setSVar("mode", "done"); ! if (ADMIN <> 'true') ! { ! //notification message to the user ! $msg = "Thank you for your submittion.\n" ! . "This project will be added in the list\n" ! . "after it is approved by the admin.\n" ! . "From now on it can be deleted or modified\n" ! . "only by admin: '".ADMIN_EMAIL."'."; ! WebApp::message($msg); ! } } *************** *** 107,111 **** if (ADMIN <> 'true') return; ! $username = $event_args["username"]; $proj_id = $this->getSVar("proj_id"); --- 110,114 ---- if (ADMIN <> 'true') return; ! $email = $event_args["email"]; $proj_id = $this->getSVar("proj_id"); *************** *** 115,124 **** //insert in DB a request with the same id as above $ip = $_SERVER["REMOTE_ADDR"]; ! $params = compact("request_id", "ip", "username", "proj_id"); WebApp::execDBCmd("insert_request", $params); //send a notification e-mail to the user $to = "dasho"; ! //$to = $username."@users.sourceforge.net"; $subject = "Top10: Modify Project '$proj_id'"; $admin_mail = ADMIN_EMAIL; --- 118,127 ---- //insert in DB a request with the same id as above $ip = $_SERVER["REMOTE_ADDR"]; ! $params = compact("request_id", "ip", "email", "proj_id"); WebApp::execDBCmd("insert_request", $params); //send a notification e-mail to the user $to = "dasho"; ! //$to = $email; $subject = "Top10: Modify Project '$proj_id'"; $admin_mail = ADMIN_EMAIL; *************** *** 139,143 **** //display a confirmation message $msg = "Project '$proj_id' has been sent for editing\n" ! . " to $use...@us... .\n"; WebApp::message($msg); } --- 142,146 ---- //display a confirmation message $msg = "Project '$proj_id' has been sent for editing\n" ! . " to $email .\n"; WebApp::message($msg); } *************** *** 175,184 **** "proj_id" => "", "proj_name" => "", ! "group_id" => "", ! "register_date" => date("Y-m-d"), "license" => "GPL", "prog_lang" => "PHP", "category" => "", ! "members" => "usr1,usr2,usr3", "proj_descr" => "" ); --- 178,189 ---- "proj_id" => "", "proj_name" => "", ! "url1" => "Project Homepage", ! "url2" => "Development Page", ! //"group_id" => "", ! //"register_date" => date("Y-m-d"), "license" => "GPL", "prog_lang" => "PHP", "category" => "", ! "members" => "email1,email2,email3", "proj_descr" => "" ); Index: edit_project.html =================================================================== RCS file: /cvsroot/phpwebapp/top10/templates/edit_project/edit_project.html,v retrieving revision 1.4 retrieving revision 1.4.2.1 diff -C2 -d -r1.4 -r1.4.2.1 *** edit_project.html 25 Dec 2003 15:35:46 -0000 1.4 --- edit_project.html 9 Jan 2004 16:32:37 -0000 1.4.2.1 *************** *** 30,33 **** --- 30,34 ---- </td> </tr> + <!--# <tr> <td bgcolor="eeeeee">SourceForge group id:</td> *************** *** 37,40 **** --- 38,55 ---- </td> </tr> + #--> + <tr> + <td bgcolor="eeeeee">URL1:</td> + <td bgcolor="#ffffff"> + <input type="text" size="70" name="url1" value="{{url1}}"> + </td> + </tr> + <tr> + <td bgcolor="eeeeee">URL2:</td> + <td bgcolor="#ffffff"> + <input type="text" size="70" name="url2" value="{{url2}}"> + </td> + </tr> + <!--# <tr> <td bgcolor="eeeeee">Register Date:</td> *************** *** 45,48 **** --- 60,64 ---- </td> </tr> + #--> <tr> <td bgcolor="eeeeee">License:</td> Index: edit_project.db =================================================================== RCS file: /cvsroot/phpwebapp/top10/templates/edit_project/edit_project.db,v retrieving revision 1.4 retrieving revision 1.4.2.1 diff -C2 -d -r1.4 -r1.4.2.1 *** edit_project.db 5 Jan 2004 14:42:00 -0000 1.4 --- edit_project.db 9 Jan 2004 16:32:37 -0000 1.4.2.1 *************** *** 29,39 **** proj_name = '{{proj_name}}', proj_descr = '{{proj_descr}}', category = '{{category}}', license = '{{license}}', prog_lang = '{{prog_lang}}', ! register_date = '{{register_date}}', ! group_id = '{{group_id}}', points = 0, nr_comments = 0, status = 'new' </Query> --- 29,41 ---- proj_name = '{{proj_name}}', proj_descr = '{{proj_descr}}', + url1 = '{{url1}}', + url2 = '{{url2}}', category = '{{category}}', license = '{{license}}', prog_lang = '{{prog_lang}}', ! -- group_id = '{{group_id}}', points = 0, nr_comments = 0, + register_date = NOW(), status = 'new' </Query> *************** *** 46,54 **** proj_name = '{{proj_name}}', proj_descr = '{{proj_descr}}', category = '{{category}}', license = '{{license}}', ! prog_lang = '{{prog_lang}}', ! register_date = '{{register_date}}', ! group_id = '{{group_id}}' WHERE proj_id = '{{edit_project->proj_id}}' </Query> --- 48,58 ---- proj_name = '{{proj_name}}', proj_descr = '{{proj_descr}}', + url1 = '{{url1}}', + url2 = '{{url2}}', category = '{{category}}', license = '{{license}}', ! prog_lang = '{{prog_lang}}' ! -- register_date = '{{register_date}}', ! -- group_id = '{{group_id}}' WHERE proj_id = '{{edit_project->proj_id}}' </Query> *************** *** 75,79 **** request_id = '{{request_id}}', time = NOW(), ! username = '{{username}}', ip = '{{ip}}', type = 'edit_proj_details', --- 79,83 ---- request_id = '{{request_id}}', time = NOW(), ! username = '{{email}}', ip = '{{ip}}', type = 'edit_proj_details', |