コード例 #1
0
ファイル: JBAppMarkup.php プロジェクト: vinothtimes/dchqtest
    function success_row($field, $value)
    {
        ?>
		<tr>
			<td><b><?php 
        echo $field;
        ?>
</b></td>
			<td><?php 
        echo str_replace("\n", '<br>', jb_escape_html($value));
        ?>
</td>
		</tr>
		<?php 
    }
コード例 #2
0
 function parse_xml()
 {
     if (!$this->fp) {
         echo "File pointer failed to init.";
         return false;
     }
     $state = 0;
     while (!feof($this->fp)) {
         $chunk = fread($this->fp, 8192);
         // read in 8KB chunks
         if ($state == 0 && trim($chunk) == '') {
             continue;
             // scan until it reacheas something
         } elseif ($state == 0 && strpos($chunk, '<?xml') !== false) {
             // extract the encoding from the header
             preg_match('/encoding="([^"]+)"/i', $chunk, $m);
             $m[1] = strtoupper($m[1]);
             // PHP supports ISO-8859-1, US-ASCII and UTF-8.
             if ('ISO-8859-1' == $m[1] || 'US-ASCII' == $m[1] || 'UTF-8' == $m[1]) {
                 $this->parser_create($m[1]);
                 xml_parser_set_option($this->parser, XML_OPTION_TARGET_ENCODING, $m[1]);
             } else {
                 $this->parser_create();
                 echo "<font color='red'>Warning: the parser does not support XML files encoded in " . jb_escape_html($m[1]) . " - please change the file to UTF-8.</font><br> ";
             }
             $chunk = preg_replace('#<\\?xml.+?>#i', '', $chunk);
             // remove the header(s) from the chunk
             $state = 1;
             //continue; // skip and begin processing from the next line
         } elseif ($state == 0) {
             // did not have any encoding header - UTF-8 is assumed
             $this->parser_create();
             $state = 1;
             // beging processing from this line
         }
         if (!xml_parse($this->parser, $chunk, feof($this->fp))) {
             //$this->error(sprintf('XML error at line %d column %d',
             //xml_get_current_line_number($this->parser),
             //xml_get_current_column_number($this->parser)));
             fclose($this->fp);
             return false;
         }
     }
 }
