Location: PHPKode > projects > EXtensible Production Suite (XPS) > xpsdev/install/templates/check_db_exists.tpl
<h2>{API->get_label label_id='lbl_check_db_exists'}</h2>

<div align="center">
    <table border="0" cellspacing="0" cellpadding="3" class="center">
        <thead>
            <tr>
                <th width="40%">{API->get_label label_id='lbl_process'}</th>
                <th>{API->get_label label_id='lbl_message'}</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>
                    {API->get_label label_id='lbl_check_db_exists'}
                </td>
                <td>
                    {if $error_count == 0}
                        {API->get_message message_id='database_exists'}
                        <input type="checkbox" name="cbx_drop_db" value="{API->get_label label_id='lbl_btn_drop'}" onclick="javascript:drop_database(this.form);" />
                    {else}
                        {API->get_message message_id='database_does_not_exist'}
                     {/if}
                </td>
            </tr>
        </tbody>
    </table>
</div>
<div id="results">
</div>
<input type="hidden" name="f" value="{if $error_count == 0}finalize_site_config{else}install_database{/if}" />

<script language="javascript">
    function drop_database(frm)
    {ldelim}
        if(frm.cbx_drop_db.checked == true)
        {ldelim}
            frm.f.value = 'drop_database';
        {rdelim}
        else
        {ldelim}
             frm.f.value = '{if $error_count == 0}finalize_site_config{else}install_database{/if}';
        {rdelim}
    {rdelim}
</script>
Return current item: EXtensible Production Suite (XPS)