77 |
. $page_title |
. $page_title |
78 |
. "', 1, 0)"; |
. "', 1, 0)"; |
79 |
|
|
80 |
mysql_tryquery ($sql); |
xx_tryquery ($sql); |
81 |
$page_id = mysql_insert_id(); |
$page_id = xx_insert_id(); |
82 |
|
|
83 |
// If a coursescribe page -- write the row into the course table |
// If a coursescribe page -- write the row into the course table |
84 |
if ($pagetype_id == 3) { |
if ($pagetype_id == 3) { |
89 |
. "', 'Information Resources and Services for:')"; |
. "', 'Information Resources and Services for:')"; |
90 |
|
|
91 |
// Failed |
// Failed |
92 |
mysql_tryquery($sql); |
xx_tryquery($sql); |
93 |
} |
} |
94 |
|
|
95 |
} |
} |
105 |
LEFT JOIN course c using (page_id) |
LEFT JOIN course c using (page_id) |
106 |
WHERE p.page_id = " . $page_id; |
WHERE p.page_id = " . $page_id; |
107 |
|
|
108 |
$rs = mysql_tryquery($sql); |
$rs = xx_tryquery($sql); |
109 |
$row = mysql_fetch_array ($rs, MYSQL_ASSOC); |
$row = xx_fetch_array ($rs, xx_ASSOC); |
110 |
$page_title = $row["page_title"]; |
$page_title = $row["page_title"]; |
111 |
$pagetitle_style = $row["pagetitle_style"]; |
$pagetitle_style = $row["pagetitle_style"]; |
112 |
$style_id = $row["style_id"]; |
$style_id = $row["style_id"]; |
475 |
p.page_id = " |
p.page_id = " |
476 |
. $page_id |
. $page_id |
477 |
. " AND p.style_id = s.style_id"; |
. " AND p.style_id = s.style_id"; |
478 |
$rs = mysql_tryquery($sql); |
$rs = xx_tryquery($sql); |
479 |
$row = mysql_fetch_array ($rs, MYSQL_ASSOC); |
$row = xx_fetch_array ($rs, xx_ASSOC); |
480 |
$css_file = $row["css_file"]; |
$css_file = $row["css_file"]; |
481 |
|
|
482 |
if (strlen($css_file) > 0) { |
if (strlen($css_file) > 0) { |
581 |
WHERE page_id = " . $page_id |
WHERE page_id = " . $page_id |
582 |
. " ORDER BY e.element_order"; |
. " ORDER BY e.element_order"; |
583 |
|
|
584 |
$rs = mysql_tryquery($sql); |
$rs = xx_tryquery($sql); |
585 |
|
|
586 |
// Make a copy of the result set for cursor manipulation later |
// Make a copy of the result set for cursor manipulation later |
587 |
$rscopy = $rs; |
$rscopy = $rs; |
588 |
|
|
589 |
// If the previous didn't work, do this explicitly |
// If the previous didn't work, do this explicitly |
590 |
// $rscopy = mysql_tryquery($sql); |
// $rscopy = xx_tryquery($sql); |
591 |
|
|
592 |
// Create a positional variable, may contain an element or a row of add buttons |
// Create a positional variable, may contain an element or a row of add buttons |
593 |
$position = 1; |
$position = 1; |
688 |
|
|
689 |
|
|
690 |
// Cycle through each row of page elements |
// Cycle through each row of page elements |
691 |
while ($row = mysql_fetch_array ($rs, MYSQL_ASSOC)) { |
while ($row = xx_fetch_array ($rs, xx_ASSOC)) { |
692 |
|
|
693 |
// General element information |
// General element information |
694 |
$element_id = $row["element_id"]; |
$element_id = $row["element_id"]; |