<div id="stuff-bar">
<div id="pagenav">
            
            <?if (isset($prevurl)):?>
            <div class="firstpage">
              <a href="<?=$baseurl?>1">
                <i class="fas fa-angle-double-left"></i>
              </a>
            </div>
              <div class="navpage"><a href="<?=$prevurl?>"><i class="fas fa-chevron-circle-left"></i></a></div>
            <?endif?>


            <div id="currpage">
              <select id="pages" onchange="changepage()">
                  <?for ($i = 1; $i <= $count; $i++):?>
                    <?$selected = ($page == $i) ? ' selected' : ''?>
                     <option value="<?=$i?>"<?=$selected?>><?=$i?></option>
                  <?endfor?> 
              </select>
              <i class="fas fa-chevron-down"></i>
            </div>
            
            <?if (isset($nexturl)):?>
              <div class="navpage"><a href="<?=$nexturl?>"><i class="fas fa-chevron-circle-right"></i></a></div>
              <?if (isset($endurl)):?>
                <div class="navpage"><a href="<?=$endurl?>"><i class="fas fa-angle-double-right"></i></a></div>
              <?endif?>
            <?endif?>
            
           
</div>
</div>