/* * finecms */ if (undefined == finecms_admin_document) var finecms_admin_document=""; function preview(obj) { var filepath = $('#'+obj).val(); if (filepath) { var content = ''; } else { var content = fc_lang[0]; } window.top.art.dialog({title:fc_lang[1],fixed:true, content: content}); } function file_info(obj) { var filepath = $('#'+obj).val(); var content = fc_lang[26]; if (filepath) { $.post(sitepath+'?c=api&a=fileinfo&id='+math.random(), { file:filepath }, function(data){ window.top.art.dialog({title:fc_lang[25],fixed:true, content: data}); }); } else { window.top.art.dialog({title:fc_lang[25],fixed:true, content: content}); } } function uploadimage(obj, w, h, size) { var url = sitepath+'?c=attachment&a=image&w='+w+'&h='+h+'&size='+size+'&file='+$("#"+obj).val()+'&document='+finecms_admin_document; var winid = 'win_'+obj; window.top.art.dialog( {id:winid, okval:fc_lang[6], cancelval:fc_lang[7], iframe:url, title:fc_lang[3], width:'470', height:'150', lock:true}, function(){ var d = window.top.art.dialog({id:winid}).data.iframe; var filename = d.document.getelementbyid('filename').value; if (filename) { $("#"+obj).val(filename); } else { alert(fc_lang[24]); return false; } }, function(){ window.top.art.dialog({id:winid}).close(); } ); void(0); } function uploadfile(obj, type, size) { var url = sitepath+'?c=attachment&a=file&type='+type+'&size='+size+'&file='+$("#"+obj).val()+'&document='+finecms_admin_document; var winid = 'win_'+obj; window.top.art.dialog( {id:winid, okval:fc_lang[6], cancelval:fc_lang[7], iframe:url, title:fc_lang[3], width:'470', height:'150', lock:true}, function(){ var d = window.top.art.dialog({id:winid}).data.iframe; var filename = d.document.getelementbyid('filename').value; if (filename) { $("#"+obj).val(filename); } else { alert(fc_lang[24]); return false; } }, function(){ window.top.art.dialog({id:winid}).close(); } ); void(0); } function uploadfiles(obj, setting) { var url = sitepath+'?c=attachment&a=files&setting='+setting+'&document='+finecms_admin_document; var winid = 'win_'+obj; window.top.art.dialog( {id:winid, okval:fc_lang[6], cancelval:fc_lang[7], iframe:url, title:fc_lang[3], width:'500', height:'420', lock:true}, function(){ var d = window.top.art.dialog({id:winid}).data.iframe; var files = d.document.getelementbyid('att-status').innerhtml; var names = d.document.getelementbyid('att-name').innerhtml; var file = files.split('|'); var name = names.split('|'); for (var id in file) { var filepath = file[id]; var filename = name[id]; if (filepath) { var c = '