81 |
. ")"; |
. ")"; |
82 |
|
|
83 |
// Write the new row to the database |
// Write the new row to the database |
84 |
if (mysql_tryquery($sql)) printf("Added Course Subject <b>%s</b>.", $coursesub_display); |
if (xx_tryquery($sql)) printf("Added Course Subject <b>%s</b>.", $coursesub_display); |
85 |
} |
} |
86 |
else printf("%s", $err_msg); |
else printf("%s", $err_msg); |
87 |
|
|
145 |
. "')"; |
. "')"; |
146 |
|
|
147 |
// Write the new row to the database |
// Write the new row to the database |
148 |
if (mysql_tryquery($sql)) printf("Added <b>%s</b> to the faculty table.", $faculty_name_display); |
if (xx_tryquery($sql)) printf("Added <b>%s</b> to the faculty table.", $faculty_name_display); |
149 |
} |
} |
150 |
|
|
151 |
else printf("%s", $err_msg); |
else printf("%s", $err_msg); |
206 |
. "')"; |
. "')"; |
207 |
|
|
208 |
// Write the new row to the database |
// Write the new row to the database |
209 |
if (mysql_tryquery($sql)) printf("Added Feature <b>%s</b>.", $feature_display); |
if (xx_tryquery($sql)) printf("Added Feature <b>%s</b>.", $feature_display); |
210 |
|
|
211 |
} |
} |
212 |
else printf("%s", $err_msg); |
else printf("%s", $err_msg); |
267 |
. ")"; |
. ")"; |
268 |
|
|
269 |
// Write the new row to the database |
// Write the new row to the database |
270 |
if (mysql_tryquery($sql)) printf("Added Information Type <b>%s</b>.", $infotype_display); |
if (xx_tryquery($sql)) printf("Added Information Type <b>%s</b>.", $infotype_display); |
271 |
} |
} |
272 |
else printf("%s", $err_msg); |
else printf("%s", $err_msg); |
273 |
|
|
342 |
. ")"; |
. ")"; |
343 |
|
|
344 |
// Write the new row to the database |
// Write the new row to the database |
345 |
mysql_tryquery ($sql); |
xx_tryquery ($sql); |
346 |
$libunit_id = mysql_insert_id(); |
$libunit_id = xx_insert_id(); |
347 |
formLibunit($libunit_id); |
formLibunit($libunit_id); |
348 |
} |
} |
349 |
else { |
else { |
438 |
. "')"; |
. "')"; |
439 |
|
|
440 |
// Write the new row to the database |
// Write the new row to the database |
441 |
if (mysql_tryquery($sql)) printf("Added <b>%s</b> location.", $location_display); |
if (xx_tryquery($sql)) printf("Added <b>%s</b> location.", $location_display); |
442 |
|
|
443 |
} |
} |
444 |
else printf("%s", $err_msg); |
else printf("%s", $err_msg); |
547 |
. "')"; |
. "')"; |
548 |
|
|
549 |
// Write the new record to the database |
// Write the new record to the database |
550 |
mysql_tryquery ($sql); |
xx_tryquery ($sql); |
551 |
$resource_id = mysql_insert_id(); |
$resource_id = xx_insert_id(); |
552 |
|
|
553 |
// Now set up this resource with its first mastersubject |
// Now set up this resource with its first mastersubject |
554 |
// Note that id#1 = N/A and id#2 = (All) are not used here. |
// Note that id#1 = N/A and id#2 = (All) are not used here. |
559 |
. $mastersubject_id |
. $mastersubject_id |
560 |
. ")"; |
. ")"; |
561 |
// Write the new res_mastersubject to the database |
// Write the new res_mastersubject to the database |
562 |
mysql_tryquery ($sql); |
xx_tryquery ($sql); |
563 |
} |
} |
564 |
|
|
565 |
// Call the formResource page back, in case user wants to edit further |
// Call the formResource page back, in case user wants to edit further |
652 |
. "')"; |
. "')"; |
653 |
|
|
654 |
// Write the new row to the database |
// Write the new row to the database |
655 |
mysql_tryquery ($sql); |
xx_tryquery ($sql); |
656 |
$service_id = mysql_insert_id(); |
$service_id = xx_insert_id(); |
657 |
formService($service_id); |
formService($service_id); |
658 |
} |
} |
659 |
|
|
723 |
. $newValue |
. $newValue |
724 |
. "')"; |
. "')"; |
725 |
|
|
726 |
mysql_tryquery ($sql); |
xx_tryquery ($sql); |
727 |
$new_id = mysql_insert_id(); |
$new_id = xx_insert_id(); |
728 |
printf("%s <b>%s</b> successfully added.", $display, $newValue_display); |
printf("%s <b>%s</b> successfully added.", $display, $newValue_display); |
729 |
} |
} |
730 |
else printf ("%s", $err_msg); |
else printf ("%s", $err_msg); |
809 |
. "')"; |
. "')"; |
810 |
|
|
811 |
// Write the new row to the database |
// Write the new row to the database |
812 |
mysql_tryquery ($sql); |
xx_tryquery ($sql); |
813 |
$staff_id = mysql_insert_id(); |
$staff_id = xx_insert_id(); |
814 |
|
|
815 |
// Call staff form back |
// Call staff form back |
816 |
formStaff($staff_id); |
formStaff($staff_id); |
884 |
. "')"; |
. "')"; |
885 |
|
|
886 |
// Write the new row to the database |
// Write the new row to the database |
887 |
if (mysql_tryquery($sql)) printf("Added <b>%s</b> style.", $style_title_display); |
if (xx_tryquery($sql)) printf("Added <b>%s</b> style.", $style_title_display); |
888 |
} |
} |
889 |
else printf("%s", $err_msg); |
else printf("%s", $err_msg); |
890 |
|
|
942 |
. ", now(), '" |
. ", now(), '" |
943 |
. $sess_staff_account |
. $sess_staff_account |
944 |
. "')"; |
. "')"; |
945 |
mysql_tryquery ($sql); |
xx_tryquery ($sql); |
946 |
$subject_id = mysql_insert_id(); |
$subject_id = xx_insert_id(); |
947 |
|
|
948 |
// Insert this staff person as an assigned staff member to this subject |
// Insert this staff person as an assigned staff member to this subject |
949 |
$sql = "INSERT INTO sub_staff (subject_id, staff_id) VALUES (" |
$sql = "INSERT INTO sub_staff (subject_id, staff_id) VALUES (" |
951 |
. ", " |
. ", " |
952 |
. $sess_staff_id |
. $sess_staff_id |
953 |
. ")"; |
. ")"; |
954 |
mysql_tryquery($sql); |
xx_tryquery($sql); |
955 |
formSubject($subject_id); |
formSubject($subject_id); |
956 |
} |
} |
957 |
|
|
1022 |
. "', '" |
. "', '" |
1023 |
. $vendor_status |
. $vendor_status |
1024 |
. "')"; |
. "')"; |
1025 |
if (mysql_tryquery($sql)) printf("Added Vendor <b>%s</b>.", $vendor_display); |
if (xx_tryquery($sql)) printf("Added Vendor <b>%s</b>.", $vendor_display); |
1026 |
|
|
1027 |
} |
} |
1028 |
else printf("%s", $err_msg); |
else printf("%s", $err_msg); |