9b13c3fdacd78d761eb32b9d1f4982ca57e7e9ed
[atutor.git] / mods / job_board / include / html / employer / jb_edit_post.tmpl.php
1 <?php
2 $simple = true;
3 if ($_POST['complexeditor'] == '1') {
4         $simple = false;
5 }
6 load_editor($simple, false, "none");
7 ?>
8
9 <div class="input-form">
10         <form action="" method="post" name="form">
11                 <div class="row">
12                         <label for="jb_title"><?php echo _AT('jb_title'); ?></label>
13                         <input type="text" id="jb_title" name="title" value="<?php echo htmlentities_utf8($this->job_post['title']); ?>" />
14                 </div>          
15                 <div class="row">
16                         <label><?php echo _AT('categories'); ?></label><br/>
17                         <?php if(!empty($this->categories)): ?>
18                         <?php foreach($this->categories as $category): ?>
19                         <div class="category_box">
20                                 <input type="checkbox" id="jb_category_<?php echo $category['id'];?>" name="jb_categories[]" value="<?php echo $category['id']; ?>" <?php echo ($this->job_post['categories'] && in_array($category['id'], $this->job_post['categories']))?'checked="checked"':''; ?> />
21                                 <label for="jb_category_<?php echo $category['id'];?>"><?php echo htmlentities_utf8($category['name']); ?></label>                              
22                         </div>
23                         <?php endforeach; endif; ?>
24                         <div style="clear:both;"></div>
25                 </div>
26                 <div class="row">
27                         <label for="jb_is_public"><?php echo _AT('jb_is_public'); ?></label>
28                         <input type="checkbox" id="jb_is_public" name="jb_is_public" <?php echo ($this->job_post['is_public']==1)?'checked="checked"':''; ?>/>
29                 </div>
30                 <div class="row">
31                         <label for="jb_closing_date"><?php echo _AT('jb_closing_date'); ?></label>
32                         <?php
33                         //load mysql timestamp template into the template.
34                         if (intval($this->job_post['closing_date'])) {
35                                 $today_day   = substr($this->job_post['closing_date'], 8, 2);
36                                 $today_mon   = substr($this->job_post['closing_date'], 5, 2);
37                                 $today_year  = substr($this->job_post['closing_date'], 0, 4);
38
39                                 $today_hour  = substr($this->job_post['closing_date'], 11, 2);
40                                 $today_min   = substr($this->job_post['closing_date'], 14, 2);
41                         } else {
42                                 $today_year  = date('Y');
43                         }
44
45                         //load the release_date template.
46                         $name = '_jb_closing_date';
47                         require(AT_INCLUDE_PATH.'html/release_date.inc.php');
48                         ?>
49                 </div>
50
51                 <div class="row">
52                         <span class="nowrap">
53                                 <label for="formatting_radios"><span class="required" title="<?php echo _AT('required_field'); ?>">*</span><?php echo _AT('formatting'); ?></label>
54                                 <span id="formatting_radios">
55                                         <input type="radio" name="formatting" value="0" id="text" <?php if ($_POST['formatting'] == 0) { echo 'checked="checked"'; } ?> />
56                                         <label for="text"><?php echo _AT('plain_text'); ?></label>
57
58                                         <input type="radio" name="formatting" value="1" id="html" <?php if ($_POST['formatting'] == 1) { echo 'checked="checked"'; } ?> />
59                                         <label for="html"><?php echo _AT('html'); ?></label>
60                            </span>
61                    </span>
62                 </div>
63                 <div class="row">
64                         <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="jb_description"><?php echo _AT('jb_post_description'); ?></label><br />
65                         <small>&middot; <?php echo _AT('jb_post_description_note'); ?></small><br />
66                         <textarea name="jb_description" cols="55" rows="15" id="jb_description"><?php echo $_POST['jb_description']; ?><?php echo $this->job_post['description']; ?></textarea>
67                 </div>
68
69                 <div class="row">
70                         <input class="button" type="submit" name="submit" value="<?php echo _AT('submit'); ?>"/>
71                 </div>
72         </form>
73 </div>