Author: danydb Date: 2011-10-27 21:46:26 +0200 (Thu, 27 Oct 2011) New Revision: 4241
Removed: phpcompta/branches/rel600-dynamic-menu/html/compta.php phpcompta/branches/rel600-dynamic-menu/html/user_advanced.php phpcompta/branches/rel600-dynamic-menu/include/letter.inc.php Log: #241 : modularity : remove obsolete files Deleted: phpcompta/branches/rel600-dynamic-menu/html/compta.php =================================================================== --- phpcompta/branches/rel600-dynamic-menu/html/compta.php 2011-10-27 19:44:27 UTC (rev 4240) +++ phpcompta/branches/rel600-dynamic-menu/html/compta.php 2011-10-27 19:46:26 UTC (rev 4241) @@ -1,108 +0,0 @@ -<?php -/* - * This file is part of PhpCompta. - * - * PhpCompta is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * PhpCompta is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with PhpCompta; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -*/ -// Copyright Author Dany De Bontridder [email protected] - -/* $Revision$ */ - -/*! \file - * \brief Main page for accountancy - */ -require_once('class_dossier.php'); -require_once('user_common.php'); - -$gDossier=dossier::id(); -include_once ("ac_common.php"); -$action=(isset($_REQUEST['p_action']))?$_REQUEST['p_action']:''; -$use_html=1; -if ( ! isset ($_SESSION['g_theme'])) -{ - echo '<h2 class="error">'._(' Vous êtes déconnecté').'</h2>'; - redirect('index.php',1); - exit(); -} -//---------------------------------------------------------------------- - -require_once('class_database.php'); -/* Admin. Dossier */ -$cn=new Database($gDossier); - - -require_once ('class_user.php'); -$User=new User($cn); -$User->Check(); -if ($User->check_dossier($gDossier)=='P') -{ - redirect("extension.php?".dossier::get(),0); - exit(); -} -require_once ('function_javascript.php'); -html_page_start($_SESSION['g_theme']); -echo load_all_script(); -include_once ("user_menu.php"); -echo '<div class="u_tmenu">'; - -echo ShowMenuCompta("user_advanced.php?".dossier::get()); -echo js_include('anc_script.js'); -echo '</div>'; -// Get action - -// call impress sub-menu -if ( $action == 'impress' ) -{ - require_once('impress.inc.php'); -} - -if ( $action == 'fiche') -{ - - require_once('fiche.inc.php'); -} - -if ( $action == 'stock') -{ - require_once('stock.inc.php'); -} -if ( $action=='quick_writing') -{ - require_once 'compta_ods.inc.php'; -} -if ( $action == 'gl' ) -{ - require_once ('user_action_gl.php'); -} -if ( $action == 'ven' || - $action == 'client') -{ - require_once ('compta_ven.inc.php'); -} -if ( $action == 'ach' || - $action == 'fournisseur') -{ - require_once ('compta_ach.inc.php'); -} -if ( $action == 'fin') -{ - require_once ('compta_fin.inc.php'); -} -if ($action == 'let') -{ - require_once('letter.inc.php'); -} -html_page_stop(); -?> Deleted: phpcompta/branches/rel600-dynamic-menu/html/user_advanced.php =================================================================== --- phpcompta/branches/rel600-dynamic-menu/html/user_advanced.php 2011-10-27 19:44:27 UTC (rev 4240) +++ phpcompta/branches/rel600-dynamic-menu/html/user_advanced.php 2011-10-27 19:46:26 UTC (rev 4241) @@ -1,123 +0,0 @@ -<?php -/* - * This file is part of PHPCOMPTA - * - * PhpCompta is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * PhpCompta is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with PHPCOMPTA; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -*/ -// Auteur Dany De Bontridder [email protected] -include_once ("ac_common.php"); -require_once('class_dossier.php'); -require_once ('class_pre_operation.php'); -/* $Revision$ */ -/*! \file - * \brief call the different advanced parameters as report creation, periode, - * ... - */ -$gDossier=dossier::id(); - -html_page_start($_SESSION['g_theme']); - -require_once('class_database.php'); -/* Admin. Dossier */ -$rep=new Database(); -include_once ("class_user.php"); -$User=new User($rep); -$User->Check(); -$User->check_dossier(dossier::id()); -$cn=new Database(dossier::id()); -$User->db=$cn; - -require_once('class_database.php'); -require_once('class_ipopup.php'); -load_all_script(); -echo ICard::ipopup('ipopcard'); -echo IPoste::ipopup('ipop_account'); -$search_card=new IPopup('ipop_card'); -$search_card->title=_('Recherche de fiche'); -$search_card->value=''; -echo $search_card->input(); - - - -// We don't check permissions here in fact, permission are tested in the -// functions - -// Show the top menus -include_once ("user_menu.php"); -echo '<div class="u_tmenu">'; - - -echo ShowMenuCompta(7); -echo '</div>'; -$p_action=""; - - -$p_action=(isset($_REQUEST['p_action']))?$_REQUEST['p_action']:""; -switch ($p_action) -{ -case 'preod': - $high=9; - break; -case 'periode'; - $high=2; - break; -case 'verif'; - $high=10; - break; -case 'defreport': - $high=6; - break; -case 'ouv': - $high=8; - break; -default: - $high=0; - -} -echo ShowMenuAdvanced($high); - - -//-------------------------------------------------- -// Predefined operation -//-------------------------------------------------- - -if ($p_action=="preod") -{ - require_once('preod.inc.php'); - - exit(); -} -//---------------------------------------------------------------------- -// Verification solde -//---------------------------------------------------------------------- -if ( $p_action=='verif' ) -{ - require_once ('verif_bilan.inc.php'); - exit(); -} - -if ($p_action=='defreport') -{ - require_once('report.inc.php'); -} -/* -------------------------------------------------- -Import writing (opening exercice) --------------------------------------------------- */ -if ( $p_action == 'ouv') -{ - require_once('opening.inc.php'); -} -html_page_stop(); -?> Deleted: phpcompta/branches/rel600-dynamic-menu/include/letter.inc.php =================================================================== --- phpcompta/branches/rel600-dynamic-menu/include/letter.inc.php 2011-10-27 19:44:27 UTC (rev 4240) +++ phpcompta/branches/rel600-dynamic-menu/include/letter.inc.php 2011-10-27 19:46:26 UTC (rev 4241) @@ -1,56 +0,0 @@ -<?php -/* - * This file is part of PhpCompta. - * - * PhpCompta is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * PhpCompta is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with PhpCompta; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -*/ -/* $Revision$ */ - -// Copyright Author Dany De Bontridder [email protected] - -/*!\file - * \brief file to include for the "lettrage" (lettering?) - */ - -$array=array( - array('?'.dossier::get().'&p_action=let&sa=poste',_('Par poste'), - _('Lettrage par poste'), 1), - array('?'.dossier::get().'&p_action=let&sa=qc',_('Par fiche'), - _('Lettrage par fiche'), 2) - ); -$sa=(isset($_REQUEST['sa']))?$_REQUEST['sa']:0; -switch($sa) -{ -case 'poste': - $subdef=1; - break; -case 'qc': - $subdef=2; - break; -} -echo '<div class="lmenu">'; -echo ShowItem($array,'H','mtitle','mtitle',$subdef); -echo '</div>'; -if ($sa == 'poste') -{ - require_once('lettering.account.inc.php'); - exit; -} - -if ($sa=='qc') -{ - require_once('lettering.card.inc.php'); - exit; -} _______________________________________________ Phpcompta-dev mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/phpcompta-dev
