
Public Member Functions | |
| getLimitBox () | |
| writeLimitBox () | |
| writePagesCounter () | |
| writePagesLinks ($link='') | |
| getPagesLinks ($link='') | |
| getListFooter () | |
| rowNumber ($i) | |
| orderUpIcon ($i, $condition=true, $task='orderup', $alt='Move Up') | |
| noJavaOrderUpIcon ($i, $condition=true, $url) | |
| orderDownIcon ($i, $n, $condition=true, $task='orderdown', $alt='Move Down') | |
| noJavaOrderDownIcon ($i, $n, $condition=true, $url) | |
Protected Attributes | |
| $isAdmin = true | |
Definition at line 42 of file aliroAdminPageNav.php.
| aliroAdminPageNav::getLimitBox | ( | ) |
Makes the html for selection of number of lines per page
Definition at line 48 of file aliroAdminPageNav.php.
References aliroHTML::getInstance(), aliroAbstractPageNav::makeLimitSteps(), name, and T_().
Referenced by getListFooter(), and writeLimitBox().
00048 { 00049 $legend = T_('Refresh page'); 00050 $html = aliroHTML::getInstance()->selectList($this->makeLimitSteps(), 'limit', 'class="inputbox" size="1" onchange="document.adminForm.submit();"', 'value', 'text', $this->limit); 00051 $html .= <<<PER_PAGE 00052 00053 <input type="hidden" name="limitstart" value="$this->limitstart" /> 00054 <noscript><input type="submit" class="button" value="$legend" /></noscript> 00055 00056 PER_PAGE; 00057 return $html; 00058 }
| aliroAdminPageNav::writeLimitBox | ( | ) |
Definition at line 60 of file aliroAdminPageNav.php.
References getLimitBox().
00060 { 00061 echo $this->getLimitBox(); 00062 }
| aliroAdminPageNav::writePagesCounter | ( | ) |
Definition at line 64 of file aliroAdminPageNav.php.
References aliroAbstractPageNav::getPagesCounter().
00064 { 00065 echo $this->getPagesCounter(); 00066 }
| aliroAdminPageNav::writePagesLinks | ( | $ | link = '' |
) |
Writes the html for the pages counter, eg, Results 1-10 of x
Reimplemented from aliroAbstractPageNav.
Definition at line 71 of file aliroAdminPageNav.php.
References getPagesLinks().
00071 { 00072 echo $this->getPagesLinks($link); 00073 }
| aliroAdminPageNav::getPagesLinks | ( | $ | link = '' |
) |
The html links for pages, eg, previous, next, 1 2 3 ... x
Definition at line 77 of file aliroAdminPageNav.php.
References aliroAdminRequest::getInstance().
Referenced by getListFooter(), and writePagesLinks().
00077 { 00078 if (!$link) $link = aliroAdminRequest::getInstance()->simpleURL(); 00079 return parent::writePagesLinks ($link); 00080 }
| aliroAdminPageNav::getListFooter | ( | ) |
Definition at line 82 of file aliroAdminPageNav.php.
References getLimitBox(), aliroAbstractPageNav::getPagesCounter(), getPagesLinks(), and T_().
00082 { 00083 $display = T_('Display #'); 00084 $html = <<<LIST_FOOTER 00085 00086 <table class="adminlist"> 00087 <thead> 00088 <tr> 00089 <th colspan="3"> 00090 {$this->getPagesLinks()} 00091 </th> 00092 </tr> 00093 </thead> 00094 <tbody> 00095 <tr> 00096 <td nowrap="nowrap" width="48%" class="right"> 00097 $display 00098 </td> 00099 <td> 00100 {$this->getLimitBox()} 00101 </td> 00102 <td nowrap="nowrap" width="48%"> 00103 {$this->getPagesCounter()} 00104 </td> 00105 </tr> 00106 </tbody> 00107 </table> 00108 00109 LIST_FOOTER; 00110 00111 return $html; 00112 }
| aliroAdminPageNav::rowNumber | ( | $ | i | ) |
| aliroAdminPageNav::orderUpIcon | ( | $ | i, | |
| $ | condition = true, |
|||
| $ | task = 'orderup', |
|||
| $ | alt = 'Move Up' | |||
| ) |
| int | The row index | |
| string | The task to fire | |
| string | The alt text for the icon |
Definition at line 126 of file aliroAdminPageNav.php.
00126 { 00127 if (($i > 0 || ($i+$this->limitstart > 0)) && $condition) { 00128 return '<a href="#reorder" onclick="return listItemTask(\'cb'.$i.'\',\''.$task.'\')" title="'.$alt.'"> 00129 <img src="images/uparrow.png" width="12" height="12" border="0" alt="'.$alt.'" /> 00130 </a>'; 00131 } else { 00132 return ' '; 00133 } 00134 }
| aliroAdminPageNav::noJavaOrderUpIcon | ( | $ | i, | |
| $ | condition = true, |
|||
| $ | url | |||
| ) |
Definition at line 136 of file aliroAdminPageNav.php.
00136 { 00137 if (($i > 0 OR ($i+$this->limitstart > 0)) AND $condition) { 00138 $alt = T_('Move up'); 00139 return <<<ORDERUP 00140 <a href="$url" title="$alt"> 00141 <img src="images/uparrow.png" width="12" height="12" border="0" alt="$alt" /> 00142 </a> 00143 ORDERUP; 00144 } else { 00145 return ' '; 00146 } 00147 }
| aliroAdminPageNav::orderDownIcon | ( | $ | i, | |
| $ | n, | |||
| $ | condition = true, |
|||
| $ | task = 'orderdown', |
|||
| $ | alt = 'Move Down' | |||
| ) |
| int | The row index | |
| int | The number of items in the list | |
| string | The task to fire | |
| string | The alt text for the icon |
Definition at line 156 of file aliroAdminPageNav.php.
00156 { 00157 if (($i < $n-1 || $i+$this->limitstart < $this->total-1) && $condition) { 00158 return '<a href="#reorder" onclick="return listItemTask(\'cb'.$i.'\',\''.$task.'\')" title="'.$alt.'"> 00159 <img src="images/downarrow.png" width="12" height="12" border="0" alt="'.$alt.'" /> 00160 </a>'; 00161 } else { 00162 return ' '; 00163 } 00164 }
| aliroAdminPageNav::noJavaOrderDownIcon | ( | $ | i, | |
| $ | n, | |||
| $ | condition = true, |
|||
| $ | url | |||
| ) |
Definition at line 166 of file aliroAdminPageNav.php.
00166 { 00167 if (($i < $n-1 OR $i+$this->limitstart < $this->total-1) AND $condition) { 00168 $alt = T_('Move down'); 00169 return <<<ORDERDOWN 00170 <a href="$url" title="$alt"> 00171 <img src="images/downarrow.png" width="12" height="12" border="0" alt="$alt" /> 00172 </a> 00173 ORDERDOWN; 00174 } else { 00175 return ' '; 00176 } 00177 }
aliroAdminPageNav::$isAdmin = true [protected] |
Definition at line 43 of file aliroAdminPageNav.php.
1.5.5