} } else { echo ' <TR><TD COLSPAN="2"><B>You have no open tasks assigned to you.</B></TD></TR>'; echo db_error(); } /* DEVELOPER SURVEYS This needs to be updated manually to display any given survey */ $sql = "SELECT * from survey_responses " . "WHERE survey_id='1' AND user_id='" . user_getid() . "' AND group_id='1'"; $result = db_query($sql); echo $HTML->box1_middle('Quick Survey', false, false); if (db_numrows($result) < 1) { show_survey(1, 1); } else { echo ' <TR><TD COLSPAN="2"><B>You have taken your developer survey</B></TD></TR>'; } /* Personal bookmarks */ echo $HTML->box1_middle('My Bookmarks', false, false); $result = db_query("SELECT bookmark_url, bookmark_title, bookmark_id from user_bookmarks where " . "user_id='" . user_getid() . "' ORDER BY bookmark_title"); $rows = db_numrows($result); if (!$result || $rows < 1) { echo ' <TR><TD COLSPAN="2"><B>You currently do not have any bookmarks saved</B></TD></TR>'; echo db_error(); } else {
<?php // // SourceForge: Breaking Down the Barriers to Open Source Development // Copyright 1999-2000 (c) The SourceForge Crew // http://sourceforge.net // // $Id: survey.php,v 1.2 2003/11/13 11:29:27 helix Exp $ require 'pre.php'; require 'vote_function.php'; require '../survey/survey_utils.php'; // Check to make sure they're logged in. if (!user_isloggedin()) { exit_not_logged_in(); } survey_header(array('title' => 'Survey')); if (!$survey_id || !$group_id) { echo "<H1>For some reason, the Group ID or Survey ID did not make it to this page</H1>"; } else { show_survey($group_id, $survey_id); } survey_footer(array());