コード例 #3
0
ファイル: apps.php プロジェクト: vinothtimes/dchqtest
 $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.
 // Here use $PForm to process the field restrictions
 $PForm->set_value('anon', $resume_row['anon']);
 if ($resume_row['anon'] == 'Y') {
     if (JB_ONLINE_APP_REVEAL_PREMIUM == 'YES' && $post_row['post_mode'] == 'premium') {
         $PForm->set_value('anon', 'N');
         // can show anonymous fields
     }
     if (JB_ONLINE_APP_REVEAL_STD == 'YES' && $post_row['post_mode'] != 'premium') {
         $PForm->set_value('anon', 'N');
         // can show anonymous fields
     }
     if (JB_ONLINE_APP_REVEAL_RESUME == 'YES' && $post_row['post_mode'] != 'premium') {
         $PForm->set_value('anon', 'N');
コード例 #4
0
ファイル: resumealerts.php プロジェクト: vinothtimes/dchqtest
 # Build resume list for each user.
 # Old version - keep back for backword compatibility.
 $RForm =& JB_get_DynamicFormObject(2);
 while ($resume_row = mysql_fetch_array($result2, MYSQL_ASSOC)) {
     $RForm->set_values($resume_row);
     $DATE = $RForm->get_template_value("DATE");
     $FORMATTED_DATE = JB_get_formatted_date($DATE);
     $NAME = $RForm->get_raw_template_value("RESUME_NAME");
     $resume_alert_list_html .= "<font face='arial' size='2'>{$FORMATTED_DATE} - " . strip_tags($NAME) . " </font><br>";
     $resume_alert_list_text .= "{$FORMATTED_DATE} : " . strip_tags($NAME) . " \r\n";
 }
 #############################################################################
 if (mysql_num_rows($result2) > 0) {
     // if we have anything to send?
     if ($VERBOSE == 'YES') {
         echo "Email Debug: Sending Email to: " . jb_escape_html(jb_get_formatted_name($user_row['FirstName'], $user_row['LastName'])) . " (" . $user_row['ID'] . ")<br> ";
     }
     $val = md5($user_row['Password'] . $user_row['ID']);
     $employer_link = JB_BASE_HTTP_PATH . JB_EMPLOYER_FOLDER . "alerts.php?id=" . $user_row['ID'] . "&key={$val}";
     #### Load in the html alert template
     $lang = $user_row['lang'];
     if ($lang == '') {
         $lang = JB_get_default_lang();
     }
     $e_result = JB_get_email_template(6, $lang);
     // html alert template
     $e_row = mysql_fetch_array($e_result);
     $EmailMessage = $e_row['EmailText'];
     $from = $e_row['EmailFromAddress'];
     $from_name = $e_row['EmailFromName'];
     $subject = $e_row['EmailSubject'];
コード例 #5
0
	</div>
	<div style="float: right;">
	<a href="<?php 
echo JB_BASE_HTTP_PATH;
?>
"><?php 
echo $label['go_to_site_home'];
?>
</a>
<?php 
if (JB_CAT_RSS_SWITCH == 'YES') {
    ?>
	<p>

	<a href="<?php 
    echo JB_BASE_HTTP_PATH . "rss.php?cat=" . jb_escape_html($_REQUEST['cat']);
    ?>
"><img alt="RSS" src="<?php 
    echo JB_THEME_URL . 'images/rss_cat.png';
    ?>
" border="0" ></a> <?php 
    echo $label['rss_subscribe'];
    ?>
	</p>
<?php 
}
?>
	</div>
</div>

コード例 #6
0
ファイル: build_matrix.php プロジェクト: vinothtimes/dchqtest
    $sql = "REPLACE INTO skill_matrix (matrix_id, field_id, row_count) VALUES ('" . jb_escape_sql($_REQUEST['field_id']) . "', '" . jb_escape_sql($_REQUEST['field_id']) . "', '" . jb_escape_sql($_REQUEST['row_count']) . "') ";
    JB_mysql_query($sql) or die(mysql_error());
}
$sql = "Select * from skill_matrix WHERE field_id='" . jb_escape_sql($_REQUEST['field_id']) . "' ";
$result = JB_mysql_query($sql) or die(mysql_error());
$row = mysql_fetch_array($result, MYSQL_ASSOC);
?>

	<b>Number of rows:</b> <input type="text" size="3" name="row_count" value="<?php 
echo $row['row_count'];
?>
">
	<input type="hidden" name="matrix_id" value="<?php 
echo jb_escape_html($row['matrix_id']);
?>
">
	<input type="hidden" name="field_id" value="<?php 
echo jb_escape_html($_REQUEST['field_id']);
?>
">
	<input type="submit" name="submit" value="Save Changes"> (Note: The optimal number of rows is 4, more rows might require more CPU for searching)
	</form>

	<p>&nbsp;</p>
<center><input type="button" name="" value="Close" onclick="window.opener.location.reload();window.close()"></center>

<hr>
<h3>Preview of the Skill Matrix:</h3>
<?php 
echo @JB_display_matrix($_REQUEST['field_id']);
JB_admin_footer();
コード例 #7
0
ファイル: logout.php プロジェクト: vinothtimes/dchqtest
// clear the session table
$sql = "DELETE FROM `jb_sessions` WHERE session_id='" . jb_escape_sql(session_id()) . "' ";
JB_mysql_query($sql) or die($sql . mysql_error());
unset($_SESSION['JB_ID']);
unset($_SESSION['JB_Domain']);
unset($_SESSION['JB_FirstName']);
unset($_SESSION['JB_LastName']);
unset($_SESSION['JB_Username']);
unset($_SESSION['Rank']);
unset($_SESSION['JB_Base']);
$page_title = JB_SITE_NAME;
JB_template_employers_outside_header($page_title);
?>
<h3 style="text-align: center;"><?php 
echo $label['employer_logout_ok'];
?>
</h3> 

<p style="text-align: center;">
<a href="<?php 
echo jb_escape_html(JB_BASE_HTTP_PATH);
?>
"><?php 
$label["employer_logout_home"] = str_replace("%SITE_NAME%", jb_escape_html(JB_SITE_NAME), $label["employer_logout_home"]);
echo $label['employer_logout_home'];
?>
</a>

</p>
<?php 
JB_template_employers_outside_footer();
コード例 #8
0
?>
</b></td></tr>
		<tr><td class="field_label"><?php 
echo $label["employer_request_details_from"];
?>
</td><td class="field_data"><input style="width: 100%" size="40" type='text' name='from' value='<?php 
echo jb_escape_html($from);
?>
'></td></tr>
		<tr><td class="field_label"><?php 
echo $label["employer_request_details_reply"];
?>
</td><td class="field_data"><input style="width: 100%" size="40" type='text' name='reply_to' value='<?php 
echo jb_escape_html($reply_to);
?>
'></td></tr>

		<tr><td class="field_data" colspan="2"><?php 
echo $label["employer_request_details_msg"];
?>
</td></tr>
		<tr><td class="field_data" colspan="2"><textarea style="width: 100%" name="message" rows="10" cols="40"><?php 
echo jb_escape_html($_REQUEST['message']);
?>
</textarea></td></tr>
		<tr><td class="field_data" colspan="2"><input class="form_submit_button" type="submit" name="submit" value="<?php 
echo $label["employer_request_send_button"];
?>
"></td></tr>
	</table>
</form>
コード例 #9
0
            echo $error;
        } else {
            JB_place_subscription_invoice($_REQUEST['employer_id'], $_REQUEST['subscription_id']);
            $_REQUEST['new'] = '';
            $JBMarkup->ok_msg('New invoice added.');
        }
    }
    if ($_REQUEST['new'] != '') {
        ?>

	<form method="post" action="<?php 
        echo htmlentities($_SERVER['PHP_SELF']);
        ?>
?action=post" >
	<input type="hidden" name="new" value="<?php 
        echo jb_escape_html($_REQUEST['new']);
        ?>
">
	<input type="hidden" name="go" value="2">
	<table border="0"  cellSpacing="1" cellPadding="5" bgColor="#d9d9d9">

	<tr>

	<td> <b>Employer:</b> </td>
	<td colspan="2">
	<select name="employer_id">
	<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)) {
コード例 #10
0
ファイル: email_queue.php プロジェクト: vinothtimes/dchqtest
    </tr>
	 <tr>
      <td width="63" bgcolor="#EDF8FC" valign="top">
      <p style="float: right;"><font size="2" face="Arial"><b>Subject</b></font></td>
      <td width="286" bgcolor="#EDF8FC" valign="top">
      <font face="Arial">
      <input type="text" name="q_subj" size="39" value="<?php 
echo jb_escape_html($q_subj);
?>
" ></font></td>
      <td width="71" bgcolor="#EDF8FC" valign="top">
      <p style="float: right;"><b><font face="Arial" size="2">Message</font></b></td>
      <td width="299" bgcolor="#EDF8FC" valign="top">
      
      <input type="text" name="q_msg" size="28" value="<?php 
echo jb_escape_html($q_msg);
?>
"></td>
    </tr>
	 <tr>
      <td width="63" bgcolor="#EDF8FC" valign="top">
      <p style="float: right;"><font size="2" face="Arial"><b>Status</b></font></td>
      <td width="286" bgcolor="#EDF8FC" valign="top">
      <font face="Arial">
	  <select name="q_status">
		<option value='' <?php 
if ($_REQUEST['q_status'] == false) {
    echo ' selected ';
}
?>
></option>
コード例 #11
0
ファイル: language.php プロジェクト: vinothtimes/dchqtest
function admin_language_form($lang_row = array())
{
    $edit_mode = false;
    $lang_img = '';
    if (sizeof($lang_row) != 0) {
        $edit_mode = true;
        $_REQUEST['lang_code'] = $lang_row['lang_code'];
        $_REQUEST['name'] = $lang_row['name'];
        $_REQUEST['jb_theme'] = $lang_row['jb_theme'];
        $_REQUEST['fckeditor_lang'] = $lang_row['fckeditor_lang'];
        $_REQUEST['lang_filename'] = $lang_row['lang_filename'];
        $lang_img = '<img src="' . JB_BASE_HTTP_PATH . 'lang_image.php?code=' . jb_escape_html($lang_row['lang_code']) . '">';
    }
    $disabled = '';
    if ($edit_mode) {
        $disabled = " disabled ";
    }
    ?>
<form enctype="multipart/form-data" method="post" action="<?php 
    echo htmlentities($_SERVER['PHP_SELF']);
    ?>
">
<input type="hidden" value="<?php 
    echo jb_escape_html($_REQUEST['action']);
    ?>
" name="action" >
<?php 
    if ($edit_mode) {
        ?>
	<input type="hidden" value="<?php 
        echo jb_escape_html($_REQUEST['lang_code']);
        ?>
" name="lang_code" >
	<?php 
    }
    ?>

<table border="0" cellSpacing="1" cellPadding="3" bgColor="#d9d9d9">
<tr bgcolor="#ffffff" ><td><font size="2">Language Name:</font></td><td><input size="30" type="text" name="name" value="<?php 
    echo jb_escape_html($_REQUEST['name']);
    ?>
"/> eg. English</td></tr>
<tr bgcolor="#ffffff" ><td><font size="2">Language Code:</font></td><td><input <?php 
    echo $disabled;
    ?>
 size="2" type="text" name="lang_code" value="<?php 
    echo jb_escape_html($_REQUEST['lang_code']);
    ?>
"> eg. EN</td></tr>
<tr bgcolor="#ffffff" ><td><font size="2">Language File:</font></td><td><select  name="lang_filename" ><option></option><?php 
    lang_file_options($_REQUEST['lang_filename']);
    ?>
</select><small>(To create a new language file: copy the lang/english.php file and change the name of the new file to the name of your language. eg. lang/dutch.php - Give permissions for writing to this file.)</small></td></tr>
<tr bgcolor="#ffffff" ><td><font size="2">Image:</font></td><td><?php 
    echo $lang_img;
    ?>
<input size="15" type="file" name="lang_image" value=""> <font size='1'>(Do not select if you want to keep the existing image)</font></td></tr>
<tr bgcolor="#ffffff" ><td><font size="2">FCKEditor language file:</font></td><td><select  type="text" name="fckeditor_lang" ><option></option><?php 
    fck_lang_file_options($_REQUEST['fckeditor_lang']);
    ?>
</select></select><font size="2">(The FCKEditor is a HTML editor in the include/lib/fckeditor/ directory. The language files are located in fckeditor/editor/lang/)</a></td>
</tr>
<tr bgcolor="#ffffff"><td><font size="2">Language Theme:</font></td>
<td>
<select name='jb_theme'>
		<option value=''>[Select]</option>
		<?php 
    if ($_REQUEST['jb_theme'] == '') {
        $_REQUEST['jb_theme'] = JB_THEME;
    }
    JB_theme_option_list($_REQUEST['jb_theme']);
    ?>
	  </select>
</td>
</tr>
</table>
<input type="submit" name="submit" value="Submit">
</form>

<?php 
}
コード例 #12
0
<h3 style="text-align: center"><?php 
echo $label["employer_section_heading"];
?>
</h3> 
	<table style="margin-left: auto;  margin-right: auto;">
		<tr>
			<td style="text-align:center;"><b><?php 
echo $label["employer_flogin_emp"];
?>
</b>
				<form id="form1" method="post" target="_parent" action="login.php">
				<input type="hidden" name="page" value="<?php 
if ($_REQUEST['page'] == '') {
    $_REQUEST['page'] = $_SERVER['PHP_SELF'];
}
echo jb_escape_html($_REQUEST['page']);
?>
">
				<table width="100%"  border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td style="float: right;" valign="MIDDLE"><?php 
echo $label["employer_signup_member_id"];
?>
&nbsp;</td>
						<td valign="MIDDLE"><input name="username" type="text" id="username" size="12"></td>
					</tr>
					<tr>
						<td style="float: right;" valign="MIDDLE"  ><?php 
echo $label["employer_signup_password"];
?>
&nbsp;</td>
コード例 #13
0
ファイル: currency.php プロジェクト: vinothtimes/phpdoc
    ?>
">($1 USD = x in this currency)</td></tr>
<tr bgcolor="#ffffff" ><td><font size="2">Currency Sign:</font></td><td><input <?php 
    echo $disabled;
    ?>
 size="1" type="text" name="sign" value="<?php 
    echo jb_escape_html($_REQUEST['sign']);
    ?>
">(eg. &#165;)</td></tr>
<tr bgcolor="#ffffff" ><td><font size="2">Currency Decimals:</font></td><td><input <?php 
    echo $disabled;
    ?>
 size="1" type="text" name="decimal_places" value="<?php 
    echo jb_escape_html($_REQUEST['decimal_places']);
    ?>
">(eg. 2)</td></tr>
<tr bgcolor="#ffffff" ><td><font size="2">Decimal Point:</font></td><td><input  size="1" type="text" name="decimal_point" value="<?php 
    echo jb_escape_html($_REQUEST['decimal_point']);
    ?>
">(eg. .)</td></tr>
<tr bgcolor="#ffffff" ><td><font size="2">Thousands Seperator:</font></td><td><input  size="1" type="text" name="thousands_sep" value="<?php 
    echo jb_escape_html($_REQUEST['thousands_sep']);
    ?>
">(eg. ,)</td></tr>
</table>
<input type="submit" name="submit" value="Submit">
</form>

	<?php 
}
JB_admin_footer();
コード例 #14
0
ファイル: search.php プロジェクト: vinothtimes/dchqtest
                } elseif ($req_status === false) {
                    // request was made, it is refused or waiting
                    echo "<p class='request_msg_sent_label'>";
                    //echo "<i>".$label["c_resume_hide"]."</i>";
                    echo $label["resume_display_request_sent"];
                    echo "</p>";
                } else {
                    // display a request button
                    ?>
					<p style="text-align:center">
					<i><?php 
                    echo $label["c_resume_hide"];
                    ?>
</i><br>
					<input  type="button" onclick="window.location='request.php?user_id=<?php 
                    echo jb_escape_html($data['user_id']);
                    ?>
'" value="<?php 
                    echo $label["resume_display_request"];
                    ?>
" >
					</p>
					<?php 
                }
            } else {
                // resume is not hidden!
            }
            $JBPage->output();
            $JBPage->increment_hits();
        }
    } else {
コード例 #15
0
ファイル: category.inc.php プロジェクト: vinothtimes/dchqtest
function JB_echo_cat_seo_fields($id, $url, $fname, $title, $desc, $keys, $dir_name)
{
    //$url = urldecode($url);
    preg_match("#/([^/]+)\$#D", urldecode($url), $m);
    $matched_file_name = $m[1];
    if (!JB_get_cat_id_from_url($matched_file_name, $form_id = 1)) {
        $amb = true;
        // the url is ambiguous
        echo " <font color='red'>{$url} [Warning: ambiguous filename, please choose a unique filename below]</font> ";
    } else {
        $amb = false;
    }
    if ($fname == '') {
        $fname = $matched_file_name;
    }
    $fname = JB_utf8_to_html($fname);
    ?>

	<br>
	<b>Path / File:</b> <?php 
    echo JB_BASE_HTTP_PATH . JB_MOD_REWRITE_DIR;
    ?>
<input name='file_<?php 
    echo $id;
    ?>
' size='40' <?php 
    if ($amb) {
        echo ' style="background-color:#FCDEC9;" ';
    }
    ?>
 type='text' value="<?php 
    echo jb_escape_html($fname);
    ?>
"><br>
	<b>Title:</b> <input name='title_<?php 
    echo $id;
    ?>
' size='80' type='text' value="<?php 
    echo jb_escape_html($title);
    ?>
"><br>
	<b>Description:</b> <input name='desc_<?php 
    echo $id;
    ?>
' size='80' type='text' value="<?php 
    echo jb_escape_html($desc);
    ?>
"><br>
	<b>Keywords:</b> <input name="keys_<?php 
    echo $id;
    ?>
" size='80' type='text' value="<?php 
    echo jb_escape_html($keys);
    ?>
"><br>

	<?php 
}
コード例 #16
0
ファイル: admin.php プロジェクト: vinothtimes/phpdoc
# 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/.
###########################################################################
require '../config.php';
//echo $JBMarkup->get_admin_doctype();
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">' . "\n";
$JBMarkup->markup_open();
// <html>
$JBMarkup->head_open();
// open the <HEAD> part
?>

<title>Admin - <?php 
echo jb_escape_html(JB_SITE_NAME);
?>
 - Jamit Job Board </title>
<meta http-equiv="Content-Type" content="text/html;">
<?php 
$JBMarkup->head_close();
?>

<frameset cols="150,*" rows="*" border="2" framespacing="0" frameborder="yes">
  <frame src="menu.php" name="nav" marginwidth="3" marginheight="3" scrolling="auto">
  <frame src="main.php" name="main" marginwidth="10" marginheight="10" scrolling="auto">
</frameset>

<noframes>
	<body bgcolor="#FFFFFF" text="#000000">
		<p>Sorry, your browser doesn't seem to support frames</p>
コード例 #17
0
<form method="post" name="form1" action="<?php 
echo htmlentities($_SERVER['PHP_SELF']);
?>
" Onsubmit= "form1.sendbutton.disabled=true;">
<input type="hidden" name="post_id" value="<?php 
echo jb_escape_html($post_id);
?>
">
<input type="hidden" name="url"	value="<?php 
echo JB_job_post_url($post_id, $JobListAttributes, JB_BASE_HTTP_PATH . 'index.php');
?>
" >

<table align="center" border="0" width="98%" cellpadding="0" cellspacing="0" style="border-collapse: collapse; margin:3px"  >
  <tr>
    <td style="background-color:#808080; color: white; font-weight:bold">
    <?php 
echo $label['taf_heading'];
?>
</td>
  </tr>
  <tr>
    <td width="100%"><span style="font-weight:bold"><?php 
echo $label['taf_url'];
?>
</span><br>
	
    <?php 
echo JB_BASE_HTTP_PATH;
?>
index.php?post_id=<?php 
コード例 #18
0
ファイル: IndeedXML.php プロジェクト: vinothtimes/dchqtest
    function config_form()
    {
        //
        ?>
		<form method="post" action="<?php 
        echo htmlentities($_SERVER['PHP_SELF']);
        ?>
">
		<table border="0" cellpadding="5" cellspacing="2" style="border-style:groove" id="AutoNumber1" width="100%" bgcolor="#FFFFFF">
		
		<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>Publisher ID</b></td>
			<td  bgcolor="#e6f2ea"><input size="20" type="text" name='id' value="<?php 
        echo jb_escape_html($this->config['id']);
        ?>
"> (Your indeed.com publisher ID, get it from https://ads.indeed.com/jobroll/xmlfeed)
			</td>
		</tr>
		<tr>
	

			<td  width="20%" bgcolor="#e6f2ea">
				<b>Country</b></td>
			<td  bgcolor="#e6f2ea"><select  name="c" value="<?php 
        echo $this->config['c'];
        ?>
">
			<option value="us" <?php 
        if ($this->config['c'] == "us") {
            echo ' selected ';
        }
        ?>
>US</option>
			<option value="ar" <?php 
        if ($this->config['c'] == "ar") {
            echo ' selected ';
        }
        ?>
>Argentina</option>
			<option value="au" <?php 
        if ($this->config['c'] == "au") {
            echo ' selected ';
        }
        ?>
>Australia</option>
			<option value="at" <?php 
        if ($this->config['c'] == "at") {
            echo ' selected ';
        }
        ?>
>Austria</option>
			<option value="bh" <?php 
        if ($this->config['c'] == "bh") {
            echo ' selected ';
        }
        ?>
>Bahrain</option>
			<option value="be" <?php 
        if ($this->config['c'] == "be") {
            echo ' selected ';
        }
        ?>
>Belgium</option>
			<option value="br" <?php 
        if ($this->config['c'] == "br") {
            echo ' selected ';
        }
        ?>
>Brazil</option>
			<option value="ca" <?php 
        if ($this->config['c'] == "ca") {
            echo ' selected ';
        }
        ?>
>Canada</option>
			<option value="cn" <?php 
        if ($this->config['c'] == "cn") {
            echo ' selected ';
        }
        ?>
>China</option>
			<option value="co" <?php 
        if ($this->config['c'] == "co") {
            echo ' selected ';
        }
        ?>
>Colombia</option>
			<option value="cz" <?php 
        if ($this->config['c'] == "cz") {
            echo ' selected ';
        }
        ?>
>Czech Republic</option>
			<option value="dk" <?php 
        if ($this->config['c'] == "dk") {
            echo ' selected ';
        }
        ?>
>Denmark</option>
			<option value="fi" <?php 
        if ($this->config['c'] == "fi") {
            echo ' selected ';
        }
        ?>
>Finalnd</option>
			<option value="fr" <?php 
        if ($this->config['c'] == "fr") {
            echo ' selected ';
        }
        ?>
>France</option>
			<option value="gb" <?php 
        if ($this->config['c'] == "gb") {
            echo ' selected ';
        }
        ?>
>Great Britain</option>
			<option value="de" <?php 
        if ($this->config['c'] == "de") {
            echo ' selected ';
        }
        ?>
>Germany</option>
			<option value="gr" <?php 
        if ($this->config['c'] == "gr") {
            echo ' selected ';
        }
        ?>
>Greece</option>
			<option value="hk" <?php 
        if ($this->config['c'] == "hk") {
            echo ' selected ';
        }
        ?>
>Hong Kong</option>
			<option value="hu" <?php 
        if ($this->config['c'] == "hu") {
            echo ' selected ';
        }
        ?>
>Hungary</option>
			<option value="in" <?php 
        if ($this->config['c'] == "in") {
            echo ' selected ';
        }
        ?>
>India</option>
			<option value="ie" <?php 
        if ($this->config['c'] == "ie") {
            echo ' selected ';
        }
        ?>
>Ireland</option>
			<option value="il" <?php 
        if ($this->config['c'] == "il") {
            echo ' selected ';
        }
        ?>
>Israel</option>
			<option value="it" <?php 
        if ($this->config['c'] == "it") {
            echo ' selected ';
        }
        ?>
>Italy</option>
			<option value="jp" <?php 
        if ($this->config['c'] == "jp") {
            echo ' selected ';
        }
        ?>
>Japan</option>
			<option value="kr" <?php 
        if ($this->config['c'] == "kr") {
            echo ' selected ';
        }
        ?>
>Korea</option>
			<option value="kw" <?php 
        if ($this->config['c'] == "kw") {
            echo ' selected ';
        }
        ?>
>Kuwait</option>
			<option value="lu" <?php 
        if ($this->config['c'] == "lu") {
            echo ' selected ';
        }
        ?>
>Luxembourg</option>
			<option value="my" <?php 
        if ($this->config['c'] == "my") {
            echo ' selected ';
        }
        ?>
>Malaysia</option>
			<option value="mx" <?php 
        if ($this->config['c'] == "mx") {
            echo ' selected ';
        }
        ?>
>Mexico</option>
			<option value="nl" <?php 
        if ($this->config['c'] == "nl") {
            echo ' selected ';
        }
        ?>
>Netherlands</option>
			<option value="nz" <?php 
        if ($this->config['c'] == "nz") {
            echo ' selected ';
        }
        ?>
>New Zealand</option>
			<option value="no" <?php 
        if ($this->config['c'] == "no") {
            echo ' selected ';
        }
        ?>
>Norway</option>
			<option value="om" <?php 
        if ($this->config['c'] == "om") {
            echo ' selected ';
        }
        ?>
>Oman</option>
			<option value="pk" <?php 
        if ($this->config['c'] == "pk") {
            echo ' selected ';
        }
        ?>
>Pakistan</option>
			<option value="pe" <?php 
        if ($this->config['c'] == "pe") {
            echo ' selected ';
        }
        ?>
>Peru</option>
			<option value="ph" <?php 
        if ($this->config['c'] == "ph") {
            echo ' selected ';
        }
        ?>
>Philippines</option>
			<option value="pl" <?php 
        if ($this->config['c'] == "pl") {
            echo ' selected ';
        }
        ?>
>Poland</option>
			<option value="pt" <?php 
        if ($this->config['c'] == "pt") {
            echo ' selected ';
        }
        ?>
>Portugal</option>
			<option value="qa" <?php 
        if ($this->config['c'] == "qa") {
            echo ' selected ';
        }
        ?>
>Qatar</option>
			<option value="ro" <?php 
        if ($this->config['c'] == "ro") {
            echo ' selected ';
        }
        ?>
>Romainia</option>
			<option value="ru" <?php 
        if ($this->config['c'] == "ru") {
            echo ' selected ';
        }
        ?>
>Russia</option>
			<option value="sa" <?php 
        if ($this->config['c'] == "sa") {
            echo ' selected ';
        }
        ?>
>Saudi Arabia</option>
			<option value="sg" <?php 
        if ($this->config['c'] == "sg") {
            echo ' selected ';
        }
        ?>
>Singapore</option>
			<option value="za" <?php 
        if ($this->config['c'] == "za") {
            echo ' selected ';
        }
        ?>
>South Africa</option>
			<option value="es" <?php 
        if ($this->config['c'] == "es") {
            echo ' selected ';
        }
        ?>
>Spain</option>
			<option value="se" <?php 
        if ($this->config['c'] == "se") {
            echo ' selected ';
        }
        ?>
>Sweden</option>
			<option value="ch" <?php 
        if ($this->config['c'] == "ch") {
            echo ' selected ';
        }
        ?>
>Switzerland</option>
			<option value="tw" <?php 
        if ($this->config['c'] == "tw") {
            echo ' selected ';
        }
        ?>
>Taiwan</option>
			<option value="tr" <?php 
        if ($this->config['c'] == "tr") {
            echo ' selected ';
        }
        ?>
>Turkey</option>
			<option value="ae" <?php 
        if ($this->config['c'] == "ae") {
            echo ' selected ';
        }
        ?>
>UAE</option>
			<option value="uk" <?php 
        if ($this->config['c'] == "uk") {
            echo ' selected ';
        }
        ?>
>UK</option>
			<option value="ve" <?php 
        if ($this->config['c'] == "ve") {
            echo ' selected ';
        }
        ?>
>Venezuela</option>
			</select>
			</td>
		</tr>
		
		<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>Channel</b></td>
			<td  bgcolor="#e6f2ea"><input size="15" type="text" name='ch' value="<?php 
        echo jb_escape_html($this->config['ch']);
        ?>
"> (Optional. Used to track performance if you have more than one web site. Add a new channel in your Indeed publisher account by going to the XML Feed page)
			</td>
		</tr>
		
		<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>Sort</b></td>
			<td  bgcolor="#e6f2ea"><input type="radio" name="so" <?php 
        if ($this->config['so'] == 'date') {
            echo ' checked ';
        }
        ?>
 value="date"> By Date Posted (default)<br>
			<input type="radio" name="so" <?php 
        if ($this->config['so'] == 'relevance') {
            echo ' checked ';
        }
        ?>
 value="relevance"> By Relevance<br>
			<input type="radio" name="so" <?php 
        if ($this->config['so'] == 'custom') {
            echo ' checked ';
        }
        ?>
 value="custom"> By relevance + Date Sorted (Jamit does additional sorting so that the relevant results are sorted by date. CPU intensive)
			</td>
		</tr>
		<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>Site Type</b></td>
			<td  bgcolor="#e6f2ea"><input type="radio" name="st" <?php 
        if ($this->config['st'] == 'jobsite') {
            echo ' checked ';
        }
        ?>
 value="jobsite"> Job Site: To show jobs only from job board sites<br>
			<input type="radio" name="st" <?php 
        if ($this->config['st'] == 'employer') {
            echo ' checked ';
        }
        ?>
 value="employer">Show jobs only direct from employer sites<br>
			<input type="radio" name="st" <?php 
        if ($this->config['st'] == '') {
            echo ' checked ';
        }
        ?>
 value="">Show from all<br>
			</td>
		</tr>
		<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>Job Type</b></td>
			<td  bgcolor="#e6f2ea">
			<input type="radio" name="jt" <?php 
        if ($this->config['jt'] == 'fulltime') {
            echo ' checked ';
        }
        ?>
 value="fulltime"> Get Full Time jobs<br>
			<input type="radio" name="jt" <?php 
        if ($this->config['jt'] == 'parttime') {
            echo ' checked ';
        }
        ?>
 value="parttime"> Get Part Time jobs<br>
			<input type="radio" name="jt" <?php 
        if ($this->config['jt'] == 'contract') {
            echo ' checked ';
        }
        ?>
 value="contract"> Get Contract jobs<br>
			<input type="radio" name="jt" <?php 
        if ($this->config['jt'] == 'internship') {
            echo ' checked ';
        }
        ?>
 value="internship"> Get Intership jobs<br>
			<input type="radio" name="jt" <?php 
        if ($this->config['jt'] == 'temporary') {
            echo ' checked ';
        }
        ?>
 value="temporary"> Get temporary jobs<br>
			<input type="radio" name="jt" <?php 
        if ($this->config['jt'] == '') {
            echo ' checked ';
        }
        ?>
 value=""> Get all types of jobs
			</td>
		</tr>
		<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>Radius</b></td>
			<td  bgcolor="#e6f2ea"><input size="3" type="text" name='r' value="<?php 
        echo jb_escape_html($this->config['r']);
        ?>
"> Distance from search location ("as the crow flies"). Default is 25.
			</td>
		</tr>
		<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>From Age</b></td>
			<td  bgcolor="#e6f2ea"><input size="3" type="text" name='age' value="<?php 
        echo jb_escape_html($this->config['age']);
        ?>
"> (Number of days back to search. Default/Max is 30)
			</td>
		</tr>
<!--
		<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>highlight</b></td>
			<td  bgcolor="#e6f2ea"><input type="radio" name="h" <?php 
        if ($this->config['h'] == '1') {
            echo ' checked ';
        }
        ?>
 value="1"> Yes, highlight keywords<br>
			<input type="radio" name="h" <?php 
        if ($this->config['h'] == '0') {
            echo ' checked ';
        }
        ?>
 value="0"> No)
			</td>
		</tr>
	-->
		<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>Filter Results</b></td>
			<td  bgcolor="#e6f2ea"><input type="radio" name="f" <?php 
        if ($this->config['f'] == '1') {
            echo ' checked ';
        }
        ?>
 value="1"> Yes, filter duplicate results<br>
			<input type="radio" name="f" <?php 
        if ($this->config['f'] == '0') {
            echo ' checked ';
        }
        ?>
 value="0"> No
			</td>
		</tr>
	
		<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>How to Back-fill?</b></td>
			<td  bgcolor="#e6f2ea">
			<input type="radio" name="fill" <?php 
        if ($this->config['fill'] == 'S') {
            echo ' checked ';
        }
        ?>
 value="S"> Stop after filling the first page<br>
			<input type="radio" name="fill" <?php 
        if ($this->config['fill'] == 'C') {
            echo ' checked ';
        }
        ?>
 value="C"> Continue to futher pages (if more results are available)
			</td>
		</tr>

		
		<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>Main Keyword(s)</b></td>
			<td  bgcolor="#e6f2ea"><input size="20" type="text" name='k' value="<?php 
        echo jb_escape_html($this->config['k']);
        ?>
"> (eg. Title:accounting, By default terms are AND'ed. To see what is possible, use their advanced search page for more possibilities http://www.indeed.com/advanced_search.)
			</td>
		</tr>
		<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>Main Location</b></td>
			<td  bgcolor="#e6f2ea"><input size="20" type="text" name='l' value="<?php 
        echo jb_escape_html($this->config['l']);
        ?>
"> (Location is optional. e.g. US)
			</td>
		</tr>
		<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>Search Field(s) for Keyword</b></td>
			<td  bgcolor="#e6f2ea">
			<select name="k_tag[]" multiple size="5">
				<!--<option value="">[Select]</option>-->
				<?php 
        echo $this->echo_tt_options($this->config['k_tag']);
        ?>
				</select> (The selected search parameters will be combined and used as the keywords for the search query sent to Indeed. If not selected or no keyword is searched, then it will default to the Main Keyword. Hold down the Ctrl key to select/unselect multiple items)
			</td>
		</tr>
		<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>Search Field(s) for Location</b></td>
			<td  bgcolor="#e6f2ea">
			<select name="l_tag[]" multiple size="5" >
				<!--<option value="">[Select]</option>-->
				<?php 
        echo $this->echo_tt_options($this->config['l_tag']);
        ?>
			</select> (The selected search parameters will be combined and used as the location for the search query sent to Indeed. If not selected or no location is searched, then it will default to the Main Location. Hold down the Ctrl key to select/unselect multiple items)
			</td>
		</tr>
		
		<tr><td colspan="2">Advanced Settings</td>
		</tr>
		<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Use cURL (Y/N)</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
       <br>
	  <input type="radio" name="curl" value="N"  <?php 
        if ($this->config['curl'] == 'N') {
            echo " checked ";
        }
        ?>
 >No - Normally this option is best<br>
	  <input type="radio" name="curl" value="Y"  <?php 
        if ($this->config['curl'] == 'Y') {
            echo " checked ";
        }
        ?>
 >Yes - If your hosting company blocked fsockopen() and has cURL, then use this option</font></td>
    </tr>

	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">cURL 
      Proxy URL</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="proxy" size="50" value="<?php 
        echo $this->config['proxy'];
        ?>
">Leave blank if your server does not need one. Contact your hosting company if you are not sure about which option to use. For GoDaddy it is: http://proxy.shr.secureserver.net:3128<br></font></td>
    </tr>
		<tr>
			<td  bgcolor="#e6f2ea" colspan="2"><font face="Verdana" size="1"><input type="submit" value="Save">
		</td>
		</tr>
		</table>
		<input type="hidden" name="plugin" value="<?php 
        echo jb_escape_html($_REQUEST['plugin']);
        ?>
">
		<input type="hidden" name="action" value="save">

		</form>
		<?php 
        if ($this->bug_test()) {
            echo "<p><font color='red'>PHP Bug warning: The system detected that your PHP version has a bug in the XML parser. This is not a bug in the Jamit Job Board, but a bug in 'libxml' that comes built in to PHP itself. An upgrade of PHP with the latest version of 'libxml' with  is recommended. This plugin contains a workaround for this bug - so it should still work...</font> For details about the bug, please see <a href='http://bugs.php.net/bug.php?id=45996'>http://bugs.php.net/bug.php?id=45996</a></p> ";
        }
        // check if fsockopen is disabled
        if (stristr(ini_get('disable_functions'), "fsockopen")) {
            JB_pp_mail_error("<p>fsockopen is disabled on this server. You can try to set this plugin to use cURL instead</p>");
        }
        ?>
		<b>Important:</b> After configuring Go here to <a href="p.php?p=IndeedXML&action=kw">Configure Category Keywords</a>
<p>
TROUBLE SHOOTING
<p>
> Keywords do not return any results?
Try your keyword on indeed.com first, before putting them in the job board.
<p>
> Page times out / does not fetch any results?
Your server must be able to make external connections to api.indeed.com
through port 80 (HTTP). This means that fsockopen must be enabled on
your host, and must be allowed to make external connections.
<p>
- I see warning/errors messages saying that 'argument 2' is missing.
This has been reported and can be fixed if you open the include/lists.inc.php
file and locate the following code:
<p>
JBPLUG_do_callback('job_list_data_val', $val, $template_tag);
<p>
and change to:
<p>
JBPLUG_do_callback('job_list_data_val', $val, $template_tag, $a);
<p>
- Can I make the links open in a new window?
<p>
Nope.. Indeed rules are that in order to record the click, it must use their 
onmousedown event to call their javascript, and the javascripts 
prevents the link from opening in a new window.
<p>
- It still does not work
<p>
Please check the requirements - requires Jamit Job Board 3.5.0 or higher
Please also check with your hosting company that your server
is allowed to use fsockopen or Curl
		 <?php 
    }
