connect(); $php_poll = new poll(); $php_poll->set_template_set("main"); $poll_html .= box_gray_top('In Your Opinion...'); $id = 5; $php_poll->form_name = 'pool_form_'.$id; $java .= 'jQuery("#pool_form_'.$id.'").submit(formProcess); '; $poll_html .= $php_poll->poll_process('random'); $poll_html .= box_gray_bottom(); ## news $styles .= ''; ## tabs $styles .= ''; ## poll $styles .= ''; ## flow gallery $styles .= ''; ## scroll $styles .= ''; ## JS flow gallery $styles .= ''. ''. ''; ## jquery $styles .= ''. ''; //'. ''. ''; ## scroll $styles .= ''. ''; $styles .= ''; ## news slider $styles .= ' '; include_once ('global_header.php'); ############################# boxes ############################## $height = 266; ## news ajax box $template->change_path('themes/' . $setts['default_theme'] . '/templates/modules/news/'); include_once ('includes/box_index_news.php'); ## ## subscribe red box $issue_box = box_red_top('Financial Bridges®', $height); $issue_box .= '
'; $query = "SELECT * FROM " . DB_PREFIX . "fb_issue WHERE live=1"; $query .= " ORDER BY id DESC LIMIT 0,10"; $sql_issue = $db->query($query); while ($issue_details = $db->fetch_array($sql_issue)) { if($issue_details['image']) $image = 'Financial Places'; else $image = 'Financial Places'; $issue_box .= ''.$image.''; } //end WHILE /* */ $issue_box .= '
'.button('Subscribe', 100).'
'; $issue_box .= box_red_bottom(); $template->set('issue_box',$issue_box); ## ## archive issues $archive_issue_content = null; //g $archive_issue_content = box_top_notitle('Financial Bridges Issues'); $archive_issue_content .='
'; $query = "SELECT * FROM " . DB_PREFIX . "fb_issue WHERE live=1"; $query .= " ORDER BY id DESC"; $sql_issue = $db->query($query); while ($issue_details = $db->fetch_array($sql_issue)) { if($issue_details['image']) $image = 'Financial Places'; else $image = 'Financial Places'; $archive_issue_content .= '
'.$image.'
'.$issue_details['issue'].'
'; } //end WHILE $archive_issue_content .= '

'; $archive_issue_content .= box_bottom_notitle(); $template->set('archive_issue_content', $archive_issue_content); ############################################# ## small banners $event_calendar = "
Financial Places
"; $free_trial = "
Financial Places
"; $subscribe = "
Financial Places
"; $awards = "
Financial Places
"; $book = "
Financial Places
"; $template->set('event_calendar', $event_calendar); //$template->set('subscribe', $subscribe); $template->set('book', $book); if($session->value('free_trial')) $template->set('add_box', $awards); else $template->set('add_box', $free_trial); ############################################## /* */ /*## fincast live $fincast = box_red_top('Fincast® Live!', '', 345); $fincast .= '

'; // // // // // //

Get Flash to see this player.

//
$fincast .= box_red_bottom(); $template->set('fincast', $fincast); */ ############################################### ## fincast live $fincast = box_red_top('FinCast Live!™', '', 345); $button = button('More', 60); $fincast .= '
    '; $sql_select_fincast = $db->query("SELECT * FROM " . DB_PREFIX . "fincast ORDER BY id desc LIMIT 4"); while ($fincast_details = $db->fetch_array($sql_select_fincast)) { if($sql_select_issue['image']) { //$image = ''; $img = 'thumb.php?pic=fincast/images/'.$sql_select_issue['image'].'&w=245'; } else { //$image = ''; $img = "thumb.php?pic=fincast/images/fincast_video.jpg&w=246"; } $link = ''.$fincast_details['name'].''; $fincast .= '
  •  
    '.$link.'
  • '; $fincast_array[] = $fincast_details['name']."
    ".$fincast_details['description']; } $fincast .= '
'; $i=0; foreach($fincast_array as $val){ $fincast .= '
'.$val.'
'; } $fincast .= '
'; $fincast .= box_red_bottom($button); $template->set('fincast', $fincast); ############################################### ## techno fin expert box $technofin = box_top_notitle('TechnoFin® Experts Forum
The Virtual Financial Forum', 345); $start = 1; $limit = 1; $getQuery = "SELECT * FROM f_article WHERE deleted=0 ORDER by RAND()"; $totalResults = $db->get_sql_number($getQuery); if($totalResults>0) { $row = $db->get_sql_row($getQuery." LIMIT ".$start.",".$limit.""); $technofin .= '

'.$db->add_special_chars($row['title']).'

'.GetFormatShortDesc($db->add_special_chars($row['text'])).'

Financial Places
'; $technofin .= box_bottom_notitle(button('Read more', 100),"center"); } $template->set('technofin', $technofin); ############################################## ## blog box $blog = box_top_notitle('Financial Blog', 110); /*$start = 1; $limit = 1; $getQuery = "SELECT * FROM main_blog_posts ORDER by post_date ASC"; $totalResults = $db->get_sql_number($getQuery); $query_details = $db->query($getQuery." LIMIT ".$start.",".$limit.""); if($totalResults>0) { while ($row = $db->fetch_array($query_details)) { $blog .= '

'.$row['post_title'].'

'.GetFormatShortDesc($row['post_content']).'

'.button('Read more', 100).'
'; } }*/ $blog .= '

Hedge Funds
Forex
Offshore Finance
Global recovery learning from our mistakes

'; $blog .= box_bottom_notitle(button('Take part in the debate ', 140),"center"); $template->set('blog', $blog); ############################################## $template->set('poll', $poll_html); ########################## $template_output .= $template->process('mainpage.tpl.php'); include_once ('global_footer.php'); echo $template_output; ?>