<?php if ($mode == 'EDIT' && $_REQUEST['field_id'] != '' || $NEW_FIELD == 'YES') { JB_field_form($NEW_FIELD, $data, 1); } ?> </td> </tr> </table> <?php if ($mode == 'EDIT') { ?> <IMG SRC="reserved.gif" WIDTH="13" HEIGHT="13" BORDER="0" ALT=""> - This field is reserved by the system, and cannot be deleted. You can however, change the field type / field name, and most other parameters. <?php } if ($mode != 'EDIT') { echo "<hr>- Preview of the search form<br><br>"; JB_display_dynamic_search_form(1, 2, 'PREVIEW'); } ?> <script type="text/javascript"> window.setTimeout ("window.scrollTo(0,0);",500); </script> <?php JB_admin_footer();
<?php echo $label["c_alert_optional"]; ?> <br> <input type="checkbox" name="words" value="Y" <?php if ($words == 'Y') { echo " checked "; } ?> > <?php echo $label["c_alert_filter_enable"]; ?> </td></tr> <tr><td colspan="2" class="dynamic_form_value"><?php JB_display_dynamic_search_form(1, 2, 'ALERTS'); ?> </td></tr> <tr><td colspan="2" class="dynamic_form_value"> <input class="form_submit_button" type="submit" value="<?php echo $label['c_alert_submit_button']; ?> " name="action"></td></tr> </table> </form> <?php JB_render_box_bottom();
?> forgot.php'><?php echo $label["candidate_forgot_your_pass"]; ?> </a></font></td> </tr> </table> </form> <?php } ?> </td><td valign="top"><!-- right cell, 'Find Jobs' --> <?php JB_render_box_top(100, $label['index_search_box_heading'], '#EDF8FC'); // the following call will display a search form: JB_display_dynamic_search_form(form_id, columns) JB_display_dynamic_search_form(1, 1); JB_render_box_bottom(); ?> </td> </tr> </table> <?php JBPLUG_do_callback('index_home_middle', $A = false); ?> <table border="0" width="100%" ><!-- This table shows the employer's services bar --> <tr> <td bgcolor="#FFFFCC"> <center><b><font face="arial" size="2"><?php echo $label["index_employers_services"]; ?> </font></b>
} </script> <?php ######################################### if (isset($_REQUEST['save'])) { if (JBEmployer::save_resumes($_SESSION['JB_ID'], $_REQUEST['resumes'])) { echo $JBMarkup->ok_msg($label['employer_resume_saved']); } else { echo $JBMarkup->error_msg($label['employer_resume_cannot_save']); } } ######################################### if ($CAN_VIEW_RESUMES == true) { // has a subscription to view resumes, or if no subscription is allowed to view resumes JB_display_dynamic_search_form(2); // Display Category tree code // do we have a CATEGORY type field? (field_type) $DynamicForm = jb_get_DynamicFormObject(2); foreach ($DynamicForm->get_tag_to_field_id() as $field) { // If it does have a CATEGORY, display the category tree and // break out from the loop if ($field['field_type'] == 'CATEGORY' && $_REQUEST['action'] != 'search' && $_REQUEST['resume_id'] == false) { ?> <div style="padding-bottom:3.5em; text-align:left"> <div style="float:left; "> <span class="category_name"> <?php echo jb_escape_html(JB_getCatName($_REQUEST['cat'])); ?> </span><br> <span class="category_path"><?php
function JBXM_display_xml_feed_form() { if ($_REQUEST['feed_id'] != '') { //load from the database $sql = "select * from xml_export_feeds WHERE feed_id='" . jb_escape_sql($_REQUEST['feed_id']) . "' "; $result = JB_mysql_query($sql); $row = mysql_fetch_array($result, MYSQL_ASSOC); $_REQUEST['feed_name'] = $row['feed_name']; $_REQUEST['description'] = $row['description']; $field_settings = unserialize($row['field_settings']); foreach ($field_settings as $key => $val) { if (is_numeric($key)) { $_REQUEST['field_id_' . $key] = $val; } else { $_REQUEST[$key] = $val; } } $search_settings = unserialize($row['search_settings']); // expand serach settings global $post_tag_to_search; $_Q_STRING = unserialize($row['search_settings']); foreach ($_Q_STRING as $key => $val) { $_REQUEST[$key] = $val; } $_REQUEST['max_records'] = $row['max_records']; $_REQUEST['publish_mode'] = $row['publish_mode']; $_REQUEST['include_emp_accounts'] = $row['include_emp_accounts']; $_REQUEST['schema_id'] = $row['schema_id']; $_REQUEST['feed_key'] = $row['feed_key']; $_REQUEST['hosts_allow'] = $row['hosts_allow']; $_REQUEST['is_locked'] = $row['is_locked']; $_REQUEST['form_id'] = $row['form_id']; $_REQUEST['export_with_url'] = $row['export_with_url']; $_REQUEST['include_imported'] = $row['include_imported']; } else { echo "<h4>Please enter the details for your XML feed:</h4>"; } if ($_REQUEST['max_records'] == false) { $_REQUEST['max_records'] = '100'; } if (!$_REQUEST['form_id']) { $sql = "SELECT form_id FROM xml_export_schemas WHERE schema_id='" . jb_escape_sql($_REQUEST['schema_id']) . "' "; $result_f = JB_mysql_query($sql); $row_f = mysql_fetch_row($result_f); $_REQUEST['form_id'] = $row_f[0]; } ?> <form method="POST" name="form1" action="<?php echo htmlentities($_SERVER['PHP_SELF']); ?> "> <input type='hidden' name="editfeed" value="<?php echo htmlentities($_REQUEST['editfeed']); ?> "> <input type='hidden' name="form_id" value="<?php echo htmlentities($_REQUEST['form_id']); ?> "> <input type='hidden' name="feed_id" value="<?php echo htmlentities($_REQUEST['feed_id']); ?> "> <input type='hidden' name="schema_id" value="<?php echo htmlentities($_REQUEST['schema_id']); ?> "> <h3>XML Feed Setup</h3> <table border='0' cellSpacing="1" cellPadding="3" bgColor="#d9d9d9"> <tr> <td bgcolor='#eaeaea'><b>Feed Name</b></td> <td bgcolor='#ffffff'><input type="text" name="feed_name" size="40" value="<?php echo JB_escape_html($_REQUEST['feed_name']); ?> " ></td> </tr> <tr> <td bgcolor='#eaeaea'><b>XML Schema</b></td> <td bgcolor='#ffffff'> <?php if ($_REQUEST['schema_id'] != '') { $sql = "select * from xml_export_schemas WHERE schema_id='" . jb_escape_sql($_REQUEST['schema_id']) . "' "; $result = JB_mysql_query($sql); if ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { echo "<b>" . $row['schema_name'] . "</b> - This schema will be used to generate this feed. Please make sure to map your fields to this schema below."; } } ?> </td> </tr> <tr> <td bgcolor='#eaeaea'><b>Description</b></td> <td bgcolor='#ffffff'><textarea name='description' rows='3' cols='60' ><?php echo JB_escape_html($_REQUEST['description']); ?> </textarea></td> </tr> <tr> <td bgcolor='#eaeaea'><b>Max Records</b></td> <td bgcolor='#ffffff'><input type="text" name="max_records" size="3" value="<?php echo jb_escape_html($_REQUEST['max_records']); ?> " > (How many records to put on the feed at one time, 0 = unlimited) <small>(Note: For best performance, it may be wise to keep the maximum value to 2000 or less. (Large feeds take a long time to generate). Tip: An offest parameter can be used to skip past records and fetch further records, eg http://example.com/jb-get-xml.php?feed_id=11&offset=2000 will skip the first 2000 records)</small></td> </tr> <tr> <td bgcolor='#eaeaea'><b>Publish Mode</b></td> <?php if ($_REQUEST['publish_mode'] == false) { $_REQUEST['publish_mode'] = 'PUB'; } ?> <td bgcolor='#ffffff'>Should this feed be public or private?<br> <input type="radio" value='PUB' <?php if ($_REQUEST['publish_mode'] == 'PUB') { echo ' checked '; } ?> name='publish_mode' > Public (Will also be included in to the Jamit Feed Directory, so that others can subscribe to your feed)<br> <input type="radio" value='PRI' <?php if ($_REQUEST['publish_mode'] == 'PRI') { echo ' checked '; } ?> name='publish_mode' > Private (with a secret key: <input type='text' name='feed_key' value='<?php echo JB_escape_html($_REQUEST['feed_key']); ?> '> ) and, <input type="checkbox" name="include_emp_accounts" <?php if ($_REQUEST['include_emp_accounts'] == 'Y') { echo ' checked '; } ?> value="Y" onchange="document.form1.save_feed.click()"> this feed includes employer's accounts </td> </tr> <tr> <td bgcolor='#eaeaea'><b>IP Address Allow</b></td> <?php if ($_REQUEST['hosts_allow'] == false) { $_REQUEST['hosts_allow'] = 'ALL,localhost'; } ?> <td bgcolor='#ffffff'><textarea name='hosts_allow' rows='1' cols='60'><?php echo htmlentities($_REQUEST['hosts_allow']); ?> </textarea><br>List of addresses seperated by commas. Special values can be ALL and localhost. </td> </tr> <?php if ($_REQUEST['feed_id'] != '') { ?> <tr> <td bgcolor='#eaeaea'><b>Locked</b></td> <td bgcolor='#ffffff'><input type="radio" name='is_locked' <?php if ($_REQUEST['is_locked'] == 'Y') { echo ' checked '; } ?> value='Y' > - Yes, lock from all user changes.<br> <input type="radio" name='is_locked' <?php if ($_REQUEST['is_locked'] != 'Y') { echo ' checked '; } ?> value='N' > - No, Allow changes. </td> </tr> <?php } ?> <tr> <td colspan="2" bgcolor='#eaeaea'><b>Optional: Specify a filter for this feed</b><br> <b>Imported posts:</b> <?php global $search_form_mode; $search_form_mode = 'all'; if ($_REQUEST['export_with_url'] == '') { $_REQUEST['export_with_url'] = 'Y'; } JB_display_dynamic_search_form(1); ?> </td> </tr> <tr> <td bgcolor="#eaeaea"><b>Imported Posts</b></td> <td bgcolor="white"> <input type="checkbox" name="include_imported" value="Y" <?php if ($_REQUEST['include_imported'] == 'Y') { echo ' checked '; } ?> >Include posts that have been imported from other sources (via the XML Import tool). </td> </tr> <tr> <td bgcolor="#eaeaea"><b>Export Files & Images fiels</b></td> <td bgcolor="white"> <input type="radio" name="export_with_url" value="Y" <?php if ($_REQUEST['export_with_url'] == 'Y') { echo ' checked '; } ?> >As a full URL to where they are on my job board (useful for import tool to fetch the file)<br> <input type="radio" name="export_with_url" value="N" <?php if ($_REQUEST['export_with_url'] == 'N') { echo ' checked '; } ?> >As is (the raw data)</td> </tr> <tr> <td colspan="2" bgcolor='#F2F2F2'><b>Please associate the fields from the Job Posting form to the XML feed.</b>Try to map as many fields as possible, but not all have to be mapped. Any field that is left as '[None]' will not be included in the exported RSS feed.<br><?php //JBXM_show_fields_not_mapped($feed_id); global $element_input_options; $element_input_options = "FIELDS"; JBXM_display_xml_doc_tree($_REQUEST['schema_id']); ?> </td></tr> </table> <p><input type="submit" value="Save" name="save_feed" style="font-size: 24px" ></p> </form> <?php }