<?php $this->load->view('includes/header_view'); ?> <!-- bid for stories start --> <div id="bid-wrapper"> <div id="content"> <h2>Bid for <a style="color:#FFF;" href="/story/<?php echo $work_data['work_id']; ?>"><?php echo $work_data['title']; ?></a></h2> <div class="desc"> <p><?php echo $work_data['description'] ?></p> </div> <div class="points"> <strong>Sweat Points:</strong> <img src="/public/images/sweat_shirt-<?php echo points_size($work_data['points']) ?>.png"> <?php echo $work_data['points']; ?> </div> <div class="points"> <strong>Payout:</strong> RM <?php echo $work_data['cost']; ?> </div> <?php echo form_open('story/setbid'); ?> <div class="cost"> <strong>My Bid amount for this story:</strong> RM <input type="text" size="4" name="set_cost" value="<?php echo $work_data['cost']; ?>" id="set_cost" /></div> <div class="cost"> <strong>The number of days I commit to complete this story:</strong> <input type="text" size="4" name="set_days" id="set_days" /> days </div> <div class="cost"> <input type="hidden" name="work_id" value="<?php echo $work_data['work_id'];?>" />
</div> <div id="right-content"> <div class="id"><?php echo $project['project_name']; ?></div> <table border-collapse="collapse" > <tr> <th>Type</th> <th>Sweat Points</th> <th>Payout</th> <th>Status</th> </tr> <tr> <td><?php echo $work_data['type']; ?></td> <td><img style="padding-right: 10px" src="/public/images/sweat_shirt-<?php echo points_size($work_data['points']) ?>.png" /> <?php echo $work_data['points']; ?></td> <td>RM <?php echo $work_data['cost']; ?></td> <td><?php echo $work_data['status']; ?></td> </tr> </table> <?php if($work_data['username'] == $this->session->userdata('username')) { ?> <?php if(isset($file_upload_error)) { ?> <!-- error container start --> <div> <?php echo $file_upload_error['error']; ?> </div> <!-- error container ends -->
<th class="" width="15%">Payout</th> <th class="" width="1%"></th> </tr> <?php $c = count($work_list_open); for($i = 0; $i < $c; $i++): ?> <tr class="story-title <?php if($i%2){ ?>odd-row<?php }else{?>even-row<?php } ?>"> <td><?php echo $work_list_open[$i]['priority'] ?></td> <td><span class="type_<?php echo $work_list_open[$i]['type'] ?>"> <?php echo $work_list_open[$i]['title'] ?></a> </span></td> <td style="text-align:right"><?php if($work_list_open[$i]['last_week_bids']>=1){?> <img src="<?php echo base_url() ?>public/images/fire.png" alt="Hot zone!" style="margin:0; padding:0; border:none; float:left" /> <?php } ?> <?php echo $work_list_open[$i]['total_bids']; ?></td> <td style="text-align:right"><?php if($work_list_open[$i]['last_week_comments']>=1){?> <img src="<?php echo base_url() ?>public/images/fire.png" alt="Hot zone!" style="margin:0; padding:0; border:none; float:left" /> <?php } ?> <?php echo $work_list_open[$i]['total_comments'];?></td> <td><div class="sweat-shirt-<?php echo points_size($work_list_open[$i]['points']) ?>"> <?php echo $work_list_open[$i]['points'] ?></td> </div> <td style="text-align: right"> RM <?php echo number_format($work_list_open[$i]['cost']) ?></td> <td><div class="arrow"> </div></td> </tr> <tr> <td colspan="7" class="details"><p> <?php echo $work_list_open[$i]['description'] ?> </p> <br /> <a class="" href="/story/<?php echo $work_list_open[$i]['work_id'] ?>">More details</a> <?php if($this->session->userdata('is_logged_in') == true): ?> <input type="button" onclick="window.location='/story/bid/<?php echo $work_list_open[$i]['work_id'] ?>'" name="submit" value="Bid for this" /> <?php endif; ?></td> </tr> <?php endfor; ?> </table>