/[dolibarr]/dolibarr/htdocs/soc.php
ViewVC logotype

Diff of /dolibarr/htdocs/soc.php

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

revision 1.119 by eldy, Sat Aug 20 16:45:41 2005 UTC revision 1.120 by eldy, Sat Aug 20 16:52:28 2005 UTC
# Line 171  if ($_GET["action"] == 'create' || $_POS Line 171  if ($_GET["action"] == 'create' || $_POS
171              print '</div>';              print '</div>';
172          }          }
173            
174          include("./soc.js.php");          if ($conf->global->MAIN_AUTO_FILLTOWNFROMZIP)
175            {
176                include("./soc.js.php");
177            }
178            
179          print '<form action="soc.php" method="post" name="formsoc">';          print '<form action="soc.php" method="post" name="formsoc">';
180            
# Line 319  elseif ($_GET["action"] == 'edit') Line 322  elseif ($_GET["action"] == 'edit')
322    
323      if ($_GET["socid"])      if ($_GET["socid"])
324      {      {
325    
326            if ($conf->global->MAIN_AUTO_FILLTOWNFROMZIP)
327            {
328                include("./soc.js.php");
329            }
330    
331          if ($no_reload <> 1)          if ($no_reload <> 1)
332          {          {
333              $soc = new Societe($db);              $soc = new Societe($db);
# Line 333  elseif ($_GET["action"] == 'edit') Line 342  elseif ($_GET["action"] == 'edit')
342              print '</div>';              print '</div>';
343          }          }
344    
345          print '<form action="soc.php?socid='.$soc->id.'" method="post">';          print '<form action="soc.php?socid='.$soc->id.'" method="post" name="formsoc">';
346          print '<input type="hidden" name="action" value="update">';          print '<input type="hidden" name="action" value="update">';
347          print '<input type="hidden" name="codeclient_modifiable" value="'.$soc->codeclient_modifiable.'">';          print '<input type="hidden" name="codeclient_modifiable" value="'.$soc->codeclient_modifiable.'">';
348          print '<input type="hidden" name="codefournisseur_modifiable" value="'.$soc->codefournisseur_modifiable.'">';          print '<input type="hidden" name="codefournisseur_modifiable" value="'.$soc->codefournisseur_modifiable.'">';
# Line 383  elseif ($_GET["action"] == 'edit') Line 392  elseif ($_GET["action"] == 'edit')
392          print $soc->adresse;          print $soc->adresse;
393          print '</textarea></td></tr>';          print '</textarea></td></tr>';
394    
395          print '<tr><td>'.$langs->trans('Zip').'</td><td><input size="6" type="text" name="cp" value="'.$soc->cp.'"></td>';          print '<tr><td>'.$langs->trans('Zip').'</td><td><input size="6" type="text" name="cp" value="'.$soc->cp.'"';
396            if ($conf->global->MAIN_AUTO_FILLTOWNFROMZIP) print ' onblur="PopupPostalCode(cp.value,ville)"';
397            print '>';
398            if ($conf->global->MAIN_AUTO_FILLTOWNFROMZIP) print ' <input class="button" type="button" name="searchpostalcode" value="'.$langs->trans('FillTownFromZip').'" onclick="PopupPostalCode(cp.value,ville)">';
399            print '</td>';
400    
401          print '<td>'.$langs->trans('Town').'</td><td><input type="text" name="ville" value="'.$soc->ville.'"></td></tr>';          print '<td>'.$langs->trans('Town').'</td><td><input type="text" name="ville" value="'.$soc->ville.'"></td></tr>';
402    
403          print '<tr><td>'.$langs->trans('State').'</td><td colspan="3">';          print '<tr><td>'.$langs->trans('State').'</td><td colspan="3">';

Legend:
Removed from v.1.119  
changed lines
  Added in v.1.120

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