$form = new Form('fileUploadForm');
$form->addInput(array('type'=>'hidden','name'=>'id','value'=>$cl_project_id));
$form = new Form('fileUploadForm');
$form->addInput(array('type'=>'hidden','name'=>'id','value'=>$cl_project_id));
$fields = array('entity_type'=>'project',
'entity_id' => $cl_project_id,
'file_name' => $_FILES['newfile']['name'],
'description'=>$cl_description);
$fields = array('entity_type'=>'project',
'entity_id' => $cl_project_id,
'file_name' => $_FILES['newfile']['name'],
'description'=>$cl_description);
$smarty->assign('can_manage', $user->can('manage_projects'));
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('files', $files);
$smarty->assign('can_manage', $user->can('manage_projects'));
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('files', $files);
$smarty->assign('content_page_name', 'project_files.tpl');
$smarty->display('index.tpl');
$smarty->assign('content_page_name', 'project_files.tpl');
$smarty->display('index.tpl');