changed git call from https to git readonly
[atutor.git] / mods / job_board / include / html / employer / jb_add_new_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 <div class="input-form">
9         <form name="form" action="" method="post">
10                 <div class="row">
11                         <label for="jb_title"><?php echo _AT('jb_title'); ?></label>
12                         <input type="text" id="jb_title" name="title" />
13                 </div>          
14                 <div class="row">
15                         <label><?php echo _AT('categories'); ?></label><br/>
16                         <?php if(!empty($this->categories)): ?>
17                         <?php foreach($this->categories as $category): ?>
18                         <div class="category_box">
19                                 <input type="checkbox" id="jb_category_<?php echo $category['id'];?>" name="jb_categories[]" value="<?php echo $category['id']; ?>" />
20                                 <label for="jb_category_<?php echo $category['id'];?>"><?php echo htmlentities_utf8($category['name']); ?></label>                              
21                         </div>
22                         <?php endforeach; endif; ?>
23                         <div style="clear:both;"></div>
24                 </div>
25                 <div class="row">
26                         <label for="jb_is_public"><?php echo _AT('jb_is_public'); ?></label>
27                         <input type="checkbox" id="jb_is_public" name="jb_is_public" ></textarea>
28                 </div>
29                 <div class="row">
30                         <label for="jb_closing_date"><?php echo _AT('jb_closing_date'); ?></label>
31                         <?php
32                         //load mysql timestamp template into the template.
33             $next_day = time() + 60*60*24; 
34                         $today_day   = date('d', $next_day);
35                         $today_mon   = date('m', $next_day);
36                         $today_year  = date('Y', $next_day);
37
38                         $today_hour  = date('H', $next_day);
39                         $today_min   = date('i', $next_day);
40
41                         //load the release_date template.
42                         $name = '_jb_closing_date';
43                         require(AT_INCLUDE_PATH.'html/release_date.inc.php');
44                         ?>
45                 </div>
46                 <div class="row">
47                         <span class="nowrap">
48                                 <label for="formatting_radios"><span class="required" title="<?php echo _AT('required_field'); ?>">*</span><?php echo _AT('formatting'); ?></label>
49                                 <span id="formatting_radios">
50                                         <input type="radio" name="formatting" value="0" id="text" <?php if ($_POST['formatting'] == 0) { echo 'checked="checked"'; } ?> />
51                                         <label for="text"><?php echo _AT('plain_text'); ?></label>
52
53                                         <input type="radio" name="formatting" value="1" id="html" <?php if ($_POST['formatting'] == 1) { echo 'checked="checked"'; } ?> />
54                                         <label for="html"><?php echo _AT('html'); ?></label>
55                            </span>
56                    </span>
57                 </div>
58                 <div class="row">
59                         <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="jb_description"><?php echo _AT('jb_post_description'); ?></label><br />
60                         <small>&middot; <?php echo _AT('jb_post_description_note'); ?></small><br />
61                         <textarea name="jb_description" cols="55" rows="15" id="jb_description"><?php echo $_POST['jb_description']; ?><?php echo $this->job_post['description']; ?></textarea>
62                 </div>
63                 <div class="row">
64                         <input class="button" type="submit" name="submit" value="<?php echo _AT('submit'); ?>"/>
65                 </div>
66         </form>
67 </div>