Location: PHPKode > scripts > Comments script with pagination > commincls/form_adminlog.php
<?php
// if Admin logged, output link to logout, else, output form to log in
if(isset($_SESSION['adminlog'])) echo '<a href="'.$_SERVER['SCRIPT_NAME'].'?logout=adminlog" id="logout_admin">LogOut</a>';
else echo '<div id="fadmin">'.
  "<h4 id=\"show_adminlog\">Administrator</h4>".
  '<form name="adminlog" id="adminlog" method="post" action="">
  <fieldset><legend align="right" id="adminlog_cls">'.$clsite['close'].'</legend>
    <input type="hidden" name="nrp" value="'.$objCom->currentpage.'" />'.$clsite['name'].'<br/><input type="text" name="adminname" size="15" /><br/>'.$clsite['pass'].'<br/><input type="password" name="adminpass" size="15" /><br/>
    <input type="button" name="adminlogbt" id="adminlogbt" value="Confirm" />
  </fieldset></form></div>';
Return current item: Comments script with pagination