Author: danydb
Date: 2012-03-22 21:34:46 +0100 (Thu, 22 Mar 2012)
New Revision: 304
Modified:
tag/rel601/coprop/include/ajax_bud_display.php
tag/rel601/coprop/include/budget.inc.php
tag/rel601/coprop/include/class_copro_budget.php
Log:
0000554: COPROP : dans budget ajouter bouton ajout charge
Modified: tag/rel601/coprop/include/ajax_bud_display.php
===================================================================
--- tag/rel601/coprop/include/ajax_bud_display.php 2012-02-11 19:31:50 UTC
(rev 303)
+++ tag/rel601/coprop/include/ajax_bud_display.php 2012-03-22 20:34:46 UTC
(rev 304)
@@ -4,9 +4,11 @@
*/
require_once 'class_copro_budget.php';
+
+echo '<form id="fbud_update" method="post">';
$bud=new Copro_Budget();
$bud->b_id=$bud_id;
-echo '<form id="fbud_update" method="post">';
+
$bud->detail();
echo HtmlInput::submit("bud_update","Valider");
echo "</form>";
Modified: tag/rel601/coprop/include/budget.inc.php
===================================================================
--- tag/rel601/coprop/include/budget.inc.php 2012-02-11 19:31:50 UTC (rev
303)
+++ tag/rel601/coprop/include/budget.inc.php 2012-03-22 20:34:46 UTC (rev
304)
@@ -13,11 +13,12 @@
}
+echo '<div id="bud_list" class="content">';
-echo '<div id="bud_list" class="content">';
$bud->to_list();
echo HtmlInput::button("bud_add_bt","Ajout
Budget","onclick=\"budget_add('".$_REQUEST['gDossier']."','".$_REQUEST['plugin_code']."','".$_REQUEST['ac']."')\"");
echo '</div>';
+
?>
<div id="divbuddetail">
Modified: tag/rel601/coprop/include/class_copro_budget.php
===================================================================
--- tag/rel601/coprop/include/class_copro_budget.php 2012-02-11 19:31:50 UTC
(rev 303)
+++ tag/rel601/coprop/include/class_copro_budget.php 2012-03-22 20:34:46 UTC
(rev 304)
@@ -91,6 +91,15 @@
$a_key=$cn->make_array(" select cr_id,cr_name from
coprop.clef_repartition order by cr_name");
$max=count($array);
+
+ // Ajout bouton ajout charge
+ $f_add_button=new IButton('add_card');
+ $f_add_button->label=_('Créer une nouvelle fiche');
+ $f_add_button->set_attribute('ipopup','ipop_newcard');
+ $f_add_button->set_attribute('jrn',-1);
+ $filter=$cn->make_list("select fd_id from fiche_def
where frd_id=2");
+ $f_add_button->javascript="
this.filter='$filter';this.jrn=-1;select_card_type(this);";
+ echo $f_add_button->input();
for ($i=0;$i<MAXROWBUD;$i++)
{
$label=new IText('bt_label[]');
---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu
_______________________________________________
Phpcompta est un logiciel libre de comptabilité en ligne
(http://www.phpcompta.eu)
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev