| Current Path : /var/www/cesa.co.za/php/ |
| Current File : /var/www/cesa.co.za/php/practicenotes_list.php |
<?php
include_once("memberauth.php");
include_once('inc_db.php');
?>
<h1>Practice Notes for Members</h1>
<div style="float:right">
<div class="elementor-element elementor-element-9cbab9c elementor-align-center elementor-widget elementor-widget-button" data-id="9cbab9c" data-element_type="widget" data-widget_type="button.default">
<div class="elementor-widget-container">
<div class="elementor-button-wrapper">
<a href="/practice-notes-search" class="elementor-button-link elementor-button elementor-size-sm" role="button" style="background-color:#3D58AE">
<span class="elementor-button-content-wrapper">
<span class="elementor-button-icon elementor-align-icon-left">
<i aria-hidden="true" class="fas fa-search"></i> </span>
<span class="elementor-button-text">Search the Practice Notes</span>
</span>
</a>
</div>
</div>
</div>
</div>
<h2>Current Index of Practice Notes</h2>
<p><b><i>© Consulting Engineers South Africa. The practice notes remain the property of CESA and may not be distributed without authorisation.</i></b></p>
<p align="center">
<a href="/practice-notes-list-2021/?sort=ref">Sort by Reference Number</a> |
<a href="/practice-notes-list-2021/?sort=cat">Sort by Category</a>
</p>
<?php
LogUserActivity("List Practice Notes");
$sql = "SELECT * FROM PracticeNotes_2021 ";
if (isset($_REQUEST['sort']) && $_REQUEST['sort'] == 'ref') {
$sql .= "ORDER BY PNNo, Category, SubCategory, Title";
} else {
$sql .= "ORDER BY Category, SubCategory, PNNo, Title";
}
$result = mysqli_query($conni, $sql);
$result_rows = mysqli_num_rows($result);
if ($result_rows > 0) {
?>
<p>There are currently <b><?php echo $result_rows; ?> practice notes</b>. Archived practice notes are provided for background reading, but have been superseded by new versions.</p>
<?php
include("inc_practicenoteslist.php");
}
mysqli_free_result($result);