<? global $vis_language; ?>
<table width="100%" cellspacing="5" cellpadding="3">
    <tr><td width="150"><? echo $vis_language['TXTHOSTNAME']; ?></td><td><input type="text" class="vis_input" name="vis_host" id="vis_host" value="<? echo $smtp_details['host_name']; ?>" /></td></tr>
    <tr><td><? echo$vis_language['TXTUSERNAME']; ?></td><td><input type="text" class="vis_input" name="vis_username" id="vis_username" value="<? echo $smtp_details['user_name']; ?>" /></td></tr>
    <tr><td><? echo$vis_language['TXTPASSWORD']; ?></td><td><input type="password" class="vis_input" name="vis_password" id="vis_password" value="<? echo $smtp_details['db_password']; ?>" /></td></tr>
    <tr><td><? echo $vis_language['TXTDATABASENAME']; ?></td><td><input type="text" class="vis_input" name="vis_dbname" id="vis_dbname" value="<? echo $smtp_details['db_name']; ?>" /></td></tr>
    <tr><td><? echo $vis_language['TXTTABLEPREFIX']; ?></td><td><input type="text" class="vis_input" name="vis_prefix" id="vis_prefix" value="<? echo $smtp_details['db_prefix']; ?>" /></td></tr>
    <tr><td><? echo $vis_language['TXTBILLURL']; ?></td><td><input type="text" class="vis_input" name="vis_url" id="vis_url" value="<? echo $smtp_details['billing_url']; ?>" /></td></tr>
    <tr><td><? echo $vis_language['TXTADMUSER']; ?></td><td><input type="text" class="vis_input" name="vis_admin" id="vis_admin" value="<? echo $smtp_details['admin_user']; ?>" /></td></tr>
    <tr><td><? echo $vis_language['TXTADMPASS']; ?></td><td><input type="password" class="vis_input" name="vis_admin_password" id="vis_admin_password" value="" /></td></tr>
    <tr><td><? echo $vis_language['TXTAPIKEY']; ?></td><td><input type="text" class="vis_input" name="vis_api" id="vis_api" value="<? echo $smtp_details['api_key']; ?>" /></td></tr>
    <tr><td><? echo $vis_language['TXTSTATUS']; ?></td><td><input type="radio"<? if($smtp_details['is_enabled']==1) echo ' checked="checked"'; ?> name="vis_status" id="vis_status_yes" value="1" /><label for="vis_status_yes" ><? echo $vis_language['TXTENABLE']; ?></label> <input type="radio" name="vis_status"<? if($smtp_details['is_enabled']!=1) echo ' checked="checked"'; ?> id="vis_status_no" value="0" /><label for="vis_status_no" ><? echo $vis_language['TXTDISABLE']; ?></label></td></tr>
    <tr><td colspan="2"><span class="vis_button" onclick="$(this).visExecution('submit_form',{'vis_module':'setting', 'vis_operation':'update_integration', 'vis_integration_id':1, 'vis_form':'vis_integration_form'})"><? echo (isset($smtp_details) && $smtp_details!=-1)?$vis_language['TXTUPDATE']:$vis_language['TXTADD']; ?></span></td></tr>
</table><input type="hidden" name="vis_type" value="1" id="vis_type" />