';
}
$divleft .= "\n";
}
}
mysql_free_result($rstnews);
/* close db connection */
mysql_close($dbConn);
/*END GET THE SECONDARY NEWS?*/
/*GET THE BLOG */
$bsql = "SELECT tbl_blog.blog_id,tbl_blog.title, tbl_user.blogname, tbl_blog.title, tbl_blog.blog_text, tbl_blog.item_date
FROM tbl_blog INNER JOIN tbl_user ON tbl_blog.user_id = tbl_user.user_id
WHERE tbl_user.user_id= " .$FRONTPAGE_BLOGID . " and tbl_blog.isHidden=0 AND tbl_blog.item_date <= curdate() ORDER BY tbl_blog.item_date DESC LIMIT 0, 1";
/* open db connection */
$dbConn = mysql_connect($dbHost, $dbEditorUser, $dbEditorPass) or die("Could not connect : " . mysql_error());
mysql_select_db($dbName) or die("Could not select database");
/* retrieve news data */
$rstnews = mysql_query($bsql) or die("Query failed : " . mysql_error());
while($anewsRec = mysql_fetch_array($rstnews)) {
$blogoutput .= "
jpr/blog: " . $anewsRec['title'] . '
';
$item_date=$anewsRec['item_date'];
if (strlen($item_date)>0) {
$item_date=fullworddate($item_date);
if (dateDiff("d",$item_date,date("d-M-Y"))>14) {
$item_date="";
}else{
$item_date=" " . $item_date;
}
}
$blogoutput .= '
';
$eventsoutput .= "\n";
}
/* close db connection */
mysql_close($dbConn);
/*GET THE EVENTS NEWS */
/*GET THE PUBLICATIONS */
$bsql = "SELECT tbl_article.article_id, tbl_article.title, tbl_article.pubdate
FROM tbl_article
WHERE (((tbl_article.parent_article_id)=4) AND ((tbl_article.isHidden)=0) AND tbl_article.pubdate <= curdate())
ORDER BY tbl_article.pubdate DESC LIMIT 0, 2";
/* open db connection */
$dbConn = mysql_connect($dbHost, $dbEditorUser, $dbEditorPass) or die("Could not connect : " . mysql_error());
mysql_select_db($dbName) or die("Could not select database");
/* retrieve news data */
$rstnews = mysql_query($bsql) or die("Query failed : " . mysql_error());
while($anewsRec = mysql_fetch_array($rstnews)) {
$item_date=$anewsRec['pubdate'];
if (strlen($item_date)>0) fullworddate($item_date);
$item_date=fullworddate($item_date);
$publicationsoutput .= '
';
}
/* close db connection */
mysql_close($dbConn);
/*GET THE PUBLICATIONS */
/*GET THE NEWSLETTER SUBSCRIPTION */
$bsql = "SELECT tbl_article.article_id, tbl_article.title
FROM tbl_article
WHERE (((tbl_article.parent_article_id)=7) AND ((tbl_article.isHidden)=0))
ORDER BY tbl_article.sortorder LIMIT 0, 1";
/* open db connection */
$dbConn = mysql_connect($dbHost, $dbEditorUser, $dbEditorPass) or die("Could not connect : " . mysql_error());
mysql_select_db($dbName) or die("Could not select database");
/* retrieve news data */
$rstnews = mysql_query($bsql) or die("Query failed : " . mysql_error());
while($anewsRec = mysql_fetch_array($rstnews)) {
$magazineoutput .= '' . $anewsRec['title'] .'';
}
mysql_free_result($rstnews);
/* close db connection */
mysql_close($dbConn);
/*GET THE NEWSLETTER SUBSCRIPTION */
/*GET THE NEWSLETTER */
$newsletteroutput="";
$bsql = "SELECT tbl_newsletter.*, tbl_newsletter.isHidden, tbl_newsletter.item_date
FROM tbl_newsletter
WHERE (((tbl_newsletter.isHidden)=0) AND ((tbl_newsletter.item_date)<=CURRENT_DATE()))
ORDER BY tbl_newsletter.item_date DESC limit 0,1";
/* open db connection */
$dbConn = mysql_connect($dbHost, $dbEditorUser, $dbEditorPass) or die("Could not connect : " . mysql_error());
mysql_select_db($dbName) or die("Could not select database");
/* retrieve news data */
$rstnews = mysql_query($bsql) or die("Query failed : " . mysql_error());
while($anewsRec = mysql_fetch_array($rstnews)) {
$newsletteroutput .='
The mission of the European Association for Jewish Culture (EAJC) is to enhance Jewish life by fostering and supporting artistic creativity and achievement, assisting scholarly research, and encouraging access to Jewish culture across Europe.