Beispiel #1
0
 public function login_submit()
 {
     $nomenclator = new \BusinessLogic\Models\NomenclatorModel();
     $pachete = $nomenclator->getPachete(false);
     //userul este deja logat, ii facem redirect la homepage
     if ($this->auth->isLoggedIn()) {
         redirect(base_url());
     }
     //procesam requestul
     $this->form_validation->set_rules('password', 'parola', 'required|xss_clean');
     $this->form_validation->set_rules('email', 'email', 'required');
     $msgRequired = 'Campul <b>%s</b> este obligatoriu';
     if (BusinessLogic\Util\Language::getLanguage() == "en") {
         $msgRequired = 'Please fill in <b>%s</b>.';
     }
     $this->form_validation->set_message('required', $msgRequired);
     if ($this->form_validation->run() == FALSE) {
         $this->session->set_flashdata('notification', array("type" => "error", "html" => BusinessLogic\Util\Language::getLanguage() == "en" ? "Invalid credentials" : "Date incorecte"));
         $this->load_view('user/login', array("no_footer" => true, "no_header" => true, "pachete" => $pachete, "notification" => array("type" => "form_notification", "message" => validation_errors(), "cssClass" => "error")));
     } else {
         $iUserId = $this->auth->authenticateUser($this->input->post('email'), $this->input->post('password'), TRUE);
         if (!$iUserId) {
             $this->session->set_flashdata('notification', array("type" => "error", "html" => "Date Incorecte"));
             //datele introduse nu sunt corecte
             $this->load_view('user/login', array("no_footer" => true, "no_header" => true, "notification" => array("type" => "form_notification", "message" => "Datele introduse sunt incorecte", "cssClass" => "error")));
         } else {
             $this->auth->disconnectAccount($iUserId);
             //Conecteaza utilizatorul curent
             $this->auth->loginUser($iUserId);
             //userul a fost logat
             redirect(base_url('account'));
         }
     }
 }
<div class="simple-and-easy">

    <div class="inner">
        <img class="img-desktop-only" src="<?php 
echo base_url('assets/frontend/layout-reloaded/superman-grin.png');
?>
" alt="Helpie SUPERMAN">
        <p>
            <?php 
echo BusinessLogic\Util\Language::output("with_helpie_its_simple_and_easy");
?>
            <img class="img-desktop-only" style="vertical-align: text-top;display: inline-block;" src="<?php 
echo base_url(BusinessLogic\Util\Language::output("download_aici_"));
?>
" alt="Download it now">
        </p>
    </div>

</div>
Beispiel #3
0
                                        </li>
                                    <?php 
}
?>

                                    <li class='sb-close'><a href="<?php 
echo base_url('servicii');
?>
"><?php 
echo ucfirst(strtolower(\BusinessLogic\Util\Language::output("servicii")));
?>
</a></li>
                                    <li class='sb-close'><a href="<?php 
echo base_url('pachete');
?>
"><?php 
echo ucfirst(strtolower(\BusinessLogic\Util\Language::output("pachete_title")));
?>
</a></li>
                                    <li class='sb-close'><a href="<?php 
echo base_url('corporate');
?>
">Corporate</a></li>
                                    <li class='sb-close'><a href="<?php 
echo \BusinessLogic\Util\Language::output("blog_link");
?>
">Blog</a></li>
                                    <?php 
if (!$this->view->auth->isLoggedIn()) {
    ?>
Beispiel #4
0
                        <img src="<?php 
echo base_url('assets/frontend/layout/pinterest_logo.png');
?>
"/>
                    </a>
                    <a target="_blank" href="<?php 
echo BusinessLogic\Util\Language::output("linked_link");
?>
">
                        <img src="<?php 
echo base_url('assets/frontend/layout/linked.png');
?>
"/>
                    </a>
                    <a target="_blank" href="<?php 
echo BusinessLogic\Util\Language::output("youtube_link");
?>
">
                        <img class="youtube" src="<?php 
echo base_url('assets/frontend/layout/youtube.png');
?>
"/>
                    </a>
                    <div id="clear"></div>

                </div>
                <div id="clear"></div>

            </div>

            <div class="download no-desktop">
Beispiel #5
0
echo App_constants::$WEBSITE_PHONE;
?>
 / 0722 187 188
                </div>

                <div class="email">
                    <?php 
echo App_constants::$OFFICE_EMAIl;
?>
                </div>
                <div class="skype">
                    helpie.ro
                </div>
                <div class="fb" >
                    <a style="color: #a6a5a7" href="<?php 
echo BusinessLogic\Util\Language::output("facebook_link");
?>
">helpie.ro</a>
                </div>
                <div class="map">
                    <?php 
echo \BusinessLogic\Util\Language::output("adresa");
?>
                </div>

            </div>

            <div class="right_side">
                <img src="http://maps.googleapis.com/maps/api/staticmap?center=44.455286,+26.105235&zoom=15&scale=false&size=600x300&maptype=roadmap&sensor=false&format=png&visual_refresh=true&markers=size:mid%7Ccolor:red%7Clabel:%7C44.455286,+26.105235" alt="Google Map of 44.452937, 26.105748">
            </div>
Beispiel #6
0

            <?php 
if (isset($pachete[1])) {
    ?>

                <div class="bright">
                    <h2 class="Bold"><?php 
    echo \BusinessLogic\Util\Language::getLanguage() == "ro" ? $pachete[1]['name'] : $pachete[1]['name_en'];
    ?>
</h2>
                    <h2><?php 
    echo $pachete[1]['price'];
    ?>
 RON / <?php 
    echo BusinessLogic\Util\Language::output("month");
    ?>
</h2>
                    <p><a href="<?php 
    echo base_url("pachete");
    ?>
"><?php 
    echo BusinessLogic\Util\Language::output('afla_mai_multe_');
    ?>
</a></p>
                </div>
            <?php 
}
?>

Beispiel #7
0
    ?>
"><?php 
    echo \BusinessLogic\Util\Language::output("comanda_acum");
    ?>
</a>-->

                                        <div id="clear"></div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                        <div id="clear"></div>
                    </div>
                <?php 
}
?>

                <div class="pas2 item">
                    <table border="0" width="100%">
                        <tr>
                            <td width="70%">
                                <div class="nume_pachet">
                                    <?php 
if (\BusinessLogic\Util\Language::getLanguage() == "ro") {
    echo $pachete[1]->getName();
} else {
    echo $pachete[1]->getName_en();
}
?>

                                </div>