本文整理汇总了PHP中HTMLTable::get_html方法的典型用法代码示例。如果您正苦于以下问题:PHP HTMLTable::get_html方法的具体用法?PHP HTMLTable::get_html怎么用?PHP HTMLTable::get_html使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HTMLTable
的用法示例。
在下文中一共展示了HTMLTable::get_html方法的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
//.........这里部分代码省略.........
// 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');
//$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');
}
$page = str_replace('%resumes_table%', $resumes_table->get_html(), $page);
}
// career profile
$criteria = array('columns' => "DATE_FORMAT(imported_on, '%e %b, %Y') AS formatted_last_imported_on", 'match' => "email_addr = '" . $this->member->getId() . "'");
$result = $this->member->find($criteria);
if (!is_null($result[0]['formatted_last_imported_on']) || !empty($result[0]['formatted_last_imported_on'])) {
$page = str_replace('%last_imported_on%', 'Last imported on ' . $result[0]['formatted_last_imported_on'], $page);
} else {
$page = str_replace('%last_imported_on%', 'Not yet imported', $page);
}
$is_active_str = 'No';
if ($is_active) {
$is_active_str = 'Yes';
}
if ($answers['contact_me_for_opportunities'] == '1') {
if ($is_active_str == 'No') {
$is_active_str .= ', but ';
} else {
$is_active_str .= '; also ';
}
$is_active_str .= 'contact me if opportunities are available.';
$page = str_replace('%contact_me%', 'checked', $page);
} else {
$page = str_replace('%contact_me%', '', $page);
}
$page = str_replace('%is_active%', $is_active_str, $page);
$seeking_txt = str_replace(array("\r\n", "\r", "\n"), '<br/>', $answers['seeking']);
$page = str_replace('%seeking%', $seeking_txt, $page);
$page = str_replace('%expected_salary_currency%', $answers['expected_salary_currency'], $page);
$exp_sal = $answers['expected_salary'] <= 0 ? '(None provided)' : $answers['expected_salary'];
$page = str_replace('%expected_salary%', $exp_sal, $page);
$exp_total = $answers['expected_total_annual_package'] <= 0 ? '(None provided)' : $answers['expected_total_annual_package'];
$page = str_replace('%expected_total_annual_package%', $exp_total, $page);
示例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
//.........这里部分代码省略.........
<input class="button" type="button" value="Save" onClick="save_payment_terms();" />
</td>
</tr>
</table>
</div>
<div class="buttons_bar">
<input class="button" type="button" value="Add" onClick="add_new_fee();" />
</div>
<div id="fees" class="fees">
<?php
if (is_null($fees) || empty($fees) || $fees === false) {
?>
<div class="empty_results">There is no fee structure set for this employer yet.</div>
<?php
} else {
$fees_table = new HTMLTable('fees_table', 'fees_table');
$fees_table->set(0, 0, "Annual Salary From", '', 'header');
$fees_table->set(0, 1, "Annual Salary Until", '', 'header');
$fees_table->set(0, 2, "Guaranteed Period (in months)", '', 'header');
$fees_table->set(0, 3, "Service Fee (%)", '', 'header');
$fees_table->set(0, 4, "Reward (%)", '', 'header');
$fees_table->set(0, 5, " ", '', 'header action');
foreach ($fees as $i => $fee) {
$fees_table->set($i + 1, 0, number_format($fee['salary_start'], 2, '.', ','), '', 'cell');
$fees_table->set($i + 1, 1, number_format($fee['salary_end'], 2, '.', ','), '', 'cell');
$fees_table->set($i + 1, 2, $fee['guarantee_months'], '', 'cell center');
$fees_table->set($i + 1, 3, $fee['service_fee'], '', 'cell center');
$fees_table->set($i + 1, 4, $fee['reward_percentage'], '', 'cell center');
$actions = '<input type="button" value="Delete" onClick="delete_fee(' . $fee['id'] . ');" />';
$actions .= '<input type="button" value="Update" onClick="show_fee_window(' . $fee['id'] . ', \'' . number_format($fee['salary_start'], 2, '.', ',') . '\', \'' . number_format($fee['salary_end'], 2, '.', ',') . '\', \'' . $fee['guarantee_months'] . '\', \'' . $fee['service_fee'] . '\', \'' . $fee['reward_percentage'] . '\');" />';
$fees_table->set($i + 1, 5, $actions, '', 'cell action');
}
echo $fees_table->get_html();
}
?>
</div>
<div class="buttons_bar">
<input class="button" type="button" value="Add" onClick="add_new_fee();" />
</div>
</div>
<div id="employer_subscriptions">
<table class="subscription_form">
<tr>
<td class="label"><label for="subscription_period">Subscription:</label></td>
<td class="field">
<?php
$expiry = $profile['formatted_subscription_expire_on'];
if (empty($expiry) || is_null($expiry)) {
$expiry = 'No subscription purchased.';
}
$expired = '';
if ($profile['is_expired'] > 0) {
$expired = 'color: #ff0000;';
}
?>
<div>Expires On: <span id="expiry" style="<?php
echo $expired;
?>
"><?php
echo $expiry;
?>
</span></div>
<div>Purchase:
<select id="subscription_period" name="subscription_period" >
示例6: show
//.........这里部分代码省略.........
</table>
</div>
<div id="member_resumes">
<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($profile['resumes'])) {
?>
<div class="empty_results">No resumes uploaded.</div>
<?php
} else {
$resumes_table = new HTMLTable('resumes_table', 'resumes');
$resumes_table->set(0, 0, "Modified On", '', 'header');
$resumes_table->set(0, 1, "Resume", '', 'header');
$resumes_table->set(0, 2, " ", '', 'header actions');
foreach ($profile['resumes'] as $i => $resume) {
$resumes_table->set($i + 1, 0, $resume['formatted_modified_on'], '', 'cell');
$resume_link = '<a href="resume_download.php?id=' . $resume['id'] . '">' . $resume['file_name'] . '</a>';
if ($resume['is_yel_uploaded'] == '1') {
$resume_link = '» ' . $resume_link;
}
$resumes_table->set($i + 1, 1, $resume_link, '', 'cell');
$resume_action = '<a class="no_link" onClick="update_resume(' . $resume['id'] . ');">Update</a>';
$resume_action .= ' | <a class="no_link" onClick="show_apply_job_popup(' . $resume['id'] . ', \'' . addslashes($resume['file_name']) . '\');">Submit</a>';
$resumes_table->set($i + 1, 2, $resume_action, '', '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>
</div>
<div id="member_career">
<div class="updated_on">
Updated on: <?php
echo is_null($profile['updated_on']) ? 'New Entry' : $profile['updated_on'];
?>
</div>
<form id="career" method="post" onSubmit="return false;">
<table class="career_profile">
<tr>
<td>
<div class="buttons_bar"><input type="button" onClick="show_job_profile_popup('0');" value="Add" /></div>
<div id="job_profiles">
<?php
$job_profiles = $profile['job_profiles'];
if (empty($job_profiles) || count($job_profiles) <= 0 || $job_profiles === false) {
?>
<div class="empty_results">No job profiles found.</div>
<?php
} else {
$job_profiles_table = new HTMLTable('job_profiles_table', 'job_profiles');
示例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
//.........这里部分代码省略.........
} else {
$candidate_details .= '<br/><div class="referrer"><a href="member.php?member_email_addr=' . $application['referrer'] . '">' . $application['referrer_name'] . '</a></div>';
}
$applications_table->set($i + 1, 1, $candidate_details, '', 'cell');
$job_details = '<a class="no_link" onClick="show_job_desc(' . $application['job_id'] . ');">' . $application['job'] . '</a>';
$job_details .= '<br/><br/><div class="employer"><a href="employer.php?id=' . $application['employer_id'] . '">' . $application['employer'] . '</a></div>';
$applications_table->set($i + 1, 2, $job_details, '', 'cell');
$status = '<span class="not_viewed_yet">Not Viewed Yet</a>';
if (!is_null($application['formatted_employer_agreed_terms_on'])) {
$status = '<span class="viewed">Viewed on:</span> ' . $application['formatted_employer_agreed_terms_on'];
}
if (!is_null($application['formatted_employed_on'])) {
$status = '<span class="employed">Employed on:</span> ' . $application['formatted_employed_on'];
}
if (!is_null($application['formatted_employer_rejected_on'])) {
$status = '<span class="rejected">Rejected on:</span> ' . $application['formatted_employer_rejected_on'];
}
if (!is_null($application['formatted_employer_removed_on'])) {
$status = '<span class="removed">Deleted on:</span> ' . $application['formatted_employer_removed_on'];
}
if ($application['has_employer_remarks'] == '1') {
$status .= '<br/><a class="no_link" onClick="show_employer_remarks(' . $application['id'] . ');">Employer Remarks</a>';
}
if (!is_null($application['formatted_referee_confirmed_hired_on'])) {
$status .= '<br/><span class="confirmed">Confirmed on: </span>' . $application['formatted_referee_confirmed_hired_on'];
}
$applications_table->set($i + 1, 3, $status, '', 'cell testimony');
// $testimony = 'None Provided';
// if ($application['has_testimony'] == '1') {
// $testimony = '<a class="no_link" onClick="show_testimony('. $application['id']. ');">Show</a>';
// }
// $applications_table->set($i+1, 6, $testimony, '', 'cell testimony');
}
echo $applications_table->get_html();
}
?>
</div>
</div>
<div class="pagination">
Page
<select id="current_page_bottom" onChange="goto_page(true);">
<?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_bottom"><?php
echo $this->initial_total_pages;
?>
</span>
</div>
<!-- popup windows goes here -->
<div id="testimony_window" class="popup_window">
<div class="popup_window_title">Testimony</div>
<div class="testimony_form">
示例9: show
//.........这里部分代码省略.........
$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');
$invoices_table->set($i + 1, 5, $invoice['formatted_payable_by'], '', 'cell');
$amount = $invoice['currency'] . '$ ' . $invoice['amount_payable'];
$invoices_table->set($i + 1, 6, $amount, '', 'cell');
$actions = '<input type="button" value="Paid" onClick="show_payment_popup(' . $invoice['id'] . ', \'' . $invoice['padded_id'] . '\');" /><input type="button" value="Resend" onClick="show_resend_popup(' . $invoice['id'] . ', \'' . $invoice['padded_id'] . '\');" />';
$invoices_table->set($i + 1, 7, $actions, '', 'cell action');
}
echo $invoices_table->get_html();
?>
</div>
<?php
}
?>
</div>
<div id="receipts">
<?php
if (is_null($receipts) || count($receipts) <= 0 || $receipts === false) {
?>
<div class="empty_results">No receipts issued at this moment.</div>
<?php
} else {
?>
<div class="buttons_bar">
Employer Filter:
<select id="receipts_filter" onChange="filter_receipts();">
<option value="" selected>All</option>
<option value="" disabled> </option>
<?php
foreach ($receipt_employers as $employer) {
?>
<option value="<?php
echo $employer['id'];
?>
"><?php
echo htmlspecialchars_decode(stripslashes($employer['employer']));
?>
</option>
<?php
}
示例10: show
//.........这里部分代码省略.........
<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>
<td><span id="job.contact_carbon_copy"></span></td>
</tr>
<tr>
<td class="label">Specialization:</td>
<td><span id="job.specialization"></span></td>
</tr>
<tr>
<td class="label">Salary Range:</td>
<td>
<?php
echo $currency;
?>
$<span id="job.salary_range"></span>
[ <span id="job.salary_negotiable"></span> ]
</td>
</tr>
<tr>
<td class="label">Location:</td>
<td><span id="job.state"></span></td>
</tr>
<tr>
<td class="label">Description:</td>
<td><div id="job.description" class="job_description"></div></td>
</tr>
<tr>
<td class="label">Created On:</td>
<td><span id="job.created_on"></span></td>
</tr>
<tr>
<td class="label">Expired On:</td>
<td><span id="job.expired_on"></span></td>
</tr>
</table>
</div>
</div>
<?php
}
示例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
}