<?php

/**

* @project ApPHP Hotel Site

* @copyright (c) 2010 - 2013 ApPHP

* @author ApPHP <info@apphp.com>

* @license http://www.apphp.com/php-hotel-site/index.php?page=template_license

*/



// *** Make sure the file isn't accessed directly

defined('APPHP_EXEC') or die('Restricted Access');

//--------------------------------------------------------------------------



?>

<footer class="row-fluid">

    <div class="ups"></div>

    

    <div class="bottom">

        <div class="container">

                           
            <section class="row row-bottom">

                <div class="leftpart">

                    <?php echo $footer_text = $objSiteDescription->DrawFooter(false); ?>

                </div>

                

                <div class="rightpart">

                    <form name="frmLogout" id="frmLogout" action="<?php echo APPHP_BASE; ?>index.php" method="post">

                    <?php if($objLogin->IsLoggedIn()){ ?>

                        <?php draw_hidden_field('submit_logout', 'logout'); ?>	

                        <a class="main_link" href="javascript:appFormSubmit('frmLogout');"><?php echo _BUTTON_LOGOUT; ?></a>

                    <?php }else{ ?>

                        <?php

                            if(Modules::IsModuleInstalled('customers')){

                                if(ModulesSettings::Get('customers', 'allow_login') == 'yes'){

                                    echo prepare_permanent_link('index.php?customer=login', _CUSTOMER_LOGIN, '', 'main_link');

                                    echo '&nbsp;&nbsp;'.draw_divider(false).'&nbsp;&nbsp;';

                                }

                            }

                            echo prepare_permanent_link('index.php?admin=login', _ADMIN_LOGIN, '', 'main_link');

                        ?>

                    <?php } ?>

                    </form>

                </div>

            </section>

        </div>

    </div>

</footer>

