uploading works, but AV info is not automatically detected and video activation featu...
[living-lab-site.git] / application / views / video / upload_view.php
1 <?php
2         // Categories
3         foreach ($this->config->item('categories') as $id => $name)
4         {
5                 $categories[$id] = $this->lang->line("ui_categ_$name");
6         }
7 ?>
8
9 <?php echo form_open_multipart("video/upload") ?>
10 <table class="form">
11         <tr>
12                 <td></td>
13                 <td><span class="required"><?php echo $this->lang->line('ui_required_fields') ?></span></td>
14         </tr>
15         
16         <tr><td></td><td>&nbsp;</td></tr>
17
18         <tr>
19                 <th><?php echo $this->lang->line('video_upload_file') ?> <span class="required">*</span> : </th>
20                 <td><input type="file" name="video-upload-file" size="32" /></td>
21         </tr>
22         <tr><td></td><td><?php echo form_error('video-upload-file') ?></td></tr>
23         
24         <tr><td></td><td>&nbsp;</td></tr>
25
26         <tr>
27                 <th><?php echo $this->lang->line('video_title') ?> <span class="required">*</span> : </th>
28                 <td><input type="text" name="video-title" value="<?php echo set_value('video-title') ?>" size="64" /></td>
29         </tr>
30         <tr><td></td><td><?php echo form_error('video-title') ?></td></tr>
31         
32         <tr>
33                 <th><?php echo $this->lang->line('video_description') ?> <span class="required">*</span> : </th>
34                 <td><textarea name="video-description" rows="4" cols="32"><?php echo set_value('video-description') ?></textarea></td>
35         </tr>
36         <tr><td></td><td><?php echo form_error('video-description') ?></td></tr>
37         
38         <tr>
39                 <th><?php echo $this->lang->line('video_category') ?> <span class="required">*</span> : </th>
40                 <td><?php echo form_dropdown('video-category', $categories, 
41                                 // TODO set_value not working
42                                 set_value('video-category', '1')) ?></td>
43         </tr>
44         <tr><td></td><td></td></tr>
45         
46         <tr>
47                 <th><?php echo $this->lang->line('video_tags') ?> <span class="required">*</span> : </th>
48                 <td><input type="text" name="video-tags" value="<?php echo set_value('video-tags') ?>" size="16" /> (<?php echo $this->lang->line('video_tags_hint') ?>)</td>
49         </tr>
50         <tr><td></td><td><?php echo form_error('video-tags') ?></td></tr>
51         
52         <tr><td></td><td>&nbsp;</td></tr>
53         
54         <tr>
55                 <td></td>
56                 <td><input type="submit" value="<?php echo $this->lang->line('video_submit_upload') ?>" /></td>
57         </tr>
58 </table>
59 </form>