<? global $vis_language; ?>
<div class="vis_main_window vis_shadow vis_round_corner">
    <div class="vis_main_header"><? echo $message_info['vis_form_title']; ?></div>
    <div class="vis_main_window_content vis_round_corner" align="left">
    <form action="index.php" method="post" target="vis_hidden_frame" name="vis_tag_form" id="vis_tag_form">
    <table cellpadding="3" cellspacing="3" width="100%">
    <tr><td></td><td><input type="text" class="vis_input" name="vis_newtag" id="vis_newtag" > </td>
    <td><span class="vis_button" onclick="$(this).visExecution('submit_form',{'vis_module':'<? echo $message_info['vis_module']; ?>', 'vis_operation':'add_tag', 'vis_form':'vis_tag_form'})"><? echo $vis_language['TXTADD']; ?></span></td></tr>
        <tr><td colspan="3"><select name="vis_tag[]" id="vis_tag" class="vis_input" multiple="multiple" size="5"><?
        if($label_details!=-1) for($i=0;$i<count($label_details); $i++) {
            $sel='';
            for($j=0; $j<count($ticket_label); $j++) {
                if($label_details[$i]['label_id'] == $ticket_label[$j]['label_id'])
                $sel='selected="selected"';
            }
            echo '<option '.$sel.' value="'.$label_details[$i]['label_id'].'">'.$label_details[$i]['label_name'].'</option>';
        } ?> </select> </td></tr>
        <tr><td colspan="3"><div class="vis_seperator_horizontal"></div></td></tr>
        <tr><td colspan="3"><span class="vis_button" onclick="$(this).visExecution('submit_form',{'vis_module':'<? echo $message_info['vis_module']; ?>', 'vis_operation':'<? echo $message_info['vis_opeartion']; ?>', 'vis_form':'vis_tag_form'})"><? echo $vis_language['TXTUPDATE']; ?></span></td></tr>
    </table><input type="hidden" name="vis_ticket_id" value="<? echo $message_info['ticket_id']; ?>" /><input type="hidden" name="vis_client_id" value="<? echo $message_info['client_id']; ?>" />
</form></div>
</div>