* finish task #1576.

This commit is contained in:
wyd621
2013-07-18 08:30:14 +08:00
parent e4405b929e
commit 4038b40e74
36 changed files with 255 additions and 257 deletions

View File

@@ -444,6 +444,7 @@ EOT;
public static function backButton($misc = '')
{
global $lang;
if(isonlybody()) return false;
return "<input type='button' onClick='javascript:history.go(-1);' value='{$lang->goback}' class='button-b' $misc/>";
}
@@ -474,7 +475,9 @@ EOT;
*/
public static function linkButton($label = '', $link = '', $target = 'self', $misc = '')
{
global $config;
global $config, $lang;
if(isonlybody() and $lang->goback == $label) return false;
/* if page has onlybody param then add this param in all link. the param hide header and footer. */
if(strpos($link, 'onlybody=') === false and isonlybody())
@@ -737,7 +740,8 @@ EOT;
static public function closeColorbox($window = 'self')
{
$js = self::start();
$js .= "$window.$.colorbox.close()";
$js .= "if($window.location.href == self.location.href){ $window.window.close();}";
$js .= "else{ $window.$.cookie('selfClose', 1);$window.$.colorbox.close();}";
$js .= self::end();
return $js;
}