<? global $vis_language; ?>
<div class="vis_main_window vis_shadow vis_round_corner"><table cellpadding="0" cellspacing="0" width="100%"><tr><td>
    <div class="vis_main_header"><?= $vis_language['TXTSOCIALMEDIA'] ?></div></td><td align="right">
    <span onclick="$('#vis_workpanel_div').visExecution('load_module','<?= $vis_language['TXTADDSOCIALMEDIA'] ?>',{'vis_module':'ticket','vis_operation':'new_twetter_search', 'cache':true})" class="vis-pointer"><span class="vis-icon vis-icon-plus" ></span> <? echo $vis_language['TXTADD']?></span></td></tr></table>
    <div class="vis_main_window_content vis_round_corner">
        <table width="100%" cellspacing="0" cellpadding="0" class="vis_list_table">
            <tr><th><?= $vis_language['TXTTITLE'] ?></th><th><?= $vis_language['TXTCHANNEL'] ?></th><th><?= $vis_language['TXTOPTIONS'] ?></th></tr> <?
            if($search_list!=-1) for($i=0;$i<count($search_list);$i++) { ?>
            <tr><td><?= $search_list[$i]['title']; ?></td><td>Twitter</td><td width="200"><span class="vis_button" onclick="$(this).visExecution('load_module', '<?= $search_list[$i]['title']; ?>' ,{'vis_module':'ticket', 'vis_operation':'search_media', 'vis_media_id':<?= $search_list[$i]['search_id'] ?>})"><?= $vis_language['TXTSEARCH']; ?></span> <?php
            if($search_list[$i]['staff_id']==VIS_STAFF_ID) { ?>
                <span class="vis_button" onclick="$(this).visExecution('load_operations', {'vis_module':'ticket', 'vis_operation':'delete_search_media', 'vis_media_id':<?= $search_list[$i]['search_id'] ?>})"><?= $vis_language['TXTDELETE']; ?></span> <?
            } ?></td></tr> <?
            } ?>
         </table>
     </div>
</div>