+ Add commonModel::printBack method, it's used in crystal report.
This commit is contained in:
@@ -3395,6 +3395,27 @@ class commonModel extends model
|
||||
echo '<script>$("#userDropDownMenu").on("click", function(){$(this).removeClass("dropdown-hover");});$("#userDropDownMenu").on("hover", function(){$(this).next().removeClass("open");$(this).addClass("dropdown-hover");});</script>';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 打印返回链接。
|
||||
* Print back link.
|
||||
*
|
||||
* @param string $backLink
|
||||
* @param string $class
|
||||
* @param string $misc
|
||||
* @static
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
static public function printBack($backLink, $class = '', $misc = '')
|
||||
{
|
||||
global $lang;
|
||||
if(isonlybody()) return false;
|
||||
|
||||
if(empty($class)) $class = 'btn';
|
||||
$title = $lang->goback . $lang->backShortcutKey;
|
||||
echo html::a($backLink, '<i class="icon-goback icon-back"></i> ' . $lang->goback, '', "id='back' class='{$class}' title={$title} $misc");
|
||||
}
|
||||
}
|
||||
|
||||
class common extends commonModel
|
||||
|
||||
Reference in New Issue
Block a user