window.location = "'.$contribution_url.'"; '; } else { $h2o = H2o_collection::get_instance($include_path .'/templates/contribution_area/contribution_areas.tpl.html'); print $h2o->render(array('areas' => $areas)); } break; case 'contribution_area_list' : if ($id_empr) { $template_path = $include_path .'/templates/contribution_area/contribution_areas_list.tpl.html'; if (file_exists($include_path .'/templates/contribution_area/contribution_areas_list_subst.tpl.html')) { $template_path = $include_path .'/templates/contribution_area/contribution_areas_list_subst.tpl.html'; } $h2o = H2o_collection::get_instance($template_path); print $h2o->render(array( 'forms' => contribution_area_forms_controller::get_empr_forms($id_empr), 'contribution_area_done' => false, 'is_draft' => false, 'redirect' => $lvl, 'check_ids' => $check_ids )); } break; case 'contribution_area_list_draft' : if ($id_empr) { $template_path = $include_path .'/templates/contribution_area/contribution_areas_list.tpl.html'; if (file_exists($include_path .'/templates/contribution_area/contribution_areas_list_subst.tpl.html')) { $template_path = $include_path .'/templates/contribution_area/contribution_areas_list_subst.tpl.html'; } $h2o = H2o_collection::get_instance($template_path);print $h2o->render(array( 'forms' => contribution_area_forms_controller::get_empr_forms($id_empr, false, (!empty($last_id) ? $last_id : 0), true), 'contribution_area_done' => false, 'is_draft' => true, 'redirect' => $lvl, 'check_ids' => $check_ids )); } break; case 'contribution_area_done' : if ($id_empr) { $template_path = $include_path .'/templates/contribution_area/contribution_areas_list_done.tpl.html'; if (file_exists($include_path .'/templates/contribution_area/contribution_areas_list_done_subst.tpl.html')) { $template_path = $include_path .'/templates/contribution_area/contribution_areas_list_done_subst.tpl.html'; } $h2o = H2o_collection::get_instance($template_path); print $h2o->render(array( 'forms' => contribution_area_forms_controller::get_empr_forms_done($id_empr, (!empty($last_id) ? $last_id : 0)), 'redirect' => $lvl, )); } break; case 'contribution_area_moderation' : global $gestion_acces_active, $gestion_acces_contribution_moderator_empr; if ($id_empr && ($gestion_acces_active == 1) && ($gestion_acces_contribution_moderator_empr == 1)) { $h2o = H2o_collection::get_instance($include_path .'/templates/contribution_area/contribution_areas_list.tpl.html'); print $h2o->render(array( 'forms' => contribution_area_forms_controller::get_moderation_forms($id_empr), 'contribution_area_done' => false, 'is_draft' => false, 'redirect' => $lvl, 'check_ids' => $check_ids )); } else { print $msg['empr_contribution_area_unauthorized']; } break; } ?>