remove old readme
[atutor.git] / themes / default / social / profile_picture.html.php
1 <?php\r
2 /************************************************************************/\r
3 /* ATutor                                                                                                                               */\r
4 /************************************************************************/\r
5 /* Copyright (c) 2002-2010                                              */\r
6 /* Inclusive Design Institute                                           */\r
7 /* http://atutor.ca                                                                                                             */\r
8 /*                                                                                                                                              */\r
9 /* This program is free software. You can redistribute it and/or        */\r
10 /* modify it under the terms of the GNU General Public License          */\r
11 /* as published by the Free Software Foundation.                        */\r
12 /************************************************************************/\r
13 // $Id: profile_picture.html.php 9418 2010-03-03 16:39:24Z greg $\r
14 if (!defined('AT_INCLUDE_PATH')) { exit; } ?>\r
15 <div class="social-wrapper">\r
16 <?php include("lib/profile_menu.inc.php")  ?>\r
17 <br />\r
18 <form method="post" enctype="multipart/form-data" action="<?php echo $_SERVER['PHP_SELF']; ?>?member_id=<?php echo $this->member_id; ?>" name="form">\r
19 <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $_config['prof_pic_max_file_size']; ?>" />\r
20 <div class="input-form">\r
21 <?php if (profile_image_exists($this->member_id)): ?>\r
22         <div class="row">\r
23                 <a href="get_profile_img.php?id=<?php echo $this->member_id.SEP.'size=o'; ?>"><img src="get_profile_img.php?id=<?php echo $this->member_id; ?>" alt="" /></a>\r
24                 <input type="checkbox" name="delete" value="1" id="del"/><label for="del"><?php echo _AT('delete'); ?></label>\r
25         </div>\r
26 <?php endif; ?>\r
27         <div class="row">\r
28                 <h3><label for="upload_picture"><?php echo _AT('upload_new_picture'); ?></label></h3>\r
29                 <input type="file" name="file" id="upload_picture"/> (<?php echo implode(', ', $this->supported_images); ?>)</div>\r
30 \r
31         <div class="row buttons">\r
32                 <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" />\r
33                 <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />\r
34         </div>\r
35 </div>\r
36 </form>\r
37 <div style="clear:both;"></div>\r
38 </div>\r