* Copyright (C) 2012 Regis Houssin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ ?>
?attrname=" method="post"> attribute_type[$attrname]; $size=$extrafields->attribute_size[$attrname]; $unique=$extrafields->attribute_unique[$attrname]; $required=$extrafields->attribute_required[$attrname]; $pos=$extrafields->attribute_pos[$attrname]; $alwayseditable=$extrafields->attribute_alwayseditable[$attrname]; $param=$extrafields->attribute_param[$attrname]; $perms=$extrafields->attribute_perms[$attrname]; $list=$extrafields->attribute_list[$attrname]; if (! empty($conf->global->MAIN_CAN_HIDE_EXTRAFIELDS)) { $ishidden=$extrafields->attribute_hidden[$attrname]; } if((($type == 'select') || ($type == 'checkbox') || ($type == 'radio')) && is_array($param)) { $param_chain = ''; foreach ($param['options'] as $key => $value) { if(strlen($key)) { $param_chain .= $key.','.$value."\n"; } } } elseif (($type== 'sellist') || ($type == 'chkbxlst') || ($type == 'link') ) { $paramlist=array_keys($param['options']); $param_chain = $paramlist[0]; } ?> global->MAIN_CAN_HIDE_EXTRAFIELDS)) { ?> global->MAIN_FEATURES_LEVEL >= 2) { ?>
trans("Label"); ?>
trans("AttributeCode"); ?>
trans("Type"); ?> array('varchar', 'phone', 'mail', 'select'), 'mail'=>array('varchar', 'phone', 'mail', 'select'), 'phone'=>array('varchar', 'phone', 'mail', 'select'), 'select'=>array('varchar', 'phone', 'mail', 'select') ); if (in_array($type, array_keys($typewecanchangeinto))) { $newarray=array(); print ''; } else { print $type2label[$type]; print ''; } ?>
trans("Size"); ?>
trans("Position"); ?>
trans("Value"); ?>
textwithpicto('', $langs->trans("ExtrafieldParamHelpselect"),1,0)?> textwithpicto('', $langs->trans("ExtrafieldParamHelpsellist"),1,0)?> textwithpicto('', $langs->trans("ExtrafieldParamHelpchkbxlst"),1,0)?> textwithpicto('', $langs->trans("ExtrafieldParamHelplink"),1,0)?>
trans("Unique"); ?>>
trans("Required"); ?>>
trans("AlwaysEditable"); ?>>
trans("Hidden"); ?>>
trans("ByDefaultInList"); ?> trans("FeatureNotYetSupported")); ?> >
">      ">