本文整理汇总了PHP中HTMLTable::set方法的典型用法代码示例。如果您正苦于以下问题:PHP HTMLTable::set方法的具体用法?PHP HTMLTable::set怎么用?PHP HTMLTable::set使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HTMLTable
的用法示例。
在下文中一共展示了HTMLTable::set方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: show
public function show()
{
$this->begin();
$this->top_search("Recommendations");
$this->menu('member', 'recommendations');
$this->howitworks();
$recommendations = $this->member->getReferrals();
?>
<div id="div_status" class="status">
<span id="span_status" class="status"></span>
</div>
<div id="div_recommendations">
<?php
if (empty($recommendations)) {
?>
<div class="empty_results">No recommedations made.</div>
<?php
} else {
$recommendations_table = new HTMLTable('recommendations_table', 'recommendations');
$recommendations_table->set(0, 0, "<a class=\"sortable\" onClick=\"sort_by('referrals', 'referred_on');\">Recommended On</a>", '', 'header');
$recommendations_table->set(0, 1, "<a class=\"sortable\" onClick=\"sort_by('referrals', 'job');\">Position</a>", '', 'header');
$recommendations_table->set(0, 2, "<a class=\"sortable\" onClick=\"sort_by('referrals', 'candidate_name');\">Candidate</a>", '', 'header');
$recommendations_table->set(0, 3, " ", '', 'header actions');
foreach ($recommendations as $i => $recommendation) {
// referred on
$recommendations_table->set($i + 1, 0, $recommendation['formatted_referred_on'], '', 'cell');
// position
$job_details = '<div class="candidate_name"><a href="../job/' . $recommendation['job_id'] . '">' . htmlspecialchars_decode(stripslashes($recommendation['job'])) . '</a></div><br/>';
$employer = $recommendation['employer'];
if (!is_null($recommendation['alternate_employer']) && !empty($recommendation['alternate_employer'])) {
$employer = $recommendation['alternate_employer'];
}
$job_details .= '<div class="small_contact"><span style="font-weight: bold;">Employer: </span>' . htmlspecialchars_decode(stripslashes($employer)) . '</div>';
$recommendations_table->set($i + 1, 1, $job_details, '', 'cell');
// candidate
$candidate = '<div class="candidate_name">' . htmlspecialchars_decode(stripslashes($recommendation['candidate_name'])) . '</div><br/>';
$candidate .= '<div class="small_contact"><span style="font-weight: bold;">E-mail:</span><a href="mailto:' . $recommendation['candidate_email'] . '"> ' . $recommendation['candidate_email'] . '</a></div>';
$recommendations_table->set($i + 1, 2, $candidate, '', 'cell');
// action
$action = 'Processed';
if ($recommendation['tab'] == 'buf') {
$action = '<a class="no_link" onClick="delete_buffered(\'' . $recommendation['id'] . '\');">delete</a>';
}
$recommendations_table->set($i + 1, 3, $action, '', 'cell actions');
}
echo $recommendations_table->get_html();
}
?>
</div>
<?php
}
示例2: show
public function show()
{
$this->begin();
$this->top_search('Home');
$this->menu('member', 'home');
$this->howitworks();
$country = $this->member->getCountry();
$currency = Currency::getSymbolFromCountryCode($country);
$completeness_raw = $this->get_completeness();
$completeness_percent = 0;
$next_step = '';
$total = 0;
foreach ($completeness_raw as $key => $value) {
$total += $value;
$completeness_percent = $total / count($completeness_raw) * 100;
if ($completeness_percent < 100 && empty($next_step)) {
switch ($key) {
case 'seeking':
$next_step = 'Fill in Current Job Responsibilities / Experiences.';
break;
case 'current_salary':
$next_step = 'Fill in Current Salary range.';
break;
case 'expected_salary':
$next_step = 'Fill in Expected Salary range.';
break;
case 'preferred_job_location':
$next_step = 'Select your preferred job locations.';
break;
case 'can_travel_relocate':
$next_step = 'Fill in Willing to travel / relocate.';
break;
case 'reason_for_leaving':
$next_step = 'Fill in Reason for Leaving.';
break;
case 'notice_period':
$next_step = 'Fill in Notice Period.';
break;
case 'has_job_profiles':
$next_step = 'Add a Present & Past Position.';
break;
}
}
}
if ($completeness_percent >= 100) {
$next_step = 'Career Profile is complete.';
}
$answers = $this->get_answers();
$is_active = $answers['is_active_seeking_job'] == '1' ? true : false;
$job_profiles = $this->get_job_profiles();
$page = file_get_contents(dirname(__FILE__) . '/../../../html/member_home_page.html');
$page = str_replace('%root%', $this->url_root, $page);
$page = str_replace('%country_code%', $country, $page);
$page = str_replace('%country%', Country::getCountryFrom($country), $page);
$page = str_replace('%currency%', $currency, $page);
if (isset($_SESSION['yel']['member']['linkedin_id'])) {
if (!empty($_SESSION['yel']['member']['linkedin_id'])) {
$page = str_replace('%linkedin_copy_display%', 'block', $page);
} else {
$page = str_replace('%linkedin_copy_display%', 'none', $page);
}
} else {
$page = str_replace('%linkedin_copy_display%', 'none', $page);
}
// if (!empty($this->error_message)) {
// $page = str_replace('%error_message%', $this->error_message, $page);
// } else {
// $page = str_replace('%error_message%', '', $page);
// }
// completeness
$progress_percent = $completeness_percent;
if ($completeness_percent >= 100) {
// this is to make sure the progress bar does not touch the right edge
$progress_percent -= 1;
}
$page = str_replace('%completeness_percent%', $progress_percent, $page);
$page = str_replace('%lbl_completeness_percent%', $completeness_percent, $page);
$page = str_replace('%next_step%', $next_step, $page);
// photo
$photo_html = '<div style="text-align: center; margin: auto;">Max resolution: 200x220 pixels<br/>Max size: 150KB</div>';
if ($this->member->hasPhoto()) {
$photo_html = '<img id="photo_image" class="photo_image" src="candidate_photo.php?id=' . $this->member->getId() . '" />';
}
$page = str_replace('%photo_html%', $photo_html, $page);
// resumes
$resumes = $this->get_resumes();
$page = str_replace('%member_email%', $this->member->getId(), $page);
if (empty($resumes)) {
$page = str_replace('%no_resumes%', 'block', $page);
$page = str_replace('%resumes_table%', '', $page);
} else {
$page = str_replace('%no_resumes%', 'none', $page);
$resumes_table = new HTMLTable('resumes_table', 'resumes');
$resumes_table->set(0, 0, "Updated On", '', 'header');
$resumes_table->set(0, 1, "File Name", '', 'header');
$resumes_table->set(0, 2, " ", '', 'header actions');
foreach ($resumes as $i => $resume) {
$resumes_table->set($i + 1, 0, $resume['formatted_modified_on'], '', 'cell');
$resumes_table->set($i + 1, 1, '<a href="resume.php?id=' . $resume['id'] . '">' . $resume['file_name'] . '</a>', '', 'cell');
$resumes_table->set($i + 1, 2, '<a class="no_link" onClick="update_resume(' . $resume['id'] . ');">Update</a>', '', 'cell actions');
//.........这里部分代码省略.........
示例3: show
public function show()
{
$this->begin();
$branch = $this->employee->getBranch();
$this->top('Rewards - ' . $branch[0]['country']);
$this->menu_employee('rewards');
$new_rewards = $this->get_rewards();
foreach ($new_rewards as $i => $row) {
$new_rewards[$i]['member'] = htmlspecialchars_decode(stripslashes($row['member']));
$new_rewards[$i]['employer'] = htmlspecialchars_decode(stripslashes($row['employer']));
$new_rewards[$i]['title'] = htmlspecialchars_decode(stripslashes($row['title']));
$new_rewards[$i]['padded_invoice'] = pad($row['invoice'], 11, '0');
$new_rewards[$i]['total_reward'] = number_format($row['total_reward'], 2, '.', ', ');
$new_rewards[$i]['paid_reward'] = number_format($row['paid_reward'], 2, '.', ', ');
}
$paid_rewards = $this->get_rewards(true);
foreach ($paid_rewards as $i => $row) {
$paid_rewards[$i]['member'] = htmlspecialchars_decode(stripslashes($row['member']));
$paid_rewards[$i]['employer'] = htmlspecialchars_decode(stripslashes($row['employer']));
$paid_rewards[$i]['title'] = htmlspecialchars_decode(stripslashes($row['title']));
$paid_rewards[$i]['padded_invoice'] = pad($row['invoice'], 11, '0');
$paid_rewards[$i]['total_reward'] = number_format($row['total_reward'], 2, '.', ', ');
$paid_rewards[$i]['paid_reward'] = number_format($row['paid_reward'], 2, '.', ', ');
$paid_rewards[$i]['gift'] = htmlspecialchars_decode(stripslashes($row['gift']));
}
?>
<!-- submenu -->
<div class="menu">
<ul class="menu">
<li id="item_new_rewards" style="background-color: #CCCCCC;"><a class="menu" onClick="show_new_rewards();">New</a></li>
<li id="item_paid_rewards"><a class="menu" onClick="show_paid_rewards();">Paid</a></li>
</ul>
</div>
<!-- end submenu -->
<!-- div class="banner">
An administration fee of <?php
//echo $currency
?>
2.00 will be charged to the referrers for every transfer of rewards into their bank accounts. <br/><br/>Always remember to ensure that the <?php
// echo $currency
?>
2.00 administration fee is taken into considration when making an online bank transaction.
</div -->
<div id="div_status" class="status">
<span id="span_status" class="status"></span>
</div>
<div id="new_rewards">
<?php
if (is_null($new_rewards) || count($new_rewards) <= 0 || $new_rewards === false) {
?>
<div class="empty_results">No rewards being offered at this moment.</div>
<?php
} else {
?>
<div id="div_new_rewards">
<?php
$new_rewards_table = new HTMLTable('new_rewards_table', 'new_rewards');
$new_rewards_table->set(0, 0, "<a class=\"sortable\" onClick=\"sort_by('new_rewards', 'referrals.employed_on');\">Employed On</a>", '', 'header');
$new_rewards_table->set(0, 1, "<a class=\"sortable\" onClick=\"sort_by('new_rewards', 'jobs.title');\">Job</a>", '', 'header');
$new_rewards_table->set(0, 2, "<a class=\"sortable\" onClick=\"sort_by('new_rewards', 'members.lastname');\">Referrer</a>", '', 'header');
$new_rewards_table->set(0, 3, "Receipt", '', 'header');
$new_rewards_table->set(0, 4, "Reward", '', 'header');
$new_rewards_table->set(0, 5, 'Actions', '', 'header action');
foreach ($new_rewards as $i => $new_reward) {
$new_rewards_table->set($i + 1, 0, $new_reward['formatted_employed_on'], '', 'cell');
$job = htmlspecialchars_decode(stripslashes($new_reward['title'])) . '</span>' . "\n";
$job .= '<div class="small_contact"><span class="contact_label">Employer:</span> ' . $new_reward['employer'] . '</div>' . "\n";
$new_rewards_table->set($i + 1, 1, $job, '', 'cell');
$referrer_short_details = '';
if (substr($new_reward['member_id'], 0, 5) == 'team.' && substr($new_reward['member_id'], 7) == '@yellowelevator.com') {
$referrer_short_details = 'Yellow Elevator';
} else {
$referrer_short_details = htmlspecialchars_decode(stripslashes($new_reward['member'])) . "\n";
$referrer_short_details .= '<div class="small_contact"><span class="contact_label">Tel.:</span> ' . $new_reward['phone_num'] . '</div>' . "\n";
$referrer_short_details .= '<div class="small_contact"><span class="contact_label">Email: </span><a href="mailto:' . $new_reward['member_id'] . '">' . $new_reward['member_id'] . '</a></div>' . "\n";
}
$new_rewards_table->set($i + 1, 2, $referrer_short_details, '', 'cell');
$new_rewards_table->set($i + 1, 3, '<a class="no_link" onClick="show_invoice_page(' . $new_reward['invoice'] . ');">' . $new_reward['padded_invoice'] . '</a> <a href="invoice_pdf.php?id=' . $new_reward['invoice'] . '"><img src="../common/images/icons/pdf.gif" /></a>', '', 'cell');
$new_rewards_table->set($i + 1, 4, $new_reward['currency'] . '$ ' . $new_reward['total_reward'], '', 'cell');
$actions = '<input type="button" value="Award" onClick="show_award_popup(' . $new_reward['referral'] . ');" />';
$new_rewards_table->set($i + 1, 5, $actions, '', 'cell action');
}
echo $new_rewards_table->get_html();
?>
</div>
<?php
}
?>
</div>
<div id="paid_rewards">
<?php
if (is_null($paid_rewards) || count($paid_rewards) <= 0 || $paid_rewards === false) {
?>
<div class="empty_results">No rewards awarded at this moment.</div>
<?php
} else {
//.........这里部分代码省略.........
示例4: show
public function show()
{
$this->begin();
$this->top_search("Job Applications");
$this->menu('member', 'job_applications');
$this->howitworks();
$applications = $this->member->getAllAppliedJobs();
// filter out jobs in 'job' that are already in 'ref'
$filter_apps = array();
$skips = array();
for ($i = 0; $i < count($applications); $i++) {
$current_app = $applications[$i];
$next_i = $i + 1;
if ($next_i <= count($applications) - 1) {
for ($j = $next_i; $j < count($applications); $j++) {
if (!in_array($j, $skips)) {
if ($current_app['job_id'] == $applications[$j]['job_id']) {
if ($current_app['tab'] == 'ref') {
$skips[] = $j;
} else {
$skips[] = $i;
}
}
}
}
}
if (!in_array($i, $skips)) {
$filter_apps[] = $current_app;
}
}
$applications = $filter_apps;
?>
<div id="div_status" class="status">
<span id="span_status" class="status"></span>
</div>
<div id="div_applications">
<?php
if (empty($applications)) {
?>
<div class="empty_results">No jobs explored yet.</div>
<?php
} else {
$applications_table = new HTMLTable('applications_table', 'applications');
$applications_table->set(0, 0, "<a class=\"sortable\" onClick=\"sort_by('referrals', 'applied_on');\">Explored On</a>", '', 'header');
$applications_table->set(0, 1, "<a class=\"sortable\" onClick=\"sort_by('referrals', 'job');\">Job Opportunity</a>", '', 'header');
$applications_table->set(0, 2, "<a class=\"sortable\" onClick=\"sort_by('referrals', 'employer');\">Employer</a>", '', 'header');
$applications_table->set(0, 3, "Resume Submitted", '', 'header');
$applications_table->set(0, 4, " ", '', 'header actions');
foreach ($applications as $i => $application) {
$applications_table->set($i + 1, 0, $application['formatted_referred_on'], '', 'cell');
$applications_table->set($i + 1, 1, '<a href="../job/' . $application['job_id'] . '">' . $application['job'] . '</a>', '', 'cell');
$employer = $application['employer'];
if (!is_null($application['alternate_employer']) && !empty($application['alternate_employer'])) {
$employer = $application['alternate_employer'];
}
$applications_table->set($i + 1, 2, $employer, '', 'cell');
$resume = '';
if ($application['tab'] == 'buf') {
if (!is_null($application['resume_id']) && is_null($application['resume'])) {
// use pre uploaded resume
$resume = $application['buffered_stored_resume_file'];
} elseif (is_null($application['resume_id']) && !is_null($application['resume'])) {
// use just uploaded resume
$resume = $application['resume'];
}
} else {
$resume = $application['resume'];
}
$applications_table->set($i + 1, 3, $resume, '', 'cell');
$button = 'Processing...';
if ($application['tab'] == 'ref') {
$button = '<input type="button" value="Confirm Employed" onClick="confirm_employment(' . $application['id'] . ', \'' . addslashes($application['employer']) . '\', \'' . addslashes($application['job']) . '\')" />';
if (!is_null($application['formatted_confirmed_on']) && !empty($application['formatted_confirmed_on'])) {
$button = '<span style="color: #666666; font-size: 9pt;">Employed on ' . $application['formatted_employed_on'] . '<br/>Confirmed on ' . $application['formatted_confirmed_on'] . ' </span>';
}
}
$applications_table->set($i + 1, 4, $button, '', 'cell actions');
}
echo $applications_table->get_html();
}
?>
</div>
<?php
}
示例5: show
//.........这里部分代码省略.........
<tr>
<td class="buttons_bar" colspan="2"><input type="button" onClick="save_profile();" value="Save & Update Profile" /></td>
</tr>
<tr>
<td class="label"><label for="business_license">Company/Business Registration No.:</label></td>
<td class="field"><input class="field" type="text" id="business_license" name="business_license" value="<?php
echo $profile['license_num'];
?>
" /></td>
</tr>
<tr>
<td class="title" colspan="2">Sign In Details</td>
</tr>
<tr>
<td class="label">User ID:</td>
<td class="field">
<?php
if ($this->is_new) {
?>
<input class="field" type="text" id="user_id" value="" maxlength="10" />
<?php
} else {
echo $profile['id'];
}
?>
</td>
</tr>
<tr>
<td class="label"><label for="password">Password:</label></td>
<td class="field">
<?php
if ($this->is_new) {
?>
<input type="button" value="Reset Password" onClick="reset_password();" disabled />
<?php
} else {
?>
<input type="button" value="Reset Password" onClick="reset_password();" />
<?php
}
?>
</td>
</tr>
<tr>
<td class="title" colspan="2">Contact Details</td>
</tr>
<tr>
<td class="label"><label for="email">E-mail Address:</label></td>
<td class="field"><input class="field" type="text" id="email" name="email" value="<?php
echo $profile['email_addr'];
?>
" /></td>
</tr>
<tr>
<td class="label"><label for="name">Business Name:</label></td>
<td class="field"><input class="field" type="text" id="name" name="name" value="<?php
echo htmlspecialchars_decode(stripslashes($profile['name']));
?>
" /></td>
</tr>
<tr>
<td class="label"><label for="contact_person">HR Contacts:</label></td>
<td class="field"><input class="field" type="text" id="contact_person" name="contact_person" value="<?php
echo htmlspecialchars_decode(stripslashes($profile['contact_person']));
?>
" /></td>
示例6: show
//.........这里部分代码省略.........
<?php
}
?>
</td>
<td>
<form id="profile" method="post" onSubmit="return false;">
<table class="profile_form">
<tr>
<td class="buttons_bar" colspan="2"><input type="button" onClick="save_profile();" value="Save & Update Profile" /></td>
</tr>
<tr>
<td class="title" colspan="2">Sign In Details</td>
</tr>
<tr>
<td class="label">Email Address:</td>
<td class="field">
<?php
if ($this->is_new) {
?>
<input class="field" type="text" id="email_addr" value="" maxlength="50" />
<?php
} else {
echo $profile['email_addr'];
}
?>
</td>
</tr>
<tr>
<td class="label"><label for="password">Password:</label></td>
<td class="field">
<?php
if ($this->is_new) {
?>
<input type="button" value="Reset Password" onClick="reset_password();" disabled />
<?php
} else {
?>
<input type="button" value="Reset Password" onClick="reset_password();" />
<?php
}
?>
</td>
</tr>
<tr>
<td class="title" colspan="2">Citizenship</td>
</tr>
<tr>
<td class="label"><label for="citizenship">Citizen of:</label></td>
<td class="field">
<?php
echo $this->generate_countries($profile['citizenship'], 'citizenship');
?>
</td>
</tr>
<tr>
<td class="title" colspan="2">Contact Details</td>
</tr>
<tr>
<td class="label"><label for="firstname">First Name:</label></td>
<td class="field"><input class="field" type="text" id="firstname" name="firstname" value="<?php
echo htmlspecialchars_decode(stripslashes($profile['firstname']));
?>
" /></td>
</tr>
<tr>
<td class="label"><label for="lastname">Last Name:</label></td>
示例7: show
public function show()
{
$this->begin();
$this->support($this->employer->getId());
$this->top('Invoices & Receipts');
$this->menu('employer', 'invoices');
$invoices = $this->get_invoices();
$receipts = $this->get_invoices(true);
?>
<div id="div_status" class="status">
<span id="span_status" class="status"></span>
</div>
<div id="div_tabs">
<ul>
<li id="li_invoices">Invoices</li>
<li id="li_receipts">Receipts</li>
</ul>
</div>
<div id="div_invoices">
<?php
if (empty($invoices)) {
?>
<div class="empty_results">No invoices issued at this moment.</div>
<?php
} else {
$invoices_table = new HTMLTable('invoices_table', 'payments');
$invoices_table->set(0, 0, " ", '', 'header cell_indicator');
$invoices_table->set(0, 1, "<a class=\"sortable\" onClick=\"sort_by('invoices', 'issued_on');\">Issued On</a>", '', 'header');
$invoices_table->set(0, 2, "<a class=\"sortable\" onClick=\"sort_by('invoices', 'payable_by');\">Payable By</a>", '', 'header');
$invoices_table->set(0, 3, "<a class=\"sortable\" onClick=\"sort_by('invoices', 'type');\">Type</a>", '', 'header');
$invoices_table->set(0, 4, "<a class=\"sortable\" onClick=\"sort_by('invoices', 'id');\">Invoice</a>", '', 'header');
$invoices_table->set(0, 5, " ", '', 'header pdf_download');
foreach ($invoices as $i => $invoice) {
if ($invoice['expired'] <= 0) {
$invoices_table->set($i + 1, 0, '<img src="../common/images/icons/expired.png" />', '', 'cell cell_indicator');
} else {
$invoices_table->set($i + 1, 0, ' ', '', 'cell cell_indicator');
}
$invoices_table->set($i + 1, 1, $invoice['formatted_issued_on'], '', 'cell');
$invoices_table->set($i + 1, 2, $invoice['formatted_payable_by'], '', 'cell');
$type = 'Others';
switch ($invoice['type']) {
case 'R':
$type = 'Service Fee';
break;
case 'J':
$type = 'Subscription';
break;
case 'P':
$type = 'Job Posting';
break;
}
$invoices_table->set($i + 1, 3, $type, '', 'cell');
$invoices_table->set($i + 1, 4, '<a class="no_link" onClick="show_invoice_page(' . $invoice['id'] . ');">' . pad($invoice['id'], 11, '0') . '</a>', '', 'cell');
$invoices_table->set($i + 1, 5, '<a href="invoice_pdf.php?id=' . $invoice['id'] . '"><img src="../common/images/icons/pdf.gif"/></a>', '', 'cell pdf_download');
}
echo $invoices_table->get_html();
}
?>
</div>
<div id="div_receipts">
</div>
<?php
}
示例8: show
public function show()
{
$this->begin();
$branch = $this->employee->getBranch();
$this->top('Application Status - ' . $branch[0]['country']);
$this->menu_employee('status');
$applications = $this->get_applications();
$employers_filter = '<select id="employers_filter" onChange="update_applications();">';
$employers_filter .= '<option value="" selected>All Employers</option>';
$employers_filter .= '<option value="" disabled> </option>';
foreach ($this->found_employers as $key => $value) {
$employers_filter .= '<option value="' . $key . '">' . $value . '</option>';
}
$employers_filter .= '</select>';
?>
<div id="div_status" class="status">
<span id="span_status" class="status"></span>
</div>
<div class="pagination">
Page
<select id="current_page" onChange="goto_page();">
<?php
for ($i = 0; $i < $this->initial_total_pages; $i++) {
?>
<option value="<?php
echo $i;
?>
"><?php
echo $i + 1;
?>
</option>
<?php
}
?>
</select>
of <span id="total_pages"><?php
echo $this->initial_total_pages;
?>
</span>
</div>
<div id="div_filter">
<?php
$from_timestamp = explode(' ', $this->period[0]);
$from_date = explode('-', $from_timestamp[0]);
$month_from_dropdown = generate_month_dropdown('from_month', '', $from_date[1]);
$day_from_dropdown = generate_dropdown('from_day', '', 1, 31, $from_date[2]);
$to_timestamp = explode(' ', $this->period[1]);
$to_date = explode('-', $to_timestamp[0]);
$month_to_dropdown = generate_month_dropdown('to_month', '', $to_date[1]);
$day_to_dropdown = generate_dropdown('to_day', '', 1, 31, $to_date[2]);
?>
Show
<select id="filter">
<option value="" selected>All</option>
<option value="" disabled> </option>
<option value="not_viewed">Not Viewed & applied</option>
<option value="viewed">Viewed</option>
<option value="employed">Employed</option>
<option value="rejected">Rejected</option>
<option value="removed">Deleted</option>
<option value="confirmed">Confirmed & applied</option>
</select>
between
<input type="text" class="mini_field" id="from_year" maxlength="4" value="<?php
echo $from_date[0];
?>
" />
<?php
echo $month_from_dropdown . ' ' . $day_from_dropdown;
?>
and
<input type="text" class="mini_field" id="to_year" maxlength="4" value="<?php
echo $to_date[0];
?>
" />
<?php
echo $month_to_dropdown . ' ' . $day_to_dropdown;
?>
<input type="button" onClick="filter_applications();" value="Filter" />
</div>
<div id="member_applications">
<div id="applications">
<?php
if (empty($applications)) {
?>
<div class="empty_results">No applications found.</div>
<?php
} else {
$applications_table = new HTMLTable('applications_table', 'applications');
$applications_table->set(0, 0, "<a class=\"sortable\" onClick=\"sort_by('referrals', 'referrals.referred_on');\">Applied On</a>", '', 'header');
$applications_table->set(0, 1, "<a class=\"sortable\" onClick=\"sort_by('referrals', 'candidates.lastname');\">Candidate</a>", '', 'header');
$applications_table->set(0, 2, "<a class=\"sortable\" onClick=\"sort_by('referrals', 'jobs.title');\">Job</a> from " . $employers_filter, '', 'header');
$applications_table->set(0, 3, 'Status', '', 'header');
foreach ($applications as $i => $application) {
$applications_table->set($i + 1, 0, $application['formatted_referred_on'], '', 'cell');
$candidate_details = '<a href="member.php?member_email_addr=' . $application['candidate'] . '">' . $application['candidate_name'] . '</a>';
$candidate_details .= '<div class="resume"><span style="font-weight: bold;">Resume:</span> <a href="resume.php?id=' . $application['resume_id'] . '">' . $application['file_name'] . '</a></div>';
//.........这里部分代码省略.........
示例9: show
public function show()
{
$this->begin();
$branch = $this->employee->getBranch();
$this->top('Payments - ' . $branch[0]['country']);
$this->menu_employee('payments');
$employers = $this->get_employers();
$receipt_employers = $this->get_employers(false);
$today = now();
$invoices = $this->get_payments();
foreach ($invoices as $i => $row) {
$invoices[$i]['padded_id'] = pad($row['id'], 11, '0');
$invoices[$i]['amount_payable'] = number_format($row['amount_payable'], 2, '.', ', ');
$delta = sql_date_diff($today, $row['payable_by']);
if ($delta > 0) {
$invoices[$i]['expired'] = 'expired';
} else {
if ($delta == 0) {
$invoices[$i]['expired'] = 'nearly';
} else {
$invoices[$i]['expired'] = 'no';
}
}
}
$receipts = $this->get_payments(false);
foreach ($receipts as $i => $row) {
$receipts[$i]['padded_id'] = pad($row['id'], 11, '0');
$receipts[$i]['amount_payable'] = number_format($row['amount_payable'], 2, '.', ', ');
}
?>
<!-- submenu -->
<div class="menu">
<ul class="menu">
<li id="item_invoices" style="background-color: #CCCCCC;"><a class="menu" onClick="show_invoices();">Invoices</a></li>
<li id="item_receipts"><a class="menu" onClick="show_receipts();">Receipts</a></li>
</ul>
</div>
<!-- end submenu -->
<div id="div_status" class="status">
<span id="span_status" class="status"></span>
</div>
<div id="invoices">
<?php
if (is_null($invoices) || count($invoices) <= 0 || $invoices === false) {
?>
<div class="empty_results">No invoices issued at this moment.</div>
<?php
} else {
?>
<div class="buttons_bar">
Employer Filter:
<select id="invoices_filter" onChange="filter_invoices();">
<option value="" selected>All</option>
<option value="" disabled> </option>
<?php
foreach ($employers as $employer) {
?>
<option value="<?php
echo $employer['id'];
?>
"><?php
echo htmlspecialchars_decode(stripslashes($employer['employer']));
?>
</option>
<?php
}
?>
</select>
</div>
<div id="div_invoices">
<?php
$invoices_table = new HTMLTable('invoices_table', 'invoices');
$invoices_table->set(0, 0, ' ', '', 'header expiry_status');
$invoices_table->set(0, 1, "<a class=\"sortable\" onClick=\"sort_by('invoices', 'invoices.issued_on');\">Issued On</a>", '', 'header');
$invoices_table->set(0, 2, "<a class=\"sortable\" onClick=\"sort_by('invoices', 'employers.name');\">Employer</a>", '', 'header');
$invoices_table->set(0, 3, "Placement", '', 'header');
$invoices_table->set(0, 4, "<a class=\"sortable\" onClick=\"sort_by('invoices', 'invoices.id');\">Invoice</a>", '', 'header');
$invoices_table->set(0, 5, 'Payable By', '', 'header');
$invoices_table->set(0, 6, 'Amount Payable', '', 'header');
$invoices_table->set(0, 7, 'Actions', '', 'header action');
foreach ($invoices as $i => $invoice) {
$status = '';
if ($invoice['expired'] == 'expired') {
$status = '<img class="warning" src="../common/images/icons/expired.png" />';
} elseif ($invoice['expired'] == 'nearly') {
$status = '<img class="warning" src="../common/images/icons/just_expired.png" />';
}
$invoices_table->set($i + 1, 0, $status, '', 'cell expiry_status');
$invoices_table->set($i + 1, 1, $invoice['formatted_issued_on'], '', 'cell');
$employer_contacts = htmlspecialchars_decode(stripslashes($invoice['employer']));
$employer_contacts .= '<div class="contacts">';
$employer_contacts .= '<span class="contact_label">Tel.:</span> ' . $invoice['phone_num'] . '<br/>';
$employer_contacts .= '<span class="contact_label">Fax.:</span> ' . $invoice['fax_num'] . '<br/>';
$employer_contacts .= '<span class="contact_label">E-mail:</span> <a href="mailto:' . $invoice['email_addr'] . '">' . $invoice['email_addr'] . '</a><br/>';
$employer_contacts .= '<span class="contact_label">Contact:</span> ' . $invoice['contact_person'] . '<br/></div>';
$invoices_table->set($i + 1, 2, $employer_contacts, '', 'cell');
$invoices_table->set($i + 1, 3, $invoice['placement'], '', 'cell');
$invoices_table->set($i + 1, 4, '<a class="no_link" onClick="show_invoice_page(' . $invoice['id'] . ');">' . $invoice['padded_id'] . '</a> <a href="invoice_pdf.php?id=' . $invoice['id'] . '"><img src="../common/images/icons/pdf.gif" /></a>', '', 'cell');
//.........这里部分代码省略.........
示例10: show
//.........这里部分代码省略.........
?>
</span>
</td>
</tr>
<tr>
<td colspan="2">
<div class="buy">
Contact us to renew your subscriptions or buy job posts with the <span style="font-weight: bold;">Billing</span> contact details listed above.
<br/><br/>
You can contact us to extend your expired published jobs as well.
</div>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
<div id="div_status" class="status">
<span id="span_status" class="status"></span>
</div>
<div>
<div id="div_jobs" class="jobs">
<?php
if (empty($jobs)) {
?>
<div class="empty_results">No job published at this moment.</div>
<?php
} else {
$jobs_table = new HTMLTable('jobs_table', 'jobs');
$jobs_table->set(0, 0, "<a class=\"sortable\" onClick=\"sort_by('jobs', 'created_on');\">Created On</a>", '', 'header');
$jobs_table->set(0, 1, "<a class=\"sortable\" onClick=\"sort_by('jobs', 'title');\">Job</a>", '', 'header');
$jobs_table->set(0, 2, "<a class=\"sortable\" onClick=\"sort_by('jobs', 'expire_on');\">Expire On</a>", '', 'header');
foreach ($jobs as $i => $job) {
$jobs_table->set($i + 1, 0, $job['formatted_created_on'], '', 'cell');
$job_title = "<a class=\"no_link\" onClick=\"show_job_description(" . $job['id'] . ");\">" . $job['title'] . "</a>";
$jobs_table->set($i + 1, 1, $job_title, '', 'cell');
$jobs_table->set($i + 1, 2, $job['formatted_expire_on'], '', 'cell');
}
echo $jobs_table->get_html();
}
?>
</div>
<div id="div_job_desc" class="job_desc">
<div class="back">
<a class="no_link" onClick="show_jobs();">
<< Back to Job Postings
</a>
</div>
<table class="job">
<tr>
<td colspan="2" class="title">
<span id="job.title"></span>
</td>
</tr>
<tr>
<td class="label">Alternate Employer:</td>
<td><span id="job.alternate_employer"></span></td>
</tr>
<tr>
<td class="label">Carbon Copy Email:</td>
示例11: show
public function show()
{
$this->begin();
$this->support($this->employer->getId());
$this->top('Resumes');
$this->menu('employer', 'resumes');
$branch = $this->employer->getAssociatedBranch();
$currency = $branch[0]['currency'];
$referred_jobs = $this->get_referred_jobs();
if ($referred_jobs === false || is_null($referred_jobs) || empty($referred_jobs)) {
$referred_jobs = array();
}
?>
<div id="div_status" class="status">
<span id="span_status" class="status"></span>
</div>
<div id="div_referred_jobs">
<?php
if (empty($referred_jobs)) {
?>
<div class="empty_results">No applications found for all job posts at this moment.</div>
<?php
} else {
$jobs_table = new HTMLTable('referred_jobs_table', 'referred_jobs');
$jobs_table->set(0, 0, "<a class=\"sortable\" onClick=\"sort_by('referred_jobs', 'jobs.expire_on');\">Expire On</a>", '', 'header');
$jobs_table->set(0, 1, "<a class=\"sortable\" onClick=\"sort_by('referred_jobs', 'jobs.title');\">Job</a>", '', 'header');
$jobs_table->set(0, 2, "<a class=\"sortable\" onClick=\"sort_by('referred_jobs', 'num_referrals');\">Resumes</a>", '', 'header');
foreach ($referred_jobs as $i => $referred_job) {
$jobs_table->set($i + 1, 0, $referred_job['formatted_expire_on'], '', 'cell');
$job_title = "<a class=\"no_link\" onClick=\"toggle_job_description('" . $i . "');\">" . $referred_job['title'] . "</a>";
$job_title .= "<div id=\"inline_job_desc_" . $i . "\" class=\"inline_job_desc\">" . $referred_job['description'] . "</div>";
$jobs_table->set($i + 1, 1, $job_title, '', 'cell');
$resumes = "<a class=\"no_link\" onClick=\"show_resumes_of('" . $referred_job['id'] . "', '" . addslashes($referred_job['title']) . "');\">" . $referred_job['num_referrals'];
if ($referred_job['new_referrals_count'] > 0) {
$resumes .= " <span style=\"vertical-align: top; font-size: 7pt;\">[ " . $referred_job['new_referrals_count'] . " new ]</span>";
}
$resumes .= "</a>";
$jobs_table->set($i + 1, 2, $resumes, '', 'cell resumes_column');
}
echo $jobs_table->get_html();
}
?>
</div>
<div id="div_resumes">
<div class="resumes_top">
<span class="back">
<a class="no_link" onClick="show_referred_jobs();"><< Back to Jobs</a>
</span>
<br/>
<div class="job_title">
<span id="job_title"></span>
</div>
</div>
<div style="width: 99%; margin: auto; text-align: right;">
Show
<select id="filter" onChange="show_resumes_of(current_job_id, current_job_title);">
<option value="" selected>All</option>
<option value="" disabled> </option>
<option value="no_star">No Star</option>
<option value="1_star">1 Star</option>
<option value="2_star">2 Stars</option>
<option value="3_star">3 Stars</option>
<option value="4_star">4 Stars</option>
<option value="5_star">5 Stars</option>
<option value="hired">Hired</option>
</select>
</div>
<div id="resumes_list">
</div>
</div>
<!-- popups goes here -->
<div id="job_description_window" class="popup_window">
<div id="window_job_title" class="popup_window_title"></div>
<div id="window_description"></div>
<div class="popup_window_buttons_bar"><input type="button" value="Close" onClick="close_job_description_popup();" /></div>
</div>
<div id="testimony_window" class="popup_window">
<input type="hidden" id="referral_id" value="0" />
<div id="window_testimony_candidate" class="popup_window_title"></div>
<div id="window_testimony"></div>
<div class="popup_window_buttons_bar">
<div class="instructions_label">
(Tip: Drag and select all to copy by pressing Ctrl + C or Command + C.)
</div>
<input type="button" value="Download PDF" onClick="download_testimony_pdf();" />
<input type="button" value="Close" onClick="close_testimony_popup();" />
</div>
</div>
<div id="remarks_window" class="popup_window">
<div id="window_remarks_candidate" class="popup_window_title"></div>
<textarea id="txt_remarks" class="txt_remarks"></textarea>
<div class="popup_window_buttons_bar">
<input type="hidden" id="remarks_referral_id" value="0" />
<input type="hidden" id="remarks_candidate_idx" value="-1" />
//.........这里部分代码省略.........
示例12: show
public function show()
{
$this->begin();
$branch = $this->employee->getBranch();
$this->top('Employers - ' . $branch[0]['country']);
$this->menu_employee('employers');
$subscriptions_rates = $GLOBALS['subscriptions_rates'];
$employers = $this->get_employers($branch[0]['id']);
// $available_subscriptions = $subscriptions_rates[Currency::getSymbolFromCountryCode($branch[0]['country_code'])];
?>
<div id="div_status" class="status">
<span id="span_status" class="status"></span>
</div>
<form id="employer_page_form" method="post" action="employer.php">
<input type="hidden" id="id" name="id" value="" />
<input type="hidden" id="from_employer" name="from_employer" value="" />
</form>
<div class="buttons_bar">
<input class="button" type="button" id="add_new_employer" name="add_new_employer" value="Add New Employer" onClick="add_new_employer();" />
</div>
<div id="div_employers">
<?php
if (is_null($employers) || count($employers) <= 0 || $employers === false) {
?>
<div class="empty_results">No employers at this moment.</div>
<?php
} else {
$employers_table = new HTMLTable('employers_table', 'employers');
$employers_table->set(0, 0, "<a class=\"sortable\" onClick=\"sort_by('employers', 'employers.joined_on');\">Joined On</a>", '', 'header');
$employers_table->set(0, 1, "<a class=\"sortable\" onClick=\"sort_by('employers', 'employers.name');\">Employer</a>", '', 'header');
$employers_table->set(0, 2, "<a class=\"sortable\" onClick=\"sort_by('employers', 'employees.lastname');\">Registered By</a>", '', 'header');
$employers_table->set(0, 3, "<a class=\"sortable\" onClick=\"sort_by('employers', 'employer_sessions.first_login');\">First Login</a>", '', 'header');
$employers_table->set(0, 4, 'Quick Actions', '', 'header action');
foreach ($employers as $i => $employer) {
$employers_table->set($i + 1, 0, $employer['formatted_joined_on'], '', 'cell');
$employer_short_details = '<a class="no_link employer_link" onClick="show_employer(\'' . $employer['id'] . '\');">' . desanitize($employer['employer']) . '</a>' . "\n";
$employer_short_details .= '<div class="small_contact"><span style="font-weight: bold;">Tel.:</span> ' . $employer['phone_num'] . '</div>' . "\n";
$employer_short_details .= '<div class="small_contact"><span style="font-weight: bold;">Fax: </span>' . $employer['fax_num'] . '</div>' . "\n";
$employer_short_details .= '<div class="small_contact"><span style="font-weight: bold;">Email: </span><a href="mailto:' . $employer['email_addr'] . '">' . $employer['email_addr'] . '</a></div>' . "\n";
$employer_short_details .= '<div class="small_contact"><span style="font-weight: bold;">Contact:</span> ' . $employer['contact_person'] . '</div>' . "\n";
$employers_table->set($i + 1, 1, $employer_short_details, '', 'cell');
$employers_table->set($i + 1, 2, $employer['employee'], '', 'cell');
$employers_table->set($i + 1, 3, $employer['formatted_first_login'], '', 'cell');
$actions = '';
if ($employer['active'] == 'Y') {
$actions = '<input type="button" id="activate_button_' . $i . '" value="De-activate" onClick="activate_employer(\'' . $employer['id'] . '\', \'' . $i . '\');" />';
$actions .= '<input type="button" id="password_reset_' . $i . '" value="Reset Password" onClick="reset_password(\'' . $employer['id'] . '\');" />';
} else {
$actions = '<input type="button" id="activate_button_' . $i . '" value="Activate" onClick="activate_employer(\'' . $employer['id'] . '\', \'' . $i . '\');" />';
$actions .= '<input type="button" id="password_reset_' . $i . '" value="Reset Password" onClick="reset_password(\'' . $employer['id'] . '\');" disabled />';
}
$actions .= '<input type="button" value="New From" onClick="add_new_employer(\'' . $employer['id'] . '\');" />';
$employers_table->set($i + 1, 4, $actions, '', 'cell action');
}
echo $employers_table->get_html();
?>
</div>
<div class="buttons_bar">
<input class="button" type="button" id="add_new_employer" name="add_new_employer" value="Add New Employer" onClick="add_new_employer();" />
</div>
<?php
}
?>
<?php
}
示例13: show
public function show()
{
$this->begin();
$this->top_search("Resumes");
$this->menu('member', 'resumes');
$resumes = $this->get_resumes();
?>
<div id="div_status" class="status">
<span id="span_status" class="status"></span>
</div>
<table class="buttons">
<tr>
<td class="right">
<input type="button" id="upload_new_resume" name="upload_new_resume" value="Upload Resume" onClick="show_upload_resume_popup(0);" />
</td>
</tr>
</table>
<div id="div_resumes">
<?php
if (empty($resumes)) {
?>
<div class="empty_results">No resumes uploaded. Click "Upload Resume" button to upload one now.</div>
<?php
} else {
$resumes_table = new HTMLTable('resumes_table', 'resumes');
$resumes_table->set(0, 0, "<a class=\"sortable\" onClick=\"sort_by('resumes', 'modified_on');\">Modified On</a>", '', 'header');
$resumes_table->set(0, 1, "<a class=\"sortable\" onClick=\"sort_by('resumes', 'file_name');\">Resume</a>", '', 'header');
$resumes_table->set(0, 2, " ", '', 'header actions');
foreach ($resumes as $i => $resume) {
$resumes_table->set($i + 1, 0, $resume['formatted_modified_on'], '', 'cell');
$resumes_table->set($i + 1, 1, '<a href="resume.php?id=' . $resume['id'] . '">' . $resume['file_name'] . '</a>', '', 'cell');
$resumes_table->set($i + 1, 2, '<a class="no_link" onClick="update_resume(' . $resume['id'] . ');">Update</a>', '', 'cell actions');
//$resumes_table->set($i+1, 2, '<a class="no_link" onClick="delete_resume('. $resume['id']. ');">Delete</a> | <a class="no_link" onClick="update_resume('. $resume['id']. ');">Update</a>', '', 'cell actions');
}
echo $resumes_table->get_html();
}
?>
</div>
<table class="buttons">
<tr>
<td class="right">
<input type="button" id="upload_new_resume" name="upload_new_resume" value="Upload Resume" onClick="show_upload_resume_popup(0);" />
</td>
</tr>
</table>
<!-- popups goes here -->
<div id="upload_resume_window" class="popup_window">
<div class="popup_window_title">Upload Resume</div>
<form id="upload_resume_form" action="resumes_action.php" method="post" enctype="multipart/form-data" onSubmit="return close_upload_resume_popup(true);">
<div class="upload_resume_form">
<input type="hidden" id="resume_id" name="id" value="0" />
<input type="hidden" name="member" value="<?php
echo $this->member->getId();
?>
" />
<input type="hidden" name="action" value="upload" />
<div id="upload_progress" style="text-align: center; width: 99%; margin: auto;">
Please wait while your resume is being uploaded... <br/><br/>
<img src="<?php
echo $GLOBALS['protocol'];
?>
://<?php
echo $GLOBALS['root'];
?>
/common/images/progress/circle_big.gif" />
</div>
<div id="upload_field" class="upload_field">
<input id="my_file" name="my_file" type="file" />
<div style="font-size: 9pt; margin-top: 15px;">
<ol>
<li>Only HTML (*.html, *.htm), Text (*.txt), Portable Document Format (*.pdf) or MS Word document (*.doc) with the file size of less than 1MB are allowed.</li>
<li>You can upload as many resumes as you want and designate them for different job applications.</li>
<li>You can update your resume by clicking "Update" then upload an updated version.</li>
</ol>
</div>
</div>
</div>
<div class="popup_window_buttons_bar">
<input type="submit" value="Upload" />
<input type="button" value="Cancel" onClick="close_upload_resume_popup(false);" />
</div>
</form>
</div>
<?php
}