10 |
require_once ($GLOBAL_ADMIN_INC."fuzzy.php"); |
require_once ($GLOBAL_ADMIN_INC."fuzzy.php"); |
11 |
|
|
12 |
|
|
13 |
|
// Default access settings |
14 |
|
$sess_time_human = ""; |
15 |
|
$sess_staff_account = ""; |
16 |
|
$sess_staff_id = 0; |
17 |
|
$sess_access_level = 0; |
18 |
|
$sess_access = ""; |
19 |
|
$sess_last_name = ""; |
20 |
|
$sess_first_name = ""; |
21 |
|
|
22 |
|
|
23 |
// Collect access information |
// Collect access information |
24 |
if (isset($libsession)) { |
if (isset($libsession)) { |
25 |
|
|
49 |
|
|
50 |
// Table |
// Table |
51 |
printf("<table width = \"60%%\" border = \"1\" cellpadding =\"4\" class=\"backLight\">\n"); |
printf("<table width = \"60%%\" border = \"1\" cellpadding =\"4\" class=\"backLight\">\n"); |
52 |
printf("<tr><td><br>\n"); |
printf("<tr><td>\n"); |
53 |
printf("<strong>Messages:</strong><br>\n"); |
printf("<b>Messages:</b><br>\n"); |
54 |
printf("Title was not supplied. This is a required field."); |
printf("Title was not supplied. This is a required field."); |
55 |
printf("<br><br></td></tr></table>\n"); |
printf("<br><br></td></tr></table>\n"); |
56 |
printf("</center>\n"); |
printf("</center>\n"); |
65 |
|
|
66 |
// Table |
// Table |
67 |
printf("<table width = \"60%%\" border = \"1\" cellpadding =\"4\" class=\"backLight\">\n"); |
printf("<table width = \"60%%\" border = \"1\" cellpadding =\"4\" class=\"backLight\">\n"); |
68 |
printf("<tr><td><br>\n"); |
printf("<tr><td>\n"); |
69 |
printf("<strong>Messages:</strong><br>\n"); |
printf("<b>Messages:</b><br>\n"); |
70 |
printf("Please supply a Master Subject or Master Information Type."); |
printf("Please supply a Master Subject or Master Information Type."); |
71 |
printf("<br><br></td></tr></table>\n"); |
printf("<br><br></td></tr></table>\n"); |
72 |
adminReturn($sess_access_level); |
adminReturn($sess_access_level); |
86 |
$hits = 0; |
$hits = 0; |
87 |
|
|
88 |
// Look for exact matches |
// Look for exact matches |
89 |
$hits = recordCount($con, "resource", "title", $title, "A"); |
$hits = recordCount("resource", "title", $title, "A"); |
90 |
if ($hits > 0) { |
if ($hits > 0) { |
91 |
|
|
92 |
// Draw page header |
// Draw page header |
94 |
|
|
95 |
// Table |
// Table |
96 |
printf("<table width = \"60%%\" border = \"1\" cellpadding =\"4\" class=\"backLight\">\n"); |
printf("<table width = \"60%%\" border = \"1\" cellpadding =\"4\" class=\"backLight\">\n"); |
97 |
printf("<tr><td><br>\n"); |
printf("<tr><td>\n"); |
98 |
printf("<strong>Messages:</strong><br>\n"); |
printf("<b>Messages:</b><br>\n"); |
99 |
printf("A resource entitled '%s' was already found. No duplicates are allowed on the system.", $title); |
printf("A resource entitled '%s' was already found. No duplicates are allowed on the system.", $title); |
100 |
printf("<br><br></td></tr></table>\n"); |
printf("<br><br></td></tr></table>\n"); |
101 |
printf("</center>\n"); |
printf("</center>\n"); |
106 |
|
|
107 |
// No exact match. Look for fuzzy match. |
// No exact match. Look for fuzzy match. |
108 |
else { |
else { |
109 |
$hits = resTitlePat($con, $title); |
$hits = resTitlePat($title); |
110 |
if ($hits > 0) { |
if ($hits > 0) { |
111 |
|
|
112 |
printf("<br><br><center>\n"); |
printf("<br><br><center>\n"); |