コード例 #19
0
ファイル: reveal_resume.php プロジェクト: vinothtimes/phpdoc
    $q_company = $_REQUEST['q_company'];
    $q_string = "&q_name={$q_name}&q_username={$q_username}&q_news={$q_news}&q_resumes={$q_resumes}&q_email={$q_email}&q_aday={$q_aday}&q_amon={$q_amon}&q_ayear={$q_ayear}&q_company={$q_company}&resume_id={$resume_id}";
    $i = 0;
    while (($row = mysql_fetch_array($result, MYSQL_ASSOC)) && $i < $records_per_page) {
        $i++;
        ?>
  <tr onmouseover="old_bg=this.getAttribute('bgcolor');this.setAttribute('bgcolor', '#FBFDDB', 0);" onmouseout="this.setAttribute('bgcolor', old_bg, 0);" bgColor="#ffffff">

     <td><input type="checkbox" name="users[]" value="<?php 
        echo $row['ID'];
        ?>
"></td>
    

    <td><font face="Arial" size="2"><?php 
        echo jb_escape_html(jb_get_formatted_name($row['FirstName'], $row['LastName']));
        ?>
</font></td>
    <td><font face="Arial" size="2"><?php 
        echo $row['Username'];
        ?>
</font></td>
    <td><font face="Arial" size="2"><?php 
        echo $row['Email'];
        ?>
</font></td>
	<td><font face="Arial" size="2"><?php 
        echo $row['CompName'];
        ?>
</font></td>
	<td><?php 
コード例 #20
0
ファイル: CareerJet.php プロジェクト: vinothtimes/dchqtest
    function config_form()
    {
        //
        ?>
		<form method="post" action="<?php 
        echo htmlentities($_SERVER['PHP_SELF']);
        ?>
">
		<table border="0" cellpadding="5" cellspacing="2" style="border-style:groove" width="100%" bgcolor="#FFFFFF">
		
		<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>Publisher ID</b></td>
			<td  bgcolor="#e6f2ea"><input size="40" type="text" name='id' value="<?php 
        echo jb_escape_html($this->config['id']);
        ?>
"> (Your CareerJet Affid ID, please visit <a style="font-weight:bold" href="http://www.careerjet.com/partners/?ak=09d1598b91e4e0b87d0dd7dcf75a180e" target="_blank">CareerJet Partners</a> site to register - follow the link and click 'Create your partner account' at the bottom of the page to register)
			</td>
		</tr>
		<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>Locale</b></td>
			<td  bgcolor="#e6f2ea">

			<?php 
        $locale2base = array('cs_CZ' => "http://www.careerjet.cz", 'da_DK' => "http://www.careerjet.dk", 'de_AT' => "http://www.careerjet.at", 'de_CH' => "http://www.careerjet.ch", 'de_DE' => "http://www.careerjet.de", 'en_AE' => "http://www.careerjet.ae", 'en_AU' => "http://www.careerjet.com.au", 'en_CA' => "http://www.careerjet.ca", 'en_CN' => "http://en.careerjet.cn", 'en_HK' => "http://www.careerjet.hk", 'en_IE' => "http://www.careerjet.ie", 'en_IN' => "http://www.careerjet.co.in", 'en_MY' => "http://www.careerjet.com.my", 'en_NZ' => "http://www.careerjet.co.nz", 'en_OM' => "http://www.careerjet.com.om", 'en_PH' => "http://www.careerjet.ph", 'en_PK' => "http://www.careerjet.com.pk", 'en_QA' => "http://www.careerjet.com.qa", 'en_SG' => "http://www.careerjet.sg", 'en_GB' => "http://www.careerjet.co.uk", 'en_UK' => "http://www.careerjet.co.uk", 'en_US' => "http://www.careerjet.com", 'en_ZA' => "http://www.careerjet.co.za", 'en_TW' => "http://www.careerjet.com.tw", 'en_VN' => "http://www.careerjet.vn", 'es_AR' => "http://www.opcionempleo.com.ar", 'es_BO' => "http://www.opcionempleo.com.bo", 'es_CL' => "http://www.opcionempleo.cl", 'es_CR' => "http://www.opcionempleo.co.cr", 'es_DO' => "http://www.opcionempleo.com.do", 'es_EC' => "http://www.opcionempleo.ec", 'es_ES' => "http://www.opcionempleo.com", 'es_GT' => "http://www.opcionempleo.com.gt", 'es_MX' => "http://www.opcionempleo.com.mx", 'es_PA' => "http://www.opcionempleo.com.pa", 'es_PE' => "http://www.opcionempleo.com.pe", 'es_PR' => "http://www.opcionempleo.com.pr", 'es_PY' => "http://www.opcionempleo.com.py", 'es_UY' => "http://www.opcionempleo.com.uy", 'es_VE' => "http://www.opcionempleo.com.ve", 'fi_FI' => "http://www.careerjet.fi", 'fr_BE' => "http://www.optioncarriere.be", 'fr_CA' => "http://fr.careerjet.ca", 'fr_CH' => "http://www.optioncarriere.ch", 'fr_FR' => "http://www.optioncarriere.com", 'fr_LU' => "http://www.optioncarriere.lu", 'fr_MA' => "http://www.optioncarriere.ma", 'hu_HU' => "http://www.careerjet.hu", 'it_IT' => "http://www.careerjet.it", 'ja_JP' => "http://www.careerjet.jp", 'ko_KR' => "http://www.careerjet.co.kr", 'nl_BE' => "http://www.careerjet.be", 'nl_NL' => "http://www.careerjet.nl", 'no_NO' => "http://www.careerjet.no", 'pl_PL' => "http://www.careerjet.pl", 'pt_PT' => "http://www.careerjet.pt", 'pt_BR' => "http://www.careerjet.com.br", 'ru_RU' => "http://www.careerjet.ru", 'ru_UA' => "http://www.careerjet.com.ua", 'sv_SE' => "http://www.careerjet.se", 'sk_SK' => "http://www.careerjet.sk", 'tr_TR' => "http://www.careerjet.com.tr", 'uk_UA' => "http://www.careerjet.ua", 'vi_VN' => "http://www.careerjet.com.vn", 'zh_CN' => "http://www.careerjet.cn");
        ?>
			<select   name="c" value="<?php 
        echo $this->config['c'];
        ?>
">
			<?php 
        foreach ($locale2base as $key => $val) {
            ?>
				<option value="<?php 
            echo $key;
            ?>
" <?php 
            if ($this->config['c'] == $key) {
                echo ' selected ';
            }
            ?>
><?php 
            echo $key;
            ?>
</option>
			<?php 
        }
        ?>
			</select> (Language/Country)
			
			</td>
		</tr>

		<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>Attribution</b></td>
			<td  bgcolor="#e6f2ea"><input type="radio" name="att" <?php 
        if ($this->config['att'] == 'Y') {
            echo ' checked ';
        }
        ?>
 value="Y"> Yes (default - this will display a 'Jobs By CareerJet' link above the results, to distinguish your job posts from CareerJet's)<br>
			<input type="radio" name="att" <?php 
        if ($this->config['att'] == 'N') {
            echo ' checked ';
        }
        ?>
 value="N"> No<br>
			
			</td>
		</tr>
		
		
		
		<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>Sort</b></td>
			<td  bgcolor="#e6f2ea"><input type="radio" name="so" <?php 
        if ($this->config['so'] == 'date') {
            echo ' checked ';
        }
        ?>
 value="date"> By Date Posted (default)<br>
			<input type="radio" name="so" <?php 
        if ($this->config['so'] == 'relevance') {
            echo ' checked ';
        }
        ?>
 value="relevance"> By Relevance<br>
			<input type="radio" name="so" <?php 
        if ($this->config['so'] == 'salary') {
            echo ' checked ';
        }
        ?>
 value="salary"> Biggest salary first
			</td>
		</tr>
		<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>Job Types</b></td>
			<td  bgcolor="#e6f2ea">
			<input type="radio" name="jt" <?php 
        if ($this->config['jt'] == '') {
            echo ' checked ';
        }
        ?>
 value=""> All Jobs<br>
			<input type="radio" name="jt" <?php 
        if ($this->config['jt'] == 'p') {
            echo ' checked ';
        }
        ?>
 value="p"> Permanent jobs<br>
			<input type="radio" name="jt" <?php 
        if ($this->config['jt'] == 'c') {
            echo ' checked ';
        }
        ?>
 value="c"> Contract<br>
			<input type="radio" name="jt" <?php 
        if ($this->config['jt'] == 't') {
            echo ' checked ';
        }
        ?>
 value="t"> Temporary<br>
			<input type="radio" name="jt" <?php 
        if ($this->config['jt'] == 'i') {
            echo ' checked ';
        }
        ?>
 value="i"> Training<br>
			<input type="radio" name="jt" <?php 
        if ($this->config['jt'] == 'v') {
            echo ' checked ';
        }
        ?>
 value="v"> Voluntary<br>
			</td>
		</tr>

		<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>Job Period</b></td>
			<td  bgcolor="#e6f2ea">
			<input type="radio" name="jp" <?php 
        if ($this->config['jp'] == '') {
            echo ' checked ';
        }
        ?>
 value=""> All Jobs<br>
			<input type="radio" name="jp" <?php 
        if ($this->config['jp'] == 'f') {
            echo ' checked ';
        }
        ?>
 value="f"> Full-time<br>
			<input type="radio" name="jp" <?php 
        if ($this->config['jp'] == 'p') {
            echo ' checked ';
        }
        ?>
 value="p"> Part-time<br>
			
			</td>
		</tr>
		
		
		
<!--
		<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>highlight</b></td>
			<td  bgcolor="#e6f2ea"><input type="radio" name="h" <?php 
        if ($this->config['h'] == '1') {
            echo ' checked ';
        }
        ?>
 value="1"> Yes, highlight keywords<br>
			<input type="radio" name="h" <?php 
        if ($this->config['h'] == '0') {
            echo ' checked ';
        }
        ?>
 value="0"> No)
			</td>
		</tr>
	-->
		
	
		<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>How to Back-fill?</b></td>
			<td  bgcolor="#e6f2ea">
			<input type="radio" name="fill" <?php 
        if ($this->config['fill'] == 'S') {
            echo ' checked ';
        }
        ?>
 value="S"> Stop after filling the first page<br>
			<input type="radio" name="fill" <?php 
        if ($this->config['fill'] == 'C') {
            echo ' checked ';
        }
        ?>
 value="C"> Continue to futher pages (if more results are available)
			</td>
		</tr>

		
		<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>Main Keyword(s)</b></td>
			<td  bgcolor="#e6f2ea"><input size="20" type="text" name='k' value="<?php 
        echo jb_escape_html($this->config['k']);
        ?>
"> (eg. Title:accounting, By default terms are AND'ed. To see what is possible, use their advanced search page for more possibilities http://www.careerjet.com/search/advanced.html)
			</td>
		</tr>
		<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>Main Location</b></td>
			<td  bgcolor="#e6f2ea"><input size="20" type="text" name='l' value="<?php 
        echo jb_escape_html($this->config['l']);
        ?>
"> (Location is optional. e.g. US)
			</td>
		</tr>
		<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>Search Field(s) for Keyword</b></td>
			<td  bgcolor="#e6f2ea">
			<select name="k_tag[]" multiple size="5">
				<!--<option value="">[Select]</option>-->
				<?php 
        echo $this->echo_tt_options($this->config['k_tag']);
        ?>
				</select> (The selected search parameters will be combined and used as the keywords for the search query sent to CareerJet. If not selected or no keyword is searched, then it will default to the Main Keyword. Hold down the Ctrl key to select/unselect multiple items)
			</td>
		</tr>
		<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>Search Field(s) for Location</b></td>
			<td  bgcolor="#e6f2ea">
			<select name="l_tag[]" multiple size="5" >
				<!--<option value="">[Select]</option>-->
				<?php 
        echo $this->echo_tt_options($this->config['l_tag']);
        ?>
			</select> (The selected search parameters will be combined and used as the location for the search query sent to CareerJet. If not selected or no location is searched, then it will default to the Main Location. Hold down the Ctrl key to select/unselect multiple items)
			</td>
		</tr>
		
		<tr><td colspan="2">Advanced Settings</td>
		</tr>
		<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Use cURL (Y/N)</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
       <br>
	  <input type="radio" name="curl" value="N"  <?php 
        if ($this->config['curl'] == 'N') {
            echo " checked ";
        }
        ?>
 >No - Normally this option is best<br>
	  <input type="radio" name="curl" value="Y"  <?php 
        if ($this->config['curl'] == 'Y') {
            echo " checked ";
        }
        ?>
 >Yes - If your hosting company blocked fsockopen() and has cURL, then use this option</font></td>
    </tr>

	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">cURL 
      Proxy URL</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="proxy" size="50" value="<?php 
        echo $this->config['proxy'];
        ?>
">Leave blank if your server does not need one. Contact your hosting company if you are not sure about which option to use. For GoDaddy it is: http://proxy.shr.secureserver.net:3128<br></font></td>
    </tr>
		<tr>
			<td  bgcolor="#e6f2ea" colspan="2"><font face="Verdana" size="1"><input type="submit" value="Save">
		</td>
		</tr>
		</table>
		<input type="hidden" name="plugin" value="<?php 
        echo jb_escape_html($_REQUEST['plugin']);
        ?>
">
		<input type="hidden" name="action" value="save">

		</form>
		<?php 
        if ($this->bug_test()) {
            echo "<p><font color='red'>PHP Bug warning: The system detected that your PHP version has a bug in the XML parser. This is not a bug in the Jamit Job Board, but a bug in 'libxml' that comes built in to PHP itself. An upgrade of PHP with the latest version of 'libxml' with  is recommended. This plugin contains a workaround for this bug - so it should still work...</font> For details about the bug, please see <a href='http://bugs.php.net/bug.php?id=45996'>http://bugs.php.net/bug.php?id=45996</a></p> ";
        }
        // check if fsockopen is disabled
        if (stristr(ini_get('disable_functions'), "fsockopen")) {
            JB_pp_mail_error("<p>fsockopen is disabled on this server. You can try to set this plugin to use cURL instead</p>");
        }
        ?>
		<b>Important:</b> After configuring Go here to <a href="p.php?p=CareerJet&action=kw">Configure Category Keywords</a>
<p>
TROUBLE SHOOTING
<p>
> Keywords do not return any results?
Try your keyword on careerjet.com first, before putting them in the job board.
<p>
> Page times out / does not fetch any results?
Your server must be able to make external connections to http://www.careerjet.com/
through port 80 (HTTP). This means that fsockopen must be enabled on
your host, and must be allowed to make external connections.
<p>
- I see warning/errors messages saying that 'argument 2' is missing.
This has been reported and can be fixed if you open the include/lists.inc.php
file and locate the following code:
<p>
JBPLUG_do_callback('job_list_data_val', $val, $template_tag);
<p>
and change to:
<p>
JBPLUG_do_callback('job_list_data_val', $val, $template_tag, $a);
<p>
- Can I make the links open in a new window?
<p>
Nope.. careerjet rules are that in order to record the click, it must use their 
onmousedown event to call their javascript, and the javascripts 
prevents the link from opening in a new window.
<p>
- It still does not work
<p>
Please check the requirements - requires Jamit Job Board 3.5.0 or higher
Please also check with your hosting company that your server
is allowed to use fsockopen or Curl
		 <?php 
    }
コード例 #21
0
 function insert_job($employer_id)
 {
     // get guid
     $element = $this->FMD->getOption('guid');
     // get key of guid element
     $guid = $this->clean_data($this->data[$element]['data']);
     // check to see if GUID is unique
     $sql = "SELECT post_id FROM `posts_table` WHERE `guid`='" . jb_escape_sql($guid) . "' ";
     $result = jb_mysql_query($sql);
     if (mysql_num_rows($result) > 0) {
         // return the existing post_id
         $this->echo_import_error('Post ' . jb_escape_html($guid) . ' already exists');
         return array_pop(mysql_fetch_row($result));
     }
     // check if enough credits
     if (JB_POSTING_FEE_ENABLED == 'YES' && $this->FMD->getOption('deduct_credits') > 0) {
         $sql = "SELECT `ID` FROM `employers` WHERE (`posts_balance` - " . jb_escape_sql($this->FMD->getOption('deduct_credits')) . ") >= 0 AND `ID`='" . jb_escape_sql($employer_id) . "' ";
         $result = jb_mysql_query($sql);
         if (mysql_num_rows($result) == 0) {
             $this->set_import_error('Not enough credits for employer id:' . $employer_id);
             return false;
         }
     }
     // get the fiels part of the INSERT query
     $sql_fields = $this->get_sql_insert_fields(1);
     if ($sql_fields === false) {
         return false;
     }
     // get the values part of the INSERT query
     $sql_values = $this->get_sql_insert_values(1);
     if ($sql_values === false) {
         return false;
     }
     // post_date
     $element = $this->FMD->getOption('post_date');
     $post_date = $this->data[$element]['data'];
     if ($time = strtotime($post_date)) {
         $post_date = gmdate("Y-m-d H:i:s", $time);
     } else {
         $post_date = gmdate("Y-m-d H:i:s");
         // post as now
     }
     // post_mode
     $element = $this->FMD->getOption('post_mode');
     // get it from the feed
     $post_mode = $this->data[$element]['data'];
     if ($post_mode == '' || $post_mode != 'normal' || $post_mode != 'free' || $post_mode != 'premium') {
         if (JB_POSTING_FEE_ENABLED == 'YES') {
             // not present in the feed, default to normal.
             $post_mode = 'normal';
         }
     }
     // approval
     $element = $this->FMD->getOption('approved');
     $approved = $this->data[$element]['data'];
     if ($approved != 'N' && $approved != 'Y') {
         // get the setting from 'map fields'
         $approved = $this->FMD->getOption('default_approved');
         if ($approved != 'N' && $approved != 'Y') {
             // get the setting from Admin->Main Config
             if (JB_POSTS_NEED_APPROVAL == 'NO') {
                 $approved = 'Y';
             } else {
                 $approved = 'N';
             }
         }
     }
     // application type
     // get app_url
     $element = $this->FMD->getOption('app_url');
     // get key of guid element
     $app_url = $this->clean_data($this->data[$element]['data']);
     //echo $this->FMD->getOption('default_app_type'); die();
     if ($app_url != false) {
         $app_type = "R";
         // redirect
     } elseif ($this->FMD->getOption('default_app_type')) {
         $app_type = $this->FMD->getOption('default_app_type');
     } else {
         $app_type = "N";
         // app_type can be: O=online R = Url, N = None,
     }
     $sql = "INSERT INTO `posts_table` ( `guid`, `post_date`, `user_id`, `approved`, `expired`, `post_mode`, `app_type`, `app_url` " . $sql_fields . ") VALUES ( '" . jb_escape_sql($guid) . "', '" . $post_date . "', '" . $employer_id . "', '" . jb_escape_sql($approved) . "', 'N', '" . jb_escape_sql($post_mode) . "', '" . jb_escape_sql($app_type) . "', '" . jb_escape_sql($app_url) . "' " . $sql_values . ") ";
     //echo $sql.'<br>'."\n";
     $result = jb_mysql_query($sql);
     $post_id = jb_mysql_insert_id();
     $this->log_entry('Inserted Job | ID:' . $post_id . ' | GUID:' . $guid . ' | Emp.ID:' . $employer_id);
     // deduct credits
     if (JB_POSTING_FEE_ENABLED == 'YES' && $this->FMD->getOption('deduct_credits') > 0) {
         $sql = "UPDARE `employers` SET `posts_balance`= (`posts_balance` - " . jb_escape_sql($this->FMD->getOption('deduct_credits')) . ") WHERE `ID`='" . jb_escape_sql($employer_id) . "' ";
         $result = jb_mysql_query($sql);
     }
     return $post_id;
 }
コード例 #22
0
    function sub_menu_item($item, $is_active = false)
    {
        if ($is_active) {
            ?>
		<span class="activeText"><?php 
            if ($item['image'] != '') {
                echo '<img src="' . jb_escape_html($item['image']) . '" align="middle" border="0">';
            }
            ?>
 <?php 
            echo jb_escape_html($item['label']);
            ?>
</span>

		<?php 
        } else {
            // inactive
            ?>
		<span class="inactiveText"><?php 
            if ($item['image'] != '') {
                echo '<img src="' . jb_escape_html($item['image']) . '" align="middle" border="0">';
            }
            ?>
<a href="<?php 
            echo jb_escape_html($item['link']);
            ?>
"> <?php 
            echo jb_escape_html($item['label']);
            ?>
</a></span>
		<?php 
        }
    }
コード例 #23
0
ファイル: emailconfig.php プロジェクト: vinothtimes/phpdoc
    }
    if ($_REQUEST['from_name'] == false) {
        $_REQUEST['from_name'] = JB_SITE_NAME;
    }
    ?>
