var oEditNewattachmentcategory; function editAttachmentcategory(id){ oEditNewattachmentcategory=windsforceAjax(D.U('home://attachment/edit_attachmentcategory?id='+id),'编辑专辑','',saveAttachmentcategory,'',600,300); } function saveAttachmentcategory(){ var id=$('#attachmentcategory_id').val(); Dyhb.AjaxSend(D.U('home://attachment/edit_attachmentcategorysave'), 'ajax=1&attachmentcategory_name='+encodeURIComponent($('#attachmentcategory_name').val())+ '&attachmentcategory_compositor='+encodeURIComponent( $('#attachmentcategory_compositor').val())+ '&attachmentcategory_name='+encodeURIComponent( $('#attachmentcategory_name').val())+ '&attachmentcategory_description='+encodeURIComponent( $('#attachmentcategory_description').val())+ '&attachmentcategory_id='+ $('#attachmentcategory_id').val()+ '&attachmentcategory_cover='+ $('#attachmentcategory_cover').val(),'result', function(data,status){ if(status==1){ $('#attachmentcategory_name_'+id).text(subStr(data.attachmentcategory_name,15)); $('#attachmentcategory_description_'+id).text(data.attachmentcategory_description?subStr(data.attachmentcategory_description,32):'暂无附件描述'); oEditNewattachmentcategory.close(); return true; } } ); return false; } function deleteAttachmentcategory(id){ windsforceConfirm('你确定要删除专辑吗?',function(){ Dyhb.AjaxSend(D.U('home://attachment/delete_attachmentcategory?id='+id), 'ajax=1','', function(data,status){ if(status==1){ $('#attachmentcategory_item_'+id).remove(); return true; } } ); return true; }); return false; } var oEditCreateNewattachmentcategory; function createAttachmentcategory(){ oEditCreateNewattachmentcategory=windsforceAjax(D.U('home://attachment/new_attachmentcategory'),'新建专辑','',saveNewattachmentcategory,cancelNewattachmentcategory,600,200); } function saveNewattachmentcategory(){ Dyhb.AjaxSend(D.U('home://attachment/new_attachmentcategorysave'), 'ajax=1&attachmentcategory_compositor='+encodeURIComponent($('#new_attachmentcategory_compositor').val())+ '&attachmentcategory_name='+encodeURIComponent( $('#new_attachmentcategory_name').val())+ '&attachmentcategory_description='+encodeURIComponent( $('#new_attachmentcategory_description').val()),'result', function(data,status){ if(status==1){ oEditCreateNewattachmentcategory.close(); setTimeout("window.location.replace(_SELF_);",1000); return true; } } ); return false; } function cancelNewattachmentcategory(){ if($('#new_attachmentcategory_name').val()!=''){ windsforceConfirm('你确定要放弃新建专辑?',function(){ oEditCreateNewattachmentcategory.close(); return true; }); return false; } } function recommendAttachmentcategory(id){ Dyhb.AjaxSend(D.U('home://attachment/recommend_attachmentcategory?id='+id),'ajax=1','',function(data,status){ if(status==1){ $('#recommendcategory_item_'+id).html('推荐成功'); } }); } function unrecommendAttachmentcategory(id){ Dyhb.AjaxSend(D.U('home://attachment/unrecommend_attachmentcategory?id='+id),'ajax=1','',function(data,status){ if(status==1){ $('#unrecommendcategory_item_'+id).html('取消推荐成功'); } }); }
 上传照片 | +新建专辑

我的专辑

暂时没有发现任何附件