1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-03 21:27:25 +02:00

'files' option added to admin-ui. requires data='array'.

This commit is contained in:
Cameron
2014-08-30 21:00:17 -07:00
parent f912c88a80
commit d9cce6e21a

View File

@@ -3045,7 +3045,19 @@ class e_form
}
}
break;
case 'files':
$ret = '<ol>';
for ($i=0; $i < 5; $i++)
{
$k = $key.'['.$i.'][path]';
$ival = $value[$i]['path'];
$ret .= '<li>'.$ival.'</li>';
}
$ret .= '</ol>';
$value = $ret;
break;
case 'datestamp':
$value = $value ? e107::getDate()->convert_date($value, vartrue($parms['mask'], 'short')) : '';
break;
@@ -3383,7 +3395,16 @@ class e_form
break;
//TODO 'files'
case 'files':
$ret = '<ol>';
for ($i=0; $i < 5; $i++)
{
$k = $key.'['.$i.'][path]';
$ival = $value[$i]['path'];
$ret .= '<li>'.$this->filepicker($k, $ival, defset($label, $label), $parms).'</li>';
}
$ret .= '</ol>';
break;
case 'file': //TODO - thumb, image list shortcode, js tooltip...
$label = varset($parms['label'], 'LAN_EDIT');