/******************************************************************************** ********************************* GLOBAL FUNCTIONS ****************************** ********************************************************************************/ //include('inc/thumbnail_generator.php'); //display_options :: For displaying options in a selectbox //PARAMETERS: // 1st = Input type used (examples: 'selectbox', 'checkbox') // 2nd = Table to call from the DB (example: 'sport', 'author') // 3rd = Field from the table you would like to display (example with author table: 'authorID') // 4th = Field from the table you would like to display (example with author table: 'author') function display_options($inputType, $table, $field1, $field2) { $sql="SELECT * FROM ".$table." ORDER BY ".$field1." ASC"; $result = mysql_query($sql); if ($inputType == 'selectbox'){ echo ""; while($row = mysql_fetch_array($result)) { echo ""; } }else if ($inputType == 'checkbox'){ $i = -1; while($row = mysql_fetch_array($result)) { if ($row[$field1] == "Sports Page Only") { $message = $message."
Type or paste text here.
"; } echo '"; $content = stripslashes($release['content']); $content = strip_tags($content); $content = str_trim($content, 130); $content = html_entity_decode($content); $editors_desk = $editors_desk." ".$content."
"; $content = stripslashes($release['content']); $content = strip_tags($content); $content = str_trim($content, 130); $content = html_entity_decode($content); $news_notes = $news_notes." ".$content."
"; $content = stripslashes($release['content']); $content = strip_tags($content); $content = str_replace(" "," ",$content); $content = str_trim($content, 130); $content = html_entity_decode($content); $roth_report = $roth_report." ".$content."
"; $content = stripslashes($release['content']); $content = strip_tags($content); $content = str_trim($content, 130); $content = str_replace(" "," ",$content); $content = html_entity_decode($content); $other_releases = $other_releases." ".$content."
"; $content = stripslashes($roth_report['content']); $content = strip_tags($content); $content = str_trim($content, 130); $content = html_entity_decode($content); $roth_report = $roth.$content."
You should already have been redirected to the CAS server. Click here to continue.