Pas 3.6 > Pas / Sitetemplate / Report / Default Report.footer.tpl.report.xml

Questions? Need Help? Want to share? » PHP Forum
Script Name:
Pas 3.6

Download:
pas-3.6.zip

Category:
Development Tools

Archive Content:

Pas > Class > Mysql

Pas > Class

Pas > Class > Odbc

Pas > Class > Pgsql

Pas

Pas > Events

Pas > Registry

Pas > Scripts

Pas > Sitetemplate

Pas > Sitetemplate > Includes

Pas > Sitetemplate > Report

Pas > Templates

Pas > Templates > Packagedefaultstructure > Docs > Defaultstructure

Pas > Templates > Packagedefaultstructure

Default Report.footer.tpl.report.xml:

<?xml version="1.0"?>
  <report>
    <name><![CDATA[Name of the Report]]></name>
    <idreport><![CDATA[0]]></idreport>
    <descr><![CDATA[
 // Copyright 2001 - 2004 SQLFusion LLC          info <at> sqlfusion <dot> com
 This is the row report of the default tpl]]></descr>
    <numrow><![CDATA[0]]></numrow>
    <idquery><![CDATA[0]]></idquery>
    <header><![CDATA[
</table>
    ]]></header>
    <row><![CDATA[

    ]]></row>
    <footer><![CDATA[
 <div class="reportfooter">
<?php
$oevent->editParam("orderdir", $orderdir) ;
$oevent->editParam("orderfield", $orderfield) ;
$oevent->editParam("recordpos", 0) ;
  $totalrows = $this->getTotalRows($this->squery->table) ; 
if ($totalrows > $this->max_rows && $this->max_rows > 0) {
?>
<a href="<?php echo $oevent->getUrl()?>" class="reportnavlink">Start</a> 
<?php 
  $prevnum = $recordpos - $this->max_rows ;
  if($prevnum < 0) { $prevnum = 0 ; } ; 
  $oevent->editParam("recordpos", $prevnum) ;
?>
<a href="<?php echo $oevent->getUrl()?>" class="reportnavlink">Previous</a>
<?php 
  $nextnum = $recordpos + $this->max_rows ;
  if($nextnum >= $totalrows) {
    $nextnum = $totalrows - $this->max_rows;
  }
  $oevent->editParam("recordpos", $nextnum) ;
?>
<a href="<?php echo $oevent->getUrl()?>" class="reportnavlink">Next</a>
<?php 
  $lastnum = $totalrows - $this->max_rows ;
  $oevent->editParam("recordpos", $lastnum) ; 
?> 
<a href="<?php echo $oevent->getUrl();?>" class="reportnavlink">End</a> 
<?php  } ?>
  </div>
    ]]></footer>
    <recprow><![CDATA[0]]></recprow>
  </report>

Other Development Tools Scripts:

WebMaster Resources Home

©RingsWorld.com