<? global $vis_language; ?>
<table cellpadding="3" cellspacing="3" width="100%">
    <tr><td width="150"><?= $vis_language['TXTAPI'] ?></td><td><select name="vis_api" id="vis_api_smsint_host" class="vis_input" onchange="vis_sms_switch_api(this)"><option value="clicktell_api">Clickatell</option><option value="two_sms"<?= ($sms_details['host_name']=='two_sms')?' selected="selected"':'' ?>>Two sms</option></select></td></tr>
    <tr><td><?= $vis_language['TXTUSERNAME'] ?></td><td><input type="text" name="vis_username" class="vis_input" value="<?= $sms_details['user_name'] ?>" /></td></tr>
    <tr><td><?= $vis_language['TXTPASSWORD'] ?></td><td><input name="vis_password" type="password" class="vis_input" value="<?= base64_decode($sms_details['db_password']) ?>" /></td></tr>
    <tr><td><?= $vis_language['TXTURL'] ?></td><td><input type="text" name="vis_baseurl" class="vis_input" value="<?= $sms_details['billing_url'] ?>" /></td></tr>
    <tr id="vis_api_id"><td><?= $vis_language['TXTAPIID'] ?></td><td><input type="text" name="vis_apiid" class="vis_input" value="<?= $sms_details['api_key'] ?>" /></td></tr>
    <tr><td colspan="2"><span class="vis_button" onclick="$(this).visExecution('submit_form',{'vis_module':'setting', 'vis_operation':'update_sms_details', 'vis_form':'vis_integration_form'})"><?php
    if($sms_details!=-1) {
        echo $vis_language['TXTUPDATE'].'</span>';
        echo '<span class="vis_button" onclick="$(this).visExecution(\'load_operations\',{\'vis_module\':\'setting\', \'vis_operation\':\'delete_twitter_details\', \'vis_integration_id\':'.$sms_details['integration_id'].'})">'.$vis_language['TXTDELETE'].'</span>'; ?></td></tr>
</table><input type="hidden" name="vis_integration_id" value="<?= ($sms_details==-1)?$sms_details:$sms_details['integration_id'] ?>" /><?
    }
    else echo $vis_language['TXTADD'].'</span>'; ?>