';
print '';
print $langs->trans('PaymentConditions');
@@ -304,11 +304,11 @@ if ($socid > 0)
print ' ';
if ($_GET['action'] == 'editconditions')
{
- $html->form_conditions_reglement($_SERVER['PHP_SELF'].'?socid='.$objsoc->id,$objsoc->cond_reglement,'cond_reglement_id',-1,1);
+ $form->form_conditions_reglement($_SERVER['PHP_SELF'].'?socid='.$objsoc->id,$objsoc->cond_reglement,'cond_reglement_id',-1,1);
}
else
{
- $html->form_conditions_reglement($_SERVER['PHP_SELF'].'?socid='.$objsoc->id,$objsoc->cond_reglement,'none');
+ $form->form_conditions_reglement($_SERVER['PHP_SELF'].'?socid='.$objsoc->id,$objsoc->cond_reglement,'none');
}
print " ";
print ' ';
@@ -323,11 +323,11 @@ if ($socid > 0)
print '';
if ($_GET['action'] == 'editmode')
{
- $html->form_modes_reglement($_SERVER['PHP_SELF'].'?socid='.$objsoc->id,$objsoc->mode_reglement,'mode_reglement_id');
+ $form->form_modes_reglement($_SERVER['PHP_SELF'].'?socid='.$objsoc->id,$objsoc->mode_reglement,'mode_reglement_id');
}
else
{
- $html->form_modes_reglement($_SERVER['PHP_SELF'].'?socid='.$objsoc->id,$objsoc->mode_reglement,'none');
+ $form->form_modes_reglement($_SERVER['PHP_SELF'].'?socid='.$objsoc->id,$objsoc->mode_reglement,'none');
}
print " ";
print '';
diff --git a/htdocs/comm/index.php b/htdocs/comm/index.php
index 234ffddbfcd..b220e311ed7 100644
--- a/htdocs/comm/index.php
+++ b/htdocs/comm/index.php
@@ -78,7 +78,7 @@ if (isset($_GET["action"]) && $_GET["action"] == 'del_bookmark')
$now=dol_now();
-$html = new Form($db);
+$form = new Form($db);
$formfile = new FormFile($db);
$companystatic=new Societe($db);
if ($conf->propal->enabled) $propalstatic=new Propal($db);
diff --git a/htdocs/comm/mailing/cibles.php b/htdocs/comm/mailing/cibles.php
index 8b4516bfd63..b4d9aa44d4d 100644
--- a/htdocs/comm/mailing/cibles.php
+++ b/htdocs/comm/mailing/cibles.php
@@ -158,7 +158,7 @@ if ($_POST["button_removefilter"])
llxHeader('',$langs->trans("Mailing"),'EN:Module_EMailing|FR:Module_Mailing|ES:Módulo_Mailing');
-$html = new Form($db);
+$form = new Form($db);
$mil = new Mailing($db);
@@ -173,7 +173,7 @@ if ($mil->fetch($_REQUEST["id"]) >= 0)
print ''.$langs->trans("Ref").' ';
print '';
- print $html->showrefnav($mil,'id');
+ print $form->showrefnav($mil,'id');
print ' ';
print ''.$langs->trans("MailTitle").' '.$mil->titre.' ';
@@ -195,7 +195,7 @@ if ($mil->fetch($_REQUEST["id"]) >= 0)
if (!empty($conf->global->MAILING_LIMIT_SENDBYWEB) && $conf->global->MAILING_LIMIT_SENDBYWEB < $nbemail)
{
$text=$langs->trans('LimitSendingEmailing',$conf->global->MAILING_LIMIT_SENDBYWEB);
- print $html->textwithpicto($nbemail,$text,1,'warning');
+ print $form->textwithpicto($nbemail,$text,1,'warning');
}
else
{
diff --git a/htdocs/comm/mailing/fiche.php b/htdocs/comm/mailing/fiche.php
index 6628b385e9a..b1f625a3475 100644
--- a/htdocs/comm/mailing/fiche.php
+++ b/htdocs/comm/mailing/fiche.php
@@ -596,7 +596,7 @@ if (! empty($_POST["cancel"]))
$help_url='EN:Module_EMailing|FR:Module_Mailing|ES:Módulo_Mailing';
llxHeader('',$langs->trans("Mailing"),$help_url);
-$html = new Form($db);
+$form = new Form($db);
$htmlother = new FormOther($db);
$mil = new Mailing($db);
@@ -658,21 +658,21 @@ else
// Confirmation de la validation du mailing
if ($_GET["action"] == 'valid')
{
- $ret=$html->form_confirm($_SERVER["PHP_SELF"]."?id=".$mil->id,$langs->trans("ValidMailing"),$langs->trans("ConfirmValidMailing"),"confirm_valid",'','',1);
+ $ret=$form->form_confirm($_SERVER["PHP_SELF"]."?id=".$mil->id,$langs->trans("ValidMailing"),$langs->trans("ConfirmValidMailing"),"confirm_valid",'','',1);
if ($ret == 'html') print ' ';
}
// Confirm reset
if ($_GET["action"] == 'reset')
{
- $ret=$html->form_confirm($_SERVER["PHP_SELF"]."?id=".$mil->id,$langs->trans("ResetMailing"),$langs->trans("ConfirmResetMailing",$mil->ref),"confirm_reset",'','',2);
+ $ret=$form->form_confirm($_SERVER["PHP_SELF"]."?id=".$mil->id,$langs->trans("ResetMailing"),$langs->trans("ConfirmResetMailing",$mil->ref),"confirm_reset",'','',2);
if ($ret == 'html') print ' ';
}
// Confirm delete
if ($_GET["action"] == 'delete')
{
- $ret=$html->form_confirm($_SERVER["PHP_SELF"]."?id=".$mil->id,$langs->trans("DeleteAMailing"),$langs->trans("ConfirmDeleteMailing"),"confirm_delete",'','',1);
+ $ret=$form->form_confirm($_SERVER["PHP_SELF"]."?id=".$mil->id,$langs->trans("DeleteAMailing"),$langs->trans("ConfirmDeleteMailing"),"confirm_delete",'','',1);
if ($ret == 'html') print ' ';
}
@@ -709,7 +709,7 @@ else
}
$text.=$langs->trans('ConfirmSendingEmailing').' ';
$text.=$langs->trans('LimitSendingEmailing',$conf->global->MAILING_LIMIT_SENDBYWEB);
- $ret=$html->form_confirm($_SERVER['PHP_SELF'].'?id='.$_REQUEST['id'],$langs->trans('SendMailing'),$text,'sendallconfirmed',$formquestion,'',1,260);
+ $ret=$form->form_confirm($_SERVER['PHP_SELF'].'?id='.$_REQUEST['id'],$langs->trans('SendMailing'),$text,'sendallconfirmed',$formquestion,'',1,260);
if ($ret == 'html') print ' ';
}
}
@@ -718,22 +718,22 @@ else
print ''.$langs->trans("Ref").' ';
print '';
- print $html->showrefnav($mil,'id');
+ print $form->showrefnav($mil,'id');
print ' ';
// Description
- print ''.$html->editfieldkey("MailTitle",'desc',$mil->titre,'id',$mil->id,$user->rights->mailing->creer).' ';
- print $html->editfieldval("MailTitle",'desc',$mil->titre,'id',$mil->id,$user->rights->mailing->creer);
+ print ' '.$form->editfieldkey("MailTitle",'desc',$mil->titre,'id',$mil->id,$user->rights->mailing->creer).' ';
+ print $form->editfieldval("MailTitle",'desc',$mil->titre,'id',$mil->id,$user->rights->mailing->creer);
print ' ';
// From
- print ''.$html->editfieldkey("MailFrom",'from',$mil->email_from,'id',$mil->id,$user->rights->mailing->creer && $mil->statut < 3,'email').' ';
- print $html->editfieldval("MailFrom",'from',$mil->email_from,'id',$mil->id,$user->rights->mailing->creer && $mil->statut < 3,'email');
+ print ' '.$form->editfieldkey("MailFrom",'from',$mil->email_from,'id',$mil->id,$user->rights->mailing->creer && $mil->statut < 3,'email').' ';
+ print $form->editfieldval("MailFrom",'from',$mil->email_from,'id',$mil->id,$user->rights->mailing->creer && $mil->statut < 3,'email');
print ' ';
// Errors to
- print ''.$html->editfieldkey("MailErrorsTo",'errorsto',$mil->email_errorsto,'id',$mil->id,$user->rights->mailing->creer && $mil->statut < 3,'email').' ';
- print $html->editfieldval("MailErrorsTo",'errorsto',$mil->email_errorsto,'id',$mil->id,$user->rights->mailing->creer && $mil->statut < 3,'email');
+ print ' '.$form->editfieldkey("MailErrorsTo",'errorsto',$mil->email_errorsto,'id',$mil->id,$user->rights->mailing->creer && $mil->statut < 3,'email').' ';
+ print $form->editfieldval("MailErrorsTo",'errorsto',$mil->email_errorsto,'id',$mil->id,$user->rights->mailing->creer && $mil->statut < 3,'email');
print ' ';
// Status
@@ -749,12 +749,12 @@ else
if ($conf->global->MAILING_LIMIT_SENDBYWEB > 0)
{
$text=$langs->trans('LimitSendingEmailing',$conf->global->MAILING_LIMIT_SENDBYWEB);
- print $html->textwithpicto($nbemail,$text,1,'warning');
+ print $form->textwithpicto($nbemail,$text,1,'warning');
}
else
{
$text=$langs->trans('NotEnoughPermissions');
- print $html->textwithpicto($nbemail,$text,1,'warning');
+ print $form->textwithpicto($nbemail,$text,1,'warning');
}
}
@@ -779,7 +779,7 @@ else
array('type' => 'checkbox', 'name' => 'clone_receivers', 'label' => $langs->trans("CloneReceivers").' ('.$langs->trans("FeatureNotYetAvailable").')', 'value' => 0, 'disabled' => true)
);
// Paiement incomplet. On demande si motif = escompte ou autre
- $html->form_confirm($_SERVER["PHP_SELF"].'?id='.$mil->id,$langs->trans('CloneEMailing'),$langs->trans('ConfirmCloneEMailing',$mil->ref),'confirm_clone',$formquestion,'yes');
+ $form->form_confirm($_SERVER["PHP_SELF"].'?id='.$mil->id,$langs->trans('CloneEMailing'),$langs->trans('ConfirmCloneEMailing',$mil->ref),'confirm_clone',$formquestion,'yes');
print ' ';
}
@@ -966,7 +966,7 @@ else
if (!empty($conf->global->MAILING_LIMIT_SENDBYWEB) && is_numeric($nbemail) && $conf->global->MAILING_LIMIT_SENDBYWEB < $nbemail)
{
$text=$langs->trans('LimitSendingEmailing',$conf->global->MAILING_LIMIT_SENDBYWEB);
- print $html->textwithpicto($nbemail,$text,1,'warning');
+ print $form->textwithpicto($nbemail,$text,1,'warning');
}
else
{
diff --git a/htdocs/comm/mailing/info.php b/htdocs/comm/mailing/info.php
index 632120ac5ec..685e88a16de 100644
--- a/htdocs/comm/mailing/info.php
+++ b/htdocs/comm/mailing/info.php
@@ -41,7 +41,7 @@ accessforbidden();
llxHeader('',$langs->trans("Mailing"),'EN:Module_EMailing|FR:Module_Mailing|ES:Módulo_Mailing');
-$html = new Form($db);
+$form = new Form($db);
$mil = new Mailing($db);
diff --git a/htdocs/comm/mailing/liste.php b/htdocs/comm/mailing/liste.php
index c8a6954b443..967d2903517 100644
--- a/htdocs/comm/mailing/liste.php
+++ b/htdocs/comm/mailing/liste.php
@@ -59,7 +59,7 @@ $filteremail=$_REQUEST["filteremail"]?$_REQUEST["filteremail"]:'';
llxHeader('',$langs->trans("Mailing"),'EN:Module_EMailing|FR:Module_Mailing|ES:Módulo_Mailing');
-$html = new Form($db);
+$form = new Form($db);
if ($filteremail)
{
@@ -158,7 +158,7 @@ if ($result)
if (!empty($conf->global->MAILING_LIMIT_SENDBYWEB) && $conf->global->MAILING_LIMIT_SENDBYWEB < $nbemail)
{
$text=$langs->trans('LimitSendingEmailing',$conf->global->MAILING_LIMIT_SENDBYWEB);
- print $html->textwithpicto($nbemail,$text,1,'warning');
+ print $form->textwithpicto($nbemail,$text,1,'warning');
}
else
{
diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php
index 2cb0bafa50f..833d7e80443 100644
--- a/htdocs/comm/propal.php
+++ b/htdocs/comm/propal.php
@@ -987,7 +987,7 @@ if ($action == 'down' && $user->rights->propale->creer)
llxHeader('',$langs->trans('Proposal'),'EN:Commercial_Proposals|FR:Proposition_commerciale|ES:Presupuestos');
-$html = new Form($db);
+$form = new Form($db);
$htmlother = new FormOther($db);
$formfile = new FormFile($db);
$companystatic=new Societe($db);
@@ -1023,10 +1023,10 @@ if ($id > 0 || ! empty($ref))
//'text' => $langs->trans("ConfirmClone"),
//array('type' => 'checkbox', 'name' => 'clone_content', 'label' => $langs->trans("CloneMainAttributes"), 'value' => 1),
//array('type' => 'checkbox', 'name' => 'update_prices', 'label' => $langs->trans("PuttingPricesUpToDate"), 'value' => 1),
- array('type' => 'other', 'name' => 'socid', 'label' => $langs->trans("SelectThirdParty"), 'value' => $html->select_company(GETPOST('socid'),'socid','(s.client=1 OR s.client=3)'))
+ array('type' => 'other', 'name' => 'socid', 'label' => $langs->trans("SelectThirdParty"), 'value' => $form->select_company(GETPOST('socid'),'socid','(s.client=1 OR s.client=3)'))
);
// Paiement incomplet. On demande si motif = escompte ou autre
- $formconfirm=$html->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id,$langs->trans('ClonePropal'),$langs->trans('ConfirmClonePropal',$object->ref),'confirm_clone',$formquestion,'yes',1);
+ $formconfirm=$form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id,$langs->trans('ClonePropal'),$langs->trans('ConfirmClonePropal',$object->ref),'confirm_clone',$formquestion,'yes',1);
}
/*
@@ -1034,7 +1034,7 @@ if ($id > 0 || ! empty($ref))
*/
if ($action == 'delete')
{
- $formconfirm=$html->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('DeleteProp'), $langs->trans('ConfirmDeleteProp'), 'confirm_delete','',0,1);
+ $formconfirm=$form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('DeleteProp'), $langs->trans('ConfirmDeleteProp'), 'confirm_delete','',0,1);
}
/*
@@ -1042,7 +1042,7 @@ if ($id > 0 || ! empty($ref))
*/
if ($action == 'ask_deleteline')
{
- $formconfirm=$html->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id.'&lineid='.$lineid, $langs->trans('DeleteProductLine'), $langs->trans('ConfirmDeleteProductLine'), 'confirm_deleteline','',0,1);
+ $formconfirm=$form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id.'&lineid='.$lineid, $langs->trans('DeleteProductLine'), $langs->trans('ConfirmDeleteProductLine'), 'confirm_deleteline','',0,1);
}
/*
@@ -1077,7 +1077,7 @@ if ($id > 0 || ! empty($ref))
$text.=$notify->confirmMessage('NOTIFY_VAL_PROPAL',$object->socid);
}
- if (! $error) $formconfirm=$html->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('ValidateProp'), $text, 'confirm_validate','',0,1);
+ if (! $error) $formconfirm=$form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('ValidateProp'), $text, 'confirm_validate','',0,1);
}
if (! $formconfirm)
@@ -1096,7 +1096,7 @@ if ($id > 0 || ! empty($ref))
// Ref
print ''.$langs->trans('Ref').' ';
- print $html->showrefnav($object,'ref',$linkback,1,'ref','ref','');
+ print $form->showrefnav($object,'ref',$linkback,1,'ref','ref','');
print ' ';
// Ref client
@@ -1149,7 +1149,7 @@ if ($id > 0 || ! empty($ref))
// Remise dispo de type non avoir
$filter='fk_facture_source IS NULL';
print ' ';
- $html->form_remise_dispo($_SERVER["PHP_SELF"].'?id='.$object->id,0,'remise_id',$soc->id,$absolute_discount,$filter);
+ $form->form_remise_dispo($_SERVER["PHP_SELF"].'?id='.$object->id,0,'remise_id',$soc->id,$absolute_discount,$filter);
}
}
if ($absolute_creditnote)
@@ -1173,7 +1173,7 @@ if ($id > 0 || ! empty($ref))
print '';
}
@@ -1218,7 +1218,7 @@ if ($id > 0 || ! empty($ref))
print '';
}
@@ -1247,11 +1247,11 @@ if ($id > 0 || ! empty($ref))
print '';
if ($action == 'editconditions')
{
- $html->form_conditions_reglement($_SERVER['PHP_SELF'].'?id='.$object->id,$object->cond_reglement_id,'cond_reglement_id');
+ $form->form_conditions_reglement($_SERVER['PHP_SELF'].'?id='.$object->id,$object->cond_reglement_id,'cond_reglement_id');
}
else
{
- $html->form_conditions_reglement($_SERVER['PHP_SELF'].'?id='.$object->id,$object->cond_reglement_id,'none');
+ $form->form_conditions_reglement($_SERVER['PHP_SELF'].'?id='.$object->id,$object->cond_reglement_id,'none');
}
print ' ';
print '';
@@ -1270,7 +1270,7 @@ if ($id > 0 || ! empty($ref))
print '';
}
@@ -1295,11 +1295,11 @@ if ($id > 0 || ! empty($ref))
if ($action == 'editdelivery_address')
{
- $html->form_address($_SERVER['PHP_SELF'].'?id='.$object->id,$object->fk_delivery_address,GETPOST('socid'),'fk_address','propal',$object->id);
+ $form->form_address($_SERVER['PHP_SELF'].'?id='.$object->id,$object->fk_delivery_address,GETPOST('socid'),'fk_address','propal',$object->id);
}
else
{
- $html->form_address($_SERVER['PHP_SELF'].'?id='.$object->id,$object->fk_delivery_address,GETPOST('socid'),'none','propal',$object->id);
+ $form->form_address($_SERVER['PHP_SELF'].'?id='.$object->id,$object->fk_delivery_address,GETPOST('socid'),'none','propal',$object->id);
}
print '';
}
@@ -1315,11 +1315,11 @@ if ($id > 0 || ! empty($ref))
print '';
if ($action == 'editavailability')
{
- $html->form_availability($_SERVER['PHP_SELF'].'?id='.$object->id,$object->availability_id,'availability_id',1);
+ $form->form_availability($_SERVER['PHP_SELF'].'?id='.$object->id,$object->availability_id,'availability_id',1);
}
else
{
- $html->form_availability($_SERVER['PHP_SELF'].'?id='.$object->id,$object->availability_id,'none',1);
+ $form->form_availability($_SERVER['PHP_SELF'].'?id='.$object->id,$object->availability_id,'none',1);
}
print ' ';
@@ -1336,11 +1336,11 @@ if ($id > 0 || ! empty($ref))
//print $object->demand_reason_id;
if ($action == 'editdemandreason')
{
- $html->form_demand_reason($_SERVER['PHP_SELF'].'?id='.$object->id,$object->demand_reason_id,'demand_reason_id',1);
+ $form->form_demand_reason($_SERVER['PHP_SELF'].'?id='.$object->id,$object->demand_reason_id,'demand_reason_id',1);
}
else
{
- $html->form_demand_reason($_SERVER['PHP_SELF'].'?id='.$object->id,$object->demand_reason_id,'none');
+ $form->form_demand_reason($_SERVER['PHP_SELF'].'?id='.$object->id,$object->demand_reason_id,'none');
}
print '';
@@ -1357,11 +1357,11 @@ if ($id > 0 || ! empty($ref))
print '';
if ($action == 'editmode')
{
- $html->form_modes_reglement($_SERVER['PHP_SELF'].'?id='.$object->id,$object->mode_reglement_id,'mode_reglement_id');
+ $form->form_modes_reglement($_SERVER['PHP_SELF'].'?id='.$object->id,$object->mode_reglement_id,'mode_reglement_id');
}
else
{
- $html->form_modes_reglement($_SERVER['PHP_SELF'].'?id='.$object->id,$object->mode_reglement_id,'none');
+ $form->form_modes_reglement($_SERVER['PHP_SELF'].'?id='.$object->id,$object->mode_reglement_id,'none');
}
print ' ';
@@ -1379,11 +1379,11 @@ if ($id > 0 || ! empty($ref))
print '';
if ($action == 'classify')
{
- $html->form_project($_SERVER['PHP_SELF'].'?id='.$object->id, $object->socid, $object->fk_project, 'projectid');
+ $form->form_project($_SERVER['PHP_SELF'].'?id='.$object->id, $object->socid, $object->fk_project, 'projectid');
}
else
{
- $html->form_project($_SERVER['PHP_SELF'].'?id='.$object->id, $object->socid, $object->fk_project, 'none');
+ $form->form_project($_SERVER['PHP_SELF'].'?id='.$object->id, $object->socid, $object->fk_project, 'none');
}
print ' ';
}
@@ -1837,7 +1837,7 @@ else
print '';
print ' ';
print '';
- $html->select_propal_statut($viewstatut,1);
+ $form->select_propal_statut($viewstatut,1);
print ' ';
print ' ';
print ' ';
diff --git a/htdocs/comm/propal/apercu.php b/htdocs/comm/propal/apercu.php
index 0efde17b23c..59213b04692 100644
--- a/htdocs/comm/propal/apercu.php
+++ b/htdocs/comm/propal/apercu.php
@@ -49,7 +49,7 @@ $result = restrictedArea($user, 'propale', $id, 'propal');
llxHeader();
-$html = new Form($db);
+$form = new Form($db);
/* *************************************************************************** */
/* */
diff --git a/htdocs/comm/propal/contact.php b/htdocs/comm/propal/contact.php
index 9ba449fee5c..b6fe67d4122 100644
--- a/htdocs/comm/propal/contact.php
+++ b/htdocs/comm/propal/contact.php
@@ -118,7 +118,7 @@ if ($action == 'deleteline' && $user->rights->propale->creer)
llxHeader('', $langs->trans("Proposal"), "Propal");
-$html = new Form($db);
+$form = new Form($db);
$formcompany= new FormCompany($db);
$contactstatic=new Contact($db);
$userstatic=new User($db);
@@ -155,7 +155,7 @@ if ($id > 0 || ! empty($ref))
// Ref
print ''.$langs->trans('Ref').' ';
- print $html->showrefnav($propal,'ref',$linkback,1,'ref','ref','');
+ print $form->showrefnav($propal,'ref',$linkback,1,'ref','ref','');
print ' ';
// Ref client
@@ -222,7 +222,7 @@ if ($id > 0 || ! empty($ref))
print '';
// On recupere les id des users deja selectionnes
//$userAlreadySelected = $propal->getListContactId('internal'); // On ne doit pas desactiver un contact deja selectionne car on doit pouvoir le selectionner une deuxieme fois pour un autre type
- $html->select_users($user->id,'contactid',0,$userAlreadySelected);
+ $form->select_users($user->id,'contactid',0,$userAlreadySelected);
print ' ';
print '';
$formcompany->selectTypeContact($propal, '', 'type','internal');
@@ -252,7 +252,7 @@ if ($id > 0 || ! empty($ref))
print ' ';
print '';
- $nbofcontacts=$html->select_contacts($selectedCompany, '', 'contactid');
+ $nbofcontacts=$form->select_contacts($selectedCompany, '', 'contactid');
if ($nbofcontacts == 0) print $langs->trans("NoContactDefined");
print ' ';
print '';
diff --git a/htdocs/comm/propal/document.php b/htdocs/comm/propal/document.php
index 05860909553..93eb16b0762 100644
--- a/htdocs/comm/propal/document.php
+++ b/htdocs/comm/propal/document.php
@@ -120,7 +120,7 @@ if ($action == 'confirm_deletefile' && $confirm == 'yes')
llxHeader();
-$html = new Form($db);
+$form = new Form($db);
if ($id > 0 || ! empty($ref))
{
@@ -149,7 +149,7 @@ if ($id > 0 || ! empty($ref))
// Ref
print ' '.$langs->trans('Ref').' ';
- print $html->showrefnav($object,'ref',$linkback,1,'ref','ref','');
+ print $form->showrefnav($object,'ref',$linkback,1,'ref','ref','');
print ' ';
// Ref client
@@ -181,7 +181,7 @@ if ($id > 0 || ! empty($ref))
*/
if ($action == 'delete')
{
- $ret=$html->form_confirm($_SERVER["PHP_SELF"].'?id='.$id.'&urlfile='.urldecode($_GET["urlfile"]), $langs->trans('DeleteFile'), $langs->trans('ConfirmDeleteFile'), 'confirm_deletefile', '', 0, 1);
+ $ret=$form->form_confirm($_SERVER["PHP_SELF"].'?id='.$id.'&urlfile='.urldecode($_GET["urlfile"]), $langs->trans('DeleteFile'), $langs->trans('ConfirmDeleteFile'), 'confirm_deletefile', '', 0, 1);
if ($ret == 'html') print ' ';
}
diff --git a/htdocs/comm/propal/index.php b/htdocs/comm/propal/index.php
index bb577f66daa..ae58515b3a4 100644
--- a/htdocs/comm/propal/index.php
+++ b/htdocs/comm/propal/index.php
@@ -47,7 +47,7 @@ if ($user->societe_id > 0)
*/
$propalstatic=new Propal($db);
-$html = new Form($db);
+$form = new Form($db);
$formfile = new FormFile($db);
$help_url="EN:Module_Commercial_Proposals|FR:Module_Propositions_commerciales|ES:Módulo Presupuestos";
diff --git a/htdocs/comm/propal/note.php b/htdocs/comm/propal/note.php
index 18fb187033d..646cdb41358 100644
--- a/htdocs/comm/propal/note.php
+++ b/htdocs/comm/propal/note.php
@@ -90,7 +90,7 @@ if ($_POST['action'] == 'update' && $user->rights->propale->creer)
llxHeader();
-$html = new Form($db);
+$form = new Form($db);
$id = $_GET["id"];
$ref= $_GET["ref"];
@@ -115,7 +115,7 @@ if ($id > 0 || ! empty($ref))
// Ref
print ''.$langs->trans('Ref').' ';
- print $html->showrefnav($propal,'ref',$linkback,1,'ref','ref','');
+ print $form->showrefnav($propal,'ref',$linkback,1,'ref','ref','');
print ' ';
// Ref client
diff --git a/htdocs/commande/apercu.php b/htdocs/commande/apercu.php
index 20708e15207..a76fd8c2786 100644
--- a/htdocs/commande/apercu.php
+++ b/htdocs/commande/apercu.php
@@ -52,7 +52,7 @@ $result=restrictedArea($user,'commande',$id,'');
llxHeader('',$langs->trans('Order'),'EN:Customers_Orders|FR:Commandes_Clients|ES:Pedidos de clientes');
-$html = new Form($db);
+$form = new Form($db);
/* *************************************************************************** */
/* */
diff --git a/htdocs/commande/contact.php b/htdocs/commande/contact.php
index ebfb90552e7..94dee98896b 100644
--- a/htdocs/commande/contact.php
+++ b/htdocs/commande/contact.php
@@ -113,7 +113,7 @@ if ($_GET["action"] == 'deleteline' && $user->rights->commande->creer)
llxHeader('',$langs->trans('Order'),'EN:Customers_Orders|FR:Commandes_Clients|ES:Pedidos de clientes');
-$html = new Form($db);
+$form = new Form($db);
$formcompany = new FormCompany($db);
$contactstatic=new Contact($db);
$userstatic=new User($db);
@@ -149,7 +149,7 @@ if ($id > 0 || ! empty($ref))
// Ref
print ''.$langs->trans("Ref").' ';
- print $html->showrefnav($commande,'ref','',1,'ref','ref');
+ print $form->showrefnav($commande,'ref','',1,'ref','ref');
print " ";
// Ref commande client
@@ -214,7 +214,7 @@ if ($id > 0 || ! empty($ref))
print '';
//$userAlreadySelected = $commande->getListContactId('internal'); // On ne doit pas desactiver un contact deja selectionne car on doit pouvoir le selectionner une deuxieme fois pour un autre type
- $html->select_users($user->id,'contactid',0,$userAlreadySelected);
+ $form->select_users($user->id,'contactid',0,$userAlreadySelected);
print ' ';
print '';
$formcompany->selectTypeContact($commande, '', 'type','internal');
@@ -244,7 +244,7 @@ if ($id > 0 || ! empty($ref))
print ' ';
print '';
- $nbofcontacts=$html->select_contacts($selectedCompany, '', 'contactid');
+ $nbofcontacts=$form->select_contacts($selectedCompany, '', 'contactid');
if ($nbofcontacts == 0) print $langs->trans("NoContactDefined");
print ' ';
print '';
diff --git a/htdocs/commande/document.php b/htdocs/commande/document.php
index 5c2e43f0431..2853ae6b0c3 100644
--- a/htdocs/commande/document.php
+++ b/htdocs/commande/document.php
@@ -123,7 +123,7 @@ if ($action == 'confirm_deletefile' && $confirm == 'yes')
llxHeader('',$langs->trans('Order'),'EN:Customers_Orders|FR:Commandes_Clients|ES:Pedidos de clientes');
-$html = new Form($db);
+$form = new Form($db);
if ($id > 0 || ! empty($ref))
{
@@ -150,7 +150,7 @@ if ($id > 0 || ! empty($ref))
// Ref
print ' '.$langs->trans('Ref').' ';
- print $html->showrefnav($object,'ref','',1,'ref','ref');
+ print $form->showrefnav($object,'ref','',1,'ref','ref');
print ' ';
print ''.$langs->trans('Company').' '.$object->thirdparty->getNomUrl(1).' ';
@@ -166,7 +166,7 @@ if ($id > 0 || ! empty($ref))
*/
if ($action == 'delete')
{
- $ret=$html->form_confirm($_SERVER["PHP_SELF"].'?id='.$id.'&urlfile='.urldecode($_GET["urlfile"]), $langs->trans('DeleteFile'), $langs->trans('ConfirmDeleteFile'), 'confirm_deletefile', '', 0, 1);
+ $ret=$form->form_confirm($_SERVER["PHP_SELF"].'?id='.$id.'&urlfile='.urldecode($_GET["urlfile"]), $langs->trans('DeleteFile'), $langs->trans('ConfirmDeleteFile'), 'confirm_deletefile', '', 0, 1);
if ($ret == 'html') print ' ';
}
diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php
index 146a44ac991..845ba65506f 100644
--- a/htdocs/commande/fiche.php
+++ b/htdocs/commande/fiche.php
@@ -1095,7 +1095,7 @@ if ($action == 'send' && ! $_POST['addfile'] && ! $_POST['removedfile'] && ! $_P
llxHeader('',$langs->trans('Order'),'EN:Customers_Orders|FR:Commandes_Clients|ES:Pedidos de clientes');
-$html = new Form($db);
+$form = new Form($db);
$formfile = new FormFile($db);
$formorder = new FormOrder($db);
@@ -1201,7 +1201,7 @@ if ($action == 'create' && $user->rights->commande->creer)
* Contact de la commande
*/
print "".$langs->trans("DefaultContact").' ';
- $html->select_contacts($soc->id,$setcontact,'contactidp',1,$srccontactslist);
+ $form->select_contacts($soc->id,$setcontact,'contactidp',1,$srccontactslist);
print ' ';
// Ligne info remises tiers
@@ -1217,7 +1217,7 @@ if ($action == 'create' && $user->rights->commande->creer)
// Date
print ''.$langs->trans('Date').' ';
- $html->select_date('','re','','','',"crea_commande",1,1);
+ $form->select_date('','re','','','',"crea_commande",1,1);
print ' ';
// Date de livraison
@@ -1230,37 +1230,37 @@ if ($action == 'create' && $user->rights->commande->creer)
{
$datedelivery=empty($conf->global->MAIN_AUTOFILL_DATE)?-1:0;
}
- $html->select_date($datedelivery,'liv_','','','',"crea_commande",1,1);
+ $form->select_date($datedelivery,'liv_','','','',"crea_commande",1,1);
print "";
// Delivery address
if ($conf->global->COMMANDE_ADD_DELIVERY_ADDRESS)
{
- // Link to edit: $html->form_address($_SERVER['PHP_SELF'].'?action=create','',$soc->id,'adresse_livraison_id','commande','');
+ // Link to edit: $form->form_address($_SERVER['PHP_SELF'].'?action=create','',$soc->id,'adresse_livraison_id','commande','');
print ''.$langs->trans('DeliveryAddress').' ';
- $numaddress = $html->select_address($soc->fk_delivery_address, $socid,'fk_address',1);
+ $numaddress = $form->select_address($soc->fk_delivery_address, $socid,'fk_address',1);
print ' '.$langs->trans("AddAddress").' ';
print ' ';
}
// Conditions de reglement
print ''.$langs->trans('PaymentConditionsShort').' ';
- $html->select_conditions_paiements($soc->cond_reglement,'cond_reglement_id',-1,1);
+ $form->select_conditions_paiements($soc->cond_reglement,'cond_reglement_id',-1,1);
print ' ';
// Mode de reglement
print ''.$langs->trans('PaymentMode').' ';
- $html->select_types_paiements($soc->mode_reglement,'mode_reglement_id');
+ $form->select_types_paiements($soc->mode_reglement,'mode_reglement_id');
print ' ';
// Delivery delay
print ''.$langs->trans('AvailabilityPeriod').' ';
- $html->select_availability($propal->availability,'availability_id','',1);
+ $form->select_availability($propal->availability,'availability_id','',1);
print ' ';
// What trigger creation
print ''.$langs->trans('Source').' ';
- $html->select_demand_reason((GETPOST("origin")=='propal'?'SRC_COMM':''),'demand_reason_id','',1);
+ $form->select_demand_reason((GETPOST("origin")=='propal'?'SRC_COMM':''),'demand_reason_id','',1);
print ' ';
// Project
@@ -1287,7 +1287,7 @@ if ($action == 'create' && $user->rights->commande->creer)
// pdf
include_once(DOL_DOCUMENT_ROOT.'/core/modules/commande/modules_commande.php');
$liste=ModelePDFCommandes::liste_modeles($db);
- print $html->selectarray('model',$liste,$conf->global->COMMANDE_ADDON_PDF);
+ print $form->selectarray('model',$liste,$conf->global->COMMANDE_ADDON_PDF);
print "";
// Note publique
@@ -1366,9 +1366,9 @@ if ($action == 'create' && $user->rights->commande->creer)
print '';
// multiprix
if($conf->global->PRODUIT_MULTIPRICES)
- print $html->select_produits('','idprod'.$i,'',$conf->product->limit_size,$soc->price_level);
+ print $form->select_produits('','idprod'.$i,'',$conf->product->limit_size,$soc->price_level);
else
- print $html->select_produits('','idprod'.$i,'',$conf->product->limit_size);
+ print $form->select_produits('','idprod'.$i,'',$conf->product->limit_size);
print ' ';
print ' ';
print ' % ';
@@ -1435,7 +1435,7 @@ else
*/
if ($action == 'delete')
{
- $formconfirm=$html->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('DeleteOrder'), $langs->trans('ConfirmDeleteOrder'), 'confirm_delete', '', 0, 1);
+ $formconfirm=$form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('DeleteOrder'), $langs->trans('ConfirmDeleteOrder'), 'confirm_delete', '', 0, 1);
}
/*
@@ -1473,7 +1473,7 @@ else
array('type' => 'other', 'name' => 'idwarehouse', 'label' => $langs->trans("SelectWarehouseForStockDecrease"), 'value' => $formproduct->selectWarehouses(GETPOST('idwarehouse'),'idwarehouse','',1)));
}
- $formconfirm=$html->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('ValidateOrder'), $text, 'confirm_validate', $formquestion, 0, 1);
+ $formconfirm=$form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('ValidateOrder'), $text, 'confirm_validate', $formquestion, 0, 1);
}
/*
@@ -1481,7 +1481,7 @@ else
*/
if ($action == 'close')
{
- $formconfirm=$html->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('CloseOrder'), $langs->trans('ConfirmCloseOrder'), 'confirm_close', '', 0, 1);
+ $formconfirm=$form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('CloseOrder'), $langs->trans('ConfirmCloseOrder'), 'confirm_close', '', 0, 1);
}
/*
@@ -1489,7 +1489,7 @@ else
*/
if ($action == 'cancel')
{
- $formconfirm=$html->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('Cancel'), $langs->trans('ConfirmCancelOrder'), 'confirm_cancel', '', 0, 1);
+ $formconfirm=$form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('Cancel'), $langs->trans('ConfirmCancelOrder'), 'confirm_cancel', '', 0, 1);
}
/*
@@ -1497,7 +1497,7 @@ else
*/
if ($action == 'ask_deleteline')
{
- $formconfirm=$html->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id.'&lineid='.$lineid, $langs->trans('DeleteProductLine'), $langs->trans('ConfirmDeleteProductLine'), 'confirm_deleteline', '', 0, 1);
+ $formconfirm=$form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id.'&lineid='.$lineid, $langs->trans('DeleteProductLine'), $langs->trans('ConfirmDeleteProductLine'), 'confirm_deleteline', '', 0, 1);
}
// Clone confirmation
@@ -1508,10 +1508,10 @@ else
//'text' => $langs->trans("ConfirmClone"),
//array('type' => 'checkbox', 'name' => 'clone_content', 'label' => $langs->trans("CloneMainAttributes"), 'value' => 1),
//array('type' => 'checkbox', 'name' => 'update_prices', 'label' => $langs->trans("PuttingPricesUpToDate"), 'value' => 1),
- array('type' => 'other', 'name' => 'socid', 'label' => $langs->trans("SelectThirdParty"), 'value' => $html->select_company(GETPOST('socid'),'socid','(s.client=1 OR s.client=3)'))
+ array('type' => 'other', 'name' => 'socid', 'label' => $langs->trans("SelectThirdParty"), 'value' => $form->select_company(GETPOST('socid'),'socid','(s.client=1 OR s.client=3)'))
);
// Paiement incomplet. On demande si motif = escompte ou autre
- $formconfirm=$html->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id,$langs->trans('CloneOrder'),$langs->trans('ConfirmCloneOrder',$object->ref),'confirm_clone',$formquestion,'yes',1);
+ $formconfirm=$form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id,$langs->trans('CloneOrder'),$langs->trans('ConfirmCloneOrder',$object->ref),'confirm_clone',$formquestion,'yes',1);
}
if (! $formconfirm)
@@ -1541,7 +1541,7 @@ else
// Ref
print ''.$langs->trans('Ref').' ';
print '';
- print $html->showrefnav($object,'ref','',1,'ref','ref');
+ print $form->showrefnav($object,'ref','',1,'ref','ref');
print ' ';
print ' ';
@@ -1595,7 +1595,7 @@ else
// Remise dispo de type non avoir
$filter='fk_facture_source IS NULL';
print ' ';
- $html->form_remise_dispo($_SERVER["PHP_SELF"].'?id='.$object->id,0,'remise_id',$soc->id,$absolute_discount,$filter);
+ $form->form_remise_dispo($_SERVER["PHP_SELF"].'?id='.$object->id,0,'remise_id',$soc->id,$absolute_discount,$filter);
}
}
if ($absolute_creditnote)
@@ -1619,7 +1619,7 @@ else
print '';
}
@@ -1644,7 +1644,7 @@ else
print '';
}
@@ -1672,11 +1672,11 @@ else
if ($action == 'editdelivery_adress')
{
- $html->form_address($_SERVER['PHP_SELF'].'?id='.$object->id,$object->fk_delivery_address,$socid,'fk_address','commande',$object->id);
+ $form->form_address($_SERVER['PHP_SELF'].'?id='.$object->id,$object->fk_delivery_address,$socid,'fk_address','commande',$object->id);
}
else
{
- $html->form_address($_SERVER['PHP_SELF'].'?id='.$object->id,$object->fk_delivery_address,$socid,'none','commande',$object->id);
+ $form->form_address($_SERVER['PHP_SELF'].'?id='.$object->id,$object->fk_delivery_address,$socid,'none','commande',$object->id);
}
print '';
}
@@ -1691,11 +1691,11 @@ else
print '';
if ($action == 'editconditions')
{
- $html->form_conditions_reglement($_SERVER['PHP_SELF'].'?id='.$object->id,$object->cond_reglement_id,'cond_reglement_id',1);
+ $form->form_conditions_reglement($_SERVER['PHP_SELF'].'?id='.$object->id,$object->cond_reglement_id,'cond_reglement_id',1);
}
else
{
- $html->form_conditions_reglement($_SERVER['PHP_SELF'].'?id='.$object->id,$object->cond_reglement_id,'none',1);
+ $form->form_conditions_reglement($_SERVER['PHP_SELF'].'?id='.$object->id,$object->cond_reglement_id,'none',1);
}
print ' ';
@@ -1711,11 +1711,11 @@ else
print '';
if ($action == 'editmode')
{
- $html->form_modes_reglement($_SERVER['PHP_SELF'].'?id='.$object->id,$object->mode_reglement_id,'mode_reglement_id');
+ $form->form_modes_reglement($_SERVER['PHP_SELF'].'?id='.$object->id,$object->mode_reglement_id,'mode_reglement_id');
}
else
{
- $html->form_modes_reglement($_SERVER['PHP_SELF'].'?id='.$object->id,$object->mode_reglement_id,'none');
+ $form->form_modes_reglement($_SERVER['PHP_SELF'].'?id='.$object->id,$object->mode_reglement_id,'none');
}
print ' ';
@@ -1729,11 +1729,11 @@ else
print '';
if ($action == 'editavailability')
{
- $html->form_availability($_SERVER['PHP_SELF'].'?id='.$object->id,$object->availability_id,'availability_id',1);
+ $form->form_availability($_SERVER['PHP_SELF'].'?id='.$object->id,$object->availability_id,'availability_id',1);
}
else
{
- $html->form_availability($_SERVER['PHP_SELF'].'?id='.$object->id,$object->availability_id,'none',1);
+ $form->form_availability($_SERVER['PHP_SELF'].'?id='.$object->id,$object->availability_id,'none',1);
}
print ' ';
@@ -1747,11 +1747,11 @@ else
print '';
if ($_GET['action'] == 'editdemandreason')
{
- $html->form_demand_reason($_SERVER['PHP_SELF'].'?id='.$object->id,$object->demand_reason_id,'demand_reason_id',1);
+ $form->form_demand_reason($_SERVER['PHP_SELF'].'?id='.$object->id,$object->demand_reason_id,'demand_reason_id',1);
}
else
{
- $html->form_demand_reason($_SERVER['PHP_SELF'].'?id='.$object->id,$object->demand_reason_id,'none');
+ $form->form_demand_reason($_SERVER['PHP_SELF'].'?id='.$object->id,$object->demand_reason_id,'none');
}
// Removed because using dictionnary is an admin feature, not a user feature. Ther is already the "star" to show info to admin users.
// This is to avoid too heavy screens and have an uniform look and feel for all screens.
@@ -1773,11 +1773,11 @@ else
//print "$object->id, $object->socid, $object->fk_project";
if ($action == 'classify')
{
- $html->form_project($_SERVER['PHP_SELF'].'?id='.$object->id, $object->socid, $object->fk_project, 'projectid');
+ $form->form_project($_SERVER['PHP_SELF'].'?id='.$object->id, $object->socid, $object->fk_project, 'projectid');
}
else
{
- $html->form_project($_SERVER['PHP_SELF'].'?id='.$object->id, $object->socid, $object->fk_project, 'none');
+ $form->form_project($_SERVER['PHP_SELF'].'?id='.$object->id, $object->socid, $object->fk_project, 'none');
}
print ' ';
}
diff --git a/htdocs/commande/index.php b/htdocs/commande/index.php
index 3c3b8a0d709..2a3c6d91175 100644
--- a/htdocs/commande/index.php
+++ b/htdocs/commande/index.php
@@ -47,7 +47,7 @@ if ($user->societe_id > 0)
*/
$commandestatic=new Commande($db);
-$html = new Form($db);
+$form = new Form($db);
$formfile = new FormFile($db);
$help_url="EN:Module_Customers_Orders|FR:Module_Commandes_Clients|ES:Módulo Pedidos de clientes";
diff --git a/htdocs/commande/liste.php b/htdocs/commande/liste.php
index c4a1a6af40c..054499be001 100644
--- a/htdocs/commande/liste.php
+++ b/htdocs/commande/liste.php
@@ -69,7 +69,7 @@ $viewstatut=GETPOST('viewstatut');
$now=dol_now();
-$html = new Form($db);
+$form = new Form($db);
$formfile = new FormFile($db);
$companystatic = new Societe($db);
diff --git a/htdocs/commande/note.php b/htdocs/commande/note.php
index dfd1be92018..17d71af6cb7 100644
--- a/htdocs/commande/note.php
+++ b/htdocs/commande/note.php
@@ -81,7 +81,7 @@ if ($_POST["action"] == 'update' && $user->rights->commande->creer)
llxHeader('',$langs->trans('Order'),'EN:Customers_Orders|FR:Commandes_Clients|ES:Pedidos de clientes');
-$html = new Form($db);
+$form = new Form($db);
if ($id > 0 || ! empty($ref))
{
@@ -96,7 +96,7 @@ if ($id > 0 || ! empty($ref))
// Ref
print ''.$langs->trans("Ref").' ';
- print $html->showrefnav($commande,'ref','',1,'ref','ref');
+ print $form->showrefnav($commande,'ref','',1,'ref','ref');
print " ";
// Ref commande client
diff --git a/htdocs/compta/bank/account.php b/htdocs/compta/bank/account.php
index 8f4c72389f1..c3e37e57a21 100644
--- a/htdocs/compta/bank/account.php
+++ b/htdocs/compta/bank/account.php
@@ -129,7 +129,7 @@ $paymentstatic=new Paiement($db);
$paymentsupplierstatic=new PaiementFourn($db);
$paymentvatstatic=new TVA($db);
-$html = new Form($db);
+$form = new Form($db);
if ($account || $_GET["ref"])
{
@@ -271,7 +271,7 @@ if ($account || $_GET["ref"])
// Ref
print ''.$langs->trans("Ref").' ';
print '';
- print $html->showrefnav($acct,'ref','',1,'ref');
+ print $form->showrefnav($acct,'ref','',1,'ref');
print ' ';
// Label
@@ -316,7 +316,7 @@ if ($account || $_GET["ref"])
if ($action == 'delete')
{
$text=$langs->trans('ConfirmDeleteTransaction');
- $ret=$html->form_confirm($_SERVER['PHP_SELF'].'?account='.$acct->id.'&rowid='.$_GET["rowid"],$langs->trans('DeleteTransaction'),$text,'confirm_delete');
+ $ret=$form->form_confirm($_SERVER['PHP_SELF'].'?account='.$acct->id.'&rowid='.$_GET["rowid"],$langs->trans('DeleteTransaction'),$text,'confirm_delete');
if ($ret == 'html') print ' ';
}
@@ -354,10 +354,10 @@ if ($account || $_GET["ref"])
print '';
print '';
- $html->select_date($dateop,'op',0,0,0,'transaction');
+ $form->select_date($dateop,'op',0,0,0,'transaction');
print ' ';
print '';
- $html->select_types_paiements((isset($_POST["operation"])?$_POST["operation"]:''),'operation','1,2',2,1);
+ $form->select_types_paiements((isset($_POST["operation"])?$_POST["operation"]:''),'operation','1,2',2,1);
print ' ';
print ' ';
print '';
@@ -409,7 +409,7 @@ if ($account || $_GET["ref"])
print ' ';
//$filtertype=array('TIP'=>'TIP','PRE'=>'PRE',...)
$filtertype='';
- print $html->select_types_paiements($_REQUEST['paiementtype'],'paiementtype',$filtertype,2,1,1,8);
+ print $form->select_types_paiements($_REQUEST['paiementtype'],'paiementtype',$filtertype,2,1,1,8);
print ' ';
print ' ';
print ' ';
@@ -475,8 +475,8 @@ if ($account || $_GET["ref"])
$now=dol_now();
$nows=dol_print_date($now,'%Y%m%d');
- //$html->load_cache_types_paiements();
- //$html->cache_types_paiements
+ //$form->load_cache_types_paiements();
+ //$form->cache_types_paiements
$var=true;
diff --git a/htdocs/compta/bank/admin/bank.php b/htdocs/compta/bank/admin/bank.php
index 0802a931d70..e9c205f2776 100644
--- a/htdocs/compta/bank/admin/bank.php
+++ b/htdocs/compta/bank/admin/bank.php
@@ -80,7 +80,7 @@ if ($action == 'setbankorder')
llxHeader("",$langs->trans("BankSetupModule"));
-$html=new Form($db);
+$form=new Form($db);
$linkback=''.$langs->trans("BackToModuleList").' ';
print_fiche_titre($langs->trans("BankSetupModule"),$linkback,'setup');
diff --git a/htdocs/compta/bank/fiche.php b/htdocs/compta/bank/fiche.php
index c7f9af67970..2ba2d61417c 100644
--- a/htdocs/compta/bank/fiche.php
+++ b/htdocs/compta/bank/fiche.php
@@ -191,7 +191,7 @@ $countrynotdefined=$langs->trans("ErrorSetACountryFirst").' ('.$langs->trans("Se
llxHeader();
$form = new Form($db);
-$htmlcompany = new FormCompany($db);
+$formcompany = new FormCompany($db);
/* ************************************************************************** */
/* */
@@ -273,7 +273,7 @@ if ($action == 'create')
print ' '.$langs->trans('State').' ';
if ($selectedcode)
{
- $htmlcompany->select_departement(isset($_POST["account_departement_id"])?$_POST["account_departement_id"]:'',$selectedcode,'account_departement_id');
+ $formcompany->select_departement(isset($_POST["account_departement_id"])?$_POST["account_departement_id"]:'',$selectedcode,'account_departement_id');
}
else
{
@@ -544,7 +544,7 @@ else
print ' '.$langs->trans('State').' ';
if ($selectedcode)
{
- $htmlcompany->select_departement(isset($_POST["account_departement_id"])?$_POST["account_departement_id"]:$account->fk_departement,$selectedcode,'account_departement_id');
+ $formcompany->select_departement(isset($_POST["account_departement_id"])?$_POST["account_departement_id"]:$account->fk_departement,$selectedcode,'account_departement_id');
}
else
{
diff --git a/htdocs/compta/bank/ligne.php b/htdocs/compta/bank/ligne.php
index 9f500eea383..0f0e16af275 100644
--- a/htdocs/compta/bank/ligne.php
+++ b/htdocs/compta/bank/ligne.php
@@ -42,7 +42,7 @@ $orig_account=GETPOST("orig_account");
$accountid=GETPOST('accountid');
$confirm=GETPOST('confirm');
-$html = new Form($db);
+$form = new Form($db);
/*
* Actions
@@ -244,7 +244,7 @@ if ($result)
// Confirmations
if ($action == 'delete_categ')
{
- $ret=$html->form_confirm("ligne.php?rowid=".$rowid."&cat1=".GETPOST("fk_categ")."&orig_account=".$orig_account, $langs->trans("RemoveFromRubrique"), $langs->trans("RemoveFromRubriqueConfirm"), "confirm_delete_categ", '', 'yes', 1);
+ $ret=$form->form_confirm("ligne.php?rowid=".$rowid."&cat1=".GETPOST("fk_categ")."&orig_account=".$orig_account, $langs->trans("RemoveFromRubrique"), $langs->trans("RemoveFromRubriqueConfirm"), "confirm_delete_categ", '', 'yes', 1);
if ($ret == 'html') print ' ';
}
@@ -259,7 +259,7 @@ if ($result)
// Ref
print ' '.$langs->trans("Ref")." ";
print '';
- print $html->showrefnav($bankline,'rowid','',1,'rowid','rowid');
+ print $form->showrefnav($bankline,'rowid','',1,'rowid','rowid');
print ' ';
print ' ';
@@ -350,7 +350,7 @@ if ($result)
if ($user->rights->banque->modifier || $user->rights->banque->consolidate)
{
print '';
- print $html->select_types_paiements($objp->fk_type,"value",'',2);
+ print $form->select_types_paiements($objp->fk_type,"value",'',2);
print ' ';
if ($objp->receiptid)
{
@@ -404,7 +404,7 @@ if ($result)
if ($user->rights->banque->modifier || $user->rights->banque->consolidate)
{
print ' ';
- print $html->select_date($db->jdate($objp->do),'dateo','','','','update',1,0,1,$objp->rappro);
+ print $form->select_date($db->jdate($objp->do),'dateo','','','','update',1,0,1,$objp->rappro);
print ' ';
}
else
@@ -420,7 +420,7 @@ if ($result)
if ($user->rights->banque->modifier || $user->rights->banque->consolidate)
{
print '';
- print $html->select_date($db->jdate($objp->dv),'datev','','','','update',1,0,1,$objp->rappro);
+ print $form->select_date($db->jdate($objp->dv),'datev','','','','update',1,0,1,$objp->rappro);
if (! $objp->rappro)
{
print ' ';
diff --git a/htdocs/compta/bank/releve.php b/htdocs/compta/bank/releve.php
index 0db2c4ec816..c36cfb0fd40 100644
--- a/htdocs/compta/bank/releve.php
+++ b/htdocs/compta/bank/releve.php
@@ -70,7 +70,7 @@ $pagenext = $page + 1;
llxHeader();
-$html = new Form($db);
+$form = new Form($db);
// Load account
@@ -113,7 +113,7 @@ if (! isset($_GET["num"]))
// Ref
print ' '.$langs->trans("Ref").' ';
print '';
- print $html->showrefnav($acct,'ref','',1,'ref');
+ print $form->showrefnav($acct,'ref','',1,'ref');
print ' ';
// Label
diff --git a/htdocs/compta/bank/search.php b/htdocs/compta/bank/search.php
index 528111982e0..a5e8743de4c 100644
--- a/htdocs/compta/bank/search.php
+++ b/htdocs/compta/bank/search.php
@@ -68,7 +68,7 @@ $bankaccountstatic=new Account($db);
llxHeader();
-$html = new Form($db);
+$form = new Form($db);
if ($vline) $viewline = $vline;
else $viewline = 50;
@@ -168,7 +168,7 @@ if ($resql)
print ' ';
print ' ';
print '';
- $html->select_types_paiements(empty($_REQUEST["type"])?'':$_REQUEST["type"], 'type', '', 2, 0, 1, 8);
+ $form->select_types_paiements(empty($_REQUEST["type"])?'':$_REQUEST["type"], 'type', '', 2, 0, 1, 8);
print ' ';
print ' ';
print '';
diff --git a/htdocs/compta/bank/treso.php b/htdocs/compta/bank/treso.php
index 6a6a1580f64..0d924bbc0d5 100644
--- a/htdocs/compta/bank/treso.php
+++ b/htdocs/compta/bank/treso.php
@@ -61,7 +61,7 @@ $facturestatic=new Facture($db);
$facturefournstatic=new FactureFournisseur($db);
$socialcontribstatic=new ChargeSociales($db);
-$html = new Form($db);
+$form = new Form($db);
if ($_REQUEST["account"] || $_REQUEST["ref"])
{
@@ -99,7 +99,7 @@ if ($_REQUEST["account"] || $_REQUEST["ref"])
// Ref
print ' '.$langs->trans("Ref").' ';
print '';
- print $html->showrefnav($acct,'ref','',1,'ref');
+ print $form->showrefnav($acct,'ref','',1,'ref');
print ' ';
// Label
diff --git a/htdocs/compta/bank/virement.php b/htdocs/compta/bank/virement.php
index 8c6fc905e30..ed05f6e067b 100644
--- a/htdocs/compta/bank/virement.php
+++ b/htdocs/compta/bank/virement.php
@@ -131,7 +131,7 @@ if ($_POST["action"] == 'add')
llxHeader();
-$html=new Form($db);
+$form=new Form($db);
print_fiche_titre($langs->trans("BankTransfer"));
@@ -153,15 +153,15 @@ print '';
$var=false;
print '';
-print $html->select_comptes($_POST['account_from'],'account_from',0,'',1);
+print $form->select_comptes($_POST['account_from'],'account_from',0,'',1);
print " ";
print "\n";
-print $html->select_comptes($_POST['account_to'],'account_to',0,'',1);
+print $form->select_comptes($_POST['account_to'],'account_to',0,'',1);
print " \n";
print "";
-$html->select_date($dateo,'','','','','add');
+$form->select_date($dateo,'','','','','add');
print " \n";
print ' ';
print ' ';
diff --git a/htdocs/compta/dons/fiche.php b/htdocs/compta/dons/fiche.php
index 0051d74f56a..4b41aabd622 100644
--- a/htdocs/compta/dons/fiche.php
+++ b/htdocs/compta/dons/fiche.php
@@ -244,9 +244,9 @@ if ($_REQUEST['action'] == 'builddoc')
llxHeader('',$langs->trans("Donations"),'EN:Module_Donations|FR:Module_Dons|ES:Módulo_Subvenciones');
-$html=new Form($db);
+$form=new Form($db);
$formfile = new FormFile($db);
-$htmlcompany = new FormCompany($db);
+$formcompany = new FormCompany($db);
/* ************************************************************************** */
@@ -272,7 +272,7 @@ if ($_GET["action"] == 'create')
// Date
print ''.$langs->trans("Date").' ';
- $html->select_date($donation_date?$donation_date:-1,'','','','',"add",1,1);
+ $form->select_date($donation_date?$donation_date:-1,'','','','',"add",1,1);
print ' ';
print ''.$langs->trans("Comments").' : ';
@@ -283,7 +283,7 @@ if ($_GET["action"] == 'create')
print " ".''.$langs->trans("Amount").' '.$langs->trans("Currency".$conf->monnaie).' ';
print ''.$langs->trans("PublicDonation")." ";
- print $html->selectyesno("public",isset($_POST["public"])?$_POST["public"]:1,1);
+ print $form->selectyesno("public",isset($_POST["public"])?$_POST["public"]:1,1);
print " \n";
print "".''.$langs->trans("Company").' ';
@@ -294,16 +294,16 @@ if ($_GET["action"] == 'create')
// Zip / Town
print ''.$langs->trans("Zip").' / '.$langs->trans("Town").' ';
- print $htmlcompany->select_ziptown((isset($_POST["zipcode"])?$_POST["zipcode"]:$don->zip),'zipcode',array('town','selectpays_id','departement_id'),6);
+ print $formcompany->select_ziptown((isset($_POST["zipcode"])?$_POST["zipcode"]:$don->zip),'zipcode',array('town','selectpays_id','departement_id'),6);
print ' ';
- print $htmlcompany->select_ziptown((isset($_POST["town"])?$_POST["town"]:$don->town),'town',array('zipcode','selectpays_id','departement_id'));
+ print $formcompany->select_ziptown((isset($_POST["town"])?$_POST["town"]:$don->town),'town',array('zipcode','selectpays_id','departement_id'));
print ' ';
print "".''.$langs->trans("Country").' ';
print "".''.$langs->trans("EMail").' ';
print "".$langs->trans("PaymentMode")." \n";
- $html->select_types_paiements('', 'modepaiement', 'CRDT', 0, 1);
+ $form->select_types_paiements('', 'modepaiement', 'CRDT', 0, 1);
print " \n";
if ($conf->projet->enabled)
@@ -357,7 +357,7 @@ if ($_GET["rowid"] && $_GET["action"] == 'edit')
// Date
print "".''.$langs->trans("Date").' ';
- $html->select_date($don->date,'','','','',"update");
+ $form->select_date($don->date,'','','','',"update");
print ' ';
print ''.$langs->trans("Comments").' : ';
@@ -368,7 +368,7 @@ if ($_GET["rowid"] && $_GET["action"] == 'edit')
print " ".''.$langs->trans("Amount").' '.$langs->trans("Currency".$conf->monnaie).' ';
print ''.$langs->trans("PublicDonation")." ";
- print $html->selectyesno("public",1,1);
+ print $form->selectyesno("public",1,1);
print " ";
print " \n";
@@ -381,16 +381,16 @@ if ($_GET["rowid"] && $_GET["action"] == 'edit')
// Zip / Town
print ''.$langs->trans("Zip").' / '.$langs->trans("Town").' ';
- print $htmlcompany->select_ziptown((isset($_POST["zipcode"])?$_POST["zipcode"]:$don->zip),'zipcode',array('town','selectpays_id','departement_id'),6);
+ print $formcompany->select_ziptown((isset($_POST["zipcode"])?$_POST["zipcode"]:$don->zip),'zipcode',array('town','selectpays_id','departement_id'),6);
print ' ';
- print $htmlcompany->select_ziptown((isset($_POST["town"])?$_POST["town"]:$don->town),'town',array('zipcode','selectpays_id','departement_id'));
+ print $formcompany->select_ziptown((isset($_POST["town"])?$_POST["town"]:$don->town),'town',array('zipcode','selectpays_id','departement_id'));
print ' ';
print "".''.$langs->trans("Country").' ';
print "".''.$langs->trans("EMail").' ';
print "".$langs->trans("PaymentMode")." \n";
- $html->select_types_paiements('', 'modepaiement', 'CRDT', 0, 1);
+ $form->select_types_paiements('', 'modepaiement', 'CRDT', 0, 1);
print " \n";
print "".''.$langs->trans("Status").' '.$don->getLibStatut(4).' ';
@@ -443,7 +443,7 @@ if ($_GET["rowid"] && $_GET["action"] != 'edit')
// Ref
print "".''.$langs->trans("Ref").' ';
- print $html->showrefnav($don,'rowid','',1,'rowid','ref','');
+ print $form->showrefnav($don,'rowid','',1,'rowid','ref','');
print ' ';
print ' ';
diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php
index 25cd3a251f5..37ce3d68ad7 100644
--- a/htdocs/compta/facture.php
+++ b/htdocs/compta/facture.php
@@ -1421,7 +1421,7 @@ if (GETPOST('action') == 'builddoc') // En get ou en post
llxHeader('',$langs->trans('Bill'),'EN:Customers_Invoices|FR:Factures_Clients|ES:Facturas_a_clientes');
-$html = new Form($db);
+$form = new Form($db);
$htmlother = new FormOther($db);
$formfile = new FormFile($db);
$now=dol_now();
@@ -1603,7 +1603,7 @@ if ($action == 'create')
print '';
print ' ';
print ' ';
- $desc=$html->textwithpicto($langs->trans("InvoiceStandardAsk"),$langs->transnoentities("InvoiceStandardDesc"),1);
+ $desc=$form->textwithpicto($langs->trans("InvoiceStandardAsk"),$langs->transnoentities("InvoiceStandardDesc"),1);
print $desc;
print ' '."\n";
@@ -1611,7 +1611,7 @@ if ($action == 'create')
print '';
print ' ';
print ' ';
- $desc=$html->textwithpicto($langs->trans("InvoiceDeposit"),$langs->transnoentities("InvoiceDepositDesc"),1);
+ $desc=$form->textwithpicto($langs->trans("InvoiceDeposit"),$langs->transnoentities("InvoiceDepositDesc"),1);
print $desc;
print ' '."\n";
@@ -1621,7 +1621,7 @@ if ($action == 'create')
print '';
print ' ';
print ' ';
- $desc=$html->textwithpicto($langs->trans("InvoiceProForma"),$langs->transnoentities("InvoiceProFormaDesc"),1);
+ $desc=$form->textwithpicto($langs->trans("InvoiceProForma"),$langs->transnoentities("InvoiceProFormaDesc"),1);
print $desc;
print ' '."\n";
}
@@ -1646,7 +1646,7 @@ if ($action == 'create')
$text.=''.$langs->trans("NoReplacableInvoice").' ';
}
$text.='';
- $desc=$html->textwithpicto($text,$langs->transnoentities("InvoiceReplacementDesc"),1);
+ $desc=$form->textwithpicto($text,$langs->transnoentities("InvoiceReplacementDesc"),1);
print $desc;
print ''."\n";
@@ -1671,7 +1671,7 @@ if ($action == 'create')
$text.=''.$langs->trans("NoInvoiceToCorrect").' ';
}
$text.='';
- $desc=$html->textwithpicto($text,$langs->transnoentities("InvoiceAvoirDesc"),1);
+ $desc=$form->textwithpicto($text,$langs->transnoentities("InvoiceAvoirDesc"),1);
//.' ('.$langs->trans("FeatureNotYetAvailable").')',$langs->transnoentities("InvoiceAvoirDesc"),1);
print $desc;
print ''."\n";
@@ -1694,17 +1694,17 @@ if ($action == 'create')
// Date invoice
print ''.$langs->trans('Date').' ';
- $html->select_date($dateinvoice,'','','','',"add",1,1);
+ $form->select_date($dateinvoice,'','','','',"add",1,1);
print ' ';
// Payment term
print ''.$langs->trans('PaymentConditionsShort').' ';
- $html->select_conditions_paiements(isset($_POST['cond_reglement_id'])?$_POST['cond_reglement_id']:$cond_reglement_id,'cond_reglement_id');
+ $form->select_conditions_paiements(isset($_POST['cond_reglement_id'])?$_POST['cond_reglement_id']:$cond_reglement_id,'cond_reglement_id');
print ' ';
// Payment mode
print ''.$langs->trans('PaymentMode').' ';
- $html->select_types_paiements(isset($_POST['mode_reglement_id'])?$_POST['mode_reglement_id']:$mode_reglement_id,'mode_reglement_id');
+ $form->select_types_paiements(isset($_POST['mode_reglement_id'])?$_POST['mode_reglement_id']:$mode_reglement_id,'mode_reglement_id');
print ' ';
// Project
@@ -1725,7 +1725,7 @@ if ($action == 'create')
print '';
include_once(DOL_DOCUMENT_ROOT.'/core/modules/facture/modules_facture.php');
$liste=ModelePDFFactures::liste_modeles($db);
- print $html->selectarray('model',$liste,$conf->global->FACTURE_ADDON_PDF);
+ print $form->selectarray('model',$liste,$conf->global->FACTURE_ADDON_PDF);
print " ";
// Public note
@@ -1816,9 +1816,9 @@ if ($action == 'create')
print '';
// multiprix
if($conf->global->PRODUIT_MULTIPRICES)
- $html->select_produits('','idprod'.$i,'',$conf->product->limit_size,$soc->price_level);
+ $form->select_produits('','idprod'.$i,'',$conf->product->limit_size,$soc->price_level);
else
- $html->select_produits('','idprod'.$i,'',$conf->product->limit_size);
+ $form->select_produits('','idprod'.$i,'',$conf->product->limit_size);
print ' ';
print ' ';
print ' % ';
@@ -1831,12 +1831,12 @@ if ($action == 'create')
print '';
print $langs->trans('From').' ';
print ' ';
- print $html->select_date('','date_start'.$i,$usehm,$usehm,1,"add");
+ print $form->select_date('','date_start'.$i,$usehm,$usehm,1,"add");
print ' ';
print '';
print $langs->trans('to').' ';
print ' ';
- print $html->select_date('','date_end'.$i,$usehm,$usehm,1,"add");
+ print $form->select_date('','date_end'.$i,$usehm,$usehm,1,"add");
print '
';
print ' ';
}
@@ -1926,14 +1926,14 @@ else
if ($action == 'converttoreduc')
{
$text=$langs->trans('ConfirmConvertToReduc');
- $formconfirm=$html->formconfirm($_SERVER['PHP_SELF'].'?facid='.$object->id,$langs->trans('ConvertToReduc'),$text,'confirm_converttoreduc','',"yes",2);
+ $formconfirm=$form->formconfirm($_SERVER['PHP_SELF'].'?facid='.$object->id,$langs->trans('ConvertToReduc'),$text,'confirm_converttoreduc','',"yes",2);
}
// Confirmation to delete invoice
if ($action == 'delete')
{
$text=$langs->trans('ConfirmDeleteBill');
- $formconfirm=$html->formconfirm($_SERVER['PHP_SELF'].'?facid='.$object->id,$langs->trans('DeleteBill'),$text,'confirm_delete','',0,1);
+ $formconfirm=$form->formconfirm($_SERVER['PHP_SELF'].'?facid='.$object->id,$langs->trans('DeleteBill'),$text,'confirm_delete','',0,1);
}
// Confirmation de la validation
@@ -1966,13 +1966,13 @@ else
$text.=$notify->confirmMessage('NOTIFY_VAL_FAC',$object->socid);
}
- $formconfirm=$html->formconfirm($_SERVER["PHP_SELF"].'?facid='.$object->id,$langs->trans('ValidateBill'),$text,'confirm_valid','',"yes",($conf->notification->enabled?0:2));
+ $formconfirm=$form->formconfirm($_SERVER["PHP_SELF"].'?facid='.$object->id,$langs->trans('ValidateBill'),$text,'confirm_valid','',"yes",($conf->notification->enabled?0:2));
}
// Confirmation du classement paye
if ($action == 'paid' && $resteapayer <= 0)
{
- $formconfirm=$html->formconfirm($_SERVER["PHP_SELF"].'?facid='.$object->id,$langs->trans('ClassifyPaid'),$langs->trans('ConfirmClassifyPaidBill',$object->ref),'confirm_paid','',"yes",1);
+ $formconfirm=$form->formconfirm($_SERVER["PHP_SELF"].'?facid='.$object->id,$langs->trans('ClassifyPaid'),$langs->trans('ConfirmClassifyPaidBill',$object->ref),'confirm_paid','',"yes",1);
}
if ($action == 'paid' && $resteapayer > 0)
{
@@ -1986,8 +1986,8 @@ else
$close[$i]['label']=$langs->trans("ConfirmClassifyPaidPartiallyReasonBadCustomerDesc");$i++;
// Texte
$i=0;
- $close[$i]['reason']=$html->textwithpicto($langs->transnoentities("ConfirmClassifyPaidPartiallyReasonDiscountVat",$resteapayer,$langs->trans("Currency".$conf->monnaie)),$close[$i]['label'],1);$i++;
- $close[$i]['reason']=$html->textwithpicto($langs->transnoentities("ConfirmClassifyPaidPartiallyReasonBadCustomer",$resteapayer,$langs->trans("Currency".$conf->monnaie)),$close[$i]['label'],1);$i++;
+ $close[$i]['reason']=$form->textwithpicto($langs->transnoentities("ConfirmClassifyPaidPartiallyReasonDiscountVat",$resteapayer,$langs->trans("Currency".$conf->monnaie)),$close[$i]['label'],1);$i++;
+ $close[$i]['reason']=$form->textwithpicto($langs->transnoentities("ConfirmClassifyPaidPartiallyReasonBadCustomer",$resteapayer,$langs->trans("Currency".$conf->monnaie)),$close[$i]['label'],1);$i++;
// arrayreasons[code]=reason
foreach($close as $key => $val)
{
@@ -2001,7 +2001,7 @@ else
array('type' => 'text', 'name' => 'close_note', 'label' => $langs->trans("Comment"), 'value' => '', 'size' => '100')
);
// Paiement incomplet. On demande si motif = escompte ou autre
- $formconfirm=$html->formconfirm($_SERVER["PHP_SELF"].'?facid='.$object->id,$langs->trans('ClassifyPaid'),$langs->trans('ConfirmClassifyPaidPartially',$object->ref),'confirm_paid_partially',$formquestion,"yes");
+ $formconfirm=$form->formconfirm($_SERVER["PHP_SELF"].'?facid='.$object->id,$langs->trans('ClassifyPaid'),$langs->trans('ConfirmClassifyPaidPartially',$object->ref),'confirm_paid_partially',$formquestion,"yes");
}
// Confirmation du classement abandonne
@@ -2028,8 +2028,8 @@ else
$close[1]['label']=$langs->trans("ConfirmClassifyPaidPartiallyReasonBadCustomerDesc");
$close[2]['label']=$langs->trans("ConfirmClassifyAbandonReasonOtherDesc");
// Texte
- $close[1]['reason']=$html->textwithpicto($langs->transnoentities("ConfirmClassifyPaidPartiallyReasonBadCustomer",$object->ref),$close[1]['label'],1);
- $close[2]['reason']=$html->textwithpicto($langs->transnoentities("ConfirmClassifyAbandonReasonOther"),$close[2]['label'],1);
+ $close[1]['reason']=$form->textwithpicto($langs->transnoentities("ConfirmClassifyPaidPartiallyReasonBadCustomer",$object->ref),$close[1]['label'],1);
+ $close[2]['reason']=$form->textwithpicto($langs->transnoentities("ConfirmClassifyAbandonReasonOther"),$close[2]['label'],1);
// arrayreasons
$arrayreasons[$close[1]['code']]=$close[1]['reason'];
$arrayreasons[$close[2]['code']]=$close[2]['reason'];
@@ -2041,14 +2041,14 @@ else
array('type' => 'text', 'name' => 'close_note', 'label' => $langs->trans("Comment"), 'value' => '', 'size' => '100')
);
- $formconfirm=$html->formconfirm($_SERVER['PHP_SELF'].'?facid='.$object->id,$langs->trans('CancelBill'),$langs->trans('ConfirmCancelBill',$object->ref),'confirm_canceled',$formquestion,"yes");
+ $formconfirm=$form->formconfirm($_SERVER['PHP_SELF'].'?facid='.$object->id,$langs->trans('CancelBill'),$langs->trans('ConfirmCancelBill',$object->ref),'confirm_canceled',$formquestion,"yes");
}
}
// Confirmation de la suppression d'une ligne produit
if ($action == 'ask_deleteline')
{
- $formconfirm=$html->formconfirm($_SERVER["PHP_SELF"].'?facid='.$object->id.'&lineid='.$lineid, $langs->trans('DeleteProductLine'), $langs->trans('ConfirmDeleteProductLine'), 'confirm_deleteline', '', 'no', 1);
+ $formconfirm=$form->formconfirm($_SERVER["PHP_SELF"].'?facid='.$object->id.'&lineid='.$lineid, $langs->trans('DeleteProductLine'), $langs->trans('ConfirmDeleteProductLine'), 'confirm_deleteline', '', 'no', 1);
}
// Clone confirmation
@@ -2060,7 +2060,7 @@ else
//array('type' => 'checkbox', 'name' => 'clone_content', 'label' => $langs->trans("CloneMainAttributes"), 'value' => 1)
);
// Paiement incomplet. On demande si motif = escompte ou autre
- $formconfirm=$html->formconfirm($_SERVER["PHP_SELF"].'?facid='.$object->id,$langs->trans('CloneInvoice'),$langs->trans('ConfirmCloneInvoice',$object->ref),'confirm_clone',$formquestion,'yes',1);
+ $formconfirm=$form->formconfirm($_SERVER["PHP_SELF"].'?facid='.$object->id,$langs->trans('CloneInvoice'),$langs->trans('ConfirmCloneInvoice',$object->ref),'confirm_clone',$formquestion,'yes',1);
}
if (! $formconfirm)
@@ -2091,7 +2091,7 @@ else
{
dol_print_error('',$discount->error);
}
- print $html->showrefnav($object,'ref','',1,'facnumber','ref',$morehtmlref);
+ print $form->showrefnav($object,'ref','',1,'facnumber','ref',$morehtmlref);
print ' ';
// Third party
@@ -2105,7 +2105,7 @@ else
print '