3 foreach ($this->config->item('categories') as $id => $name)
5 $categories[$id] = $this->lang->line("ui_categ_$name");
9 <?php echo form_open_multipart("video/upload") ?>
13 <td><span class="required"><?php echo $this->lang->line('ui_required_fields') ?></span></td>
16 <tr><td></td><td> </td></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>
22 <tr><td></td><td><?php echo form_error('video-upload-file') ?></td></tr>
24 <tr><td></td><td> </td></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>
30 <tr><td></td><td><?php echo form_error('video-title') ?></td></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>
36 <tr><td></td><td><?php echo form_error('video-description') ?></td></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>
44 <tr><td></td><td></td></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>
50 <tr><td></td><td><?php echo form_error('video-tags') ?></td></tr>
52 <tr><td></td><td> </td></tr>
56 <td><input type="submit" value="<?php echo $this->lang->line('video_submit_upload') ?>" /></td>