<form method="post" action="emailconfig.php">
<b>Global Settings</b><br>
<table>
<tr><td>
From Email Address:</td><td> <input type="text" name="from_addr" value="<?php 
    echo jb_escape_html($_REQUEST['from_addr']);
    ?>
"></td></tr>
<tr><td>
From Name:</td><td> <input type="text" name="from_name" value="<?php 
    echo jb_escape_html($_REQUEST['from_name']);
    ?>
"></td></tr>
<tr><td colspan="2">
<input type="submit" value="Apply to All" name="set_global"></td></tr>
</table>
</form>

<hr>

<?php 
}
if ($_REQUEST['submit'] != '') {
    if (JB_validate_mail($_REQUEST['EmailFromAddress'])) {
        $sql = "UPDATE email_templates SET EmailText='" . jb_escape_sql($_REQUEST['EmailText']) . "', EmailFromAddress='" . jb_escape_sql($_REQUEST['EmailFromAddress']) . "', EmailFromName='" . jb_escape_sql($_REQUEST['EmailFromName']) . "', EmailSubject='" . jb_escape_sql($_REQUEST['EmailSubject']) . "', `sub_template`='" . jb_escape_sql($_REQUEST['sub_template']) . "' WHERE EmailID='" . jb_escape_sql($_REQUEST['EmailID']) . "' ";
        $result = JB_mysql_query($sql) or die(mysql_error());
コード例 #24
0
function jb_app_redirect_script(&$data)
{
    ?>

		<script type="text/javascript">
			function js_redirect() {
				// //parent.window.location = 'http://www.cnn.com/';
				window.location = '<?php 
    echo jb_escape_html($data['app_url']);
    ?>
';
			  }
			  window.onload = js_redirect;
		</script>

		<?php 
}
コード例 #25
0
ファイル: newsletter.php プロジェクト: vinothtimes/phpdoc
</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 {
    if ($action == 'new' && $unsent_newsletters > 0) {
        echo "<p>ERROR: Cannot Create a new letter. Only ONE unsent letter is allowed!</p>";
    }
}
$timeend = microtime();
$diff = number_format(substr($timeend, 0, 9) + substr($timeend, -10) - substr($timestart, 0, 9) - substr($timestart, -10), 4);
//echo "<small>$diff s </small>";
JB_admin_footer();
コード例 #26
0
ファイル: 2checkout.php プロジェクト: vinothtimes/dchqtest
    function config_form()
    {
        if ($_REQUEST['action'] == 'save') {
            $_2co_sid = $_REQUEST['_2co_sid'];
            $_2co_payment_routine = $_REQUEST['_2co_payment_routine'];
            $_2co_demo = $_REQUEST['_2co_demo'];
            $_2co_secret_word = $_REQUEST['_2co_secret_word'];
            $_2co_x_receipt_link_url = $_REQUEST['_2co_x_receipt_link_url'];
            $_2co_candidate_x_receipt_link_url = $_REQUEST['_2co_candidate_x_receipt_link_url'];
        } else {
            $_2co_sid = _2CO_SID;
            $_2co_payment_routine = _2CO_PAYMENT_ROUTINE;
            $_2co_demo = _2CO_DEMO;
            $_2co_secret_word = _2CO_SECRET_WORD;
            $_2co_x_receipt_link_url = _2CO_X_RECEIPT_LINK_URL;
            $_2co_candidate_x_receipt_link_url = _2CO_CANDIDATE_X_RECEIPT_LINK_URL;
        }
        $host = $_SERVER['SERVER_NAME'];
        // hostname
        $http_url = $_SERVER['PHP_SELF'];
        // eg /ojo/admin/edit_config.php
        $http_url = explode("/", $http_url);
        array_pop($http_url);
        // get rid of filename
        array_pop($http_url);
        // get rid of /admin
        $http_url = implode("/", $http_url);
        ?>
<form method="post" action="<?php 
        echo $_SERVER['PHP_SELF'];
        ?>
">
		 <table border="0" cellpadding="5" cellspacing="2" style="border-style:groove"  width="100%" bgcolor="#FFFFFF">
    <tr>
      <td colspan="2"  bgcolor="#e6f2ea">
      <font face="Verdana" size="1"><b>2Chekout Payment Settings</b><br>
	  Note: The script requires a C20 version 2 account.<br>
	  C2O allows only 1 account per website, so if you do not have a C2O account for this website, you will need to register a new C2O account to use this payment option.<br>
	  When configuring 2CO, please log in to your vendor account, and then go to Account->Site Managment.<br>
	  Demo Settings: Set to 'on' if you want to test your 2CO installation. Set to 'off' if you want to go live<br>
	  Direct Return: Set to 'immediately returned to my website'<br>
	  Secret word: Enter a secret word of your choice<br>
	  URLs:<br>
	  If you encounter settings for 'Approved URL', 'Pending URL', then you can leave these blank. The job board will send the correct URLs to 2CO with each transaction. <br>
	  In case you need to set these manually, the return URLs for Employer's products is: <b>http://<?php 
        echo $host . $http_url . "/" . JB_EMPLOYER_FOLDER . "thanks.php?m=" . $this->className;
        ?>
</b><br> 
	  Candidates: <b>http://<?php 
        echo $host . $http_url . "/" . JB_CANDIDATE_FOLDER . "thanks.php?m=" . $this->className;
        ?>
</b><br> 
	  
	</font></td>

    </tr>
	<tr>
      <td width="20%" bgcolor="#e6f2ea"><font face="Verdana" size="1">2Chekout Vendor ID</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="_2co_sid" size="29" value="<?php 
        echo $_2co_sid;
        ?>
"> (This ID is displayed at the top of the page, inside your 2CO account)</font></td>
    </tr>
	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">2CO Payment routine</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="_2co_payment_routine" size="50" value="<?php 
        echo $_2co_payment_routine;
        ?>
"><br>Recommended: <b>https://www.2checkout.com/2co/buyer/purchase</b></font></td>
    </tr>

	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">2Chekout receipt link URL (Employers).</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="_2co_x_receipt_link_url" size="50" value="<?php 
        echo $_2co_x_receipt_link_url;
        ?>
"><br> (Enter the return URL here. The return URL for should be: <b>http://<?php 
        echo $host . $http_url . "/" . JB_EMPLOYER_FOLDER . "thanks.php?m=" . $this->className;
        ?>
</b>  <br>The 'URLs' set in the Account->Site Managment section your 2CO account will be ignored, and this setting will be used instead.)</font></td>
    </tr>

	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">2Chekout receipt link URL (Candidates).</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="_2co_candidate_x_receipt_link_url" size="50" value="<?php 
        echo $_2co_candidate_x_receipt_link_url;
        ?>
"><br> (Recommended: <b>http://<?php 
        echo $host . $http_url . "/" . JB_CANDIDATE_FOLDER . "thanks.php?m=" . $this->className;
        ?>
</b>  <br>Same as above, but for candidates)</font></td>
    </tr>
	
	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Demo Mode (Y/N)</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
       <input type="radio" name="_2co_demo" value="Y"  <?php 
        if ($_2co_demo == 'Y') {
            echo " checked ";
        }
        ?>
 >Yes <br>
	  <input type="radio" name="_2co_demo" value="N"  <?php 
        if ($_2co_demo == 'N') {
            echo " checked ";
        }
        ?>
 >No<br>(Demo mode is used to test your 2CO installation. Set to 'No' once your site is live)</font></td>
    </tr>
	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">2CO 
      Secret Word</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="_2co_secret_word" size="50" value="<?php 
        echo $_2co_secret_word;
        ?>
"><br>(This is the secret word that is set on the Account->Site Managment page in your 2CO account)</font></td>
    </tr>
	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">2Checkout Currency is passed in as USD </font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <select disabled name="_2co_currency" >
	  <!--
	  2co supported currencies:
Australian Dollar (AUD) 
Canadian Dollar (CAD) 
Swiss Franc (CHF) 
Danish Krone (DKK) 
Euro (EUR) 
British Pound (GBP) 
Hong Kong Dollar (HKD) 
Japanese Yen (JPY) 
Norwegian Krone (NOK) 
New Zealand Dollar (NZD) 
Swedish Krona (SEK) 
U.S. Dollar (USD)

	  -->
	  		<option value="USD" <?php 
        define('_2CO_CURRENCY', 'USD');
        if (_2CO_CURRENCY == 'USD') {
            echo " selected ";
        }
        ?>
 >USD</option>
		<option value="AUD" <?php 
        if (_2CO_CURRENCY == 'AUD') {
            echo " selected ";
        }
        ?>
 >AUD</option>
		<option value="EUR" <?php 
        if (_2CO_CURRENCY == 'EUR') {
            echo " selected ";
        }
        ?>
 >EUR</option>
		<option value="USD" selected <?php 
        if (_2CO_CURRENCY == 'USD') {
            echo " selected ";
        }
        ?>
 >USD</option>
		<option value="CAD" <?php 
        if (_2CO_CURRENCY == 'CAD') {
            echo " selected ";
        }
        ?>
 >CAD</option>
		<option value="JPY" <?php 
        if (_2CO_CURRENCY == 'JPY') {
            echo " selected ";
        }
        ?>
 >JPY</option>
		<option value="GBP" <?php 
        if (_2CO_CURRENCY == 'GBP') {
            echo " selected ";
        }
        ?>
 >GBP</option>
	  
	  </select>(Disabled - Users select their preferred currency at chekout)</font></td>
    </tr>
	</tr>
	 <tr>
	
      <td  bgcolor="#e6f2ea" colspan=2><font face="Verdana" size="1"><input type="submit" value="Save">
	  </td>
	  </tr>
	</table>
	<input type="hidden" name="pay" value="<?php 
        echo jb_escape_html($_REQUEST['pay']);
        ?>
">
  <input type="hidden" name="action" value="save">
  </form>

  


		<?php 
    }
