8d66997a0453ed399654f51703e64345559df38e
[atutor.git] / mods / social / html / admin / delete_applications.tmpl.php
1 <form class="input-form" action="<?php echo AT_SOCIAL_BASENAME;?>admin/delete_applications.php" method="POST">
2 <div class="gadget_wrapper">
3 <div class="headingbox"><h3><?php echo _AT('available_applications'); ?></h3></div>
4
5 <div class="contentbox" style="padding:1em;">   
6 <?php if (!empty($this->all_apps)): ?>
7 <?php   
8         foreach ($this->all_apps as $id=>$app_obj): 
9         //skip the ones that are installed already
10         if ($this->list_of_my_apps[$id]!=null){
11                 continue;
12         }
13         $author = ($app_obj->getAuthor()!='')?$app_obj->getAuthor():_AT('unknown');     
14 ?>
15         <div style="float:left; ">
16                 <?php echo $app_obj->getAppLink($app_obj->getTitle(), $id); ?><br/>
17                 <?php echo $app_obj->getAppLink('<img src="'.$app_obj->getThumbnail().'"/>', $id); ?><br/>
18                 <?php echo _AT('by'); ?> 
19                 <?php if ($app_obj->getAuthorEmail()!=''): ?>
20                         <a href="<?php echo $app_obj->getAuthorEmail(); ?>"><?php echo $author; ?></a>
21                 <?php else: echo $author; ?>
22                 <?php endif; ?>                 
23         </div>
24
25         <div style="float: right;">
26                 <label for="app_<?php echo $id;?>"><?php echo _AT('delete');?></label>
27                 <input type="checkbox" id="app_<?php echo $id;?>" name="apps[]" value="<?php echo $id; ?>" />
28         </div>
29         <div style="width:60%; margin-left:10em; padding-top:1.5em;">
30                 <?php echo $app_obj->getDescription(); ?><br/><br/>
31                 <?php echo $app_obj->getUrl(); ?><br/>
32         </div>
33         <br/>
34 <?php endforeach; ?>
35 <?php else: ?>
36 <?php echo _AT('no_gadgets_installed'); ?>
37 <?php endif; ?>
38 </div>
39 <div class="row" style="float: right;"><input class="button" type="submit" name="delete" value="<?php echo _AT('delete');?>"/></div>
40 </form>