diff --git a/html/admin/setup.js b/html/admin/setup.js new file mode 100644 index 000000000..dacc05dc3 --- /dev/null +++ b/html/admin/setup.js @@ -0,0 +1,11 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +content[200]="Indiquez ici le récuterpertoire où les documents temporaires peuvent être sauvés exemple c:/temp, /tmp" +content[201]="Désactiver le changement de langue (requis pour MacOSX)"; +content[202]="Le chemin vers le repertoire contenant psql, pg_dump..."; +content[203]="Utilisateur de la base de donnée postgresql"; +content[204]="Mot de passe de l'utilisateur "; +content[205]="Port de postgresql"; \ No newline at end of file diff --git a/html/admin/setup.php b/html/admin/setup.php index e03820c3e..78e46ac50 100644 --- a/html/admin/setup.php +++ b/html/admin/setup.php @@ -3,78 +3,11 @@ - ---> + + + + +

@@ -107,6 +40,12 @@ border:groove 2px blue; * This file is included in each release for a new upgrade * */ +?> +

+ + + +✖"; $succeed=""; $inc_path=get_include_path(); @@ -173,23 +112,24 @@ if (isset($_POST['save_config'])) { echo '
Les informations sont sauvées vous pouvez continuer - +
'; exit(); } if ( is_writable ('..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'constant.php') == false ) { - echo '

Ecriture non possible

On ne peut pas écrire dans le répertoire de phpcompta, changez-en les droits

'; + echo '

Ecriture non possible

On ne peut pas écrire dans le répertoire de phpcompta, changez-en les droits

'; exit(); } create_htaccess(); if ( ! file_exists('..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'config.inc.php')) { - echo '
'; echo '

Entrez les informations nécessaires à phpcompta

'; + echo ''; require_once('config_file.php'); - echo config_file_form(); + echo '
'; echo HtmlInput::submit('save_config','Sauver la configuration'); + echo ""; echo '
'; exit(); } @@ -337,7 +277,7 @@ if ( $version[0] < 8 || ) { ?> -

Vous devez absolument utiliser au minimum une version 8.4 de PostGresql, si votre distribution n'en +

Vous devez absolument utiliser au minimum une version 8.4 de PostGresql, si votre distribution n'en offre pas, installez en une en la compilant.

Lisez attentivement la notice sur postgresql.org pour migrer vos bases de données

@@ -352,7 +292,7 @@ vos bases de données $sql="select lanname from pg_language where lanname='plpgsql'"; $Res=$cn->count_sql($sql); if ( $Res==0) { ?> -

Vous devez installer le langage plpgsql pour permettre aux fonctions SQL de fonctionner.

+

Vous devez installer le langage plpgsql pour permettre aux fonctions SQL de fonctionner.

Pour cela, sur la ligne de commande en tant qu\'utilisateur postgres, faites createlang plpgsql template1

@@ -518,5 +458,5 @@ for ($e=0;$e < $MaxDossier;$e++) { if (! DEBUG) ob_end_clean(); echo "

Tout est installé $succeed"; ?> -Connectez-vous à PhpCompta

+Connectez-vous à PhpCompta diff --git a/html/admin/template_config_form.php b/html/admin/template_config_form.php new file mode 100644 index 000000000..bac8fdcc5 --- /dev/null +++ b/html/admin/template_config_form.php @@ -0,0 +1,69 @@ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Répertoire temporaire input(); echo HtmlInput::infobulle(200);?>
Changement de langue input();echo HtmlInput::infobulle(201)?>
Chemin complet vers les executable de Postgresql input();echo HtmlInput::infobulle(202)?>
Utilisateur de la base de donnée input();echo HtmlInput::infobulle(203)?>
Mot de passe de l'utilisateur input();echo HtmlInput::infobulle(204)?>
Port de postgresql input();echo HtmlInput::infobulle(205)?>
+
+
+ + Attention : si vous installez sous windows n'utilisez pas le \ mais plutôt le / dans les nom de répertoire (càd les chemins ou path) + +
\ No newline at end of file diff --git a/html/direct.php b/html/direct.php index 7f7274df5..c03e6ee2c 100644 --- a/html/direct.php +++ b/html/direct.php @@ -1,4 +1,4 @@ -input(); ?> - + diff --git a/include/ajax_add_menu.php b/include/ajax_add_menu.php index 9a235f731..2d1bc3338 100644 --- a/include/ajax_add_menu.php +++ b/include/ajax_add_menu.php @@ -70,34 +70,34 @@ $pm_default=new ICheckBox('pm_default'); echo HtmlInput::title_box("Nouveau menu", $ctl); ?>
- - + - + - - + + - + - + - +
Codeinput()?>input()?>
Dépendant de input()?>Dépendant de input()?>
Ordre d'apparitioninput()?>input()?>
Menu par défautinput()?>input()?>
Type de menuinput()?>input()?>
-'; } @@ -124,21 +124,21 @@ $me_code->value=$ame_code; } ?> - - - - - + + + + - +
Codeinput()?>input()?>
-'; } diff --git a/include/ajax_auto_anc_card.php b/include/ajax_auto_anc_card.php index a40ff9cfe..5dec00269 100644 --- a/include/ajax_auto_anc_card.php +++ b/include/ajax_auto_anc_card.php @@ -1,4 +1,4 @@ -get_array($sql,array($_GET['card'])); echo HtmlInput::title_box("Résultat recherche", "boxsearch_card_div"); $max=(count($array)>MAX_CARD_SEARCH)?MAX_CARD_SEARCH:count($array); ?> -MAX_CARD_SEARCH ): ?> -

Résultat limité à , nombre de fiches trouvées :

+MAX_CARD_SEARCH ): ?> +

Résultat limité à , nombre de fiches trouvées :

- + Filtre @@ -67,37 +67,37 @@ Filtre - +

Aucun résultat

- + - +
- + -   - +   + - + - + - + - +
- + diff --git a/include/ajax_get_menu_detail.php b/include/ajax_get_menu_detail.php index 4f517ed7a..2f88913d4 100644 --- a/include/ajax_get_menu_detail.php +++ b/include/ajax_get_menu_detail.php @@ -68,50 +68,50 @@ $pm_default->set_check($array[0]['pm_default']); ?> - - + + - + - - + - + - + - +
Codeinput()?>input()?>
Dépendant de input()?>input()?>
Ordre d'apparitioninput()?>input()?>
Menu par défautinput()?>input()?>

Cochez cette case si vous souhaitez effacer ce menu -input(); ?>

-

Cochez cette case si vous souhaitez effacer ce menu ainsi que ceux qui en dépendent -input(); ?>

- - +'; diff --git a/include/ajax_get_profile.php b/include/ajax_get_profile.php index 5b7dc4d32..a561b649e 100644 --- a/include/ajax_get_profile.php +++ b/include/ajax_get_profile.php @@ -35,16 +35,16 @@ $add_menu=HtmlInput::button("add", "Ajout Menu","onclick=\"add_menu({dossier:$gD $add_impression=HtmlInput::button("add", "Ajout Menu","onclick=\"add_menu({dossier:$gDossier,p_id:$p_id,type:'pr'})\""); ?>
-

Profil p_name?>

- 0 ) : ?> -  -  -  -   -  - +

Profil p_name?>

+ 0 ) : ?> +  +  +  +   +  + -p_id); $name=new IText("p_name",$profile->p_name); $desc=new IText("p_desc",$profile->p_desc); diff --git a/include/ajax_mod_stock_repo.php b/include/ajax_mod_stock_repo.php index 4bb467253..1f48bd639 100644 --- a/include/ajax_mod_stock_repo.php +++ b/include/ajax_mod_stock_repo.php @@ -30,16 +30,16 @@ require_once 'class_stock_sql.php'; $st=new Stock_Sql($_GET['r_id']); ?> - + - + @@ -47,7 +47,7 @@ $st=new Stock_Sql($_GET['r_id']); Adresse @@ -55,7 +55,7 @@ $st=new Stock_Sql($_GET['r_id']); Ville @@ -63,7 +63,7 @@ $st=new Stock_Sql($_GET['r_id']); Pays @@ -71,10 +71,10 @@ $st=new Stock_Sql($_GET['r_id']); Téléphone
Nom - r_name); echo $name->input();?> + r_name); echo $name->input();?>
- r_adress); echo $name->input();?> + r_adress); echo $name->input();?>
- r_city); echo $name->input();?> + r_city); echo $name->input();?>
- r_country); echo $name->input();?> + r_country); echo $name->input();?>
- r_phone); echo $name->input();?> + r_phone); echo $name->input();?>
- +
\ No newline at end of file diff --git a/include/ajax_plugin_detail.php b/include/ajax_plugin_detail.php index 54a212118..0a4866e6d 100644 --- a/include/ajax_plugin_detail.php +++ b/include/ajax_plugin_detail.php @@ -33,22 +33,22 @@ echo HtmlInput::title_box($msg, $ctl); - + - + - + - +
Labelinput();?>input();?>
Codeinput();?>input();?>
Descriptioninput();?>input();?>
Fichierinput();?>input();?>
- can_write_action($ag_id) == true || $g_user->can_read_action($ag_id $action=HtmlInput::array_to_string(array("gDossier","ag_id"), $_GET)."&ac=FOLLOW&sa=detail"; if ( $_GET['mod']== 1) : ?> -Modifier - " target="_blank" class="button">Modifier +

Accès interdit : vous n'avez pas accès à cette information, contactez votre responsable

; - input($p_array,true); ?>
- +

- label= "Cochez pour confirmer effacement "; echo $ck->input();?>

- - - + + +
diff --git a/include/audit_log.php b/include/audit_log.php index ec1cdf0fc..0ac20b7d0 100644 --- a/include/audit_log.php +++ b/include/audit_log.php @@ -47,23 +47,23 @@ $r=$cn->fetch($i); ?> - + - + - + - + -'; } ?> - + - diff --git a/include/bank.inc.php b/include/bank.inc.php index 7d9b52517..bb1931355 100644 --- a/include/bank.inc.php +++ b/include/bank.inc.php @@ -86,8 +86,8 @@ if ( $low_action == "list" ) echo _('Inclure les banques sans opération :').$nooperation->input(); ?> - - + +
  • - - ( ) - - + ( ) + + cn->exec_sql(" SELECT pm_id, pm.me_code, diff --git a/include/client.inc.php b/include/client.inc.php index 9dd7d48aa..57367a75e 100644 --- a/include/client.inc.php +++ b/include/client.inc.php @@ -84,8 +84,8 @@ if ($low_action == "list") echo _('Inclure les clients sans opération :') . $nooperation->input(); ?> - - + + size=25; - $r=''; - $r.='
    '; + $ictmp=new IText('ctmp',$ctmp); + $ictmp->size=25; - $r.='Répertoire temporaire : '; - $text->title='Indiquez ici le répertoire où les documents temporaires peuvent être sauvé exemple c:\\\\temp, /tmp'; - $r.=$text->input('ctmp',$ctmp); - $r.='(?)'; - $r.='
    '; + $iclocale=new ISelect('clocale'); + $iclocale->value=array( + array("value"=>1,"label"=>"Activé"), + array("value"=>0,"label"=>"Désactivé") + ); + $iclocale->selected=1; - $r.='Désactivation changement de langue: 1 activé, 0 désactivé '; - $text->title='Désactiver le changement de langue (requis pour MacOSX'; - $r.=$text->input('clocale',$clocale); - $r.='(?)'; - $r.='
    '; + $icpath=new IText("cpath",$cpath); + $icpath->size=30; - $r.='Chemin complet vers les executable de Postgresql : '; - $text->title='Le chemin vers le repertoire contenant psql, pg_dump...'; - $r.=$text->input('cpath',$cpath); - $r.='(?)'; - $r.='
    '; - $text->title="Utilisateur de la base de donnée postgresql"; - $r.='Utilisateur de la base de donnée : '; - $r.=$text->input('cuser',$cuser); - $r.='(?)'; - $r.='
    '; - $text->title="Mot de passe de l\' utilisateur"; - $r.='Mot de passe de l\'utilisateur : '; - $r.=$text->input('cpasswd',$cpasswd); - $r.='(?)'; - $r.='
    '; - $text->title="Port "; - $r.='Port de postgresql : '; - $r.=$text->input('cport',$cport); - $r.='(?)'; - $r.='
    '; - $r.='
    '; - return $r; + $icuser=new IText('cuser',$cuser); + $icpasswd=new IText('cpasswd',$cpasswd); + $icport=new IText("cport",$cport); + + require 'template_config_form.php'; } /*!\brief create the config file */ diff --git a/include/contact.inc.php b/include/contact.inc.php index 72bed0e68..33f0872b5 100644 --- a/include/contact.inc.php +++ b/include/contact.inc.php @@ -90,8 +90,8 @@ if ($low_action == "list") echo _('Société :') . $sl_company->input(); ?> - - + + get_array("select s_value,s_status from document_state order by 1") ?> - + - +
    - + - +

    Ajout d'un état

    - Nom de l'état input()?> + Nom de l'état input()?>

    - Cochez la case si cet état ferme une action input()?> - + Cochez la case si cet état ferme une action input()?> +

    \ No newline at end of file diff --git a/include/export_stock_resume_list.php b/include/export_stock_resume_list.php index d8557b0a8..8332c9d43 100644 --- a/include/export_stock_resume_list.php +++ b/include/export_stock_resume_list.php @@ -37,7 +37,7 @@ header('Content-Disposition: attachment;filename="stock-summary-list.csv"',FALSE ?> "Depot";"Adresse";"Ville";"Pays";"Code Stock";"Fiches";"IN";"OUT";"DIFF" -get_array("select distinct t.r_id,r_name,r_adress,r_city,r_country from stock_repository as s join tmp_stockgood_detail as t on (s.r_id=t.r_id) where diff --git a/include/fiche.inc.php b/include/fiche.inc.php index b1013721f..c070ce7ee 100644 --- a/include/fiche.inc.php +++ b/include/fiche.inc.php @@ -87,10 +87,10 @@ $search_card_js=sprintf('onclick="boxsearch_card(\'%d\')"',dossier::id()); ?>
    - :input()?> - + :input()?> +
    -'; $str = "if (g('histo').value==3 || g('histo').value== -1 ) { g('trstart').style.display='none';g('trend').style.display='none';g('allcard').style.display='none';} diff --git a/include/menu.inc.php b/include/menu.inc.php index fe6aaf25f..902033c9b 100644 --- a/include/menu.inc.php +++ b/include/menu.inc.php @@ -143,9 +143,9 @@ $ret=$menu->seek($sql.$order); ?>
    Recherche
    - input()?> - - + input()?> + +

    le type vaut : @@ -157,7 +157,7 @@ $ret=$menu->seek($sql.$order);

    - - + - + + - +
    Fiche (limite:) - + - - - + + + - - + + @@ -49,10 +49,10 @@ - + - +
    diff --git a/include/template/account_search.php b/include/template/account_search.php index 1186c28a2..be851f23c 100644 --- a/include/template/account_search.php +++ b/include/template/account_search.php @@ -1,3 +1,3 @@ - - - \ No newline at end of file + + + \ No newline at end of file diff --git a/include/template/action_button.php b/include/template/action_button.php index a34d68300..167b27a46 100644 --- a/include/template/action_button.php +++ b/include/template/action_button.php @@ -32,11 +32,11 @@
    - "> - + "> + - - + + diff --git a/include/template/action_search.php b/include/template/action_search.php index 753a1827f..2b0fa0b20 100644 --- a/include/template/action_search.php +++ b/include/template/action_search.php @@ -26,103 +26,103 @@ * */ ?> - +