コード例 #27
0
ファイル: JobsFiller.php プロジェクト: vinothtimes/dchqtest
    function config_form()
    {
        //
        ?>
		<form method="post" action="<?php 
        echo htmlentities($_SERVER['PHP_SELF']);
        ?>
">
		<table border="0" cellpadding="5" cellspacing="2" style="border-style:groove" id="AutoNumber1" width="100%" bgcolor="#FFFFFF">
		
		<tr>
			<td  colspan="2" bgcolor="#e6f2ea">
				<b>Jobs Filler - Configuration</b></td>
			
		</tr>

		<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>API key</b></td>
			<td  bgcolor="#e6f2ea"><input size="20" type="text" name='id' value="<?php 
        echo $this->config['id'];
        ?>
"> (Your api.jamit.com key, get it from http://api.jamit.com)
			</td>
		</tr>
		<!--
		<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>Country</b></td>
			<td  bgcolor="#e6f2ea"><select  name="c" value="<?php 
        echo $this->config['c'];
        ?>
">
			<option value="us" <?php 
        if ($this->config['c'] == "us") {
            echo ' selected ';
        }
        ?>
>US</option>
			<option value="ca" <?php 
        if ($this->config['c'] == "ca") {
            echo ' selected ';
        }
        ?>
>Canada</option>
			<option value="gb" <?php 
        if ($this->config['c'] == "gb") {
            echo ' selected ';
        }
        ?>
>Great Britain</option>
			<option value="de" <?php 
        if ($this->config['c'] == "de") {
            echo ' selected ';
        }
        ?>
>Germany</option>
			<option value="fr" <?php 
        if ($this->config['c'] == "fr") {
            echo ' selected ';
        }
        ?>
>France</option>
			<option value="es" <?php 
        if ($this->config['c'] == "es") {
            echo ' selected ';
        }
        ?>
>Spain</option>
			<option value="in" <?php 
        if ($this->config['c'] == "in") {
            echo ' selected ';
        }
        ?>
>India</option>
			<option value="ie" <?php 
        if ($this->config['c'] == "ie") {
            echo ' selected ';
        }
        ?>
>Ireland</option>
			<option value="nl" <?php 
        if ($this->config['c'] == "nl") {
            echo ' selected ';
        }
        ?>
>Netherlands</option>
			</select>
			</td>
		</tr>
		-->
		<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>Sources</b></td>
			<td  bgcolor="#e6f2ea">

		<?php 
        $this->api_cache_flush(1);
        // flush older than one day
        $params = array('pub' => $this->config['id']);
        $countries = $this->api_call_cached('get_country_list', $params);
        $params = array('pub' => $this->config['id']);
        $sources = $this->api_call_cached('get_source_list', $params);
        $params = array('pub' => $this->config['id']);
        $types = $this->api_call_cached('get_type_list', $params);
        echo '<p><b>Countries:</b> ';
        $pipe = '';
        if ('ALL' == $this->config['cnt']) {
            $sel = ' checked ';
        } else {
            $sel = '';
        }
        echo '<input ' . $sel . 'type="radio" name="cnt" value="ALL"> All, &nbsp;';
        foreach ($countries as $c) {
            //if (in_array($c, $this->config['cnt'])) {
            if ($c == $this->config['cnt']) {
                $sel = ' checked ';
            } else {
                $sel = '';
            }
            //echo $pipe.'<input '.$sel.' type="checkbox" name="cnt[]" value="'.$c.'"> '.$c;
            echo $pipe . '<input ' . $sel . ' type="radio" name="cnt" value="' . $c . '"> ' . $c;
            $pipe = ', &nbsp;';
        }
        echo '</p>';
        echo '<p><b>Sources:</b> ';
        $pipe = '';
        if ('ALL' == $this->config['src']) {
            $sel = ' checked ';
        } else {
            $sel = '';
        }
        echo '<input ' . $sel . 'type="radio" name="src" value="ALL"> All, &nbsp;';
        foreach ($sources as $s) {
            if ($s == $this->config['src']) {
                //if (in_array($s, $this->config['src'])) {
                $sel = ' checked ';
            } else {
                $sel = '';
            }
            //echo $pipe.'<input '.$sel.'type="checkbox" name="src[]" value="'.$s.'"> '.$s;
            echo $pipe . '<input ' . $sel . 'type="radio" name="src" value="' . $s . '"> ' . $s;
            $pipe = ', &nbsp;';
        }
        echo '</p>';
        echo '<p><b>Job Types:</b> ';
        $pipe = '';
        if ('ALL' == $this->config['typ']) {
            $sel = ' checked ';
        } else {
            $sel = '';
        }
        echo '<input ' . $sel . 'type="radio" name="typ" value="ALL"> All, &nbsp;';
        foreach ($types as $c) {
            //if (in_array($c, $this->config['cnt'])) {
            if ($c == $this->config['typ']) {
                $sel = ' checked ';
            } else {
                $sel = '';
            }
            //echo $pipe.'<input '.$sel.' type="checkbox" name="cnt[]" value="'.$c.'"> '.$c;
            echo $pipe . '<input ' . $sel . ' type="radio" name="typ" value="' . $c . '"> ' . $c;
            $pipe = ', &nbsp;';
        }
        echo '</p>';
        ?>
			</td>
		</tr>

				<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>Default Keyword(s)</b></td>
			<td  bgcolor="#e6f2ea"><input size="20" type="text" name='k' value="<?php 
        echo $this->config['k'];
        ?>
"> (By default the terms are AND'ed.)
			</td>
		</tr>
		<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>Default City</b></td>
			<td  bgcolor="#e6f2ea"><input size="20" type="text" name='l' value="<?php 
        echo $this->config['l'];
        ?>
"> (City is optional. e.g. Sydney)
			</td>
		</tr>
		<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>Search Field(s) for Keyword</b></td>
			<td  bgcolor="#e6f2ea">
			<select name="k_tag[]" multiple size="5">
				<!--<option value="">[Select]</option>-->
				<?php 
        echo $this->echo_tt_options($this->config['k_tag']);
        ?>
				</select> (The selected search parameters will be combined and used as the keywords for the search query sent to Indeed. If not selected or no keyword is searched, then it will default to the Main Keyword. Hold down the Ctrl key to select/unselect multiple items)
			</td>
		</tr>
		<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>Search Field(s) for Location</b></td>
			<td  bgcolor="#e6f2ea">
			<select name="l_tag[]" multiple size="5" >
				<!--<option value="">[Select]</option>-->
				<?php 
        echo $this->echo_tt_options($this->config['l_tag']);
        ?>
			</select> (The selected search parameters will be combined and used as the location for the search query sent to Indeed. If not selected or no location is searched, then it will default to the Main Location. Hold down the Ctrl key to select/unselect multiple items)
			</td>
		</tr>
		<td colspan="2" bgcolor="#e6f2ea">

			<table width="100%" border="0" cellSpacing="1" cellPadding="3" bgColor="#d9d9d9"  >

			<tr bgcolor="#e6f2ea">

					<h4>Source to Local field mappings</h4>

					<td width="10%" valign="top">
					<b>Local Fields</b> - Fields your job posting form. Fields marked with * are required.
					</td>

					<td valign="top">
					<b>Source Fields</b> - These fields are the original fields that are coming in from the feed
					</td>

				</tr>
			<?php 
        require_once "../include/posts.inc.php";
        $PForm =& JB_get_DynamicFormObject(1, 'global');
        $params = array('pub' => $this->config['id']);
        $in_fields = $this->api_call('get_field_list', $params);
        sort($in_fields);
        $sql = "SELECT *, t1.field_label AS FLABEL FROM form_field_translations as t1, form_fields as t2 WHERE t2.form_id=1 AND t2.field_id=t1.field_id AND field_type!='BLANK' AND field_type != 'SEPERATOR' AND lang='" . JB_escape_sql($_SESSION['LANG']) . "' order by section asc, field_sort asc  ";
        $result = jb_mysql_query($sql);
        while ($field = mysql_fetch_array($result, MYSQL_ASSOC)) {
            if ($field['template_tag'] == 'EMAIL') {
                continue;
            }
            ?>

				

				<tr bgcolor="e6f2ea">

					<td width="10%" nowrap valign="top">
						<span style="font-weight: bold; font-size: 10pt"><?php 
            echo $field['field_label'];
            if ($field['is_required'] == 'Y') {
                echo '<span style="color:red; font-size:18pt">*</span>';
            }
            ?>
</span> <?php 
            echo $field['field_type'] . ' (#' . $field['field_id'];
            ?>
)
					</td>

					<td >
						&lt;---<select <?php 
            if ($this->config['map'][$field['field_id']]) {
                ?>
 style="color:#008080; font-weight: bold" <?php 
            }
            ?>
 style="font-size: 12pt" type="select" name="map[]">
						<option value="" style="color:#008080; font-weight: bold">[Select Field]</option>
						<?php 
            foreach ($in_fields as $in_key => $in_field) {
                if ($this->config['map'][$field['field_id']] == $in_field) {
                    $sel = ' selected ';
                } else {
                    $sel = '';
                }
                echo '<option style="color:#008080; font-weight: bold" ' . $sel . 'value="' . $field['field_id'] . '=' . $in_field . '">' . $in_field . '</option>' . "\n";
            }
            ?>
						</select>
					</td>
				</tr>

			<?php 
        }
        ?>
			</table>


		</td>

		<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>Ad Code</b></td>
			<td  bgcolor="#e6f2ea">
				<small>Paste in the ad code HTML here, eg. Google Adsense</small>
				<textarea rows="10" style="width:100%" name="ad"><?php 
        echo htmlentities($this->config['ad']);
        ?>
