phpcompta-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpcompta-dev] r4174 - in phpcompta/trunk: html include


From: phpcompta-dev
Subject: [Phpcompta-dev] r4174 - in phpcompta/trunk: html include
Date: Wed, 29 Jun 2011 18:58:57 +0200 (CEST)

Author: danydb
Date: 2011-06-29 18:58:55 +0200 (Wed, 29 Jun 2011)
New Revision: 4174

Removed:
   phpcompta/trunk/html/show_tva.php
Modified:
   phpcompta/trunk/include/class_html_input.php
   phpcompta/trunk/include/constant.php
Log:
#318 remove code cleaning

Deleted: phpcompta/trunk/html/show_tva.php
===================================================================
--- phpcompta/trunk/html/show_tva.php   2011-06-29 16:50:38 UTC (rev 4173)
+++ phpcompta/trunk/html/show_tva.php   2011-06-29 16:58:55 UTC (rev 4174)
@@ -1,67 +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 address@hidden
-/* $Revision$ */
-/*! \file
- * \brief Popup window to let the user choose the vat
- */
-
-include_once ("ac_common.php");
-require_once('class_database.php');
-/* Admin. Dossier */
-$rep=new Database();
-include_once ("class_user.php");
-$User=new User($rep);
-$User->Check();
-require_once('class_dossier.php');
-$gDossier=dossier::id();
-
-html_min_page_start($User->theme,"onLoad='window.focus();'");
-?>
-<script>
-function GetIt(ctl,tva_id)
-{
-    set_inparent(ctl,tva_id);
-    window.close();
-}
-</script>
-<?php
-
-$condition="";
-$cn=new Database($gDossier);
-$Res=$cn->exec_sql("select * from tva_rate order by tva_rate desc");
-$Max=Database::num_row($Res);
-echo "<TABLE BORDER=\"1\">";
-for ($i=0;$i<$Max;$i++)
-{
-    $row=Database::fetch_array($Res,$i);
-    $set=sprintf( '<INPUT TYPE="BUTTON" class="button" Value="select" 
onClick="GetIt(\'%s\',\'%s\');">',
-                  $_GET['ctl'],$row['tva_id']);
-    printf("<tr><TD>%s %d</TD><TD>%s</TD><TD>%s</TD></TR>",
-           $set,
-           $row['tva_id'],
-           $row['tva_label'],
-           $row['tva_comment']);
-}
-echo '</TABLE>';
-?>
-<input type='button' class="button" Value="fermer" onClick='window.close();'>
-                                       <?php
-                                       html_page_stop();
-?>

Modified: phpcompta/trunk/include/class_html_input.php
===================================================================
--- phpcompta/trunk/include/class_html_input.php        2011-06-29 16:50:38 UTC 
(rev 4173)
+++ phpcompta/trunk/include/class_html_input.php        2011-06-29 16:58:55 UTC 
(rev 4174)
@@ -54,7 +54,6 @@
  *      - JS_SEARCH_ONLY like JS_SEARCH but without adding a quickcode
  *      - JS_LEDGER_CTRL like js_search_only but the tag to update is given
  *      - SPAN
- *      - JS_TVA        open a popup window for the VAT
  *      - JS_CONCERNED  open a popup window for search a operation, if extra 
== 0 then
  *                      get the amount thx javascript
  *      - js_DATE show a calendar

Modified: phpcompta/trunk/include/constant.php
===================================================================
--- phpcompta/trunk/include/constant.php        2011-06-29 16:50:38 UTC (rev 
4173)
+++ phpcompta/trunk/include/constant.php        2011-06-29 16:58:55 UTC (rev 
4174)
@@ -184,28 +184,7 @@
 define ("JS_COMPUTE_ODS",
         "<SCRIPT language=\"javascript\" src=\"js/compute.js\">        
</SCRIPT>");
 
-define ("JS_SHOW_TVA","<SCRIPT language=\"javascript\">
-        function ShowTva(p_dossier,ctl)
-        {
-        var 
win=window.open('show_tva.php?ctl='+ctl+'&gDossier='+p_dossier,'Montre','scrollbar,toolbar=no,width=300,height=300,resizable=yes');
-        }
-        function GetIt(ctl,tva_id) {
-        self.opener.SetValue(ctl,tva_id)
-        window.close();
-        }
-        </script>");
 
-define ("JS_TVA","<script  language=\"javascript\">
-        function ChangeTVA(p_ctl,p_value) {
-        if (document.getElementById(p_ctl) ) {
-        var f=document.getElementsByName(p_value);
-        for ( var i=0; i < f.length ; i++) {
-        document.getElementById(p_ctl).innerHTML=f[i].value;
-        }
-        }
-        }
-
-        </script>");
 define ("JS_AJAX_FICHE",'<script language="javascript" 
src="js/ajax_fiche.js"></script>');
 define ("JS_TODO",'<script language="javascript" 
src="js/todo_list.js"></script>');
 define ("JS_PROTOTYPE",'<script language="javascript" 
src="js/prototype.js"></script>');




reply via email to

[Prev in Thread] Current Thread [Next in Thread]