Hi
Try this..
( make a backup up first... I won't be held responsible if it all goes wrong )
I've only quickly tested it, but it seems OK and should help you on your way !!
In viewticket.inc.php Find Line 27 & 28 and ADD this BETWEEN 27 & 28
LINE 27
?>
ADD
<script language="javascript">
var state = 'none';
function showhide(layer_ref) {
if (state == 'block') {
state = 'none';
}
else {
state = 'block';
}
if (document.all) { //IS IE 4 or 5 (or 6 beta)
eval( "document.all." + layer_ref + ".style.display = state");
}
if (document.layers) { //IS NETSCAPE 4 or below
document.layers.display = state;
}
if (document.getElementById &&!document.all) {
hza = document.getElementById(layer_ref);
hza.style.display = state;
}}
//
</script>
LINE 28
<table width="100%" cellpadding="2" cellspacing="0" border="0">
Find this around LINE 211:
<div align="left">
<a class="Icon note" href="#" onClick="toggleLayer('ticketnotes'); return false;">Internal Notes (<?=$notes?>)</a><br><br>
<div id='ticketnotes' style="display:<?=$display?>;text-align;">
<?
while($row=db_fetch_array($resp)) {?>
<table align="center" class="note" cellspacing="0" cellpadding="1" width="100%" border=0>
<tr><th><?=Format:($row)?> - posted by <?=$row?></th></tr>
<? if($row) {?>
<tr class="header"><td><?=Format:($row)?></td></tr>
<?} ?>
<tr><td><?=Format:($row)?></td></tr>
</table>
<?} ?>
</div>
</div>
AND REPLACE WITH :
<div align="left">
<h3>Internal Notes (<?=$notes?>)</h3>
<div id='ticketnotes' style="display:<?=$display?>;text-align;">
<?
while($row=db_fetch_array($resp)) {?>
<tr><th><a href="#" onclick="showhide('<?=$row?>');"><?=Format:($row)?> - posted by <?=$row?></a></th></tr>
<div id="<?=$row?>" style="display: none;" align="left">
<table align="center" class="note" cellspacing="0" cellpadding="1" width="100%" border=0>
<? if($row) {?>
<tr class="header"><td><?=Format:($row)?></td></tr>
<?} ?>
<tr><td><?=Format:($row)?></td></tr>
</table>
</div><br/>
<?} ?>
</div>
</div>
You may want to add a
to this line just to make the layout a little nicer: AROUND LINE 257
<STRONG><s>**</s><br/><e>**</e></STRONG><a class="Icon thread" href="#" onClick="toggleLayer('ticketthread'); return false;">Ticket Thread</a>