</textarea>
			</td>
		</tr>
	<!--	
		<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>Channel</b></td>
			<td  bgcolor="#e6f2ea"><input size="15" type="text" name='ch' value="<?php 
        echo $this->config['ch'];
        ?>
"> (Optional. Used to track performance if you have more than one web site. Add a new channel in your Indeed publisher account by going to the XML Feed page)
			</td>
		</tr>
		
	--><!--	<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>Sort</b></td>
			<td  bgcolor="#e6f2ea"><input type="radio" name="so" <?php 
        if ($this->config['so'] == 'date') {
            echo ' checked ';
        }
        ?>
 value="date"> By Date Posted (default)<br>
			<input type="radio" name="so" <?php 
        if ($this->config['so'] == 'relevance') {
            echo ' checked ';
        }
        ?>
 value="relevance"> By Relevance<br>
			<input type="radio" name="so" <?php 
        if ($this->config['so'] == 'custom') {
            echo ' checked ';
        }
        ?>
 value="custom"> By relevance + Date Sorted (Jamit does additional sorting so that the relevant results are sorted by date. CPU intensive)
			</td>
		</tr>
	--><!--	<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>Site Type</b></td>
			<td  bgcolor="#e6f2ea"><input type="radio" name="st" <?php 
        if ($this->config['st'] == 'jobsite') {
            echo ' checked ';
        }
        ?>
 value="jobsite"> Job Site: To show jobs only from job board sites<br>
			<input type="radio" name="st" <?php 
        if ($this->config['st'] == 'employer') {
            echo ' checked ';
        }
        ?>
 value="employer">Show jobs only direct from employer sites<br>
			<input type="radio" name="st" <?php 
        if ($this->config['st'] == '') {
            echo ' checked ';
        }
        ?>
 value="">Show from all<br>
			</td>
		</tr>
	--><!--	<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>Job Type</b></td>
			<td  bgcolor="#e6f2ea">
			<input type="radio" name="jt" <?php 
        if ($this->config['jt'] == 'fulltime') {
            echo ' checked ';
        }
        ?>
 value="fulltime"> Get Full Time jobs<br>
			<input type="radio" name="jt" <?php 
        if ($this->config['jt'] == 'parttime') {
            echo ' checked ';
        }
        ?>
 value="parttime"> Get Part Time jobs<br>
			<input type="radio" name="jt" <?php 
        if ($this->config['jt'] == 'contract') {
            echo ' checked ';
        }
        ?>
 value="contract"> Get Contract jobs<br>
			<input type="radio" name="jt" <?php 
        if ($this->config['jt'] == 'internship') {
            echo ' checked ';
        }
        ?>
 value="internship"> Get Intership jobs<br>
			<input type="radio" name="jt" <?php 
        if ($this->config['jt'] == 'temporary') {
            echo ' checked ';
        }
        ?>
 value="temporary"> Get temporary jobs<br>
			<input type="radio" name="jt" <?php 
        if ($this->config['jt'] == '') {
            echo ' checked ';
        }
        ?>
 value=""> Get all types of jobs
			</td>
		</tr>
	--><!--	<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>Radius</b></td>
			<td  bgcolor="#e6f2ea"><input size="3" type="text" name='r' value="<?php 
        echo $this->config['r'];
        ?>
