phpcompta-dev
[Top][All Lists]
Advanced

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

[Phpcompta-dev] r272 - trunk/coprop/include


From: phpcompta-dev
Subject: [Phpcompta-dev] r272 - trunk/coprop/include
Date: Tue, 10 Jan 2012 21:03:17 +0100 (CET)

Author: danydb
Date: 2012-01-10 21:03:16 +0100 (Tue, 10 Jan 2012)
New Revision: 272

Modified:
   trunk/coprop/include/class_install_plugin.php
Log:
installation

Modified: trunk/coprop/include/class_install_plugin.php
===================================================================
--- trunk/coprop/include/class_install_plugin.php       2012-01-08 16:37:03 UTC 
(rev 271)
+++ trunk/coprop/include/class_install_plugin.php       2012-01-10 20:03:16 UTC 
(rev 272)
@@ -44,7 +44,10 @@
                // create the schema
                $this->create_schema();
                // create table + put default values
+               $this->create_card();
+
                $this->create_table_parameter();
+
                $this->cn->commit();
        }
 
@@ -52,7 +55,16 @@
        {
                $this->cn->exec_sql('create schema coprop');
        }
+       function create_card()
+       {
+       $sql="          insert into attr_def 
(ad_id,ad_text,ad_type,ad_size,ad_extra)
+               values  ('71','Copropriétaire','select','22','select 
f_id,vw_name from vw_fiche_attr where fd_id = 7 '),
+               ('70','Immeuble','select','22','select f_id,vw_name from 
vw_fiche_attr where fd_id = 21');";
+       // Create categorie pour lot immeuble et coprop
 
+       // creation vue (create_view_summary)
+
+       }
        function create_table_parameter()
        {
                $sql = <<<EOF
@@ -71,9 +83,7 @@
                        'categorie_immeuble' => 0,
                        'categorie_appel' => 0,
                        'poste_appel' => 0,
-                       'journal_appel' => 0,
-                       'id_immeuble'=>9002,
-                       'id_coprop'=>9003
+                       'journal_appel' => 0
                );
 
                foreach ($array as $code => $value)




reply via email to

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