完善日程事件附件
This commit is contained in:
parent
decaabd448
commit
54bcc3b4de
|
@ -664,15 +664,12 @@ class EventController extends DefaultController
|
|||
$options['accessclass'] = 'PUBLIC';
|
||||
$options['access_class_options'] = CalendarService::getAccessClassOptions();
|
||||
|
||||
$attach['model'] = 'calendar_attachment';
|
||||
$attach['path'] = 'calendar';
|
||||
$attach['rows'] = AttachmentService::get($event['attachment']);
|
||||
|
||||
$attachment['rows'] = AttachmentService::get($event['attachment']);
|
||||
$calendar = CalendarService::getCalendar($event['calendarid'], false);
|
||||
$share = ShareService::getItem('event', $id);
|
||||
|
||||
return $this->render(array(
|
||||
'attachList' => $attach,
|
||||
'attachment' => $attachment,
|
||||
'options' => $options,
|
||||
'calendar' => $calendar,
|
||||
'share' => $share,
|
||||
|
|
|
@ -57,19 +57,9 @@
|
|||
|
||||
<tr>
|
||||
<td align="right">附件管理</td>
|
||||
@if($attachList['main'])
|
||||
<td>
|
||||
|
||||
@if($attachList['main'])
|
||||
@foreach($attachList['main'] as $k => $v)
|
||||
<div class="uploadify-queue-item">
|
||||
<span class="fileName"><a href="{{url('file/attachment/file',['model'=>$attachList['model'],'id'=>$v['id']])}}">{{$v['title']}}</a></span>
|
||||
<span class="fileSize"> ({{human_filesize($v['size'])}})</span>
|
||||
</div><div class="clear"></div>
|
||||
@endforeach
|
||||
@endif
|
||||
</td>
|
||||
@endif
|
||||
<td>
|
||||
@include('attachment/show')
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
|
Loading…
Reference in New Issue