"> Distance from search location ("as the crow flies"). Default is 25.
			</td>
		</tr>
		--><!--<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>From Age</b></td>
			<td  bgcolor="#e6f2ea"><input size="3" type="text" name='age' value="<?php 
        echo $this->config['age'];
        ?>
"> (Number of days back to search. Default/Max is 30)
			</td>
		</tr>
--><!--
		<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>highlight</b></td>
			<td  bgcolor="#e6f2ea"><input type="radio" name="h" <?php 
        if ($this->config['h'] == '1') {
            echo ' checked ';
        }
        ?>
 value="1"> Yes, highlight keywords<br>
			<input type="radio" name="h" <?php 
        if ($this->config['h'] == '0') {
            echo ' checked ';
        }
        ?>
 value="0"> No)
			</td>
		</tr>
	--><!--
		<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>Filter Results</b></td>
			<td  bgcolor="#e6f2ea"><input type="radio" name="f" <?php 
        if ($this->config['f'] == '1') {
            echo ' checked ';
        }
        ?>
 value="1"> Yes, filter duplicate results<br>
			<input type="radio" name="f" <?php 
        if ($this->config['f'] == '0') {
            echo ' checked ';
        }
        ?>
 value="0"> No
			</td>
		</tr>
	--><!--
		<tr>
			<td  width="20%" bgcolor="#e6f2ea">
				<b>How to Back-fill?</b></td>
			<td  bgcolor="#e6f2ea">
			<input type="radio" name="fill" <?php 
        if ($this->config['fill'] == 'S') {
            echo ' checked ';
        }
        ?>
 value="S"> Stop after filling the first page<br>
			<input type="radio" name="fill" <?php 
        if ($this->config['fill'] == 'C') {
            echo ' checked ';
        }
        ?>
 value="C"> Continue to futher pages (if more results are available)
			</td>
		</tr>
