#14 Added tooltips to various areas of the help desk
This commit is contained in:
parent
f0cc68fcb9
commit
2022bf7073
@ -166,17 +166,17 @@ myField.value += myValue;
|
||||
{
|
||||
if ($j == 1)
|
||||
{
|
||||
echo'<img src="../img/blank.gif" width="16" height="16" alt="" style="padding:3px;border:none;" /> <a href="manage_canned.php?a=order&replyid='.$mysaved['id'].'&move=15&token='.hesk_token_echo(0).'"><i class="fa fa-arrow-down" style="font-size: 14px; color: green"></i></a>';
|
||||
echo'<img src="../img/blank.gif" width="16" height="16" alt="" style="padding:3px;border:none;" /> <a href="manage_canned.php?a=order&replyid='.$mysaved['id'].'&move=15&token='.hesk_token_echo(0).'" data-toggle="tooltip" data-placement="top" title="'.$hesklang['move_dn'].'"><i class="fa fa-arrow-down" style="font-size: 14px; color: green"></i></a>';
|
||||
}
|
||||
elseif ($j == $num)
|
||||
{
|
||||
echo'<a href="manage_canned.php?a=order&replyid='.$mysaved['id'].'&move=-15&token='.hesk_token_echo(0).'"><i class="fa fa-arrow-up" style="font-size: 14px; color: green"></i></a> <img src="../img/blank.gif" width="16" height="16" alt="" style="padding:3px;border:none;" />';
|
||||
echo'<a href="manage_canned.php?a=order&replyid='.$mysaved['id'].'&move=-15&token='.hesk_token_echo(0).'" data-toggle="tooltip" data-placement="top" title="'.$hesklang['move_up'].'"><i class="fa fa-arrow-up" style="font-size: 14px; color: green"></i></a> <img src="../img/blank.gif" width="16" height="16" alt="" style="padding:3px;border:none;" />';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo'
|
||||
<a href="manage_canned.php?a=order&replyid='.$mysaved['id'].'&move=-15&token='.hesk_token_echo(0).'"><i class="fa fa-arrow-up" style="font-size: 14px; color: green"></i></a>
|
||||
<a href="manage_canned.php?a=order&replyid='.$mysaved['id'].'&move=15&token='.hesk_token_echo(0).'"><i class="fa fa-arrow-down" style="font-size: 14px; color: green"></i></a>
|
||||
<a href="manage_canned.php?a=order&replyid='.$mysaved['id'].'&move=-15&token='.hesk_token_echo(0).'" data-toggle="tooltip" data-placement="top" title="'.$hesklang['move_up'].'"><i class="fa fa-arrow-up" style="font-size: 14px; color: green"></i></a>
|
||||
<a href="manage_canned.php?a=order&replyid='.$mysaved['id'].'&move=15&token='.hesk_token_echo(0).'" data-toggle="tooltip" data-placement="top" title="'.$hesklang['move_dn'].'"><i class="fa fa-arrow-down" style="font-size: 14px; color: green"></i></a>
|
||||
';
|
||||
}
|
||||
}
|
||||
@ -186,7 +186,7 @@ myField.value += myValue;
|
||||
}
|
||||
|
||||
echo '
|
||||
<a href="manage_canned.php?a=remove&id='.$mysaved['id'].'&token='.hesk_token_echo(0).'" onclick="return confirm_delete();"><i class="fa fa-times" style="font-size: 14px; color: #FF0000"></i></a> </td>
|
||||
<a href="manage_canned.php?a=remove&id='.$mysaved['id'].'&token='.hesk_token_echo(0).'" onclick="return confirm_delete();" data-toggle="tooltip" data-placement="top" title="'.$hesklang['delete'].'"><i class="fa fa-times" style="font-size: 14px; color: #FF0000"></i></a> </td>
|
||||
</tr>
|
||||
';
|
||||
} // End while
|
||||
|
@ -241,17 +241,17 @@ else {return false;}
|
||||
}
|
||||
else
|
||||
{
|
||||
$remove_code=' <a href="manage_categories.php?a=remove&catid='.$mycat['id'].'&token='.hesk_token_echo(0).'" onclick="return confirm_delete();"><i class="fa fa-times" style="color: #FF0000; font-size: 14px;"></i></a>';
|
||||
$remove_code=' <a href="manage_categories.php?a=remove&catid='.$mycat['id'].'&token='.hesk_token_echo(0).'" onclick="return confirm_delete();" data-toggle="tooltip" data-placement="top" title="'.$hesklang['delete'].'"><i class="fa fa-times" style="color: #FF0000; font-size: 14px;"></i></a>';
|
||||
}
|
||||
|
||||
/* Is category private or public? */
|
||||
if ($mycat['type'])
|
||||
{
|
||||
$type_code = '<a href="manage_categories.php?a=type&s=0&catid='.$mycat['id'].'&token='.hesk_token_echo(0).'"><span class="glyphicon glyphicon-user" style="color: gray"></span></a>';
|
||||
$type_code = '<a href="manage_categories.php?a=type&s=0&catid='.$mycat['id'].'&token='.hesk_token_echo(0).'" data-toggle="tooltip" data-placement="top" title="'.$hesklang['cat_private'].'"><span class="glyphicon glyphicon-user" style="color: gray"></span></a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
$type_code = '<a href="manage_categories.php?a=type&s=1&catid='.$mycat['id'].'&token='.hesk_token_echo(0).'"><span class="glyphicon glyphicon-user" style="color: #0000FF"></span></a>';
|
||||
$type_code = '<a href="manage_categories.php?a=type&s=1&catid='.$mycat['id'].'&token='.hesk_token_echo(0).'" data-toggle="tooltip" data-placement="top" title="'.$hesklang['cat_public'].'"><span class="glyphicon glyphicon-user" style="color: #0000FF"></span></a>';
|
||||
}
|
||||
|
||||
/* Is auto assign enabled? */
|
||||
@ -259,11 +259,11 @@ else {return false;}
|
||||
{
|
||||
if ($mycat['autoassign'])
|
||||
{
|
||||
$autoassign_code = '<a href="manage_categories.php?a=autoassign&s=0&catid='.$mycat['id'].'&token='.hesk_token_echo(0).'"><i class="fa fa-bolt" style="font-size: 14px; color: orange"></i></a>';
|
||||
$autoassign_code = '<a href="manage_categories.php?a=autoassign&s=0&catid='.$mycat['id'].'&token='.hesk_token_echo(0).'" data-toggle="tooltip" data-placement="top" title="'.$hesklang['aaon'].'"><i class="fa fa-bolt" style="font-size: 14px; color: orange"></i></a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
$autoassign_code = '<a href="manage_categories.php?a=autoassign&s=1&catid='.$mycat['id'].'&token='.hesk_token_echo(0).'"><i class="fa fa-bolt" style="font-size: 14px; color: gray"></i></a>';
|
||||
$autoassign_code = '<a href="manage_categories.php?a=autoassign&s=1&catid='.$mycat['id'].'&token='.hesk_token_echo(0).'" data-toggle="tooltip" data-placement="top" title="'.$hesklang['aaoff'].'"><i class="fa fa-bolt" style="font-size: 14px; color: gray"></i></a>';
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -282,7 +282,7 @@ else {return false;}
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<a href="Javascript:void(0)" onclick="Javascript:hesk_window(\'manage_categories.php?a=linkcode&catid='.$mycat['id'].'&p='.$mycat['type'].'\',\'200\',\'500\')"><i class="fa fa-code" style="font-size: 14px; color: '. ($mycat['type'] ? 'gray' : 'green') . '"></i></a>
|
||||
<a href="Javascript:void(0)" onclick="Javascript:hesk_window(\'manage_categories.php?a=linkcode&catid='.$mycat['id'].'&p='.$mycat['type'].'\',\'200\',\'500\')" id="tooltip" data-toggle="tooltip" data-placement="top" title="'.$hesklang['geco'].'"><i class="fa fa-code" style="font-size: 14px; color: '. ($mycat['type'] ? 'gray' : 'green') . '"></i></a>
|
||||
' . $autoassign_code . '
|
||||
' . $type_code . ' ';
|
||||
|
||||
@ -290,17 +290,17 @@ else {return false;}
|
||||
{
|
||||
if ($j == 1)
|
||||
{
|
||||
echo'<img src="../img/blank.gif" width="16" height="16" alt="" style="padding:3px;border:none;" /> <a href="manage_categories.php?a=order&catid='.$mycat['id'].'&move=15&token='.hesk_token_echo(0).'"><i class="fa fa-arrow-down" style="font-size: 14px; color: green"></i></a>';
|
||||
echo'<img src="../img/blank.gif" width="16" height="16" alt="" style="padding:3px;border:none;" /> <a href="manage_categories.php?a=order&catid='.$mycat['id'].'&move=15&token='.hesk_token_echo(0).'"><i class="fa fa-arrow-down" style="font-size: 14px; color: green" data-toggle="tooltip" data-placement="top" title="'.$hesklang['move_dn'].'"></i></a>';
|
||||
}
|
||||
elseif ($j == $num)
|
||||
{
|
||||
echo'<a href="manage_categories.php?a=order&catid='.$mycat['id'].'&move=-15&token='.hesk_token_echo(0).'"><i class="fa fa-arrow-up" style="font-size: 14px; color: green"></i></a> <img src="../img/blank.gif" width="16" height="16" alt="" style="padding:3px;border:none;" />';
|
||||
echo'<a href="manage_categories.php?a=order&catid='.$mycat['id'].'&move=-15&token='.hesk_token_echo(0).'" data-toggle="tooltip" data-placement="top" title="'.$hesklang['move_up'].'"><i class="fa fa-arrow-up" style="font-size: 14px; color: green"></i></a> <img src="../img/blank.gif" width="16" height="16" alt="" style="padding:3px;border:none;" />';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo'
|
||||
<a href="manage_categories.php?a=order&catid='.$mycat['id'].'&move=-15&token='.hesk_token_echo(0).'"><i class="fa fa-arrow-up" style="font-size: 14px; color: green"></i></a>
|
||||
<a href="manage_categories.php?a=order&catid='.$mycat['id'].'&move=15&token='.hesk_token_echo(0).'"><i class="fa fa-arrow-down" style="font-size: 14px; color: green"></i></a>
|
||||
<a href="manage_categories.php?a=order&catid='.$mycat['id'].'&move=-15&token='.hesk_token_echo(0).'"><i class="fa fa-arrow-up" style="font-size: 14px; color: green" data-toggle="tooltip" data-placement="top" title="'.$hesklang['move_up'].'"></i></a>
|
||||
<a href="manage_categories.php?a=order&catid='.$mycat['id'].'&move=15&token='.hesk_token_echo(0).'" data-toggle="tooltip" data-placement="top" title="'.$hesklang['move_dn'].'"><i class="fa fa-arrow-down" style="font-size: 14px; color: green"></i></a>
|
||||
';
|
||||
}
|
||||
}
|
||||
|
@ -1729,21 +1729,21 @@ function manage_category() {
|
||||
{
|
||||
?>
|
||||
<img src="../img/blank.gif" width="16" height="16" alt="" style="padding:3px;border:none;" />
|
||||
<a href="manage_knowledgebase.php?a=order_article&id=<?php echo $article['id']; ?>&catid=<?php echo $catid; ?>&move=15&token=<?php hesk_token_echo(); ?>"><i class="fa fa-arrow-down" style="color:green;font-size:16px"></i></a>
|
||||
<a href="manage_knowledgebase.php?a=order_article&id=<?php echo $article['id']; ?>&catid=<?php echo $catid; ?>&move=15&token=<?php hesk_token_echo(); ?>" data-toggle="tooltip" data-placement="top" title="<?php echo $hesklang['move_dn']; ?>"><i class="fa fa-arrow-down" style="color:green;font-size:16px"></i></a>
|
||||
<?php
|
||||
}
|
||||
elseif ($k == $num)
|
||||
{
|
||||
?>
|
||||
<a href="manage_knowledgebase.php?a=order_article&id=<?php echo $article['id']; ?>&catid=<?php echo $catid; ?>&move=-15&token=<?php hesk_token_echo(); ?>"><i class="fa fa-arrow-up" style="font-size:16px;color:green"></i></a>
|
||||
<a href="manage_knowledgebase.php?a=order_article&id=<?php echo $article['id']; ?>&catid=<?php echo $catid; ?>&move=-15&token=<?php hesk_token_echo(); ?>" data-toggle="tooltip" data-placement="top" title="<?php echo $hesklang['move_up']; ?>"><i class="fa fa-arrow-up" style="font-size:16px;color:green"></i></a>
|
||||
<img src="../img/blank.gif" width="16" height="16" alt="" style="padding:3px;border:none;" />
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<a href="manage_knowledgebase.php?a=order_article&id=<?php echo $article['id']; ?>&catid=<?php echo $catid; ?>&move=-15&token=<?php hesk_token_echo(); ?>"><i class="fa fa-arrow-up" style="font-size:16px;color:green"></i></a>
|
||||
<a href="manage_knowledgebase.php?a=order_article&id=<?php echo $article['id']; ?>&catid=<?php echo $catid; ?>&move=15&token=<?php hesk_token_echo(); ?>"><i class="fa fa-arrow-down" style="color:green;font-size:16px"></i></a>
|
||||
<a href="manage_knowledgebase.php?a=order_article&id=<?php echo $article['id']; ?>&catid=<?php echo $catid; ?>&move=-15&token=<?php hesk_token_echo(); ?>" data-toggle="tooltip" data-placement="top" title="<?php echo $hesklang['move_up']; ?>"><i class="fa fa-arrow-up" style="font-size:16px;color:green"></i></a>
|
||||
<a href="manage_knowledgebase.php?a=order_article&id=<?php echo $article['id']; ?>&catid=<?php echo $catid; ?>&move=15&token=<?php hesk_token_echo(); ?>" data-toggle="tooltip" data-placement="top" title="<?php echo $hesklang['move_dn'] ?>"><i class="fa fa-arrow-down" style="color:green;font-size:16px"></i></a>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
@ -1752,10 +1752,10 @@ function manage_category() {
|
||||
echo '<img src="../img/blank.gif" width="16" height="16" alt="" style="padding:3px;border:none;vertical-align:text-bottom;" /> <img src="../img/blank.gif" width="16" height="16" alt="" style="padding:3px;border:none;vertical-align:text-bottom;" />';
|
||||
}
|
||||
?>
|
||||
<a href="manage_knowledgebase.php?a=sticky&s=<?php echo $article['sticky'] ? 0 : 1 ?>&id=<?php echo $article['id']; ?>&catid=<?php echo $catid; ?>&token=<?php hesk_token_echo(); ?>"><i class="fa fa-exclamation-triangle" style="font-size:16px;color:<?php if ( ! $article['sticky']) {echo 'gray';} else {echo 'orange';} ?>"></i></a>
|
||||
<a href="knowledgebase_private.php?article=<?php echo $article['id']; ?>&back=1<?php if ($article['type'] == 2) {echo '&draft=1';} ?>" target="_blank"><i class="fa fa-file-o" style="font-size:16px"></i></a>
|
||||
<a href="manage_knowledgebase.php?a=edit_article&id=<?php echo $article['id']; ?>"><i class="fa fa-pencil" style="color:orange;font-size:16px"></i></a>
|
||||
<a href="manage_knowledgebase.php?a=remove_article&id=<?php echo $article['id']; ?>&token=<?php hesk_token_echo(); ?>" onclick="return hesk_confirmExecute('<?php echo hesk_makeJsString($hesklang['del_art']); ?>');"><i class="fa fa-times" style="font-size:16px;color:red"></i></a> </td>
|
||||
<a href="manage_knowledgebase.php?a=sticky&s=<?php echo $article['sticky'] ? 0 : 1 ?>&id=<?php echo $article['id']; ?>&catid=<?php echo $catid; ?>&token=<?php hesk_token_echo(); ?>" data-toggle="tooltip" data-placement="top" title="<?php if (!$article['sticky']) {echo $hesklang['stickyon'];} else {echo $hesklang['stickyoff'];} ?>"><i class="fa fa-exclamation-triangle" style="font-size:16px;color:<?php if ( ! $article['sticky']) {echo 'gray';} else {echo 'orange';} ?>"></i></a>
|
||||
<a href="knowledgebase_private.php?article=<?php echo $article['id']; ?>&back=1<?php if ($article['type'] == 2) {echo '&draft=1';} ?>" target="_blank" data-toggle="tooltip" data-placement="top" title="<?php echo $hesklang['viewart'] ?>"><i class="fa fa-file-o" style="font-size:16px"></i></a>
|
||||
<a href="manage_knowledgebase.php?a=edit_article&id=<?php echo $article['id']; ?>" data-toggle="tooltip" data-placement="top" title="<?php echo $hesklang['edit'] ?>"><i class="fa fa-pencil" style="color:orange;font-size:16px"></i></a>
|
||||
<a href="manage_knowledgebase.php?a=remove_article&id=<?php echo $article['id']; ?>&token=<?php hesk_token_echo(); ?>" onclick="return hesk_confirmExecute('<?php echo hesk_makeJsString($hesklang['del_art']); ?>');" data-toggle="tooltip" data-placement="top" title="<?php echo $hesklang['delete'] ?>"><i class="fa fa-times" style="font-size:16px;color:red"></i></a> </td>
|
||||
</tr>
|
||||
<?php
|
||||
$j++;
|
||||
|
@ -376,22 +376,22 @@ while ($myuser = hesk_dbFetchAssoc($res))
|
||||
{
|
||||
if (isset($hesk_settings['users_online'][$myuser['id']]))
|
||||
{
|
||||
$myuser['name'] = '<i style="color: green" class="fa fa-circle"></i> ' . $myuser['name'];
|
||||
$myuser['name'] = '<i style="color: green" class="fa fa-circle" data-toggle="tooltip" data-placement="top" title="'.$hesklang['online'].'"></i> ' . $myuser['name'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$myuser['name'] = '<i style="color: gray" class="fa fa-circle"></i> ' . $myuser['name'];
|
||||
$myuser['name'] = '<i style="color: gray" class="fa fa-circle" data-toggle="tooltip" data-placement="top" title="'.$hesklang['offline'].'"></i> ' . $myuser['name'];
|
||||
}
|
||||
}
|
||||
|
||||
/* To edit yourself go to "Profile" page, not here. */
|
||||
if ($myuser['id'] == $_SESSION['id'])
|
||||
{
|
||||
$edit_code = '<a href="profile.php"><i style="font-size: 16px" class="fa fa-pencil"></i></a>';
|
||||
$edit_code = '<a href="profile.php"><i style="font-size: 16px" class="fa fa-pencil" data-toggle="tooltip" data-placement="top" title="'.$hesklang['edit'].'"></i></a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
$edit_code = '<a href="manage_users.php?a=edit&id='.$myuser['id'].'"><i style="font-size: 16px" class="fa fa-pencil"></i></a>';
|
||||
$edit_code = '<a href="manage_users.php?a=edit&id='.$myuser['id'].'" data-toggle="tooltip" data-placement="top" title="'.$hesklang['edit'].'"><i style="font-size: 16px" class="fa fa-pencil"></i></a>';
|
||||
}
|
||||
|
||||
if ($myuser['isadmin'])
|
||||
@ -410,7 +410,7 @@ while ($myuser = hesk_dbFetchAssoc($res))
|
||||
}
|
||||
else
|
||||
{
|
||||
$remove_code = ' <a href="manage_users.php?a=remove&id='.$myuser['id'].'&token='.hesk_token_echo(0).'" onclick="return confirm_delete();"><i style="font-size: 16px; color: red" class="fa fa-times"></i></a>';
|
||||
$remove_code = ' <a href="manage_users.php?a=remove&id='.$myuser['id'].'&token='.hesk_token_echo(0).'" onclick="return confirm_delete();" data-toggle="tooltip" data-placement="top" title="'.$hesklang['delete'].'"><i style="font-size: 16px; color: red" class="fa fa-times"></i></a>';
|
||||
}
|
||||
|
||||
/* Is auto assign enabled? */
|
||||
@ -418,11 +418,11 @@ while ($myuser = hesk_dbFetchAssoc($res))
|
||||
{
|
||||
if ($myuser['autoassign'])
|
||||
{
|
||||
$autoassign_code = '<a href="manage_users.php?a=autoassign&s=0&id='.$myuser['id'].'&token='.hesk_token_echo(0).'"><i style="color: orange; font-size: 16px" class="fa fa-bolt"></i></a>';
|
||||
$autoassign_code = '<a href="manage_users.php?a=autoassign&s=0&id='.$myuser['id'].'&token='.hesk_token_echo(0).'" data-toggle="tooltip" data-placement="top" title="'.$hesklang['aaon'].'"><i style="color: orange; font-size: 16px" class="fa fa-bolt"></i></a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
$autoassign_code = '<a href="manage_users.php?a=autoassign&s=1&id='.$myuser['id'].'&token='.hesk_token_echo(0).'"><i style="color: gray; font-size: 16px" class="fa fa-bolt"></i></a>';
|
||||
$autoassign_code = '<a href="manage_users.php?a=autoassign&s=1&id='.$myuser['id'].'&token='.hesk_token_echo(0).'" data-toggle="tooltip" data-placement="top" title="'.$hesklang['aaoff'].'"><i style="color: gray; font-size: 16px" class="fa fa-bolt"></i></a>';
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -442,7 +442,7 @@ EOC;
|
||||
if ($hesk_settings['rating'])
|
||||
{
|
||||
$alt = $myuser['rating'] ? sprintf($hesklang['rated'], sprintf("%01.1f", $myuser['rating']), ($myuser['ratingneg']+$myuser['ratingpos'])) : $hesklang['not_rated'];
|
||||
echo '<td><img src="../img/star_'.(hesk_round_to_half($myuser['rating'])*10).'.png" width="85" height="16" alt="'.$alt.'" title="'.$alt.'" border="0" style="vertical-align:text-bottom" /> </td>';
|
||||
echo '<td><img src="../img/star_'.(hesk_round_to_half($myuser['rating'])*10).'.png" width="85" height="16" alt="'.$alt.'" data-toggle="tooltip" data-placement="top" title="'.$alt.'" border="0" style="vertical-align:text-bottom" /> </td>';
|
||||
}
|
||||
|
||||
echo <<<EOC
|
||||
@ -455,7 +455,7 @@ EOC;
|
||||
</table>
|
||||
<?php if ($hesk_settings['online'])
|
||||
{
|
||||
echo ' <i style="color: green" class="fa fa-circle"></i> Online <i style="color: gray" class="fa fa-circle"></i> Offline';
|
||||
echo ' <i style="color: green" class="fa fa-circle"></i> '.$hesklang['online'].' <i style="color: gray" class="fa fa-circle"></i> '.$hesklang['offline'];
|
||||
}?>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -48,6 +48,7 @@ if (!defined('IN_SCRIPT')) {die('Invalid attempt');}
|
||||
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
|
||||
<script src="<?php echo HESK_PATH; ?>js/jquery-1.10.2.min.js"></script>
|
||||
<script language="Javascript" type="text/javascript" src="<?php echo HESK_PATH; ?>hesk_javascript_v25.js"></script>
|
||||
<script language="Javascript" type="text/javascript" src="<?php echo HESK_PATH; ?>js/hesk-ui-javascript.js"></script>
|
||||
<script language="Javascript" type="text/javascript" src="<?php echo HESK_PATH; ?>js/bootstrap.min.js"></script>
|
||||
|
||||
<?php
|
||||
|
@ -313,18 +313,18 @@ if ($total > 0)
|
||||
switch ($ticket['priority'])
|
||||
{
|
||||
case 0:
|
||||
$ticket['priority']='<span style="color: red; font-size:1.3em" class="glyphicon glyphicon-flag"></span>';
|
||||
$ticket['priority']='<span style="color: red; font-size:1.3em" class="glyphicon glyphicon-flag" data-toggle="tooltip" data-placement="top" title="'.$hesklang['critical'].'"></span>';
|
||||
$color = 'danger';
|
||||
break;
|
||||
case 1:
|
||||
$ticket['priority']='<span style="color: orange; font-size:1.3em" class="glyphicon glyphicon-flag"></span>';
|
||||
$ticket['priority']='<span style="color: orange; font-size:1.3em" class="glyphicon glyphicon-flag" data-toggle="tooltip" data-placement="top" title="'.$hesklang['high'].'"></span>';
|
||||
$color = 'warning';
|
||||
break;
|
||||
case 2:
|
||||
$ticket['priority']='<span style="color: green; font-size:1.3em" class="glyphicon glyphicon-flag"></span>';
|
||||
$ticket['priority']='<span style="color: green; font-size:1.3em" class="glyphicon glyphicon-flag" data-toggle="tooltip" data-placement="top" title="'.$hesklang['medium '].'"></span>';
|
||||
break;
|
||||
default:
|
||||
$ticket['priority']='<span style="color: blue; font-size:1.3em" class="glyphicon glyphicon-flag"></span>';
|
||||
$ticket['priority']='<span style="color: blue; font-size:1.3em" class="glyphicon glyphicon-flag" data-toggle="tooltip" data-placement="top" title="'.$hesklang['low'].'"></span>';
|
||||
}
|
||||
|
||||
$ticket['lastchange']=hesk_time_since(strtotime($ticket['lastchange']));
|
||||
|
9
js/hesk-ui-javascript.js
Normal file
9
js/hesk-ui-javascript.js
Normal file
@ -0,0 +1,9 @@
|
||||
//-- Activate anything Hesk UI needs, such as tooltips.
|
||||
var loadJquery = function()
|
||||
{
|
||||
//-- Activate tooltips
|
||||
$('[data-toggle="tooltip"]').tooltip();
|
||||
};
|
||||
|
||||
|
||||
jQuery(document).ready(loadJquery);
|
Loading…
x
Reference in New Issue
Block a user