Location: PHPKode > projects > Joomla SEF / SEO - extending OpenSEF > admin/view.tpl.php
<table width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td width="100%">
      <div class="toolbar-box">
        <div class="toolbar-pad">
          <div class="toolbar" id="toolbar">
            <table class="toolbar">
              <tr>
                <td class="button" id="toolbar-publish">
                  <a class="toolbar" href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('Please select an item from the list to edit'); } else {submitbutton('publish');}">
                  <div class="icon-32-publish" title="Publish" type="Standard">
                  </div>
                  <?php echo _T( 'PUBLISH' ) ?>
                  </a>
                </td>
                <td class="button" id="toolbar-unpublish">
                  <a class="toolbar" href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('Please select an item from the list to edit'); } else {submitbutton('unpublish');}">
                  <div class="icon-32-unpublish" title="Unpublish" type="Standard">
                  </div>
                  <?php echo _T( 'UNPUBLISH' ) ?>
                  </a>
                </td>
                <td class="button" id="toolbar-new">
                  <a class="toolbar" href="javascript:submitbutton('new')">
                  <div class="icon-32-new" title="New" type="Standard">
                  </div>
                  <?php echo _T( 'NEW' ) ?>
                  </a>
                </td>
                <td class="button" id="toolbar-edit">
                  <a class="toolbar" href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('Please select an item from the list to edit'); } else {submitbutton('edit');}">
                  <div class="icon-32-edit" title="Edit" type="Standard">
                  </div>
                  <?php echo _T( 'EDIT' ) ?>
                  </a>
                </td>
                <td class="button" id="toolbar-delete">
                  <a class="toolbar" href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('Please select an item from the list to edit'); } else {submitbutton('remove');}">
                  <div class="icon-32-delete" title="Delete" type="Standard">
                  </div>
                  <?php echo _T( 'DELETE' ) ?>
                  </a>
                </td>
              </tr>
            </table>
          </div>
          <div class="header icon-48-<?php echo $this->icon; ?>">
            &nbsp;<?php echo ($this->title ? $this->title : '&nbsp;'._T( 'APP_NAME' )) ?>
          </div>
          <div class="clr"></div>
        </div>
        <div class="clr"></div>
      </div>
      <div class="spacer"></div>
      <div class="element-box">
        <div class="element-pad">
          <form action="index2.php?option=com_sef&act=<?php echo $this->act ?>" method="post" name="adminForm">
            <table width="97%">
              <tr>
                <td width="60%">
                  <?php if (isset( $this->ordersBY ) && isset( $this->ordersBys )): ?>
                      <?php
                        $html = xclHTML::select( $this->ordersBys, null, 'ordersBys', $this->ordersBY,
                          'onchange="document.adminForm.submit();"' );
                        echo $html->html;
                      ?>
                  <?php endif; ?>
                  <?php if (isset( $this->filter ) && isset( $this->filters )): ?>
                    <?php
                      $html = xclHTML::select( $this->filter, null, 'filter', $this->filters,
                        'onchange="document.adminForm.submit();"' );
                      echo $html->html;
                    ?>
                  <?php endif; ?>
                  <?php if (isset( $this->site_id ) && isset( $this->sites )): ?>
                    <?php
                    $html = xclHTML::select( $this->site_id, null, 'site_id', $this->sites,
                      'onchange="document.adminForm.submit();"' );
                    echo $html->html;
                    ?>
                  <?php endif; ?>
                </td>
                <?php if (isset( $this->search ) && $this->act != ''): ?>
                <td align="right" width="35%">
                  <?php echo _T( 'SEARCH' ) ?>
                  <input type="text" name="search" id="search" value="<?php echo $this->search ?>" class="text_area" onchange="document.adminForm.submit();" />
                  <input type="button" value="<?php echo _T( 'GO' ) ?>" onclick="this.form.submit();" />
                  <input type="button" value="<?php echo _T( 'RESET' ) ?>" onclick="getElementById('search').value='';this.form.submit();" />
                </td>
                <?php endif; ?>
              </tr>
            </table>
            <br />
            <table class="adminlist2" >
              <?php
              $headerRow = true;
              include( $this->loadTemplate( $this->rowTemplate ) );
              if (count( $this->rows ) > 0):
                for ($rowNo = 0, $n = count( $this->rows ); $rowNo < $n; $rowNo++) {
                  $row =& $this->rows[$rowNo];
                  mosMakeHtmlSafe( $row, ENT_QUOTES );
                  $headerRow = false;
                  include( $this->loadTemplate( $this->rowTemplate ) );
                }
              else:
              ?>
              <tr>
                <td colspan="11">
                  <?php
                    if ($this->search != '') {
                      $constant = 'NO_' . strtoupper( $this->act ) . '_FOUND';
                      echo( _T( $constant ) ? _T( $constant ) : _T( 'NO_RECORDS_FOUND' ) );
                    }
                    else {
                      $constant = 'NO_' . strtoupper( $this->act ) . '_EXIST';
                      echo( _T( $constant ) ? _T( $constant ) : _T( 'NO_RECORDS_EXIST' ) );
                    }
                  ?>
                </td>
              </tr>
              <?php
              endif;
              ?>
              <tfoot>
                <td colspan="11">
                   <?php if (is_object( $this->pageNav )) echo $this->pageNav->getListFooter(); ?>
                </td>
              </tfoot>
            </table>
          <input type="hidden" name="option" value="<?php echo $this->option ?>" />
          <input type="hidden" name="act" value="<?php echo $this->act ?>">
          <input type="hidden" name="task" value="<?php echo $this->task ?>" />
          <input type="hidden" name="boxchecked" value="0" />
          </form>
        </div>
      </div>
    </td>
  </tr>
</table>
Return current item: Joomla SEF / SEO - extending OpenSEF