[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] projects/inc/class.uiprojects.inc.php, 1.140
From: |
nomail |
Subject: |
[Phpgroupware-cvs] projects/inc/class.uiprojects.inc.php, 1.140 |
Date: |
Fri, 21 May 2004 21:23:21 -0000 |
Update of /projects/inc
Modified Files:
Branch:
class.uiprojects.inc.php
date: 2004/04/28 13:34:48; author: ceb; state: Exp; lines: +19 -3
Log Message:
update
=====================================================================
Index: projects/inc/class.uiprojects.inc.php
diff -u projects/inc/class.uiprojects.inc.php:1.139
projects/inc/class.uiprojects.inc.php:1.140
--- projects/inc/class.uiprojects.inc.php:1.139 Tue Apr 20 12:42:14 2004
+++ projects/inc/class.uiprojects.inc.php Wed Apr 28 13:34:48 2004
@@ -59,6 +59,7 @@
$this->boprojects =
CreateObject('projects.boprojects',True, $action);
$this->nextmatchs =
CreateObject('phpgwapi.nextmatchs');
$this->sbox
= CreateObject('phpgwapi.sbox');
+ $this->attachedFiles =
CreateObject('projects.attachedFiles');
$this->start =
$this->boprojects->start;
$this->query =
$this->boprojects->query;
@@ -287,6 +288,7 @@
function list_projects()
{
+
$action = get_var('action',array('POST','GET'));
$pro_main =
get_var('pro_main',array('POST','GET'));
@@ -330,6 +332,8 @@
$GLOBALS['phpgw']->template->set_var('number_main',$main['number']);
$GLOBALS['phpgw']->template->set_var('customer_main',$main['customerout']);
$GLOBALS['phpgw']->template->set_var('url_main',$main['url']);
+
$GLOBALS['phpgw']->template->set_var('attachment',$this->attachedFiles->get_files($pro_main));
+
$GLOBALS['phpgw']->template->set_var('lang_files',lang('Files'));
$GLOBALS['phpgw']->template->parse('main','project_main',True);
}
@@ -725,7 +729,7 @@
}
function edit_project()
- {
+ {
$action =
get_var('action',array('GET','POST'));
$pro_main =
get_var('pro_main',array('GET','POST'));
$pro_parent =
get_var('pro_parent',array('GET','POST'));
@@ -765,7 +769,8 @@
}
else
{
- $project_id =
$this->boprojects->save_project($action, $values);
+ $project_id =
$this->boprojects->save_project($action, $values);
+
$this->attachedFiles->save_file($project_id);
$link_data['project_id'] = $project_id;
if($_POST['save'])
{
@@ -1136,6 +1141,12 @@
$GLOBALS['phpgw']->template->set_var('result',$values['result']);
$GLOBALS['phpgw']->template->set_var('test',$values['test']);
$GLOBALS['phpgw']->template->set_var('quality',$values['quality']);
+
+
$GLOBALS['phpgw']->template->set_var('attachment',$this->attachedFiles->get_files($project_id,
true));
+
$GLOBALS['phpgw']->template->set_var('lang_files',lang('Files'));
+
$GLOBALS['phpgw']->template->set_var('lang_attach',lang('Attach File'));
+
+
//--------- coordinator -------------
@@ -1264,6 +1275,7 @@
$this->display_app_header();
}
+
$GLOBALS['phpgw']->template->set_file(array('view' =>
'view.tpl'));
$GLOBALS['phpgw']->template->set_block('view','sub','subhandle');
$GLOBALS['phpgw']->template->set_block('view','accounting_act','acthandle');
@@ -1451,6 +1463,9 @@
$GLOBALS['phpgw']->template->set_var('edit_roles_events_button','<input
type="submit" name="roles" value="' . lang('edit roles and events') .'">');
}
}
+
+
$GLOBALS['phpgw']->template->set_var('attachment',$this->attachedFiles->get_files($project_id));
+
$GLOBALS['phpgw']->template->set_var('lang_files',lang('Files'));
$GLOBALS['phpgw']->template->set_var('ownhandle','');
$GLOBALS['phpgw']->template->set_var('acthandle','');
$GLOBALS['phpgw']->template->set_var('bothhandle','');
@@ -1485,6 +1500,7 @@
if ($_POST['yes'])
{
+ $this->attachedFiles->delete_file($pa_id);
$this->boprojects->delete_project($pa_id,(isset($_POST['subs'])?True:False));
$GLOBALS['phpgw']->redirect_link('/index.php',$link_data);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] projects/inc/class.uiprojects.inc.php, 1.140,
nomail <=