2011-06-12 00:14:24 +04:00
|
|
|
<?php if ($_['shared_items'] == null) {echo "You are not sharing any of your files";} else {?>
|
|
|
|
<table id='itemlist'>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2011-06-16 22:40:21 +04:00
|
|
|
<th>Item</th>
|
|
|
|
<th>Shared With</th>
|
|
|
|
<th>Permissions</th>
|
2011-06-12 00:14:24 +04:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<?php foreach($_['shared_items'] as $item):?>
|
|
|
|
<tr class='link' id='<?php echo $item['id'];?>'>
|
2011-06-16 22:40:21 +04:00
|
|
|
<td class='item'><?php echo $item['item'];?></td>
|
2011-06-12 00:14:24 +04:00
|
|
|
<td class='uid_shared_with'><?php echo $item['uid_shared_with'];?></td>
|
2011-06-16 22:40:21 +04:00
|
|
|
<td class='permissions'><?php echo $item['permissions'];?></td>
|
2011-06-12 00:14:24 +04:00
|
|
|
<td><button class='delete fancybutton' data-token='<?php echo $link['token'];?>'>Delete</button></td>
|
|
|
|
</tr>
|
|
|
|
<?php endforeach;?>
|
|
|
|
<tr id='newlink_row'>
|
|
|
|
<form action='#' id='newlink'>
|
|
|
|
<input type='hidden' id='expire_time'/>
|
2011-06-16 22:40:21 +04:00
|
|
|
<td class='path'><input placeholder='Item' id='path'/></td>
|
|
|
|
<td class='expire'><input placeholder='Share With' id='expire'/></td>
|
|
|
|
<td class='permissions'><input placeholder='Permissions' id='expire'/></td>
|
2011-06-12 00:14:24 +04:00
|
|
|
<td><input type='submit' value='Share'/></td>
|
|
|
|
</form>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<?php } ?>
|