Rev 364 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 364 | Rev 366 | ||
---|---|---|---|
Line 423... | Line 423... | ||
423 | 423 | ||
424 | if ($parent) { |
424 | if ($parent) { |
425 | if ($parent->isRoot()) { |
425 | if ($parent->isRoot()) { |
426 | 426 | ||
427 | $parent_link_text = $parent->objectTypeTitle(); |
427 | $parent_link_text = $parent->objectTypeTitle(); |
428 | $out['text'] = '<p><a '.OIDplus::gui()->link($parent->root()).'><img src="img/arrow_back.png" width="16"> '._L('Parent node: %1',htmlentities($parent_link_text)).'</a></p>' . $out['text']; |
428 | $out['text'] = '<p><a '.OIDplus::gui()->link($parent->root()).'><img src="img/arrow_back.png" width="16" alt="'._L('Go back').'"> '._L('Parent node: %1',htmlentities($parent_link_text)).'</a></p>' . $out['text']; |
429 | 429 | ||
430 | } else { |
430 | } else { |
431 | $res_ = OIDplus::db()->query("select * from ###objects where id = ?", array($parent->nodeId())); |
431 | $res_ = OIDplus::db()->query("select * from ###objects where id = ?", array($parent->nodeId())); |
432 | if ($res_->num_rows() > 0) { |
432 | if ($res_->num_rows() > 0) { |
433 | $row_ = $res_->fetch_array(); |
433 | $row_ = $res_->fetch_array(); |
Line 442... | Line 442... | ||
442 | } |
442 | } |
443 | } |
443 | } |
444 | 444 | ||
445 | $parent_link_text = empty($parent_title) ? explode(':',$parent->nodeId())[1] : $parent_title.' ('.explode(':',$parent->nodeId())[1].')'; |
445 | $parent_link_text = empty($parent_title) ? explode(':',$parent->nodeId())[1] : $parent_title.' ('.explode(':',$parent->nodeId())[1].')'; |
446 | 446 | ||
447 | $out['text'] = '<p><a '.OIDplus::gui()->link($parent->nodeId()).'><img src="img/arrow_back.png" width="16"> '._L('Parent node: %1',htmlentities($parent_link_text)).'</a></p>' . $out['text']; |
447 | $out['text'] = '<p><a '.OIDplus::gui()->link($parent->nodeId()).'><img src="img/arrow_back.png" width="16" alt="'._L('Go back').'"> '._L('Parent node: %1',htmlentities($parent_link_text)).'</a></p>' . $out['text']; |
448 | } else { |
448 | } else { |
449 | $out['text'] = ''; |
449 | $out['text'] = ''; |
450 | } |
450 | } |
451 | } |
451 | } |
452 | } else { |
452 | } else { |
453 | $parent_link_text = _L('Go back to front page'); |
453 | $parent_link_text = _L('Go back to front page'); |
454 | $out['text'] = '<p><a '.OIDplus::gui()->link('oidplus:system').'><img src="img/arrow_back.png" width="16"> '.htmlentities($parent_link_text).'</a></p>' . $out['text']; |
454 | $out['text'] = '<p><a '.OIDplus::gui()->link('oidplus:system').'><img src="img/arrow_back.png" width="16" alt="'._L('Go back').'"> '.htmlentities($parent_link_text).'</a></p>' . $out['text']; |
455 | } |
455 | } |
456 | 456 | ||
457 | // --- |
457 | // --- |
458 | 458 | ||
459 | if (!is_null($row) && isset($row['description'])) { |
459 | if (!is_null($row) && isset($row['description'])) { |