| 
									
										
										
										
											2013-08-13 19:38:30 +03:00
										 |  |  | <div id="controls"> | 
					
						
							|  |  |  | 	<div id="invite-block" style="display:none"> | 
					
						
							|  |  |  | 		<input id="inivite-input" type="text" /> | 
					
						
							| 
									
										
										
										
											2013-08-16 17:51:08 +03:00
										 |  |  | 		<ul id="invitee-list"></ul> | 
					
						
							| 
									
										
										
										
											2013-08-13 19:38:30 +03:00
										 |  |  | 		<button id="invite-send"><?php p('Send Invitation') ?></button>
 | 
					
						
							|  |  |  | 	</div> | 
					
						
							|  |  |  | </div> | 
					
						
							| 
									
										
										
										
											2013-08-12 19:07:18 +03:00
										 |  |  | <div id="office-content"> | 
					
						
							|  |  |  | 	<div id="editing-sessions"> | 
					
						
							| 
									
										
										
										
											2013-08-17 13:19:35 +03:00
										 |  |  | 		<?php \OCA\Office\Controller::listSessionsHtml() ?>
 | 
					
						
							| 
									
										
										
										
											2013-08-12 19:07:18 +03:00
										 |  |  | 	</div> | 
					
						
							| 
									
										
										
										
											2013-07-01 19:38:56 +03:00
										 |  |  | <?php if(empty($_['list'])) { ?>
 | 
					
						
							|  |  |  | 	<div id="emptyfolder"><?php p('No documents are found. Please upload a document into your ownCloud');?></div>	
 | 
					
						
							|  |  |  | <?php } else { ?>
 | 
					
						
							| 
									
										
										
										
											2013-08-12 19:07:18 +03:00
										 |  |  | 	<div id="editor-content"> | 
					
						
							| 
									
										
										
										
											2013-07-01 19:38:56 +03:00
										 |  |  | 	<table class="documentslist" > | 
					
						
							|  |  |  | 	<?php foreach($_['list'] as $entry) { ?>
 | 
					
						
							| 
									
										
										
										
											2013-08-17 19:42:50 +03:00
										 |  |  | 		<tr data-file="<?php p($entry['fileid']) ?>"> | 
					
						
							| 
									
										
										
										
											2013-07-01 19:53:27 +03:00
										 |  |  | 			<td width="1"> | 
					
						
							| 
									
										
										
										
											2013-08-12 19:07:18 +03:00
										 |  |  | 				<img align="left" src="<?php p(\OCP\Util::linkToAbsolute('office','ajax/thumbnail.php').'?filepath='.\OCP\Util::encodePath($entry['path'])) ?>" /> | 
					
						
							| 
									
										
										
										
											2013-07-01 19:38:56 +03:00
										 |  |  | 			</td> | 
					
						
							| 
									
										
										
										
											2013-08-17 19:42:50 +03:00
										 |  |  | 			<!-- <td width="1"> | 
					
						
							| 
									
										
										
										
											2013-07-01 19:38:56 +03:00
										 |  |  | 				<img align="left" src="<?php p( \OCP\Util::linkToAbsolute('office','img/office.png')) ?>" /> | 
					
						
							| 
									
										
										
										
											2013-08-17 19:42:50 +03:00
										 |  |  | 			</td> --> | 
					
						
							|  |  |  | 			<td width="100%"> | 
					
						
							| 
									
										
										
										
											2013-07-01 20:29:23 +03:00
										 |  |  | 				<a target="_blank" href="<?php p(\OCP\Util::linkToRoute('download', array('file' => $entry['path']))) ?>"><?php p($entry['name'])?></a>
 | 
					
						
							| 
									
										
										
										
											2013-07-01 19:38:56 +03:00
										 |  |  | 			</td> | 
					
						
							| 
									
										
										
										
											2013-07-01 20:03:54 +03:00
										 |  |  | 			<td><?php p(\OCP\Util::formatDate(intval($entry['mtime']))); ?></td>
 | 
					
						
							| 
									
										
										
										
											2013-07-01 19:38:56 +03:00
										 |  |  | 			<td><?php p(\OCP\Util::humanFileSize($entry['size'])); ?></td>
 | 
					
						
							|  |  |  | 		</tr> | 
					
						
							|  |  |  | 	<?php } ?>
 | 
					
						
							|  |  |  | 	</table> | 
					
						
							| 
									
										
										
										
											2013-08-12 19:07:18 +03:00
										 |  |  | 	</div> | 
					
						
							| 
									
										
										
										
											2013-07-01 19:38:56 +03:00
										 |  |  | <?php } ?>
 | 
					
						
							| 
									
										
										
										
											2013-08-17 19:42:50 +03:00
										 |  |  | </div> |