/[dolibarr]/dolibarr/htdocs/comm/propal.php
ViewVC logotype

Diff of /dolibarr/htdocs/comm/propal.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.128 by eldy, Mon Sep 26 22:34:51 2005 UTC revision 1.129 by eldy, Sat Oct 8 15:54:08 2005 UTC
# Line 423  if ($_GET['propalid'] > 0) Line 423  if ($_GET['propalid'] > 0)
423     */     */
424    if ($_GET['action'] == 'validate')    if ($_GET['action'] == 'validate')
425      {      {
426        $html->form_confirm('propal.php?propalid='.$propal->id, $langs->trans('ValidateProp'), $langs->trans('ConfirmvalidateProp'), 'confirm_validate');        $html->form_confirm('propal.php?propalid='.$propal->id, $langs->trans('ValidateProp'), $langs->trans('ConfirmValidateProp'), 'confirm_validate');
427        print '<br>';        print '<br>';
428      }      }
429    
# Line 739  if ($_GET['propalid'] > 0) Line 739  if ($_GET['propalid'] > 0)
739                              print ' - '.stripslashes(nl2br($objp->product));                              print ' - '.stripslashes(nl2br($objp->product));
740                              print '<br>';                              print '<br>';
741                          }                          }
742                          print '<textarea name="desc" cols="50" rows="1">'.stripslashes($objp->description).'</textarea></td>';                          print '<textarea name="desc" cols="50" rows="'.ROWS_2.'">'.stripslashes($objp->description).'</textarea></td>';
743                          print '<td align="right">';                          print '<td align="right">';
744                          print $html->select_tva("tva_tx",$objp->tva_tx);                          print $html->select_tva("tva_tx",$objp->tva_tx);
745                          print '</td>';                          print '</td>';
# Line 798  if ($_GET['propalid'] > 0) Line 798  if ($_GET['propalid'] > 0)
798            
799                  $var=true;                  $var=true;
800                  print '<tr '.$bc[$var].">\n";                  print '<tr '.$bc[$var].">\n";
801                  print '  <td><textarea cols="50" name="np_desc" rows="1"></textarea></td>';                  print '  <td><textarea cols="50" name="np_desc" rows="'.ROWS_2.'"></textarea></td>';
802                  print '  <td align="center">';                  print '  <td align="center">';
803                  print $html->select_tva('np_tva_tx', $conf->defaulttx) . "</td>\n";                  $html->select_tva('np_tva_tx', $conf->defaulttx) . "</td>\n";
804                  print '  <td align="right"><input type="text" size="5" name="np_price"></td>';                  print '  <td align="right"><input type="text" size="5" name="np_price"></td>';
805                  print '  <td align="right"><input type="text" size="2" value="1" name="np_qty"></td>';                  print '  <td align="right"><input type="text" size="2" value="1" name="np_qty"></td>';
806                  print '  <td align="right" nowrap><input type="text" size="2" value="'.$societe->remise_client.'" name="np_remise">%</td>';                  print '  <td align="right" nowrap><input type="text" size="2" value="'.$societe->remise_client.'" name="np_remise">%</td>';
# Line 810  if ($_GET['propalid'] > 0) Line 810  if ($_GET['propalid'] > 0)
810                  print '</form>';                  print '</form>';
811            
812                  // Ajout de produits/services prédéfinis                  // Ajout de produits/services prédéfinis
813                  print '<form action="propal.php?propalid='.$propal->id.'" method="post">';                  if ($conf->produit->enabled)
814                  print '<input type="hidden" name="propalid" value="'.$propal->id.'">';                  {
815                  print '<input type="hidden" name="action" value="addligne">';                      print '<form action="propal.php?propalid='.$propal->id.'" method="post">';
816                            print '<input type="hidden" name="propalid" value="'.$propal->id.'">';
817                  $var=!$var;                      print '<input type="hidden" name="action" value="addligne">';
818                  print '<tr '.$bc[$var].'>';          
819                  print '<td colspan="2">';                      $var=!$var;
820                  $html->select_produits('','idprod','',20);                      print '<tr '.$bc[$var].'>';
821                  print '<br>';                      print '<td colspan="2">';
822                  print '<textarea cols="50" name="np_desc" rows="1"></textarea>';                      $html->select_produits('','idprod','',$conf->produit->limit_size);
823                  print '</td>';                      print '<br>';
824                  print '<td>&nbsp;</td>';                      print '<textarea cols="50" name="np_desc" rows="'.ROWS_2.'"></textarea>';
825                  print '<td align="right"><input type="text" size="2" name="qty" value="1"></td>';                      print '</td>';
826                  print '<td align="right" nowrap><input type="text" size="2" name="remise" value="'.$societe->remise_client.'">%</td>';                      print '<td>&nbsp;</td>';
827                  print '<td align="center" colspan="3"><input type="submit" class="button" value="'.$langs->trans("Add").'" name="addligne"></td>';                      print '<td align="right"><input type="text" size="2" name="qty" value="1"></td>';
828                  print "</tr>\n";                      print '<td align="right" nowrap><input type="text" size="2" name="remise" value="'.$societe->remise_client.'">%</td>';
829                            print '<td align="center" colspan="3"><input type="submit" class="button" value="'.$langs->trans("Add").'" name="addligne"></td>';
830                  print '</form>';                      print "</tr>\n";
831            
832                        print '</form>';
833                    }
834              }              }
835            
836              print '</table>';              print '</table>';
# Line 848  if ($_GET['propalid'] > 0) Line 851  if ($_GET['propalid'] > 0)
851      {      {
852        print '<form action="propal.php?propalid='.$propal->id.'" method="post">';        print '<form action="propal.php?propalid='.$propal->id.'" method="post">';
853        print '<table class="border" width="100%">';        print '<table class="border" width="100%">';
854        print '<tr><td>'.$langs->trans('Note').'</td><td><textarea cols="60" rows="2" wrap="soft" name="note">';        print '<tr><td>'.$langs->trans('Note').'</td><td><textarea cols="60" rows="'.ROWS_3.'" wrap="soft" name="note">';
855        print $propal->note;        print $propal->note;
856        print '</textarea></td></tr>';        print '</textarea></td></tr>';
857        print '<tr><td>'.$langs->trans("CloseAs").'</td><td>';        print '<tr><td>'.$langs->trans("CloseAs").'</td><td>';

Legend:
Removed from v.1.128  
changed lines
  Added in v.1.129

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26