\n"; echo "Notice Board \n"; java_scripts_functions (); echo "\n"; echo "

Notice Board

\n"; setup_form (); hidden_div1(); get_message(); #############################################PHP FUNCTION DECLERATIONS BEGINS ######### # This is function sets up the initial form for argurments to the # select statment function setup_form () { echo "
\n"; echo "\n"; echo "\n"; echo " \n"; echo " \n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; # echo "\n"; echo "\n"; echo "
Search: SubjectMessage:
Date (Ascending)
\n"; echo "
"; echo "
\n"; } function hidden_div1 () { #=======================Hidden form starts here ============================= echo "
\n"; echo "Enter your message Below:\n"; echo "
\n"; echo ""; echo "

Subject\n"; echo "

Name \n"; echo "

email address \n"; echo "

"; $entern = "Enter your notice here\n\t\t\t NOTICE\n"; $walmsg = "The Broadcast message is launched every 9th minute, that is 09,19,..,59.\n"; $walmsg2 = "You have to enter your message time to be after the next 9th minute.\n"; # $alt_msg = "Remember the systems' times differ: cpntm is on Mountain time."; echo "\n"; echo "

\n"; echo "

\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
Check this box for broadcast message
"; echo "
\n"; echo "
\n"; } function java_scripts_functions() { echo << RELOAD; } function get_message() { // set server access variables $host = "localhost"; $user = "ramey"; $pass = ""; $db = "nmdb"; // open connection to database $connection = mysql_connect($host, $user, $pass) or die ("Unable to connect!"); // select database to use mysql_select_db($db) or die ("Unable to select database!"); // create SQL query string $query = "SELECT username, hostid, rowid FROM cmdlog WHERE username = 'rmuforo'"; // execute query and obtain result set $result = mysql_query($query) or die ("Error in query: $query. " . mysql_error()); // are there any rows in the result? if (mysql_num_rows($result) > 0) { // yes // iterate through result set // format query results as table echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; while($row = mysql_fetch_assoc($result)) { echo ""; echo ""; echo ""; echo ""; echo ""; } echo "
UserHostnameRowID
" . $row['username'] . "" . $row['hostid'] . "" . $row['rowid'] . "
"; } else { // no // print error message echo "No data found!"; } // close connection mysql_close($connection); } function get_year () { global $year; $count=0; $yr2 = $year; while ($count < 3) { echo "