|
|
@ -903,12 +903,18 @@ function hesk_msgToPlain($msg, $specialchars=0, $strip=1)
|
|
|
|
|
|
|
|
|
|
|
|
function hesk_showTopBar($page_title)
|
|
|
|
function hesk_showTopBar($page_title)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
echo $page_title;
|
|
|
|
|
|
|
|
} // END hesk_showTopBar()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function hesk_getLanguagesAsFormIfNecessary()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
global $hesk_settings, $hesklang;
|
|
|
|
global $hesk_settings, $hesklang;
|
|
|
|
|
|
|
|
|
|
|
|
if ($hesk_settings['can_sel_lang'])
|
|
|
|
if ($hesk_settings['can_sel_lang'])
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
$str = '<form method="get" action="" style="margin:0;padding:0;border:0;white-space:nowrap;">';
|
|
|
|
$str = '<form method="get" action="" role="form" style="margin:0;padding:0;border:0;white-space:nowrap;">';
|
|
|
|
|
|
|
|
|
|
|
|
if ( ! isset($_GET) )
|
|
|
|
if ( ! isset($_GET) )
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -924,15 +930,11 @@ function hesk_showTopBar($page_title)
|
|
|
|
$str .= '<input type="hidden" name="'.hesk_htmlentities($k).'" value="'.hesk_htmlentities($v).'" />';
|
|
|
|
$str .= '<input type="hidden" name="'.hesk_htmlentities($k).'" value="'.hesk_htmlentities($v).'" />';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$str .= '<select name="language" onchange="this.form.submit()">';
|
|
|
|
$str .= '<select name="language" class="form-control" onchange="this.form.submit()">';
|
|
|
|
$str .= hesk_listLanguages(0);
|
|
|
|
$str .= hesk_listLanguages(0);
|
|
|
|
$str .= '</select>';
|
|
|
|
$str .= '</select><br/>';
|
|
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
?>
|
|
|
|
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td class="headersm" style="padding-left: 0px;"><?php echo $page_title; ?></td>
|
|
|
|
|
|
|
|
<td class="headersm" style="padding-left: 0px;text-align: right">
|
|
|
|
|
|
|
|
<script language="javascript" type="text/javascript">
|
|
|
|
<script language="javascript" type="text/javascript">
|
|
|
|
document.write('<?php echo str_replace(array('"','<','=','>'),array('\42','\74','\75','\76'),$str . '</form>'); ?>');
|
|
|
|
document.write('<?php echo str_replace(array('"','<','=','>'),array('\42','\74','\75','\76'),$str . '</form>'); ?>');
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
@ -941,16 +943,9 @@ function hesk_showTopBar($page_title)
|
|
|
|
echo $str . '<input type="submit" value="'.$hesklang['go'].'" /></form>';
|
|
|
|
echo $str . '<input type="submit" value="'.$hesklang['go'].'" /></form>';
|
|
|
|
?>
|
|
|
|
?>
|
|
|
|
</noscript>
|
|
|
|
</noscript>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
}
|
|
|
|
{
|
|
|
|
|
|
|
|
echo $page_title;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} // END hesk_showTopBar()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function hesk_listLanguages($doecho = 1) {
|
|
|
|
function hesk_listLanguages($doecho = 1) {
|
|
|
|