move code up one directory
[atutor.git] / themes / default / photos / pa_create_album.tmpl.php
1 <div class="input-form">
2 <form action="<?php echo $_SERVER['PHP_SELF'];?>" name="create_album" method="post">
3         <div class="row">
4                 <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><div class="left_row"><label for="album_name"><?php echo _AT('pa_album_name'); ?></label></div>
5                 <input id="album_name" name="album_name" type="text" />
6         </div>
7         <?php
8         //if the user has the privilege to create course albums, and she's in a course, then allow them to choose
9         if ($_SESSION['course_id'] && ($course_album_privilege || true)): ?>
10         <div class="row">
11                 <div class="left_row"<label for="album_type"><?php echo _AT('pa_album_type'); ?></label></div>
12                 <label for="my_album"><?php echo _AT('pa_my_albums'); ?></label><input type="radio" name="album_type" id="my_album" value="1" checked="checked" />
13         <?php  if($_SESSION['is_admin']){?>
14                 <label for="course_album"><?php echo _AT('pa_course_albums'); ?></label><input type="radio" name="album_type" id="course_album" value="2" />
15         <?php }?>
16         </div>
17         <?php endif; ?>
18         <div class="row">
19                 <div class="left_row"<label for="album_permission"><?php echo _AT('pa_album_permission'); ?></label></div>
20                 <label for="album_permission_private"><?php echo _AT('pa_private'); ?></label><input type="radio" name="album_permission" id="album_permission_private" value="0" checked="checked" />
21                 <label for="album_permission_shared"><?php echo _AT('pa_shared'); ?></label><input type="radio" name="album_permission" id="album_permission_shared" value="1" />
22         </div>
23         <div class="row">
24                 <div class="left_row"<label for="album_location"><?php echo _AT('pa_album_location'); ?></label></div>
25                 <input id="album_location" name="album_location" type="text" />
26         </div>
27         <div class="row">
28                 <div class="left_row"<label for="album_description"><?php echo _AT('pa_album_description'); ?></label></div>
29                 <textarea id="album_description" name="album_description"></textarea>
30         </div>
31         <div class="row">
32                 <input name="submit" type="submit" value="<?php echo _AT('pa_create_album');?>" class="button"/>
33                 <input name="cancel" type="submit" value="<?php echo _AT('cancel');?>" class="button"/>
34         </div>
35 </form>
36 </div>