/[libdata]/branches/paul/admin/new_resource.phtml
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /branches/paul/admin/new_resource.phtml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 66 by dpavlin, Thu Jan 15 14:22:44 2004 UTC revision 67 by dpavlin, Thu Mar 18 19:24:54 2004 UTC
# Line 10  require_once ($GLOBAL_ADMIN_INC."app_con Line 10  require_once ($GLOBAL_ADMIN_INC."app_con
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    
# Line 39  if(isset($libsession) && $sess_access_le Line 49  if(isset($libsession) && $sess_access_le
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");
# Line 55  if(isset($libsession) && $sess_access_le Line 65  if(isset($libsession) && $sess_access_le
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);
# Line 76  if(isset($libsession) && $sess_access_le Line 86  if(isset($libsession) && $sess_access_le
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
# Line 84  if(isset($libsession) && $sess_access_le Line 94  if(isset($libsession) && $sess_access_le
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");
# Line 96  if(isset($libsession) && $sess_access_le Line 106  if(isset($libsession) && $sess_access_le
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");

Legend:
Removed from v.66  
changed lines
  Added in v.67

  ViewVC Help
Powered by ViewVC 1.1.26