nb : "<{$block.module}>-" is not very useful in my opinion
# secure directory by disabling script execution
AddHandler cgi-script .php .pl .py .jsp .asp .htm .shtml .sh .cgi .php5 .php4 .php3 .phps
Options -ExecCGI -Indexes
Fatal error: Call to undefined function XoopsFormTextArea() in D:wampwwwmodulesgooglemapsadminindex.php on line 361
XOOPS Council will never support FORKS
Call to undefined function XoopsFormTextArea() in D:wampwwwmodulesgooglemapsadminindex.php on line 360
echo ""._MD_DESCRIPTIONC." ";
echo "";
xoopsCodeTarea("html",60,8);
xoopsSmilies("html");
echo " n";
/**
* Create text navigation
*
* @param integer $offset
* @return string
*/
function renderNav($offset = 4)
{
$ret = '';
if ($this->total <= $this->perpage) {
return $ret;
}
$total_pages = ceil($this->total / $this->perpage);
if ($total_pages > 1) {
$ret .= '';
$prev = $this->current - $this->perpage;
if ($prev >= 0) {
$ret .= '. $this->url . $prev . $this->extra . '">« ';
}
$counter = 1;
$current_page = intval(floor(($this->current + $this->perpage) / $this->perpage));
while ($counter <= $total_pages) {
if ($counter == $current_page) {
$ret .= '(' . $counter . ') ';
} elseif (($counter > $current_page - $offset && $counter < $current_page + $offset) || $counter == 1 || $counter == $total_pages) {
if ($counter == $total_pages && $current_page < $total_pages - $offset) {
$ret .= '... ';
}
$ret .= '. $this->url . (($counter - 1) * $this->perpage) . $this->extra . '">' . $counter . ' ';
if ($counter == 1 && $current_page > 1 + $offset) {
$ret .= '... ';
}
}
$counter ++;
}
$next = $this->current + $this->perpage;
if ($this->total > $next) {
$ret .= '. $this->url . $next . $this->extra . '">» ';
}
$ret .= ' ';
}
return $ret;
}
/**
* Create a navigational dropdown list
*
* @param boolean $showbutton Show the "Go" button?
* @return string
*/
function renderSelect($showbutton = false)
{
if ($this->total < $this->perpage) {
return;
}
$total_pages = ceil($this->total / $this->perpage);
$ret = '';
if ($total_pages > 1) {
$ret = ';
$ret .= ';
$counter = 1;
$current_page = intval(floor(($this->current + $this->perpage) / $this->perpage));
while ($counter <= $total_pages) {
if ($counter == $current_page) {
$ret .= '';
} else {
$ret .= '';
}
$counter ++;
}
$ret .= '';
if ($showbutton) {
$ret .= ' . _GO . '" />';
}
$ret .= '';
}
return $ret;
}
/**
* Create navigation with images
*
* @param integer $offset
* @return string
*/
function renderImageNav($offset = 4)
{
if ($this->total < $this->perpage) {
return;
}
$total_pages = ceil($this->total / $this->perpage);
$ret = '';
if ($total_pages > 1) {
$ret = '';
$prev = $this->current - $this->perpage;
if ($prev >= 0) {
$ret .= '. $this->url . $prev . $this->extra . '">< . XOOPS_URL . '/images/blank.gif" width="6" alt="" /> ';
} else {
$ret .= '. XOOPS_URL . '/images/blank.gif" width="6" alt="" /> ';
}
$counter = 1;
$current_page = intval(floor(($this->current + $this->perpage) / $this->perpage));
while ($counter <= $total_pages) {
if ($counter == $current_page) {
$ret .= '' . $counter . ' ';
} elseif (($counter > $current_page - $offset && $counter < $current_page + $offset) || $counter == 1 || $counter == $total_pages) {
if ($counter == $total_pages && $current_page < $total_pages - $offset) {
$ret .= '... ';
}
$ret .= '. $this->url . (($counter - 1) * $this->perpage) . $this->extra . '">' . $counter . ' ';
if ($counter == 1 && $current_page > 1 + $offset) {
$ret .= '... ';
}
}
$counter ++;
}
$next = $this->current + $this->perpage;
if ($this->total > $next) {
$ret .= '. XOOPS_URL . '/images/blank.gif" width="6" alt="" /> . $this->url . $next . $this->extra . '">> ';
} else {
$ret .= '. XOOPS_URL . '/images/blank.gif" width="6" alt="" /> ';
}
$ret .= '
';
}
return $ret;
}
}