|
@@ -87,7 +87,7 @@ class ExtraFields
|
|
|
'mail'=>'ExtrafieldMail',
|
|
|
'url'=>'ExtrafieldUrl',
|
|
|
'ip'=>'ExtrafieldIP',
|
|
|
- 'icone'=>'Icone',
|
|
|
+ 'icon'=>'Icon',
|
|
|
'password' => 'ExtrafieldPassword',
|
|
|
'select' => 'ExtrafieldSelect',
|
|
|
'sellist' => 'ExtrafieldSelectList',
|
|
@@ -226,7 +226,7 @@ class ExtraFields
|
|
|
} elseif ($type == 'phone') {
|
|
|
$typedb = 'varchar';
|
|
|
$lengthdb = '20';
|
|
|
- } elseif ($type == 'mail' || $type == 'ip' || $type == 'icone') {
|
|
|
+ } elseif ($type == 'mail' || $type == 'ip' || $type == 'icon') {
|
|
|
$typedb = 'varchar';
|
|
|
$lengthdb = '128';
|
|
|
} elseif ($type == 'url') {
|
|
@@ -580,7 +580,7 @@ class ExtraFields
|
|
|
} elseif ($type == 'phone') {
|
|
|
$typedb = 'varchar';
|
|
|
$lengthdb = '20';
|
|
|
- } elseif ($type == 'mail' || $type == 'ip' || $type == 'icone') {
|
|
|
+ } elseif ($type == 'mail' || $type == 'ip' || $type == 'icon') {
|
|
|
$typedb = 'varchar';
|
|
|
$lengthdb = '128';
|
|
|
} elseif ($type == 'url') {
|
|
@@ -1071,7 +1071,7 @@ class ExtraFields
|
|
|
$out = '<input type="text" class="flat '.$morecss.' maxwidthonsmartphone" name="'.$keyprefix.$key.$keysuffix.'" id="'.$keyprefix.$key.$keysuffix.'" maxlength="'.$size.'" value="'.dol_escape_htmltag($value).'"'.($moreparam ? $moreparam : '').'>';
|
|
|
} elseif (in_array($type, array('mail', 'ip', 'phone', 'url'))) {
|
|
|
$out = '<input type="text" class="flat '.$morecss.' maxwidthonsmartphone" name="'.$keyprefix.$key.$keysuffix.'" id="'.$keyprefix.$key.$keysuffix.'" value="'.dol_escape_htmltag($value).'" '.($moreparam ? $moreparam : '').'>';
|
|
|
- } elseif ($type == 'icone') {
|
|
|
+ } elseif ($type == 'icon') {
|
|
|
$out ='<link rel="stylesheet" href="'.dol_buildpath('/myfield/css/fontawesome-iconpicker.min.css', 1).'">';
|
|
|
$out.='<script src="'.dol_buildpath('/myfield/js/fontawesome-iconpicker.min.js', 1).'"></script>';
|
|
|
$out.= '<input type="text" class="form-control icp icp-auto iconpicker-element iconpicker-input flat '.$morecss.' maxwidthonsmartphone"';
|
|
@@ -1673,7 +1673,7 @@ class ExtraFields
|
|
|
$value = dol_print_email($value, 0, 0, 0, 64, 1, 1);
|
|
|
} elseif ($type == 'ip') {
|
|
|
$value = dol_print_ip($value, 0);
|
|
|
- } elseif ($type == 'icone') {
|
|
|
+ } elseif ($type == 'icon') {
|
|
|
$value = '<span class="'.$value.'"></span>';
|
|
|
} elseif ($type == 'url') {
|
|
|
$value = dol_print_url($value, '_blank', 32, 1);
|
|
@@ -1975,7 +1975,7 @@ class ExtraFields
|
|
|
$cssstring = "center";
|
|
|
} elseif (in_array($type, array('int', 'price', 'double'))) {
|
|
|
$cssstring = "right";
|
|
|
- } elseif (in_array($type, array('boolean', 'radio', 'checkbox', 'ip', 'icone'))) {
|
|
|
+ } elseif (in_array($type, array('boolean', 'radio', 'checkbox', 'ip', 'icon'))) {
|
|
|
$cssstring = "center";
|
|
|
}
|
|
|
|