function payment_button($order_id, $product_type) { if (func_num_args() > 1) { $product_type = func_get_arg(1); } if ($product_type == '') { $product_type = 'P'; // posting package } global $label; if ($product_type == 'P') { $order_row = JB_get_product_invoice_row($order_id); } elseif ($product_type == 'S') { $order_row = JB_get_subscription_invoice_row($order_id); } elseif ($product_type == 'M') { $order_row = JB_get_membership_invoice_row($order_id); } ?> <form id="payment_button" action="https://www.e-gold.com/sci_asp/payments.asp" method="post" > <input type="hidden" name="PAYEE_ACCOUNT" value="<?php echo EGOLD_PAYEE_ACCOUNT; ?> "> <input type="hidden" name="PAYEE_NAME" value="<?php echo JB_escape_html(JB_SITE_NAME); ?> "> <input type="hidden" name="PAYMENT_AMOUNT" value="<?php echo JB_convert_to_currency($order_row['amount'], $order_row['currency_code'], $this->get_currency()); ?> "> <input type="hidden" name="PAYMENT_UNITS" value="<?php echo EGOLD_PAYMENT_UNITS; ?> "> <input type="hidden" name="PAYMENT_METAL_ID" value="<?php echo EGOLD_PAYMENT_METAL_ID; ?> "> <input type="hidden" name="PAYMENT_ID" value="<?php echo jb_prefix_order_id($product_type . $order_row['invoice_id']); ?> "> <input type="hidden" name="STATUS_URL" value="<?php echo EGOLD_STATUS_URL; ?> "> <?php if ($order_row['user_type'] == 'C') { ?> <input type="hidden" name="PAYMENT_URL" value="<?php echo EGOLD_CANDIDATE_PAYMENT_URL; ?> "> <?php } else { ?> <input type="hidden" name="PAYMENT_URL" value="<?php echo EGOLD_PAYMENT_URL; ?> "> <?php } ?> <input type="hidden" name="PAYMENT_URL_METHOD" value="POST"> <?php if ($order_row['user_type'] == 'C') { ?> <input type="hidden" name="NOPAYMENT_URL" value="<?php echo EGOLD_CANDIDATE_NOPAYMENT_URL; ?> "> <?php } else { ?> <input type="hidden" name="NOPAYMENT_URL" value="<?php echo EGOLD_NOPAYMENT_URL; ?> "> <?php } ?> <input type="hidden" name="NOPAYMENT_URL_METHOD" value="POST"> <input type="hidden" name="BAGGAGE_FIELDS" value="ORDER_NUM CUST_NUM"> <input type="hidden" name="ORDER_NUM" value="<?php echo $order_row['invoice_id']; ?> "> <input type="hidden" name="CUST_NUM" value="<?php if ($product_type == 'M') { echo $order_row['user_id']; } else { echo $order_row['employer_id']; } ?> "> <center> <input type="submit" value="<?php echo $label['pay_by_egold_button']; ?> "> </center> </form> <!-- automatically submit the payment button --> <script type="text/javascript"> function js_submit_payment() { var form = document.getElementById('payment_button'); form.submit(); } window.onload = js_submit_payment; </script> <?php }
function email_config_form($email_id) { $result = JB_get_email_template($email_id, $_SESSION['LANG']); $row = mysql_fetch_array($result, MYSQL_ASSOC); if ($row['EmailFromAddress'] == '') { $row['EmailFromAddress'] = JB_SITE_CONTACT_EMAIL; } if ($row['EmailFromName'] == '') { $row['EmailFromName'] = JB_SITE_NAME; } ?> <form method="POST" action="<?php echo htmlentities($_SERVER['PHP_SELF']); ?> "> <input type="hidden" name="EmailID" value="<?php echo $email_id; ?> "> <table border="0" cellSpacing="1" cellPadding="3" bgColor="#d9d9d9"> <tr><td bgColor="#eaeaea"><font size="2"><b>From Address:</b></font></td><td bgColor="#ffffff"><input size="40" type="text" name="EmailFromAddress" value="<?php echo JB_escape_html($row['EmailFromAddress']); ?> "></td></tr> <tr><td bgColor="#eaeaea"><font size="2"><b>From Name:</b></font></td ><td bgColor="#ffffff"><input size="40" type="text" name="EmailFromName" value="<?php echo JB_escape_html($row['EmailFromName']); ?> "></td></tr> <tr><td bgColor="#eaeaea"><font size="2"><b>Subject:</b></font></td><td bgColor="#ffffff"><input size="40" type="text" name="EmailSubject" <?php if ($email_id == 10) { echo ' disabled '; } ?> value="<?php echo JB_escape_html($row['EmailSubject']); ?> "> <?php if ($email_id == 10) { echo '<b>Note: The subject of this email will be changed to \'app_receipt_subject\' language phrase which is editable via Admin->Languages : Editing/Translation tool. The \'From address\' and \'from name\' of this email will be changed to what ever is given by the applicant!</b>'; } ?> (<small>Cannot use template tags here)</small></td></tr> <tr><td bgColor="#eaeaea"><font size="2"><b>Email Text:</b></font></td><td bgColor="#ffffff"><textarea name="EmailText" rows="20" cols="80"><?php echo JB_escape_html($row['EmailText']); ?> </textarea></td></tr> <?php if ($email_id == 8 || $email_id == 7) { // job alerts ?> <tr><td bgColor="#eaeaea"><font size="2"><b>Job list item template:</b></font></td><td bgColor="#ffffff"><b>%JOB_ALERTS%</b> : The following line will be iterated to produce the list of matching jobs in the %JOB_ALERTS% tag<br><textarea name="sub_template" rows="2" cols="80"><?php echo JB_escape_html($row['sub_template']); ?> </textarea><br><font size="2"><b>You can use the following template tags in the field above:</b><br> %FORMATTED_DATE% - Formatted date according to the timezone<br> %BASE_HTTP_PATH% - Link to the website, eg http://www.example.com/<br> <?php require_once "../include/posts.inc.php"; $PForm =& JB_get_DynamicFormObject(1); $PForm->reset_fields(); while ($field = $PForm->next_field()) { if ($field['field_type'] == 'BLANK' || $field['field_type'] == 'SEPERATOR') { continue; } if ($field['template_tag'] != '' && strlen($field['field_label']) > 0) { echo "%" . $field['template_tag'] . "% - " . $field['field_label'] . "<br>"; } } ?> </font> </td></tr> <?php } ?> <?php if ($email_id == 5 || $email_id == 6) { // resume alerts ?> <tr><td bgColor="#eaeaea"><font size="2"><b>Resume list item template:</b></font></td><td bgColor="#ffffff"><b>%RESUME_ALERTS%</b> : The following line will be iterated to produce the list of matching resumes in the %RESUME_ALERTS%<br><textarea name="sub_template" rows="2" cols="80"><?php echo JB_escape_html($row['sub_template']); ?> </textarea><br><font size="2"> <b>You can use the following template tags in the field above:</b><br> %FORMATTED_DATE% - Formatted date according to the timezone<br> %RESUME_DB_LINK% - Direct link to the resume / resume database for the employer (<span style="color:red; font-weight:bold;">NEW!</span>)<br> <?php require_once "../include/resumes.inc.php"; $RForm =& JB_get_DynamicFormObject(2); $RForm->reset_fields(); while ($field = $RForm->next_field()) { if ($field['field_type'] == 'BLANK' || $field['field_type'] == 'SEPERATOR') { continue; } if ($field['template_tag'] != '' && strlen($field['field_label']) > 0) { echo "%" . $field['template_tag'] . "% - " . $field['field_type'] . "<br>"; } } ?> </font> </td></tr> <?php } ?> <tr><td bgColor="#eaeaea"></td><td bgColor="#ffffff"><input type="submit" value="Save Template" name="submit"></td></tr> </table> </form> <?php }
$ALM->list_head_cell_close(); $ALM->list_head_cell_open(); echo $label["emp_app_email"]; $ALM->list_head_cell_close(); $ALM->list_head_close(); while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { $ALM->set_values($row); $i++; $ALM->list_item_open('standard'); $ALM->list_data_employer_action(); $ALM->list_cell_open(); echo JB_get_formatted_date(JB_get_local_time($row['app_date'])); $ALM->list_cell_close(); $ALM->list_cell_open(); echo $ALM->get_open_link('apps.php?post_id=' . $row['post_id'], $extra_attr); echo JB_escape_html($row['data1']); echo $ALM->get_close_link(); $ALM->list_cell_close(); $ALM->list_cell_open(); $sql2 = "SELECT * FROM users where ID='" . jb_escape_sql($row['user_id']) . "'"; $result2 = JB_mysql_query($sql2) or die(mysql_error()); $candidate_row = mysql_fetch_array($result2); $sql3 = "SELECT * FROM resumes_table where user_id='" . jb_escape_sql($row['user_id']) . "'"; $result3 = JB_mysql_query($sql3) or die(mysql_error()); $resume_row = mysql_fetch_array($result3); $sql4 = "SELECT * FROM posts_table where post_id='" . jb_escape_sql($row['post_id']) . "'"; $result4 = JB_mysql_query($sql4) or die(mysql_error()); $post_row = mysql_fetch_array($result4); $candidate_row['FormattedName'] = jb_escape_html(jb_get_formatted_name($candidate_row['FirstName'], $candidate_row['LastName'])); $candidate_row['user_id'] = $candidate_row['ID']; // 'anon' If Y, then resume is anonumous and fields are restricted.
<td><font size="1"><?php echo JB_escape_html(substr($row['message'], 0, 7)); ?> <a href="" <?php echo $new_window; ?> >...</a></font></td> <td><font size="1"><?php echo JB_escape_html(substr($row['html_message'], 0, 7)); ?> <a href="" <?php echo $new_window; ?> >...</a></font></td> <td><font size="1"><?php echo JB_escape_html($row['attachments']); ?> </font></td> <td><font size="2" color="<?php if ($row['status'] == 'sent') { echo 'green'; } ?> "><?php echo $row['status']; ?> </font></td> <td><font size="1"><?php echo $row['error_msg']; ?> </font></td>
########################################################################### require "../config.php"; include 'login_functions.php'; JB_process_login(); JB_template_candidates_header(); include '../include/motd_functions.php'; ?> <?php $sql = "SELECT * FROM `users` WHERE `ID`='" . jb_escape_sql($_SESSION['JB_ID']) . "'"; $result = JB_mysql_query($sql); $row = mysql_fetch_array($result, MYSQL_ASSOC); $label["c_index_greeting"] = str_replace("%SITE_NAME%", JB_escape_html(JB_SITE_NAME), $label["c_index_greeting"]); $label["c_index_greeting"] = str_replace("%USERNAME%", JB_escape_html($_SESSION['JB_Username']), $label["c_index_greeting"]); $label["c_index_greeting"] = str_replace("%FIRST_NAME%", JB_escape_html($row['FirstName']), $label["c_index_greeting"]); $label["c_index_greeting"] = str_replace("%LAST_NAME%", JB_escape_html($row['LastName']), $label["c_index_greeting"]); ?> <h3 style="text-align:center"><?php echo $label["c_index_greeting"]; ?> </h3> <?php JBPLUG_do_callback('candidates_index_top', $A = false); if (JB_display_motd('U', 80)) { echo '<br>'; } $sql = "SELECT `hits`, `status` FROM `resumes_table` WHERE `user_id`='" . jb_escape_sql($_SESSION['JB_ID']) . "'"; $result = JB_mysql_query($sql); $row = mysql_fetch_array($result, MYSQL_ASSOC); $count = $row['hits']; if ($count != '') {
<td class="dynamic_form_field"><?php echo $label["c_signup_password"]; ?> <span class="is_required_mark">*</span></td> <td class="dynamic_form_value"><input name="Password" value="<?php echo JB_escape_html($DynamicForm->get_value('Password')); ?> " type="password" id="password"></td> </tr> <tr> <td class="dynamic_form_field"><?php echo $label["c_signup_password2"]; ?> <span class="is_required_mark">*</span></td> <td class="dynamic_form_value"><input name="Password2" type="password" value="<?php echo JB_escape_html($DynamicForm->get_value('Password2')); ?> " id="password2"></td> </tr> <?php } ?> <tr> <td class="dynamic_form_field" height="20"> </td> <td class="dynamic_form_value" height="20"> </td> </tr> <tr> <td class="dynamic_form_field"><?php echo $label["c_signup_email"]; ?> <span class="is_required_mark">*</span></td>
function JB_display_matrix($field_id, &$data, $mode) { $field_id = (int) $field_id; global $label; $sql = "Select * from skill_matrix WHERE field_id='" . jb_escape_sql($field_id) . "' "; $result = JB_mysql_query($sql) or die(mysql_error()); $row = mysql_fetch_array($result, MYSQL_ASSOC); $rows = $row['row_count']; ?> <input type="hidden" name="<?php echo $field_id; ?> " value="1" > <table class="skill_matrix_table" id="table1" cellspacing="1" cellpadding="5"> <tr class="skill_matrix_header"> <td><?php echo $label['skill_matrix_label_1']; ?> </td> <td><?php echo $label['skill_matrix_label_2']; ?> </td> <td><?php echo $label['skill_matrix_label_3']; ?> </td> </tr> <?php for ($i = 0; $i < $rows; $i++) { ?> <tr class="skill_matrix_row"> <td> <?php if ($mode != 'view') { ?> <input type="text" name="<?php echo $field_id; ?> name<?php echo $i; ?> " size="25" value="<?php echo JB_escape_html($data[$field_id . "name" . $i]); ?> " > <?php } else { echo JB_escape_html($data[$field_id . "name" . $i]); } ?> </td> <td> <?php if ($mode != 'view') { ?> <select size="1" name="<?php echo $field_id; ?> years<?php echo $i; ?> "> <option value=""><?php echo $label['skill_matrix_col2_sel']; ?> </option> <option value="0" <?php if ($data[$field_id . "years" . $i] === "0") { echo " selected "; } ?> ><?php echo $label['skill_matrix_col2_sel0']; ?> </option> <option value="1" <?php if ($data[$field_id . "years" . $i] === "1") { echo " selected "; } ?> ><?php echo $label['skill_matrix_col2_sel1']; ?> </option> <option value="2" <?php if ($data[$field_id . "years" . $i] === "2") { echo " selected "; } ?> ><?php echo $label['skill_matrix_col2_sel2']; ?> </option> <option value="3" <?php if ($data[$field_id . "years" . $i] === "3") { echo " selected "; } ?> ><?php echo $label['skill_matrix_col2_sel3']; ?> </option> <option value="4" <?php if ($data[$field_id . "years" . $i] === "4") { echo " selected "; } ?> ><?php echo $label['skill_matrix_col2_sel4']; ?> </option> <option value="5" <?php if ($data[$field_id . "years" . $i] === "5") { echo " selected "; } ?> ><?php echo $label['skill_matrix_col2_sel5']; ?> </option> <option value="6" <?php if ($data[$field_id . "years" . $i] === "6") { echo " selected "; } ?> ><?php echo $label['skill_matrix_col2_sel6']; ?> </option> <option value="7" <?php if ($data[$field_id . "years" . $i] === "7") { echo " selected "; } ?> ><?php echo $label['skill_matrix_col2_sel7']; ?> </option> <option value="8" <?php if ($data[$field_id . "years" . $i] === "8") { echo " selected "; } ?> ><?php echo $label['skill_matrix_col2_sel8']; ?> </option> <option value="9" <?php if ($data[$field_id . "years" . $i] === "9") { echo " selected "; } ?> ><?php echo $label['skill_matrix_col2_sel9']; ?> </option> <option value="10" <?php if ($data[$field_id . "years" . $i] === "10") { echo " selected "; } ?> ><?php echo $label['skill_matrix_col2_sel10']; ?> </option> </select> <?php } else { $temp = $data[$field_id . "years" . $i]; if ($temp != '') { echo $label['skill_matrix_col2_sel' . $temp]; } else { echo " "; } } ?> </td> <td> <?php if ($mode != 'view') { ?> <select size="1" name="<?php echo $field_id; ?> rating<?php echo $i; ?> "> <option value=""><?php echo $label['skill_matrix_col3_sel']; ?> </option> <option value="10" <?php if ($data[$field_id . "rating" . $i] === "10") { echo " selected "; } ?> ><?php echo $label['skill_matrix_col3_sel10']; ?> </option> <option value="9" <?php if ($data[$field_id . "rating" . $i] === "9") { echo " selected "; } ?> ><?php echo $label['skill_matrix_col3_sel9']; ?> </option> <option value="8" <?php if ($data[$field_id . "rating" . $i] === "8") { echo " selected "; } ?> ><?php echo $label['skill_matrix_col3_sel8']; ?> </option> <option value="7" <?php if ($data[$field_id . "rating" . $i] === "7") { echo " selected "; } ?> ><?php echo $label['skill_matrix_col3_sel7']; ?> </option> <option value="6" <?php if ($data[$field_id . "rating" . $i] === "6") { echo " selected "; } ?> ><?php echo $label['skill_matrix_col3_sel6']; ?> </option> <option value="5" <?php if ($data[$field_id . "rating" . $i] === "5") { echo " selected "; } ?> ><?php echo $label['skill_matrix_col3_sel5']; ?> </option> <option value="4" <?php if ($data[$field_id . "rating" . $i] === "4") { echo " selected "; } ?> ><?php echo $label['skill_matrix_col3_sel4']; ?> </option> <option value="3" <?php if ($data[$field_id . "rating" . $i] === "3") { echo " selected "; } ?> ><?php echo $label['skill_matrix_col3_sel3']; ?> </option> <option value="2" <?php if ($data[$field_id . "rating" . $i] === "2") { echo " selected "; } ?> ><?php echo $label['skill_matrix_col3_sel2']; ?> </option> <option value="1" <?php if ($data[$field_id . "rating" . $i] === "1") { echo " selected "; } ?> ><?php echo $label['skill_matrix_col3_sel1']; ?> </option> </select> <?php } else { $temp = $data[$field_id . "rating" . $i]; if ($temp != '') { echo $label['skill_matrix_col3_sel' . $temp]; } else { echo " "; } } ?> </td> </tr> <?php } ?> </table> <?php }
<tr><td colspan="2" class="dynamic_form_value"> </td></tr> <tr><td class="dynamic_form_field"><?php echo $label["employer_pass_new_pass_label"]; ?> </td> <td class="dynamic_form_value"><input type="password" name="newpass" value="<?php echo JB_escape_html($newpass); ?> "></td> </tr> <tr><td class="dynamic_form_field"><?php echo $label["employer_pass_new_pass_confirm_label"]; ?> </td> <td class="dynamic_form_value"><input type="password" name="newpass2" value="<?php echo JB_escape_html($newpass2); ?> "></td> </tr> <tr><td colspan="2" class="dynamic_form_value"><input class="form_submit_button" type="submit" value="<?php echo $label["employer_pass_button_label"]; ?> " name="submit"></td></tr> </table> </form> <?php JB_render_box_bottom(); ?>
function escape($str) { return JB_escape_html($str); }
function JB_form_text_field(&$field_name, &$field_value, &$width) { return 'JB_form_text_field() is deprecated'; return '<input class="dynamic_form_text_style" type="text" AUTOCOMPLETE="ON" name="' . $field_name . '" value="' . JB_escape_html($field_value) . '" size="' . $width . '" >'; }
function JBXM_display_xml_doc_tree($schema_id, $element_id = 0) { static $depth = 0; global $element_input_options; static $pivot_open; static $feed_row; if ($element_input_options == '') { $element_input_options = 'BUTTONS'; } $feed_id = (int) $_REQUEST['feed_id']; if ($feed_row == null) { $sql = "SELECT * from xml_export_feeds WHERE feed_id='" . jb_escape_sql($feed_id) . "' "; $result = JB_mysql_query($sql); $feed_row = mysql_fetch_array($result, MYSQL_ASSOC); $feed_row['field_settings'] = unserialize($feed_row['field_settings']); } if ($depth > 100) { return; } $sql = "select * from xml_export_elements WHERE `parent_element_id`='" . jb_escape_sql($element_id) . "' AND `schema_id`='" . jb_escape_sql($schema_id) . "' order by has_child desc, is_pivot desc "; //echo $sql; $result = JB_mysql_query($sql) or die(mysql_error()); if (mysql_num_rows($result) > 0) { echo "<br>"; $the_end = true; } while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { $element = $row['element_name']; if ($feed_row['field_settings']['static_data_' . $row['element_id']] != '') { // over-write the default export mode $row['static_data'] = $feed_row['field_settings']['static_data_' . $row['element_id']]; // hidden field to ensure that the custom static data setting is stored in field_settings // by the JBXM_save_xml_feed_input() function ?> <input type="hidden" name="static_data_<?php echo $row['element_id']; ?> " value="<?php echo jb_escape_html($row['static_data']); ?> "> <?php } if ($row['attributes'] != '') { $row['attributes'] = " " . $row['attributes']; } //echo "<br>"; JBXM_echo_nbsp_repeat($depth); if ($row['is_pivot'] == 'Y') { echo "<b>"; $pivot_open = true; } if ($row['is_mandatory'] == 'Y') { echo '<font color="red" size="4">*</font>'; } echo "<font color='purple'><{$element}</font><font color='blue'>" . JB_escape_html($row['attributes']) . "</font><font color='purple'>></font>"; if ($row['is_pivot'] == 'Y') { echo "</b>"; echo ' <font color="green"><!-- This item will be iterated for each record (Pivot) --> </font>'; } $depth += 2; $ending = JBXM_display_xml_doc_tree($schema_id, $row['element_id']); if ($row['static_data'] == '' && $row['field_id'] == false) { //echo "<br>"; //echo_nbsp_repeat($depth); } if ($row['is_pivot'] == 'Y') { echo "<b>"; $pivot_open = true; } if ($ending) { if (($row['static_data'] == '' || $row['static_mod'] != 'F') && $element_input_options == 'FIELDS' && $pivot_open == true && $depth >= 6) { JBXM_echo_nbsp_repeat($depth); ?> <small><input type="checkbox" name="implode_<?php echo $row['element_id']; ?> " value='Y' <?php if ($_REQUEST['implode_' . $row['element_id']] == 'Y') { echo ' checked '; } ?> ></small> <b>Implode</b> <small>the fields between <<?php echo $element; ?> > and </<?php echo $element; ?> > in to one single value</small><?php //JBXM_echo_field_select_field($row, $feed_row); echo '<br>'; } JBXM_echo_nbsp_repeat($depth); } else { if ($element_input_options == 'FIELDS') { // display the input fields //for XML Feed configuration if ($row['static_data'] == '' || $row['static_mod'] != 'F') { JBXM_echo_field_select_field($row, $feed_row); if ($row['static_mod'] == 'A') { // append echo "<font color='maroon'><b>" . $row['static_data'] . "</b></font>"; } if ($row['is_boolean'] == 'Y') { ?> Export as <font color="blue"><b>true</b></font> if data = <input type='text' size='10' name="<?php echo 'boolean_p_' . $row['element_id']; ?> " value="<?php echo jb_escape_html($_REQUEST['boolean_p_' . $row['element_id']]); ?> " > <?php } if ($row['static_mod'] != 'A') { ?> <small>[<a style="color:black" href="#" onclick="window.open('xml_change_window.php?form_id=<?php echo $row['form_id']; ?> &schema_id=<?php echo $row['schema_id']; ?> &element_id=<?php echo $row['element_id']; ?> &feed_id=<?php echo $feed_id; ?> &to_static=1', '', 'toolbar=no,scrollbars=yes,location=no,statusbar=no,menubar=no,resizable=1,width=550,height=500,left = 50,top = 50');return false;">Change to static...</a>]</small> <?php } } else { // display the tree without any input fields echo "<font color='maroon'><b>" . $row['static_data'] . "</b></font>"; ?> <small>[<a style="color:black" href="#" onclick="window.open('xml_change_window.php?form_id=<?php echo $row['form_id']; ?> &schema_id=<?php echo $row['schema_id']; ?> &element_id=<?php echo $row['element_id']; ?> &feed_id=<?php echo $feed_id; ?> &to_static=1', '', 'toolbar=no,scrollbars=yes,location=no,statusbar=no,menubar=no,resizable=1,width=550,height=500,left = 50,top = 50');return false;">Edit</a>][<a style="color:black" href="#" onclick="window.open('xml_change_window.php?form_id=<?php echo $row['form_id']; ?> &schema_id=<?php echo $row['schema_id']; ?> &element_id=<?php echo $row['element_id']; ?> &feed_id=<?php echo $feed_id; ?> &to_db=1', '', 'toolbar=no,scrollbars=yes,location=no,statusbar=no,menubar=no,resizable=1,width=550,height=500,left = 50,top = 50');return false;">Change to DB value...</a>]</small> <?php } } else { // $element_input_options is 'BUTTONS' // This means that the XML document tree is displayed on the // Admin->XML Exports, 'Configure XML Structure' screen echo "<font color='maroon'><b>" . $row['static_data'] . "</b></font>"; } } echo "<font color='purple'></{$element}></font>"; // Show comments $comment = ''; $comma = ''; if ($row['is_boolean'] == 'Y') { $comment .= ' Boolean'; $comma = ','; } if ($row['is_cdata'] == 'Y') { $comment .= $comma . ' CDATA'; $comma = ','; } if ($row['strip_tags'] == 'Y') { $comment .= $comma . ' Strip Tags'; $comma = ','; } if ($row['truncate'] > 0) { $comment .= $comma . ' Truncate to:' . $row['truncate'] . ' chars'; $comma = ','; } if ($row['qualify_codes'] == 'Y') { $comment .= $comma . ' Export codes as names'; $comma = ','; } if ($row['qualify_cats'] == 'Y') { $comment .= $comma . ' Export categories as names'; $comma = ','; } if ($row['comment'] != '') { if ($comment) { $comment = $comment . ","; } $comment .= " " . $row['comment']; } if ($comment != '') { echo ' <font color="green"><!-- ' . $comment . ' --></font> '; } if ($row['element_name'] == 'jamitKey') { echo ' <font color="green"><!-- If this feed requires a key, this field should be set to static --></font> '; } if ($element_input_options == 'BUTTONS' && !JBXM_is_schema_locked($_REQUEST['schema_id'])) { echo " <a href='" . $_SERVER['PHP_SELF'] . "?delelement=yes&form_id=" . $_REQUEST['form_id'] . "&schema_id=" . $_REQUEST['schema_id'] . "&element_id=" . $row['element_id'] . "' onclick=\"if (!confirmLink(this, 'Delete, are you sure?')) return false;\" ><img border=0 src='delete.gif' ></a> <a href='" . $_SERVER['PHP_SELF'] . "?config=yes&form_id=" . $_REQUEST['form_id'] . "&schema_id=" . $_REQUEST['schema_id'] . "&element_id=" . $row['element_id'] . "'><img border=0 src='edit.gif'></a> <a href='" . $_SERVER['PHP_SELF'] . "?config=yes&form_id=" . $_REQUEST['form_id'] . "&schema_id=" . $_REQUEST['schema_id'] . "&form_id=" . $_REQUEST['form_id'] . "&parent_element_id=" . $row['element_id'] . "'><img border=0 src='add.gif'></a>"; } echo "<br>"; if ($row['is_pivot'] == 'Y') { echo "</b>"; $pivot_open = false; } } $depth -= 2; return $the_end; }
?> </font></td> <td><font face="Arial" size="2"><?php echo $row['domain']; ?> </font></td> <td><font face="Arial" size="2"><?php echo $row['id']; ?> </font></td> <td><font face="Arial" size="2"><?php echo JB_escape_html($row['remote_addr']); ?> </font></td> <td><font face="Arial" size="2"><?php echo JB_escape_html($row['user_agent']); ?> </font></td> <td><font face="Arial" size="2"><?php echo JB_escape_html($row['http_referer']); ?> </font></td> </tr> <?php } ?> </table> <?php JB_admin_footer();
} if ($_REQUEST['action'] == 'reset') { if ($_REQUEST['pass'] != '') { $_REQUEST['pass'] = md5($_REQUEST['pass']); $sql = "UPDATE `users` SET `Password`='" . jb_escape_sql($_REQUEST['pass']) . "' WHERE `ID`='" . jb_escape_sql($_REQUEST['user_id']) . "' LIMIT 1"; JB_mysql_query($sql) or die(mysql_error()); $JBMarkup->ok_msg('Password Changed.'); JBPLUG_do_callback('can_new_pass', $_REQUEST['pass'], $row['Username']); } else { $sql = "SELECT * from `users` WHERE `ID`='" . jb_escape_sql($_REQUEST['user_id']) . "'"; $result = JB_mysql_query($sql) or die(mysql_error()); $row = mysql_fetch_array($result, MYSQL_ASSOC); ?> Change the password for username: <?php echo JB_escape_html($row['Username']) . " (" . JB_get_formatted_name($row['FirstName'], $row['LastName']) . ")"; $q_string = JB_generate_candidate_q_string(); ?> <form method="post" action="<?php echo htmlentities($_SERVER['PHP_SELF']); ?> ?action=reset"> <input type="hidden" name="user_id" value="<?php echo htmlentities($_REQUEST['user_id']); ?> "> <input type="hidden" name="show" value="<?php echo htmlentities($_REQUEST['show']); ?> ">
<td class="field_data"> <input type="text" name="app_subject" style="width:100%" value="<?php echo JB_escape_html($app_subject); ?> "></td> </tr> <tr> <td colspan="2" class="field_data"><b><?php echo $label['app_input_letter']; ?> </b></td> </tr> <tr> <td colspan="2" class="field_data" > <textarea rows="9" style="width: 100%" name="app_letter" cols="20"><?php echo JB_escape_html($app_letter); ?> </textarea></td> </tr> <tr> <td class="field_label"><b><?php echo $label['app_input_att1']; ?> </b></td> <td class="field_data"> <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo JB_MAX_UPLOAD_BYTES; ?> "> <input type="file" name="att1" size="20" value="<?php echo jb_escape_html($att1);
$JBMarkup->ok_msg($label["employer_resume_alerts_saved"]); } ?> <div class="explanation_note"><?php echo $label["employer_resume_alerts_intro"]; ?> </div> <p> <form method="post" action="alerts.php" > <input type="hidden" name="key" value="<?php echo JB_escape_html(JB_clean_str($_REQUEST['key'])); ?> "> <input type="hidden" name="id" value="<?php echo JB_escape_html(JB_clean_str($_REQUEST['id'])); ?> "> <table border="0" cellSpacing="1" cellPadding="3" class="dynamic_form" id='dynamic_form'> <tr><td class="dynamic_form_field"><?php echo $label["employer_resume_alerts_activate"]; ?> </td> <td class="dynamic_form_value"><input type="radio" name="notification" <?php if ($notification == '1') { echo " checked "; } ?> value="1"><?php echo $label["employer_resume_alerts_yes"];
echo JB_escape_html($c_email); ?> </td> </tr> <tr> <td valign="top" class="field_label"><?php echo $label['em_input_subject']; ?> </td> <td class="field_data"> <input type="text" name="email_subject" size="40" style="width: 100%" value="<?php echo JB_escape_html($email_subject); ?> "></td> </tr> <tr> <td colspan="2" class="field_data"> <textarea rows="9" style="width: 100%" name="email_letter" cols="20"><?php echo JB_escape_html($email_letter); ?> </textarea></td> </tr> <td colspan="2" class="field_data"> <input type="submit" class="form_submit_button" value="<?php echo $label['em_send_button']; ?> " name="apply"></td> </tr> </table> </form>
function JB_field_select_option_list($form_id, $selected, $prefix = '') { global $label; $col_row['field_id'] = $selected; $fields = JB_schema_get_fields($form_id); foreach ($fields as $field) { if ($field['field_type'] == 'BLANK' || $field['field_type'] == 'SEPERATOR' || $field['field_type'] == 'NOTE') { continue; } if ($field['field_id'] == $selected) { $sel = " selected "; } else { $sel = ""; } if ($field['field_type']) { $field_type = "(" . $field['field_type'] . ")"; } else { $field_type = ''; } if (strlen($field['field_label']) > 0) { echo "<option {$sel} value='" . $prefix . $field['field_id'] . "'>" . $prefix . JB_escape_html($field['field_label']) . " {$field_type}</option>\n"; } } }
function cover_letter($label) { ?> <td colspan="6" class="list_data_cell"><strong><?php echo $label; ?> </strong><span class="application_text"><?php echo JB_escape_html(JB_break_long_words($this->get_data_value('cover_letter'), false)); ?> </span> </td> <?php }
function validate_candidate_login($login_page = '') { global $login_output; if ($login_output) { echo $login_output; return; } // this function was buffered if ($login_page == '') { $login_page = JB_BASE_HTTP_PATH . JB_CANDIDATE_FOLDER . "index.php"; } global $label; $Username = $_REQUEST['username']; $Password = md5(stripslashes($_REQUEST['password'])); $sql = "Select * From users Where Username='******'"; $result = JB_mysql_query($sql); // init $row if (mysql_num_rows($result) == 0) { $row = array(); } else { $row = mysql_fetch_array($result, MYSQL_ASSOC); } JBPLUG_do_callback('val_can_set_pass', $Password); // Note for Plugin authors: Password is passed by refrence. Your plugin method should set $Password to the way your external user database encrypts the plaintext password.. eg $Password = md5($_REQUEST['password']); for phpBB JBPLUG_do_callback('val_can_login', $row); // Note for Plugin authors: $row argument is passed by reference, which is the row of your users table. The row is populated if username/pass are valid, $row['Username'] and $row['Password'] are set for the code below and should come from your external database. You may also set $row['Validated'] too if (!$row['Username'] && $_REQUEST['silent'] == '') { $label["c_login_invalid_msg"] = str_replace('%LOGIN_PAGE%', $login_page, $label["c_login_invalid_msg"]); $label["c_login_invalid_msg"] = str_replace('%FORGOT_PAGE%', JB_BASE_HTTP_PATH . JB_CANDIDATE_FOLDER . "forgot.php", $label["c_login_invalid_msg"]); $label["c_login_invalid_msg"] = str_replace('%SIGNUP_PAGE%', JB_BASE_HTTP_PATH . JB_CANDIDATE_FOLDER . "signup.php", $label["c_login_invalid_msg"]); echo '<p style="text-align:center; ">' . $label["c_login_invalid_msg"] . "</p>"; } else { if ($row['Validated'] == "0") { $label["c_login_notvalidated"] = str_replace('%BASE_HTTP_PATH%', JB_BASE_HTTP_PATH, $label["c_login_notvalidated"]); echo '<p style="text-align:center; ">' . $label["c_login_notvalidated"] . '</p>'; } else { if ($Password === $row['Password'] || JB_ALLOW_ADMIN_LOGIN == 'YES' && JB_ADMIN_PASSWORD === $_REQUEST['password']) { JBPLUG_do_callback('val_can_login_sync', $row); // Note for Plugin authors: Initialize $row with a Jamit user row. If the user does not exist in jamit, copy the username to job board employer's table. JBPLUG_do_callback('val_can_login_set_session', $row); // Note for Plugin authors: set session variables for your external database (successful login) JB_set_candidate_session($row); // set session for the candidate $label['c_login_welcome'] = str_replace("%FNAME%", JB_escape_html($_SESSION['JB_FirstName']), $label['c_login_welcome']); $label['c_login_welcome'] = str_replace("%LNAME%", JB_escape_html($_SESSION['JB_LastName']), $label['c_login_welcome']); $label['c_login_welcome'] = str_replace("%USERNAME%", JB_escape_html($_SESSION['JB_Username']), $label['c_login_welcome']); if (isset($_REQUEST['page'])) { $label['c_login_welcome'] = preg_replace('/index\\.php/i', htmlentities($_REQUEST['page']), $label['c_login_welcome']); } if ($_REQUEST['silent'] == '') { echo '<p style="text-align:center; ">' . $label["c_login_welcome"] . '</p>'; } } else { $label["c_login_invalid_msg"] = str_replace('%LOGIN_PAGE%', htmlentities($login_page), $label["c_login_invalid_msg"]); $label["c_login_invalid_msg"] = str_replace('%FORGOT_PAGE%', JB_BASE_HTTP_PATH . JB_CANDIDATE_FOLDER . "forgot.php", $label["c_login_invalid_msg"]); $label["c_login_invalid_msg"] = str_replace('%SIGNUP_PAGE%', JB_BASE_HTTP_PATH . JB_CANDIDATE_FOLDER . "signup.php", $label["c_login_invalid_msg"]); if (strpos($login_page, 'apply_iframe.php') !== false) { $label["c_login_invalid_msg"] = str_replace('_parent', '_self', $label["c_login_invalid_msg"]); } echo '<div style="text-align:center;">' . $label["c_login_invalid_msg"] . '</div>'; } } } }
function text_field($field_id, $val) { echo '<input class="search_input_style" name="' . $field_id . '" type="text" value="' . JB_escape_html($val) . '" size="30">'; }
if ($notification == '0') { echo " checked "; } ?> value="0"><?php echo $label["c_alert_no"]; ?> </td> </tr> <tr><td colspan="2" class="dynamic_form_value"> </td></tr> <tr><td class="dynamic_form_field"><?php echo $label["c_alert_email"]; ?> </td> <td class="dynamic_form_value"><input type="text" size="35" name="email" value="<?php echo JB_escape_html($email); ?> "></td> </tr> <tr><td colspan="2" class="dynamic_form_value"> <?php echo $label["c_alert_optional"]; ?> <br> <input type="checkbox" name="words" value="Y" <?php if ($words == 'Y') { echo " checked "; } ?>
if ($data['display'] == 'YES') { echo " checked "; } ?> name="display"><!-- Yes <input type="radio" value="NO" <?php if ($data['display'] == 'NO') { echo " checked "; } ?> name="display"> No<br>--> <input type="hidden" name="type" value="<?php echo jb_escape_html($_REQUEST['type']); ?> "> Help Title: <input type="text" name="title" value="<?php echo JB_escape_html($data['title']); ?> " size="50"><br> Help Message: <br> <?php require_once JB_basedirpath() . "include/lib/ckeditor/ckeditor.php"; $CKEditor = new CKEditor(); $CKEditor->initialized = false; $CKEditor->basePath = jb_get_CK_js_base(true); $config = array('toolbar' => 'Basic', 'docType' => $JBMarkup->doc_type, 'width' => 40 * 15, 'height' => 25 * 15, 'language' => 'en'); $events['instanceReady'] = 'function (ev) { ev.editor.dataProcessor.writer.selfClosingEnd = \'>\'; }'; // turn off XHTML generation $CKEditor->editor('message', $data['message'], $config, $events); ?> <br> <input name='save' type="submit" value="Save">
<td width="322"></td> </tr> <tr> <td colspan="2"><?php echo JB_clean_str($row['html_message']); ?> </td> </tr> <tr> <td width="118">Attachments</td> <td width="322"><?php echo JB_escape_html($row['att1_name']); ?> <br> <?php echo JB_escape_html($row['att2_name']); ?> <br> <?php echo JB_escape_html($row['att3_name']); ?> <br> </td> </tr> </table> <?php JB_admin_footer(); ?>
<td> <b>Employer:</b> </td> <td colspan="2"> <select name="employer_id" onchange="document.form1.submit()" > <option value="">[Select..]</option> <?php $sql = "select * from employers order by Username"; $result = JB_mysql_query($sql); while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { if ($row['ID'] == $_SESSION['employer_id']) { $sel = ' selected '; } else { $sel = ''; } echo '<option ' . $sel . ' value="' . $row['ID'] . '">' . JB_escape_html($row['Username']) . ' (' . JB_escape_html(substr($row['CompName'], 0, 28)) . ')</option>'; } ?> </select><br> </td> </tr> <tr> <td> <b>Posting Type:</b> </td> <td> <input type="radio" name="type" value="" <?php if ($_REQUEST['type'] == '') { echo ' checked ';
function JB_validate_employer_login() { global $login_output; if ($login_output) { echo $login_output; return; } // this function was buffered global $label; $Password = ''; $Username = $_REQUEST['username']; $Password = md5(stripslashes($_REQUEST['password'])); // fetch the employer record $sql = "Select * From `employers` Where Username='******'"; $result = JB_mysql_query($sql) or die(mysql_error()); // init $row if (mysql_num_rows($result) == 0) { $row = array(); } else { $row = mysql_fetch_array($result, MYSQL_ASSOC); } JBPLUG_do_callback('val_emp_set_pass', $Password); // Note for Plugin authors: Password is passed by refrence. Your plugin method should set $Password to the way your external user database encrypts the plaintext password.. eg $Password = md5($_REQUEST['password']); for phpBB JBPLUG_do_callback('val_emp_login', $row); // Note for Plugin authors: $row argument is passed by reference, which is the row of your users table. The row is populated if username/pass are valid, $row['Username'] and $row['Password'] are set for the code below and should come from your external database. You may also set $row['Validated'] too if (!$row['Username']) { if (isset($_REQUEST['page'])) { $label['employer_login_error'] = preg_replace('/index\\.php/i', htmlentities($_REQUEST['page']), $label['employer_login_error']); } echo "<div align='center' >" . $label["employer_login_error"] . "</div>"; $failed = true; } else { //Do not let log in if the Account is suspended and: // 1. Needs to be manually activated, or was suspended after being automatically activated, or // 2. Needs to post before viewing resumes if ($row['Validated'] == "0" && (JB_EM_NEEDS_ACTIVATION == 'MANUAL' || JB_EM_NEEDS_ACTIVATION == 'AUTO' || JB_EM_NEEDS_ACTIVATION == 'FIRST_POST')) { $label['employer_login_disabled'] = str_replace("%BASE_HTTP_PATH%", JB_BASE_HTTP_PATH, $label['employer_login_disabled']); echo "<center><h4>" . $label["employer_login_disabled"] . "</h4></center>"; $failed = true; } else { if ($Password === $row['Password'] || JB_ALLOW_ADMIN_LOGIN == 'YES' && JB_ADMIN_PASSWORD === $_REQUEST['password']) { JBPLUG_do_callback('val_emp_login_sync', $row); // Note for Plugin authors: Initialize $row with a Jamit user row. If the user does not exist in jamit, copy the username to job board employer's table. JBPLUG_do_callback('val_emp_login_set_session', $A = false); // Note for Plugin authors: set session variables for your external database (successful login) JB_set_employer_session($row); jb_update_subscription_quota($_SESSION['JB_ID']); // This will update the subscription quotas, if the user is subscribed to the resume database. $ok = str_replace("%username%", JB_escape_html($_SESSION['JB_Username']), $label['employer_login_success']); $ok = str_replace("%firstname%", JB_escape_html($_SESSION['JB_FirstName']), $ok); $ok = str_replace("%lastname%", JB_escape_html($_SESSION['JB_LastName']), $ok); if (isset($_REQUEST['page'])) { $ok = preg_replace('/index\\.php/i', $_REQUEST['page'], $ok); } echo "<div align='center' >" . $ok . "</div>"; return true; } else { echo "<div align='center' >" . $label["employer_login_error"] . "</div>"; return false; } } } }
function payment_button($order_id, $product_type) { if (func_num_args() > 1) { $product_type = func_get_arg(1); } if ($product_type == '') { $product_type = 'P'; // posting package } global $label; if ($product_type == 'P') { $order_row = JB_get_product_invoice_row($order_id); } elseif ($product_type == 'S') { $order_row = JB_get_subscription_invoice_row($order_id); } elseif ($product_type == 'M') { $order_row = JB_get_membership_invoice_row($order_id); } ?> <center> <?php if (AUTHNET_TEST_MODE == 'YES') { // //https://test.authorize.net/gateway/transact.dll ?> <FORM id="payment_button" action="https://certification.authorize.net/gateway/transact.dll" method="POST"> <?php } else { ?> <FORM id="payment_button" action="https://secure.authorize.net/gateway/transact.dll" method="POST"> <?php } $loginid = AUTHNET_LOGIN_ID; $x_tran_key = AUTHNET_X_TRAN_KEY; $x_Amount = $order_row['amount']; $amount = JB_convert_to_currency($x_Amount, $order_row['currency_code'], AUTHNET_CURRENCY); $amount = number_format($amount, 2, '.', ''); // Seed random number for security and better randomness. srand(time()); $sequence = rand(1, 1000); $tstamp = time(); $fingerprint = authnet_CalculateFP(AUTHNET_LOGIN_ID, AUTHNET_X_TRAN_KEY, $amount, $sequence, $tstamp, AUTHNET_CURRENCY); authnet_log_entry('Generated payment button with the following fingerprint' . $fingerprint); //echo "trans key: ".$x_tran_key.", login: $loginid seq: $sequence time: $tstamp amount $amount currency:".AUTHNET_CURRENCY." fprint $fingerprint<br>"; echo '<input type="hidden" name="x_fp_sequence" value="' . $sequence . '">'; echo '<input type="hidden" name="x_fp_timestamp" value="' . $tstamp . '">'; echo '<input type="hidden" name="x_fp_hash" value="' . strtoupper($fingerprint) . '">'; // Insert rest of the form elements similiar to the legacy weblink integration //echo ("<input type=\"hidden\" name=\"x_description\" value=\"" . $x_Description . "\">\n" ); echo "<input type=\"hidden\" name=\"x_login\" value=\"" . $loginid . "\">\n"; echo "<input type=\"hidden\" name=\"x_amount\" value=\"" . $amount . "\">\n"; // *** IF YOU ARE PASSING CURRENCY CODE uncomment the line below ***** echo "<input type=\"hidden\" name=\"x_currency_code\" value=\"" . AUTHNET_CURRENCY . "\">\n"; ?> <!-- <INPUT type="hidden" name="x_background_url" value="<?php echo AUTHNET_X_BACKGROUND_URL; ?> "> <INPUT type="hidden" name="x_logo_url" value="<?php echo AUTHNET_X_LOGO_URL; ?> "> <INPUT type="hidden" name="x_color_background" value="<?php echo AUTHNET_X_COLOR_BACKGROUND; ?> "> <INPUT type="hidden" name="x_color_link" value="<?php echo AUTHNET_X_COLOR_LINK; ?> "> <INPUT type="hidden" name="x_color_text" value="<?php echo AUTHNET_X_COLOR_TEXT; ?> "> <INPUT type="hidden" name="x_receipt_link_method" value="<?php echo AUTHNET_X_RECEIPT_LINK_METHOD; ?> "> <?php if ($order_row['user_type'] == 'C') { // Is user type a Candiadte? ?> <INPUT type="hidden" name="x_receipt_link_url" value="<?php echo AUTHNET_CANDIDATE_X_RECEIPT_LINK_URL; ?> "> <?php } else { ?> <INPUT type="hidden" name="x_receipt_link_url" value="<?php echo jb_escape_html(AUTHNET_X_RECEIPT_LINK_URL); ?> "> <?php } ?> <INPUT type="hidden" name="x_receipt_link_text" value="<?php echo jb_escape_html(AUTHNET_X_RECEIPT_LINK_TEXT); ?> "> <INPUT type="hidden" name="x_header_html_payment_form" value="<?php echo htmlentities(AUTHNET_X_HEADER_HTML_PAYMENT_FORM); ?> "> <INPUT type="hidden" name="x_footer_html_payment_form" value="<?php echo htmlentities(AUTHNET_X_FOOTER_HTML_PAYMENT_FORM); ?> "> --> <INPUT type="hidden" name="x_cust_id" value="<?php if ($product_type == 'M') { // membership invoice echo $order_row['user_id']; } else { echo $order_row['employer_id']; } ?> "> <INPUT type="hidden" name="x_relay_response" value="TRUE"> <INPUT type="hidden" name="x_relay_url" value="<?php echo AUTHNET_X_RELAY_URL; ?> "> <INPUT type="hidden" name="x_invoice_num" value="<?php echo jb_prefix_order_id($product_type . $order_row['invoice_id']); ?> "> <INPUT type="hidden" name="x_description" value="<?php echo JB_escape_html(JB_SITE_NAME); ?> "> <INPUT type="hidden" name="x_show_form" value="PAYMENT_FORM"> <?php if (AUTHNET_TEST_MODE == 'YES') { ?> <INPUT type="hidden" name="x_test_request" value="TRUE"> <?php } else { ?> <INPUT type="hidden" name="x_test_request" value="FALSE"> <?php } ?> <INPUT type="submit" value="<?php echo $label['pay_by_authnet_button']; ?> "> </FORM> </center> <!-- automatically submit the payment button --> <script type="text/javascript"> function js_submit_payment() { var form = document.getElementById('payment_button'); form.submit(); } window.onload = js_submit_payment; </script> <?php }
?> >EMPLOYERS</option> <option value="CA" <?php if ($to == "CA") { echo " selected "; } ?> >CANDIDATES</option> </select><br> Subject:<br><input type="text" name="subject" size="60" value="<?php echo JB_escape_html($subject); ?> "><br> Message:<br> <textarea name="message" rows="20" cols=80><?php echo JB_escape_html($message); ?> </textarea><br> Note: You can use the following variables:<br> %name% - Account holder's first name and last name<br> %username% - login username of the account holder<br> %email% - email address of the account holder<br> <input type="hidden" name="letter_id" value="<?php echo jb_escape_html($_REQUEST['letter_id']); ?> "> <input type="submit" value="Save Newsletter" name="submit"> </form> <?php } else {
<?php ########################################################################### # Copyright Jamit Software 2012, http://www.jamit.com # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. ########################################################################### include "../config.php"; require dirname(__FILE__) . "/admin_common.php"; JB_admin_header('Admin -> View Cover Letter'); $app_id = $_REQUEST['app_id']; $sql = "SELECT * FROM `applications` where app_id='" . jb_escape_sql($app_id) . "' "; $result = JB_mysql_query($sql) or die(mysql_error() . $sql); $row = mysql_fetch_array($result, MYSQL_ASSOC); echo JB_escape_html($row['cover_letter']); ?> <center> <input type="button" value="Close" onclick="window.close(); return false"> </center> <?php JB_admin_footer();
echo $row['invoice_id'] . $date_link; ?> ' "> / <input type="button" style="font-size: 9px;" value="Cancel" onclick="if (!confirmLink(this, 'Cancel this Order, are you sure?')) return false; window.location='<?php echo 'subscription_report.php'; ?> ?action=cancel&invoice_id=<?php echo $row['invoice_id'] . $date_link; ?> ' "> <?php } if (strtolower($row['status']) == 'confirmed' || strtolower($row['status']) == 'pending') { ?> <br> <input type="button" style="font-size: 9px;" value="Complete" onclick="if (!confirmLink(this, 'Payment from <?php echo JB_js_out_prep(JB_escape_html(jb_get_formatted_name($row2['FirstName'], $row2['LastName']))); ?> to be completed. Order for <?php echo @JB_convert_to_currency($row['amount'], $row['currency_code'], DEFAULT_CURR); //echo CURRENCY_SIGN.$row['amount']; ?> will be credited to their account.\n ** Are you sure? **')) return false; window.location='<?php echo htmlentities('subscription_report.php'); ?> ?action=complete&invoice_id=<?php echo $row['invoice_id'] . $date_link; ?> ' "> / <input type="button" style="font-size: 9px;" value="Cancel" onclick="if (!confirmLink(this, 'Cancel this Order, are you sure?')) return false; window.location='<?php echo htmlentities('subscription_report.php'); ?> ?action=cancel&invoice_id=<?php
<a href="employers.php?action=edit&user_id=<?php echo $row['user_id']; ?> "> <?php } $result2 = JB_mysql_query($sql2) or die($sql2 . mysql_error()); $row2 = mysql_fetch_array($result2); echo JB_get_formatted_name($row2['FirstName'], $row2['LastName']); $t_start = strtotime(JB_get_local_time($row['S_DATE'])); $t_end = strtotime(JB_get_local_time($row['member_end'])); $diff = $t_end - $t_start; $days = floor($diff / 86400); ?> </a><?php echo '<small>(u:' . JB_escape_html($row2['Username']) . ' [' . $row['user_type'] . '])</small>'; ?> </font></td> <td><font face="Arial" size="2"><?php echo $row['item_name']; ?> </font></td> <td><font face="Arial" size="1"><?php echo JB_get_local_time($row['S_DATE']); ?> </font></td> <td><font face="Arial" size="1"><?php if ($row['months_duration'] == 0) { echo 'Never'; } else {