<?php //var_dump($recruitment); $header = 'Recruitment - ' . $recruitment['abbr'] . ', ' . $recruitment['position'] . ', ' . $recruitment['team'] . ' Team :: Edit'; require_once '_header.php'; $objPage = new Page(); ?> <?php //var_dump($recruitment); ?> <h1> <?php echo $header; ?> <a class="h2rightlink" href="<?php echo $objPage->generateURL('recruitment', array('id' => $id)); ?> ">View this recruitment</a> </h1> <div class="tabs"> <ul> <li><a href="#status">Settings</a></li> <li><a href="#description">Job Description</a></li> <li><a href="#questions">Questions</a></li> </ul> <div class="dev borderTop"></div> <div id="status"> <div class="reloadSection settingsSection" data-plugin="recruitment_settings"> <?php
?> <th>Sex</th> <th>School</th> <th>Email</th> </tr> <?php if (!empty($rows)) { foreach ($rows as $member) { ?> <tr data-id="<?php echo $member['id']; ?> "> <td class=" name"><a class="link_btn" target="_blank" href="<?php echo $objPage->generateURL('member', array('id' => $member['id'])); ?> " ><?php echo $member['name']; ?> </a></td> <?php if ($objMember->isAdmin($current_user['id'])) { ?> <td ><a class="link_btn confirmRemove" href="#" data-span="5">Remove</a></td> <td ><a class="link_btn" target="_blank" href="<?php echo $objPage->generateURL('member', array('id' => $member['id'], 'action' => 'edit')); ?> ">Edit</a></td> <?php }
" id="row-<?php echo $member['involvement_id']; ?> "> <td> + </td> <td class="showInvolvement clickable" > <a class="link_btn <?php if ($member['withdrawn']) { echo 'withdrawn'; } ?> " href="<?php echo $objPage->generateURL('member', array('id' => $member['member_id'])); ?> " target="_blank"> <?php echo $member['member_name']; ?> </a> </td> </tr> <?php } ?> </tbody> <?php
<div class="addMemberForm" > <p><strong>NOTICE:</strong> Only members whose <strong>profiles have been recorded</strong> in the system can be added.<br /> <input type="hidden" name="verified" id="verified" /> <form id="addMemberForm"> <table cellpadding="0" cellspacing="0" border="0" class="tbl_repeat" id="member_list" style="margin-bottom:25px;"> <tr> <th>Name</th> <th>Position</th> <th>Team</th> <th>Action</th> </tr> <tr > <td> <input type="text" id="autocomplete" data-url="/sugarkms/mod/getNameList.php" data-add="<?php echo $objPage->generateURL('member', array('action' => 'add')); ?> " style="width:140px;" /> <input type="hidden" name="project_id" id="project_id" value="<?php echo $project['id']; ?> " /> <input type="hidden" name="project_type_id" id="project_type_id" value="<?php echo $project['project_type_id']; ?> " /> <input type="hidden" name="wave_id" id="wave_id" value="<?php echo $project['wave_id']; ?> " />
?> </td> <td><?php echo $application['team']; ?> </td> <td><?php echo '23:59:59, ' . date('d/m/Y', strtotime($application['deadline'])); ?> </td> <td><?php echo $application['published'] ? 'Published' : 'Unpublished'; ?> </td> <td><a href="<?php echo $objPage->generateURL('application', array('id' => $application['id'])); ?> " target="_blank">View</a></td> <td><a href="<?php echo $objPage->generateURL('application', array('id' => $application['id'], 'action' => 'edit')); ?> " target="_blank">Edit</a></td> <td><a href="#" class="confirmRemove">Remove</a></td> </tr> <?php } } else { ?> <tr> <td colspan="6" style="text-align:center;">No application added to this project yet.</td> </tr>
echo $recruitment['team']; ?> </td> <td> <?php echo date('d-m-Y', strtotime($recruitment['deadline'])); ?> </td> <td> <?php echo $recruitment['published'] ? '<span class="green">Published</span>' : '<span class="red">Unpublished</span>'; ?> </td> <td> <a href="<?php echo $objPage->generateURL('recruitment', array('id' => $recruitment['id'], 'action' => 'edit')); ?> " target="_blank"> Edit</a> </td> <td> <?php if ($recruitment['published']) { $objApplication = new Application(); $applications = $objApplication->getApplications(array('recruitment_id' => $recruitment['id'])); if (empty($applications)) { ?> <a href="#" class="confirmRemove">Remove</a> <?php } else { echo '<a href=# class="disabled">Remove</a>';