# HG changeset patch # User alex.mcmahon@cs.tcd.ie # Date 1242689406 -3600 # Node ID a4bc6ef5dbfe9565cc008a1f434ccfc50879f3ba Kerry Hartnett & Darren McCready N4C web app diff -r 000000000000 -r a4bc6ef5dbfe add_search.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/add_search.php Tue May 19 00:30:06 2009 +0100 @@ -0,0 +1,101 @@ + + + + + + +H4C - deleting request information... + + + + +You did not enter a valid search term. Click the link to return to the search page.

"; + } + + print ("

MSG = " . $message . "

"); + print ("

RESULT = " . $result . "

"); +?> + + diff -r 000000000000 -r a4bc6ef5dbfe app_concepts/h4c_app_design1.png Binary file app_concepts/h4c_app_design1.png has changed diff -r 000000000000 -r a4bc6ef5dbfe app_concepts/images/logo.gif Binary file app_concepts/images/logo.gif has changed diff -r 000000000000 -r a4bc6ef5dbfe app_concepts/screengrabs/requests_tbl.gif Binary file app_concepts/screengrabs/requests_tbl.gif has changed diff -r 000000000000 -r a4bc6ef5dbfe app_concepts/screengrabs/users_tbl.gif Binary file app_concepts/screengrabs/users_tbl.gif has changed diff -r 000000000000 -r a4bc6ef5dbfe delete.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/delete.php Tue May 19 00:30:06 2009 +0100 @@ -0,0 +1,36 @@ + + + + + +H4C - deleting request information... + + + + +search page."; + } +?> + + diff -r 000000000000 -r a4bc6ef5dbfe details.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/details.php Tue May 19 00:30:06 2009 +0100 @@ -0,0 +1,199 @@ + + + + + + +H4C - Welcome. <?php print $search_info; ?> + + + + +
+ + You have successfully deleted the selected search.
"; + } else if ($status == "add") + { + print "
You have successfully added a new search.
"; + } else if ($status == "urlerror") + { + print "
You have entered an malformed url. Please use this format: http://www.yourwebsite.com
"; + } + ?> + +
+

+
"; + + if ($currID != 1) + { + print " "; + } + + print " "; + print "
"; + ?> + " . $search_count . " "; + print "Search:" . $db_field['req_val'] . " "; + } else { + print "
" . $search_count . " "; + print "Search:" . $db_field['req_val'] . " "; + } + + print "Status:"; + + if ($db_field['req_response'] == 0) + { + print "Result pending"; + print ""; + } else { + print "View website"; + print ""; + } + print "
"; + + $search_count++; + } + + // if no requests, display message + if (mysql_num_rows($query) < 1) + { + print '

You have no previous searches please use the search form to create a new search.

'; + } + + mysql_close(); + ?> + + + + diff -r 000000000000 -r a4bc6ef5dbfe files/h4c_main.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/files/h4c_main.css Tue May 19 00:30:06 2009 +0100 @@ -0,0 +1,212 @@ +@charset "utf-8"; +/* CSS Document by Darren McCready for Intel 2009.*/ + +* { + border:none; + margin:0; + padding:0; +} + +body { + background:#fff; + color:#000; + font-family:Trebuchet MS, Geneva, Arial, Helvetica, sans-serif; + font-size:0.8em; + background:url(../images/bg.gif) top center repeat-y; +} + +#container { + width:760px; + margin:0 auto; +} + +#header { + display:block; + width:760px; + height:66px; + background:#3b495d; + color:#fff; + border-bottom:3px solid #fff; +} + +#credits { + display:block; + width:140px; + float:right; + text-align:right; + padding:10px; + font-size:0.85em; +} + +h1 { + float:left; + background:url(../images/logo.gif) center no-repeat; + width:205px; + height:66px; +} + +h1 span { + display:none; +} + +h2 { + font-size:1.2em; + padding:5px; + color:#fff; + font-weight:500; +} + +#search h2 { + background:#77ACA1; +} + +#results h2 { + background:#BB9F71; +} + +#search { + float:left; + width:170px; + background:#D6E6E3; + padding:5px; +} + +#results { + float:right; + width:570px; + background:#EEE7DB; + padding:5px; +} + +.search_result { + display:block; + padding:10px; + border-bottom:1px solid #D4C3A6; +} + +.search_result_private { + display:block; + padding:10px; + background:#ffc; + border-bottom:1px solid #D4C3A6; +} + +.result_no { + display:block; + width:32px; + background:#fff; + border:1px solid #BB9F71; + float:left; + text-align:center; +} + +.search_txt { + display:block; + width:60px; + float:left; + text-align:center; +} + +.search_input { + display:block; + width:225px; + background:#fff; + border:1px solid #BB9F71; + float:left; + text-align:center; + margin:0 5px; + overflow:hidden; +} + +.results_txt { + display:block; + width:55px; + float:left; + text-align:center; +} + +.clear { + clear:both; +} + +.result_output a { + display:block; + width:120px; + border:1px solid #005338; + background:#349E69; + color:#fff; + float:left; + text-align:center; + margin:0 5px; +} + +.result_output a:hover { + text-decoration:none; + background:#4DC488; + border:1px solid #096; +} + +.result_output_none { + display:block; + width:120px; + background:#c66; + border:1px solid #933; + color:#fff; + float:left; + text-align:center; + margin:0 5px; +} + +form { + padding:9px 5px; +} + +#search_button { + float:right; + margin-right:5px; +} + +#delete_alert, #add_alert { + display:block; + width:740px; + padding:10px; + color:#fff; + text-align:center !important; +} + +#delete_alert { + background:#c00; +} + +#add_alert { + background:#090; +} + +.img_right { + float:right; + display:block; +} + +#delete_alert span, #add_alert span { + float:left; +} + +#view_options { + display:block; + padding:5px; + background:#E4D9C6; +} + +#view_options a,{ + padding-right:10px; + color:#000; +} + +#view_options span { + padding-right:10px; + color:#A6854F; +} + +#view_options a:hover { + text-decoration:none; +} \ No newline at end of file diff -r 000000000000 -r a4bc6ef5dbfe images/bg.gif Binary file images/bg.gif has changed diff -r 000000000000 -r a4bc6ef5dbfe images/logo.gif Binary file images/logo.gif has changed diff -r 000000000000 -r a4bc6ef5dbfe images/x.gif Binary file images/x.gif has changed diff -r 000000000000 -r a4bc6ef5dbfe images/x2.gif Binary file images/x2.gif has changed diff -r 000000000000 -r a4bc6ef5dbfe index.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/index.php Tue May 19 00:30:06 2009 +0100 @@ -0,0 +1,61 @@ + + + + + +H4C - checking your user status... + + + +COOKIES------------------------------------------------------------------------

'; + print 'COOKIE ID = ' . $currID . '
'; + print 'COOKIE Status = ' . $currStatus . '

'; + + // FOR TEST PURPOSES - READ USERS + $result2 = mysql_query('SELECT * FROM users_tbl'); + + print '

LIST OF USERS -----------------------------------------------------------------

'; + + while ($db_field = mysql_fetch_assoc($result2)) { + print 'USERID: ' . $db_field['user_ID'] . ' | EMAIL: ' . $db_field['user_email'] . ' | USERSTATUS: ' . $db_field['user_status'] . '
'; + } + + print '

'; + */ +?> + +