/* ALIGNED FIELDSETS */
.aligned label { display:block; padding:0 1em 3px 0; float:left; width:8em; }
.aligned label.inline { display:inline; float:none; }
+label.file_remove{display:inline; float:none; padding:0; margin:0 20px 0 0; }
.colMS .aligned .vLargeTextField, .colMS .aligned .vXMLLargeTextField { width:350px; }
form .aligned p, form .aligned ul { margin-left:7em; padding-left:30px; }
form .aligned table p { margin-left:0; padding-left:0; }
foreach($oFiles as $file)$files[]=_getFileDetails($file);
$root='/'.str_replace($GLOBALS['rootdir'],'',$dir->path);
$kfm_session->set('cwd_id',$rootid);
- $ret=array('reqdir'=>$root,'files'=>$files,'uploads_allowed'=>$GLOBALS['kfm_allow_file_upload']);
+ $ret=array('reqdir'=>$root,'files'=>$files,'uploads_allowed'=>$GLOBALS['kfm_allow_file_upload']);
if($setParent)$ret['parent']=$rootid;
return $ret;
}
document.title='File Manager: '+res.reqdir;
kfm_lastClicked=null;
kfm_log(kfm.lang.FilesRefreshed);
+ kfm_addPanel('kfm_left_column','kfm_file_upload_panel');
if(res.uploads_allowed)kfm_addPanel('kfm_left_column','kfm_file_upload_panel');
else kfm_removePanel('kfm_left_column','kfm_file_upload_panel');
kfm_refreshPanels('kfm_left_column');
function formField($def, $form_field='IPF_Form_Field_ModelMultipleChoice')
{
- //print_r($def);
$list_objects = IPF_ORM::getTable($def['model'])->findAll();
$pk = IPF_ORM::getTable($def['model'])->getIdentifier();
$choices = array();
if (isset($value['data'])){
$value = $value['data'];
if (is_string($value) && $value!=''){
- $sim = '<nobr>Currently: <a target="_blank" href="'.IPF::get('upload_url').$value.'">'.$value.'</a> | <input name="'.$name.'_remove" value="1" id="id_'.$name.'_remove" type="checkbox" /> <label for="id_'.$name.'_remove">Remove</label></nobr><br />Change:';
+ $sim = '<nobr>Currently: <a target="_blank" href="'.IPF::get('upload_url').$value.'">'.$value.'</a> | <input name="'.$name.'_remove" value="1" id="id_'.$name.'_remove" type="checkbox" /> <label class="file_remove" for="id_'.$name.'_remove">Remove</label></nobr>Change:';
}
}
$value = '';
return $sim.parent::render($name, $value, $extra_attrs);
}
-
+
public function valueFromFormData($name, $data)
{
if (isset($data[$name])) {
return null;
}
-
+
}
\ No newline at end of file