-->
		

		
		<tr><td colspan="2">Advanced Settings</td>
		</tr>


	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Use cURL (Y/N)</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
       <br>
	   <?php 
        if (!function_exists('curl_init')) {
            echo ' Note: Your host does not suppor cURL. Options currently disabled <br>';
        }
        ?>
	  <input type="radio" name="curl" value="N" <?php 
        if (!function_exists('curl_init')) {
            echo ' disabled ';
        }
        ?>
 <?php 
        if ($this->config['curl'] == 'N') {
            echo " checked ";
        }
        ?>
 >No - Normally this option is best<br>
	  <input type="radio" name="curl" value="Y" <?php 
        if (!function_exists('curl_init')) {
            echo ' disabled ';
        }
        ?>
 <?php 
        if ($this->config['curl'] == 'Y') {
            echo " checked ";
        }
        ?>
 >Yes - If your hosting company blocked fsockopen() and has cURL, then use this option</font></td>
    </tr>

	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">cURL 
      Proxy URL</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input <?php 
        if (!function_exists('curl_init')) {
            echo ' disabled ';
        }
        ?>
 type="text" name="proxy" size="50" value="<?php 
        echo $this->config['proxy'];
        ?>
">Leave blank if your server does not need one. Contact your hosting company if you are not sure about which option to use. For GoDaddy it is: http://proxy.shr.secureserver.net:3128<br></font></td>
    </tr>
		<tr>
			<td  bgcolor="#e6f2ea" colspan="2"><font face="Verdana" size="1"><input type="submit" value="Save">
		</td>
		</tr>
		</table>
		<input type="hidden" name="plugin" value="<?php 
        echo jb_escape_html($_REQUEST['plugin']);
        ?>
">
		<input type="hidden" name="action" value="save">

		</form>
		<?php 
        if ($this->bug_test()) {
            echo "<p><font color='red'>PHP Bug warning: The system detected that your PHP version has a bug in the XML parser. This is not a bug in the Jamit Job Board, but a bug in 'libxml' that comes built in to PHP itself. An upgrade of PHP with the latest version of 'libxml' with  is recommended. This plugin contains a workaround for this bug - so it should still work...</font> For details about the bug, please see <a href='http://bugs.php.net/bug.php?id=45996'>http://bugs.php.net/bug.php?id=45996</a></p> ";
        }
        // check if fsockopen is disabled
        if (stristr(ini_get('disable_functions'), "fsockopen")) {
            JB_pp_mail_error("<p>fsockopen is disabled on this server. You can try to set this plugin to use cURL instead</p>");
        }
        ?>
		<b>Important:</b> After configuring Go here to <a href="p.php?p=JobsFiller&action=kw">Configure Category Keywords</a>
<p>
TROUBLE SHOOTING
<p>
> Keywords do not return any results?
Try your keyword on indeed.com first, before putting them in the job board.
<p>
> Page times out / does not fetch any results?
Your server must be able to make external connections to api.indeed.com
through port 80 (HTTP). This means that fsockopen must be enabled on
your host, and must be allowed to make external connections.
<p>
- I see warning/errors messages saying that 'argument 2' is missing.
This has been reported and can be fixed if you open the include/lists.inc.php
file and locate the following code:
<p>
JBPLUG_do_callback('job_list_data_val', $val, $template_tag);
<p>
and change to:
<p>
JBPLUG_do_callback('job_list_data_val', $val, $template_tag, $a);
<p>
- Can I make the links open in a new window?
<p>
Nope.. Indeed rules are that in order to record the click, it must use their 
onmousedown event to call their javascript, and the javascripts 
prevents the link from opening in a new window.
<p>
- It still does not work
<p>
Please check the requirements - requires Jamit Job Board 3.5.0 or higher
Please also check with your hosting company that your server
is allowed to use fsockopen or Curl
		 <?php 
    }
コード例 #28
0
            if ($score >= 0.5) {
                $discard = true;
                // silently discard this message
            }
        }
        if (!$discard) {
            $email_id = JB_queue_mail($to, $to_name, JB_SITE_CONTACT_EMAIL, JB_SITE_NAME, $subject, $msg, '', 46);
            JB_process_mail_queue(1, $email_id);
        }
        ?>

		 <hr><?php 
        echo $label['taf_email_sent'];
        ?>
 <?php 
        echo jb_escape_html($to_email);
        ?>
<b/><br>
		 <p style="text-align:center;"><input onclick="window.location='<?php 
        echo htmlentities($_SERVER['PHP_SELF']) . "?post_id={$post_id}";
        ?>
'" type='button' value='<?php 
        echo $label['taf_button_send_again'];
        ?>
'><input onclick='window.close(); return false' type="button" value="<?php 
        echo $label['taf_button_close_window'];
        ?>
"></p>
		 <?php 
    } else {
        $success = false;
コード例 #29
0
 function get_emp_app_link($href, $text)
 {
     return '<a href="apps.php?post_id=' . $this->get_data_value('post_id') . '">' . jb_escape_html($text) . '</a>';
 }
コード例 #30
0
    ?>
</td>
		<td valign="top" >
		<?php 
    $label = htmlentities(stripslashes($dest_label[$key]));
    ?>
		<textarea style="font-family: Arial; font-size: 10pt;" cols="60" rows="<?php 
    $size = strlen($val);
    $rows = round($size / 40) + 2;
    echo $rows;
    ?>
"  name='<?php 
    echo $key;
    ?>
'><?php 
    echo jb_escape_html($label);
    ?>
</textarea></td>
	</tr>
	
	<?php 
    if ($i > 5) {
        echo "<tr bgcolor='#BDD5E6'><td></td><td><input type='submit' name='save' value='Save'></td></tr>";
        $i = 0;
    }
    ?>

	<tr>
	<td colspan="2"><hr></td>
	</tr>