芝麻web文件管理V1.00
编辑当前文件:/home/prismawe/clients/canaldegap.fr_old/lib/classes/module_support/modmisc.inc.php
GetAuthor() != '') { $str .= "
".lang('author').": " . $modinstance->GetAuthor(); if ($modinstance->GetAuthorEmail() != '') { $str .= ' <' . $modinstance->GetAuthorEmail() . '>'; } $str .= "
"; } $str .= "
".lang('version').": " .$modinstance->GetVersion() . "
"; if ($modinstance->GetChangeLog() != '') { $str .= "
".lang('changehistory').":
"; $str .= $modinstance->GetChangeLog() . '
'; } return $str; } function cms_module_GetHelpPage(&$modinstance) { $str = ''; @ob_start(); echo $modinstance->GetHelp(); $str .= @ob_get_contents(); @ob_end_clean(); $dependencies = $modinstance->GetDependencies(); if (count($dependencies) > 0 ) { $str .= '
'.lang('dependencies').'
'; $str .= '
'; foreach( $dependencies as $dep => $ver ) { $str .= '
'; $str .= $dep.' => '.$ver; $str .= '
'; } $str .= '
'; } $paramarray = $modinstance->GetParameters(); if (count($paramarray) > 0) { $str .= '
'.lang('parameters').'
'; $str .= '
'; foreach ($paramarray as $oneparam) { $str .= '
'; if ($oneparam['optional'] == true) { $str .= '
(optional)
'; } $str .= $oneparam['name'].'="'.$oneparam['default'].'" - '.$oneparam['help'].'
'; } $str .= '
'; } return $str; } function cms_module_CreatePagination(&$modinstance, $id, $action, $returnid, $page, $totalrows, $limit, $inline=false) { global $gCms; $config =& $gCms->GetConfig(); $goto = 'index.php'; if ($returnid == '') { $urlext = '?'.CMS_SECURE_PARAM_NAME.'='.$_SESSION[CMS_USER_KEY]; $goto = 'moduleinterface.php'.$urlext; } $link = '
1) { if($page != 1) { $pageprev = $page-1; $page_string .= $link.$pageprev."\">".lang('previous')."
"; } else { $page_string .= lang('previous')." "; } for($i = 1; $i <= $numofpages; $i++) { if($i == $page) { $page_string .= $i." "; } else { $page_string .= $link.$i."\">$i "; } } if (($totalrows - ($limit * $page)) > 0) { $pagenext = $page+1; $page_string .= $link.$pagenext."\">".lang('next').""; } else { $page_string .= lang('next')." "; } } return $page_string; } ?>