[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r280 - trunk/coprop/include
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r280 - trunk/coprop/include |
Date: |
Thu, 12 Jan 2012 11:43:13 +0100 (CET) |
Author: danydb
Date: 2012-01-12 11:43:13 +0100 (Thu, 12 Jan 2012)
New Revision: 280
Modified:
trunk/coprop/include/appel_fond.inc.php
Log:
format code
Modified: trunk/coprop/include/appel_fond.inc.php
===================================================================
--- trunk/coprop/include/appel_fond.inc.php 2012-01-11 20:25:38 UTC (rev
279)
+++ trunk/coprop/include/appel_fond.inc.php 2012-01-12 10:43:13 UTC (rev
280)
@@ -26,64 +26,64 @@
* @brief génére écriture comptable pour appel de fond
*
*/
-global $cn,$g_copro_parameter;
+global $cn, $g_copro_parameter;
extract($_GET);
-if ( isset($genere ))
+if (isset($genere))
{
- // Génére écriture comptable dans journal choisi
-} else
+ // Génére écriture comptable dans journal choisi
+}
+else
{
- $date=new IDate('p_date');
- $amount=new INum('amount');
+ $date = new IDate('p_date');
+ $amount = new INum('amount');
- $ledger=new Acc_Ledger($cn,0);
- $led_appel_fond=$ledger->select_ledger('ODS',3);
- $led_appel_fond->selected=$g_copro_parameter->journal_appel;
- $copro=new ICard();
- $categorie_appel=new ICard();
- $categorie_appel->label=" Appel de fond : ".HtmlInput::infobulle(0) ;
- $categorie_appel->name="w_categorie_appel";
- $categorie_appel->tabindex=1;
- $categorie_appel->value="";
- $categorie_appel->table=0;
+ $ledger = new Acc_Ledger($cn, 0);
+ $led_appel_fond = $ledger->select_ledger('ODS', 3);
+ $led_appel_fond->selected = $g_copro_parameter->journal_appel;
+ $copro = new ICard();
+ $categorie_appel = new ICard();
+ $categorie_appel->label = " Appel de fond : " . HtmlInput::infobulle(0);
+ $categorie_appel->name = "w_categorie_appel";
+ $categorie_appel->tabindex = 1;
+ $categorie_appel->value = "";
+ $categorie_appel->table = 0;
- // name of the field to update with the name of the card
- $categorie_appel->set_attribute('label','w_categorie_appel_label');
- // Type of card : deb, cred,
-
$categorie_appel->set_attribute('typecard',$g_copro_parameter->categorie_appel);
+ // name of the field to update with the name of the card
+ $categorie_appel->set_attribute('label', 'w_categorie_appel_label');
+ // Type of card : deb, cred,
+ $categorie_appel->set_attribute('typecard',
$g_copro_parameter->categorie_appel);
- $categorie_appel->extra=$g_copro_parameter->categorie_appel;
+ $categorie_appel->extra = $g_copro_parameter->categorie_appel;
// Add the callback function to filter the card on the jrn
- $categorie_appel->set_callback('filter_card');
- $categorie_appel->set_attribute('ipopup','ipopcard');
+ $categorie_appel->set_callback('filter_card');
+ $categorie_appel->set_attribute('ipopup', 'ipopcard');
// when value selected in the autcomplete
- $categorie_appel->set_function('fill_data');
+ $categorie_appel->set_function('fill_data');
// when the data change
- $categorie_appel->javascript=sprintf('
onchange="fill_data_onchange(\'%s\');" ',
- $categorie_appel->name);
- $categorie_appel->set_dblclick("fill_ipopcard(this);");
+ $categorie_appel->javascript = sprintf('
onchange="fill_data_onchange(\'%s\');" ', $categorie_appel->name);
+ $categorie_appel->set_dblclick("fill_ipopcard(this);");
- $categorie_appel_label=new ISpan();
- $categorie_appel_label->table=0;
-
$f_categorie_appel_label=$categorie_appel_label->input("w_categorie_appel_label","");
+ $categorie_appel_label = new ISpan();
+ $categorie_appel_label->table = 0;
+ $f_categorie_appel_label =
$categorie_appel_label->input("w_categorie_appel_label", "");
// Search button for card
- $f_categorie_appel_bt=$categorie_appel->search();
+ $f_categorie_appel_bt = $categorie_appel->search();
- $key=new ISelect("key");
- $key->value=$cn->make_array("select cr_id,cr_name from
coprop.clef_repartition");
+ $key = new ISelect("key");
+ $key->value = $cn->make_array("select cr_id,cr_name from
coprop.clef_repartition");
- $f_add_button=new IButton('add_card');
- $f_add_button->label=_('Nouvelle fiche ');
- $f_add_button->set_attribute('ipopup','ipop_newcard');
- $f_add_button->set_attribute('jrn',-1);
- $filter=$g_copro_parameter->categorie_appel;
- $f_add_button->javascript="
this.filter='$filter';this.jrn=-1;select_card_type(this);";
- $str_add_appel= $f_add_button->input();
+ $f_add_button = new IButton('add_card');
+ $f_add_button->label = _('Nouvelle fiche ');
+ $f_add_button->set_attribute('ipopup', 'ipop_newcard');
+ $f_add_button->set_attribute('jrn', -1);
+ $filter = $g_copro_parameter->categorie_appel;
+ $f_add_button->javascript = "
this.filter='$filter';this.jrn=-1;select_card_type(this);";
+ $str_add_appel = $f_add_button->input();
- require_once 'template/appel_fond.php';
+ require_once 'template/appel_fond.php';
}
?>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpcompta-dev] r280 - trunk/coprop/include,
phpcompta-dev <=