<?
global $vis_language; ?>
<div class="vis_main_window vis_shadow vis_round_corner">
    <div class="vis_main_header"><?= $integation['user_name'] ?></div>
    <div class="vis_main_window_content vis_round_corner"><form name="vis_fb_integration_form" id="vis_fb_integration_form">
    <table cellpadding="3" cellspacing="3" width="100%">
        <tr><td width="150">Page</td><td><?= $integation['user_name'] ?></td></tr>
        <tr><td><?= $vis_language['TXTDEPARTMENT'] ?></td><td><select class="vis_input" name="vis_domain"><? for($i=0;$i<count($domain);$i++) echo '<option value="'.$domain[$i]['domain_id'].':'.$domain[$i]['department_id'].'"'.($domain[$i]['department_id']==$integation['department_id']?' selected="selected"':'').'>'.$domain[$i]['domain_name'].' : '.$domain[$i]['department_name'].'</option>'; ?></select></td></tr>
        <tr><td><?= $vis_language['TXTSTATUS']; ?></td><td><input name="vis_status" id="vis_status_yes" value="1"<? echo ($integation['is_enabled']==1)?' checked="checked"':'' ?> type="radio"><label for="vis_status_yes"><?= $vis_language['TXTENABLE']; ?></label> <input name="vis_status" id="vis_status_no" value="0"<? echo ($integation['is_enabled']==0)?' checked="checked"':'' ?>type="radio"><label for="vis_status_no"><?= $vis_language['TXTDISABLE']; ?></label></td></tr>
        <tr><td colspan="2"><div class="vis_seperator_horizontal"></div></td></tr>
        <tr><td colspan="2"><span onclick="$(this).visExecution('submit_form',{'vis_module':'setting', 'vis_operation':'update_fb_integraion', 'vis_form':'vis_fb_integration_form'})" class="vis_button"><?= $vis_language['TXTUPDATE'] ?></span></td></tr>
    </table><input type="hidden" name="vis_integration_id" value="<?= $integation['integration_id'] ?>" /></form>
</div></div>