Fix: Restore feature broken with renaming
This commit is contained in:
parent
f3bedb2ddc
commit
8fa175f3e9
@ -735,7 +735,7 @@ if ($action == 'edit')
|
||||
$morphys["phy"] = $langs->trans("Physical");
|
||||
$morphys["mor"] = $langs->trans("Morale");
|
||||
print '<tr><td><span class="fieldrequired">'.$langs->trans("Person").'</span></td><td colspan="2">';
|
||||
$html->selectarray("morphy", $morphys, isset($_POST["morphy"])?$_POST["morphy"]:$adh->morphy);
|
||||
print $html->selectarray("morphy", $morphys, isset($_POST["morphy"])?$_POST["morphy"]:$adh->morphy);
|
||||
print "</td></tr>";
|
||||
|
||||
// Societe
|
||||
@ -777,7 +777,7 @@ if ($action == 'edit')
|
||||
print '<tr><td><span class="fieldrequired">'.$langs->trans("Type").'</span></td><td>';
|
||||
if ($user->rights->adherent->creer)
|
||||
{
|
||||
$html->selectarray("typeid", $adht->liste_array(), (isset($_POST["typeid"])?$_POST["typeid"]:$adh->typeid));
|
||||
print $html->selectarray("typeid", $adht->liste_array(), (isset($_POST["typeid"])?$_POST["typeid"]:$adh->typeid));
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -921,7 +921,7 @@ if ($action == 'create')
|
||||
$morphys["phy"] = $langs->trans("Physical");
|
||||
$morphys["mor"] = $langs->trans("Moral");
|
||||
print '<tr><td><span class="fieldrequired">'.$langs->trans("Person")."</span></td><td>\n";
|
||||
$html->selectarray("morphy", $morphys, isset($_POST["morphy"])?$_POST["morphy"]:$adh->morphy, 1);
|
||||
print $html->selectarray("morphy", $morphys, isset($_POST["morphy"])?$_POST["morphy"]:$adh->morphy, 1);
|
||||
print "</td>\n";
|
||||
|
||||
// Company
|
||||
@ -963,7 +963,7 @@ if ($action == 'create')
|
||||
$listetype=$adht->liste_array();
|
||||
if (sizeof($listetype))
|
||||
{
|
||||
$html->selectarray("typeid", $listetype, isset($_POST["typeid"])?$_POST["typeid"]:$typeid, 1);
|
||||
print $html->selectarray("typeid", $listetype, isset($_POST["typeid"])?$_POST["typeid"]:$typeid, 1);
|
||||
} else {
|
||||
print '<font class="error">'.$langs->trans("NoTypeDefinedGoToSetup").'</font>';
|
||||
}
|
||||
|
||||
@ -230,7 +230,7 @@ if ($resql)
|
||||
|
||||
print '<td class="liste_titre">';
|
||||
$listetype=$membertypestatic->liste_array();
|
||||
$form->selectarray("type", $listetype, $_REQUEST["type"], 1, 0, 0, '', 0, 12);
|
||||
print $form->selectarray("type", $listetype, $_REQUEST["type"], 1, 0, 0, '', 0, 12);
|
||||
print '</td>';
|
||||
|
||||
print '<td class="liste_titre"> </td>';
|
||||
|
||||
@ -175,7 +175,7 @@ if ($_GET["action"] == 'create')
|
||||
print '<tr><td>'.$langs->trans("Label").'</td><td class="valeur"><input type="text" name="label" size="40"></td></tr>';
|
||||
print '<tr><td>'.$langs->trans("AttributeCode").' ('.$langs->trans("AlphaNumOnlyCharsAndNoSpace").')</td><td class="valeur"><input type="text" name="attrname" size="10"></td></tr>';
|
||||
print '<tr><td>'.$langs->trans("Type").'</td><td class="valeur">';
|
||||
$form->selectarray('type',array('varchar'=>$langs->trans('String'),
|
||||
print $form->selectarray('type',array('varchar'=>$langs->trans('String'),
|
||||
'text'=>$langs->trans('Text'),
|
||||
'int'=>$langs->trans('Int'),
|
||||
'date'=>$langs->trans('Date'),
|
||||
@ -226,7 +226,7 @@ if ($_GET["attrname"] && $_GET["action"] == 'edit')
|
||||
'int'=>$langs->trans('Int'),
|
||||
'date'=>$langs->trans('Date'),
|
||||
'datetime'=>$langs->trans('DateAndTime'));
|
||||
//$form->selectarray('type',$type2label,$type);
|
||||
//print $form->selectarray('type',$type2label,$type);
|
||||
print $type2label[$type];
|
||||
print '<input type="hidden" name="type" value="'.$type.'">';
|
||||
print '</td></tr>';
|
||||
|
||||
@ -840,7 +840,7 @@ function fieldList($fieldlist,$obj='')
|
||||
"facture"=>$langs->trans("Bill"),
|
||||
"facture_fourn"=>$langs->trans("SupplierBill"),
|
||||
"fichinter"=>$langs->trans("InterventionCard"));
|
||||
$html->selectarray('element', $elementList,$obj->$fieldlist[$field]);
|
||||
print $html->selectarray('element', $elementList,$obj->$fieldlist[$field]);
|
||||
print '</td>';
|
||||
}
|
||||
// La source de l'element (pour les type de contact).'
|
||||
@ -849,7 +849,7 @@ function fieldList($fieldlist,$obj='')
|
||||
print '<td>';
|
||||
$elementList = array("internal"=>$langs->trans("Internal"),
|
||||
"external"=>$langs->trans("External"));
|
||||
$html->selectarray('source', $elementList,$obj->$fieldlist[$field]);
|
||||
print $html->selectarray('source', $elementList,$obj->$fieldlist[$field]);
|
||||
print '</td>';
|
||||
}
|
||||
elseif ($fieldlist[$field] == 'type' && $tabname[$_GET["id"]] == MAIN_DB_PREFIX."c_actioncomm")
|
||||
@ -874,7 +874,7 @@ function fieldList($fieldlist,$obj='')
|
||||
}
|
||||
elseif ($fieldlist[$field]=='unit') {
|
||||
print '<td>';
|
||||
$html->selectarray('unit',array('mm','cm','point','inch'),$obj->$fieldlist[$field],0,0,1);
|
||||
print $html->selectarray('unit',array('mm','cm','point','inch'),$obj->$fieldlist[$field],0,0,1);
|
||||
print '</td>';
|
||||
}
|
||||
else
|
||||
|
||||
@ -179,7 +179,7 @@ if (isset($_GET["action"]) && $_GET["action"] == 'edit') // Edit
|
||||
//'eldy'=>$langs->trans("Yes").' (style eldy)',
|
||||
//'andre'=>$langs->trans("Yes").' (style andre)'
|
||||
);
|
||||
$html->selectarray('main_popup_calendar',$liste_popup_calendar,$conf->global->MAIN_POPUP_CALENDAR);
|
||||
print $html->selectarray('main_popup_calendar',$liste_popup_calendar,$conf->global->MAIN_POPUP_CALENDAR);
|
||||
print ' ('.$langs->trans("AvailableOnlyIfJavascriptNotDisabled").')';
|
||||
print '</td>';
|
||||
print '<td width="20"> </td>';
|
||||
|
||||
@ -110,7 +110,7 @@ $arraylist=array();
|
||||
$arraylist['0']=$langs->trans("No");
|
||||
$arraylist['ldap2dolibarr']=$langs->trans("LDAPToDolibarr");
|
||||
$arraylist['dolibarr2ldap']=$langs->trans("DolibarrToLDAP");
|
||||
$html->selectarray('activesynchro',$arraylist,$conf->global->LDAP_SYNCHRO_ACTIVE);
|
||||
print $html->selectarray('activesynchro',$arraylist,$conf->global->LDAP_SYNCHRO_ACTIVE);
|
||||
print '</td><td>'.$langs->trans("LDAPDnSynchroActiveExample");
|
||||
if ($conf->global->LDAP_SYNCHRO_ACTIVE && ! $conf->global->LDAP_USER_DN)
|
||||
{
|
||||
@ -126,7 +126,7 @@ if ($conf->societe->enabled)
|
||||
$arraylist=array();
|
||||
$arraylist['0']=$langs->trans("No");
|
||||
$arraylist['1']=$langs->trans("DolibarrToLDAP");
|
||||
$html->selectarray('activecontact',$arraylist,$conf->global->LDAP_CONTACT_ACTIVE);
|
||||
print $html->selectarray('activecontact',$arraylist,$conf->global->LDAP_CONTACT_ACTIVE);
|
||||
print '</td><td>'.$langs->trans("LDAPDnContactActiveExample").'</td></tr>';
|
||||
}
|
||||
|
||||
@ -138,7 +138,7 @@ if ($conf->adherent->enabled)
|
||||
$arraylist=array();
|
||||
$arraylist['0']=$langs->trans("No");
|
||||
$arraylist['1']=$langs->trans("DolibarrToLDAP");
|
||||
$html->selectarray('activemembers',$arraylist,$conf->global->LDAP_MEMBER_ACTIVE);
|
||||
print $html->selectarray('activemembers',$arraylist,$conf->global->LDAP_MEMBER_ACTIVE);
|
||||
print '</td><td>'.$langs->trans("LDAPDnMemberActiveExample").'</td></tr>';
|
||||
}
|
||||
|
||||
@ -155,7 +155,7 @@ $arraylist=array();
|
||||
$arraylist['activedirectory']='Active Directory';
|
||||
$arraylist['openldap']='OpenLdap';
|
||||
$arraylist['egroupware']='Egroupware';
|
||||
$html->selectarray('type',$arraylist,$conf->global->LDAP_SERVER_TYPE);
|
||||
print $html->selectarray('type',$arraylist,$conf->global->LDAP_SERVER_TYPE);
|
||||
print '</td><td> </td></tr>';
|
||||
|
||||
// Version
|
||||
@ -164,7 +164,7 @@ print '<tr '.$bc[$var].'><td>'.$langs->trans("Version").'</td><td>';
|
||||
$arraylist=array();
|
||||
$arraylist['3']='Version 3';
|
||||
$arraylist['2']='Version 2';
|
||||
$html->selectarray('version',$arraylist,$conf->global->LDAP_SERVER_PROTOCOLVERSION);
|
||||
print $html->selectarray('version',$arraylist,$conf->global->LDAP_SERVER_PROTOCOLVERSION);
|
||||
print '</td><td>'.$langs->trans("LDAPServerProtocolVersion").'</td></tr>';
|
||||
|
||||
// Serveur primaire
|
||||
@ -206,7 +206,7 @@ print '<tr '.$bc[$var].'><td>'.$langs->trans("LDAPServerUseTLS").'</td><td>';
|
||||
$arraylist=array();
|
||||
$arraylist['0']=$langs->trans("No");
|
||||
$arraylist['1']=$langs->trans("Yes");
|
||||
$html->selectarray('usetls',$arraylist,$conf->global->LDAP_SERVER_USE_TLS);
|
||||
print $html->selectarray('usetls',$arraylist,$conf->global->LDAP_SERVER_USE_TLS);
|
||||
print '</td><td>'.$langs->trans("LDAPServerUseTLSExample").'</td></tr>';
|
||||
|
||||
print '<tr class="liste_titre">';
|
||||
|
||||
@ -151,7 +151,7 @@ if ($action == 'create')
|
||||
|
||||
print '<tr><td>'.$langs->trans("BehaviourOnClick").'</td><td>';
|
||||
$liste=array(0=>$langs->trans("ReplaceWindow"),1=>$langs->trans("OpenANewWindow"));
|
||||
$html->selectarray('target',$liste,1);
|
||||
print $html->selectarray('target',$liste,1);
|
||||
print '</td><td>'.$langs->trans("ChooseIfANewWindowMustBeOpenedOnClickOnBookmark").'</td></tr>';
|
||||
|
||||
print '<tr><td>'.$langs->trans("Owner").'</td><td>';
|
||||
@ -212,7 +212,7 @@ if ($_GET["id"] > 0 && ! preg_match('/^add/i',$_GET["action"]))
|
||||
if ($_GET["action"] == 'edit')
|
||||
{
|
||||
$liste=array(1=>$langs->trans("OpenANewWindow"),0=>$langs->trans("ReplaceWindow"));
|
||||
$html->selectarray('target',$liste,isset($_POST["target"])?$_POST["target"]:$bookmark->target);
|
||||
print $html->selectarray('target',$liste,isset($_POST["target"])?$_POST["target"]:$bookmark->target);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@ -679,7 +679,7 @@ if ($_GET["id"])
|
||||
|
||||
// Contact
|
||||
print '<td>'.$langs->trans("Contact").'</td><td width="30%">';
|
||||
$html->selectarray("contactid", $act->societe->contact_array(), $act->contact->id, 1);
|
||||
print $html->selectarray("contactid", $act->societe->contact_array(), $act->contact->id, 1);
|
||||
print '</td></tr>';
|
||||
|
||||
// Project
|
||||
|
||||
@ -198,7 +198,7 @@ if ($_GET["action"] == 'create')
|
||||
print '<td colspan="2">';
|
||||
$model=new ModelePDFPropales();
|
||||
$liste=$model->liste_modeles($db);
|
||||
$html->selectarray('model',$liste,$conf->global->PROPALE_ADDON_PDF);
|
||||
print $html->selectarray('model',$liste,$conf->global->PROPALE_ADDON_PDF);
|
||||
print "</td></tr>";
|
||||
|
||||
// Project
|
||||
@ -261,7 +261,7 @@ if ($_GET["action"] == 'create')
|
||||
$liste_propal[$row[0]]=$propalRefAndSocName;
|
||||
$i++;
|
||||
}
|
||||
$html->selectarray("copie_propal",$liste_propal, 0);
|
||||
print $html->selectarray("copie_propal",$liste_propal, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@ -1141,7 +1141,7 @@ if ($_GET['action'] == 'create' && $user->rights->commande->creer)
|
||||
include_once(DOL_DOCUMENT_ROOT.'/includes/modules/commande/modules_commande.php');
|
||||
$model=new ModelePDFCommandes();
|
||||
$liste=$model->liste_modeles($db);
|
||||
$html->selectarray('model',$liste,$conf->global->COMMANDE_ADDON_PDF);
|
||||
print $html->selectarray('model',$liste,$conf->global->COMMANDE_ADDON_PDF);
|
||||
print "</td></tr>";
|
||||
|
||||
// Note publique
|
||||
|
||||
@ -226,7 +226,7 @@ if ($_REQUEST["action"] == 'create')
|
||||
// Status
|
||||
print '<tr><td valign="top" class="fieldrequired">'.$langs->trans("Status").'</td>';
|
||||
print '<td colspan="3">';
|
||||
$form->selectarray("clos",array(0=>$account->status[0],1=>$account->status[1]),(isset($_POST["clos"])?$_POST["clos"]:$account->clos));
|
||||
print $form->selectarray("clos",array(0=>$account->status[0],1=>$account->status[1]),(isset($_POST["clos"])?$_POST["clos"]:$account->clos));
|
||||
print '</td></tr>';
|
||||
|
||||
// Country
|
||||
@ -484,7 +484,7 @@ else
|
||||
// Status
|
||||
print '<tr><td valign="top" class="fieldrequired">'.$langs->trans("Status").'</td>';
|
||||
print '<td colspan="3">';
|
||||
$form->selectarray("clos",array(0=>$account->status[0],1=>$account->status[1]),(isset($_POST["clos"])?$_POST["clos"]:$account->clos));
|
||||
print $form->selectarray("clos",array(0=>$account->status[0],1=>$account->status[1]),(isset($_POST["clos"])?$_POST["clos"]:$account->clos));
|
||||
print '</td></tr>';
|
||||
|
||||
// Country
|
||||
|
||||
@ -1630,7 +1630,7 @@ if ($_GET['action'] == 'create')
|
||||
include_once(DOL_DOCUMENT_ROOT.'/includes/modules/facture/modules_facture.php');
|
||||
$model=new ModelePDFFactures();
|
||||
$liste=$model->liste_modeles($db);
|
||||
$html->selectarray('model',$liste,$conf->global->FACTURE_ADDON_PDF);
|
||||
print $html->selectarray('model',$liste,$conf->global->FACTURE_ADDON_PDF);
|
||||
print "</td></tr>";
|
||||
|
||||
// Note publique
|
||||
|
||||
@ -381,7 +381,7 @@ if ($user->rights->societe->contact->creer)
|
||||
// Visibility
|
||||
print '<tr><td>'.$langs->trans("ContactVisibility").'</td><td colspan="3">';
|
||||
$selectarray=array('0'=>$langs->trans("ContactPublic"),'1'=>$langs->trans("ContactPrivate"));
|
||||
$form->selectarray('priv',$selectarray,(isset($_POST["priv"])?$_POST["priv"]:$contact->priv),0);
|
||||
print $form->selectarray('priv',$selectarray,(isset($_POST["priv"])?$_POST["priv"]:$contact->priv),0);
|
||||
print '</td></tr>';
|
||||
|
||||
// Note
|
||||
@ -495,7 +495,7 @@ if ($user->rights->societe->contact->creer)
|
||||
// Visibility
|
||||
print '<tr><td>'.$langs->trans("ContactVisibility").'</td><td colspan="3">';
|
||||
$selectarray=array('0'=>$langs->trans("ContactPublic"),'1'=>$langs->trans("ContactPrivate"));
|
||||
$form->selectarray('priv',$selectarray,$contact->priv,0);
|
||||
print $form->selectarray('priv',$selectarray,$contact->priv,0);
|
||||
print '</td></tr>';
|
||||
|
||||
print '<tr><td valign="top">'.$langs->trans("Note").'</td><td colspan="3">';
|
||||
|
||||
@ -273,7 +273,7 @@ if ($result)
|
||||
print '<td class="liste_titre"> </td>';
|
||||
print '<td class="liste_titre" align="center">';
|
||||
$selectarray=array('0'=>$langs->trans("ContactPublic"),'1'=>$langs->trans("ContactPrivate"));
|
||||
$form->selectarray('search_priv',$selectarray,$search_priv,1);
|
||||
print $form->selectarray('search_priv',$selectarray,$search_priv,1);
|
||||
print '</td>';
|
||||
print '<td class="liste_titre" align="right">';
|
||||
print '<input type="image" value="button_search" class="liste_titre" src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/search.png" name="button_search" alt="'.$langs->trans("Search").'">';
|
||||
|
||||
@ -174,7 +174,7 @@ class FormActions
|
||||
$arraylist[0]=' ';
|
||||
asort($arraylist);
|
||||
|
||||
$form->selectarray($htmlname, $arraylist, $selected);
|
||||
print $form->selectarray($htmlname, $arraylist, $selected);
|
||||
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"),1);
|
||||
}
|
||||
|
||||
|
||||
@ -354,7 +354,7 @@ class FormMail
|
||||
$liste[$key]=$value;
|
||||
}
|
||||
print " ".$langs->trans("or")." ";
|
||||
$form->selectarray("receivercc", $liste, isset($_REQUEST["receivercc"])?$_REQUEST["receivercc"]:0);
|
||||
print $form->selectarray("receivercc", $liste, isset($_REQUEST["receivercc"])?$_REQUEST["receivercc"]:0);
|
||||
}
|
||||
}
|
||||
print "</td></tr>\n";
|
||||
@ -384,7 +384,7 @@ class FormMail
|
||||
$liste[$key]=$value;
|
||||
}
|
||||
print " ".$langs->trans("or")." ";
|
||||
$form->selectarray("receiverccc", $liste, isset($_REQUEST["receiverccc"])?$_REQUEST["receiverccc"]:0);
|
||||
print $form->selectarray("receiverccc", $liste, isset($_REQUEST["receiverccc"])?$_REQUEST["receiverccc"]:0);
|
||||
}
|
||||
}
|
||||
print "</td></tr>\n";
|
||||
|
||||
@ -426,7 +426,7 @@ if ($_GET["action"] == 'create')
|
||||
print "<tr><td>".$langs->trans("DeliveryMethod")."</td>";
|
||||
print '<td colspan="3">';
|
||||
$expe->fetch_delivery_methods();
|
||||
$html->selectarray("expedition_method_id",$expe->meths,$_POST["expedition_method_id"],1,0,0,"",1);
|
||||
print $html->selectarray("expedition_method_id",$expe->meths,$_POST["expedition_method_id"],1,0,0,"",1);
|
||||
print "</td></tr>\n";
|
||||
|
||||
// Tracking number
|
||||
@ -875,7 +875,7 @@ else
|
||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||
print '<input type="hidden" name="action" value="setexpedition_method_id">';
|
||||
$expedition->fetch_delivery_methods();
|
||||
$html->selectarray("expedition_method_id",$expedition->meths,$expedition->expedition_method_id,1,0,0,"",1);
|
||||
print $html->selectarray("expedition_method_id",$expedition->meths,$expedition->expedition_method_id,1,0,0,"",1);
|
||||
print '<input type="submit" class="button" value="'.$langs->trans('Modify').'">';
|
||||
print '</form>';
|
||||
}
|
||||
|
||||
@ -509,7 +509,7 @@ if ($_GET["action"] == 'create')
|
||||
print '<td colspan="2">';
|
||||
$model=new ModelePDFFicheinter();
|
||||
$liste=$model->liste_modeles($db);
|
||||
$html->selectarray('model',$liste,$conf->global->FICHEINTER_ADDON_PDF);
|
||||
print $html->selectarray('model',$liste,$conf->global->FICHEINTER_ADDON_PDF);
|
||||
print "</td></tr>";
|
||||
|
||||
// Description (must be a textarea and not html must be allowed (used in list view)
|
||||
|
||||
@ -670,13 +670,13 @@ if ($_GET["action"] == 'create' && ($user->rights->produit->creer || $user->righ
|
||||
// On sell
|
||||
print '<tr><td class="fieldrequired">'.$langs->trans("Status").' ('.$langs->trans("Sell").')'.'</td><td>';
|
||||
$statutarray=array('1' => $langs->trans("OnSell"), '0' => $langs->trans("NotOnSell"));
|
||||
$html->selectarray('statut',$statutarray,$_POST["statut"]);
|
||||
print $html->selectarray('statut',$statutarray,$_POST["statut"]);
|
||||
print '</td></tr>';
|
||||
|
||||
// To buy
|
||||
print '<tr><td class="fieldrequired">'.$langs->trans("Status").' ('.$langs->trans("Buy").')'.'</td><td>';
|
||||
$statutarray=array('1' => $langs->trans("ProductStatusOnBuy"), '0' => $langs->trans("ProductStatusNotOnBuy"));
|
||||
$html->selectarray('statut_buy',$statutarray,$_POST["statut_buy"]);
|
||||
print $html->selectarray('statut_buy',$statutarray,$_POST["statut_buy"]);
|
||||
print '</td></tr>';
|
||||
|
||||
// Stock min level
|
||||
@ -714,7 +714,7 @@ if ($_GET["action"] == 'create' && ($user->rights->produit->creer || $user->righ
|
||||
{
|
||||
print '<tr><td>'.$langs->trans("Nature").'</td><td>';
|
||||
$statutarray=array('1' => $langs->trans("Finished"), '0' => $langs->trans("RowMaterial"));
|
||||
$html->selectarray('finished',$statutarray,$_POST["finished"]);
|
||||
print $html->selectarray('finished',$statutarray,$_POST["finished"]);
|
||||
print '</td></tr>';
|
||||
}
|
||||
|
||||
@ -944,7 +944,7 @@ if ($_GET["id"] || $_GET["ref"])
|
||||
{
|
||||
print '<tr><td>'.$langs->trans("Nature").'</td><td>';
|
||||
$statutarray=array('-1'=>' ', '1' => $langs->trans("Finished"), '0' => $langs->trans("RowMaterial"));
|
||||
$html->selectarray('finished',$statutarray,$product->finished);
|
||||
print $html->selectarray('finished',$statutarray,$product->finished);
|
||||
print '</td></tr>';
|
||||
}
|
||||
|
||||
@ -1378,7 +1378,7 @@ if ($product->id && $_GET["action"] == '' && $product->status)
|
||||
print '<tr '.$bc[$var].'><td colspan="3">';
|
||||
print '<input type="hidden" name="action" value="addinpropal">';
|
||||
print $langs->trans("OtherPropals").'</td><td>';
|
||||
$html->selectarray("propalid", $otherprop);
|
||||
print $html->selectarray("propalid", $otherprop);
|
||||
print '</td></tr>';
|
||||
print '<tr '.$bc[$var].'><td nowrap="nowrap" colspan="2">'.$langs->trans("Qty");
|
||||
print '<input type="text" class="flat" name="qty" size="1" value="1"></td><td nowrap>'.$langs->trans("ReductionShort");
|
||||
@ -1496,7 +1496,7 @@ if ($product->id && $_GET["action"] == '' && $product->status)
|
||||
print '<tr '.$bc[$var].'><td colspan="3">';
|
||||
print '<input type="hidden" name="action" value="addincommande">';
|
||||
print $langs->trans("OtherOrders").'</td><td>';
|
||||
$html->selectarray("commandeid", $othercom);
|
||||
print $html->selectarray("commandeid", $othercom);
|
||||
print '</td></tr>';
|
||||
print '<tr '.$bc[$var].'><td colspan="2">'.$langs->trans("Qty");
|
||||
print '<input type="text" class="flat" name="qty" size="1" value="1"></td><td nowrap>'.$langs->trans("ReductionShort");
|
||||
|
||||
@ -285,7 +285,7 @@ if ($_GET["action"] == 'create' && $user->rights->projet->creer)
|
||||
// Public
|
||||
print '<tr><td>'.$langs->trans("Visibility").'</td><td>';
|
||||
$array=array(0 => $langs->trans("PrivateProject"),1 => $langs->trans("SharedProject"));
|
||||
$html->selectarray('public',$array,$project->public);
|
||||
print $html->selectarray('public',$array,$project->public);
|
||||
print '</td></tr>';
|
||||
|
||||
// Date start
|
||||
@ -380,7 +380,7 @@ else
|
||||
// Visibility
|
||||
print '<tr><td>'.$langs->trans("Visibility").'</td><td>';
|
||||
$array=array(0 => $langs->trans("PrivateProject"),1 => $langs->trans("SharedProject"));
|
||||
$html->selectarray('public',$array,$project->public);
|
||||
print $html->selectarray('public',$array,$project->public);
|
||||
print '</td></tr>';
|
||||
|
||||
// Statut
|
||||
|
||||
@ -249,14 +249,14 @@ print '<input type="hidden" name="action" value="add">';
|
||||
print '<table cellspacing="0" border="1" width="100%" cellpadding="3">'."\n";
|
||||
|
||||
print '<tr><td width="15%">'.$langs->trans("Type").'</td><td width="35%">';
|
||||
$html->selectarray("type", $adht->liste_array());
|
||||
print $html->selectarray("type", $adht->liste_array());
|
||||
print "</td>\n";
|
||||
print '</tr>'."\n";
|
||||
|
||||
$morphys["phy"] = $langs->trans("Physical");
|
||||
$morphys["mor"] = $langs->trans("Moral");
|
||||
print '<tr><td>'.$langs->trans("MorPhy")."</td><td>\n";
|
||||
$html->selectarray("morphy", $morphys);
|
||||
print $html->selectarray("morphy", $morphys);
|
||||
print "</td>\n";
|
||||
print '</tr>';
|
||||
|
||||
|
||||
@ -187,10 +187,10 @@ if ( $soc->fetch($soc->id) )
|
||||
|
||||
print '<input type="hidden" name="action" value="add">';
|
||||
print '<tr '.$bc[$var].'><td>';
|
||||
$html->selectarray("contactid",$soc->contact_email_array());
|
||||
print $html->selectarray("contactid",$soc->contact_email_array());
|
||||
print '</td>';
|
||||
print '<td>';
|
||||
$html->selectarray("actionid",$actions);
|
||||
print $html->selectarray("actionid",$actions);
|
||||
print '</td>';
|
||||
print '<td align="right"><input type="submit" class="button" value="'.$langs->trans("Add").'"></td>';
|
||||
print '</tr>';
|
||||
|
||||
@ -540,7 +540,7 @@ $_GET["action"] == 'create' || $_POST["action"] == 'create')
|
||||
{
|
||||
print '<tr>';
|
||||
print '<td>'.$langs->trans('SupplierCategory').'</td><td colspan="3">';
|
||||
$form->selectarray("fournisseur_categorie",$soc->SupplierCategories,$_POST["fournisseur_categorie"],1);
|
||||
print $form->selectarray("fournisseur_categorie",$soc->SupplierCategories,$_POST["fournisseur_categorie"],1);
|
||||
print '</td></tr>';
|
||||
}
|
||||
}
|
||||
@ -648,11 +648,11 @@ $_GET["action"] == 'create' || $_POST["action"] == 'create')
|
||||
print '</td></tr>';
|
||||
|
||||
print '<tr><td>'.$langs->trans("Type").'</td><td>'."\n";
|
||||
$form->selectarray("typent_id",$formcompany->typent_array(0), $soc->typent_id);
|
||||
print $form->selectarray("typent_id",$formcompany->typent_array(0), $soc->typent_id);
|
||||
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"),1);
|
||||
print '</td>';
|
||||
print '<td>'.$langs->trans("Staff").'</td><td>';
|
||||
$form->selectarray("effectif_id",$formcompany->effectif_array(0), $soc->effectif_id);
|
||||
print $form->selectarray("effectif_id",$formcompany->effectif_array(0), $soc->effectif_id);
|
||||
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"),1);
|
||||
print '</td></tr>';
|
||||
|
||||
@ -943,7 +943,7 @@ elseif ($_GET["action"] == 'edit' || $_POST["action"] == 'edit')
|
||||
{
|
||||
print '<tr>';
|
||||
print '<td>'.$langs->trans('SupplierCategory').'</td><td colspan="3">';
|
||||
$form->selectarray("fournisseur_categorie",$soc->SupplierCategories,'',1);
|
||||
print $form->selectarray("fournisseur_categorie",$soc->SupplierCategories,'',1);
|
||||
print '</td></tr>';
|
||||
}
|
||||
}
|
||||
@ -1092,11 +1092,11 @@ elseif ($_GET["action"] == 'edit' || $_POST["action"] == 'edit')
|
||||
print '</td></tr>';
|
||||
|
||||
print '<tr><td>'.$langs->trans("Type").'</td><td>';
|
||||
$form->selectarray("typent_id",$formcompany->typent_array(0), $soc->typent_id);
|
||||
print $form->selectarray("typent_id",$formcompany->typent_array(0), $soc->typent_id);
|
||||
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"),1);
|
||||
print '</td>';
|
||||
print '<td>'.$langs->trans("Staff").'</td><td>';
|
||||
$form->selectarray("effectif_id",$formcompany->effectif_array(0), $soc->effectif_id);
|
||||
print $form->selectarray("effectif_id",$formcompany->effectif_array(0), $soc->effectif_id);
|
||||
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"),1);
|
||||
print '</td></tr>';
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user