public function checkReinoiestePachet() { //$this->session->set_flashdata('notification', array("title"=>"Atentie","type" => "error", "html" => "")); if ($this->user->getSold() < $this->user->getActivePachet()->getPrice()) { if (\BusinessLogic\Util\Language::getLanguage() == "ro") { $msg = "Va rugam alimentati contul. Soldul este: " . $this->user->getSold() . " lei iar pachetul costa: " . $this->user->getActivePachet()->getPrice() . ' lei.'; } else { $msg = "Please fund your account. Currently you got " . $this->user->getSold() . " lei and the package costs: " . $this->user->getActivePachet()->getPrice() . ' lei.'; } $type = "1"; } else { if (\BusinessLogic\Util\Language::getLanguage() == "ro") { $msg = "Va fi retrasa suma de: " . $this->user->getActivePachet()->getPrice() . " din contul dumeavostra. Sunteti de acord?"; } else { $msg = $this->user->getActivePachet()->getPrice() . " lei will be withdrawn from your account. Do you agree?"; } $type = "2"; } echo json_encode(array("type" => $type, "msg" => $msg)); }
public function getIterationArray() { $iteration = array(); foreach ($this as $key => $value) { if (!is_object($value) || $value instanceof \DateTime) { switch (\BusinessLogic\Util\Language::getLanguage()) { case "ro": $ro_key = $key . "_ro"; if (isset($this->{$ro_key})) { $iteration[$key] = $this->{$ro_key}; } else { $iteration[$key] = $value; } break; default: $iteration[$key] = $value; } } } return $iteration; }
public function getDescription_ro() { if (\BusinessLogic\Util\Language::getLanguage() == "en") { return $this->description; } else { return $this->description_ro; } }
public function getBrief() { if (\BusinessLogic\Util\Language::getLanguage() == "ro") { return $this->brief_ro; } else { return $this->brief; } }
<!--<div class="checkbox">--> <input id="serv_<?php echo $i; ?> " type="radio" name="id_serviciu" value=" <?php echo $servicii[$i]->getId_serviciu(); ?> "> <!--</div>--> <!--<div class="serviciuNume">--> <label for="serv_<?php echo $i; ?> "> <?php if (\BusinessLogic\Util\Language::getLanguage() == "ro") { echo $servicii[$i]->getName(); } else { echo $servicii[$i]->getName_en(); } ?> </label> <!--</div>--> </div> <?php } ?> </div> <div class="servicii_right"> <?php
</p> </div> <div class="flt"> <h1>2</h1> <h3><?php echo BusinessLogic\Util\Language::output("notifica_ne_serviciile_dorite"); ?> </h3> <p><?php echo BusinessLogic\Util\Language::output("notifica_ne_serviciile_dorite_sub"); ?> </p> </div> <div class="flt"> <h1>3</h1> <h3><?php echo BusinessLogic\Util\Language::output("relaxeaza_te"); ?> </h3> <p><?php echo BusinessLogic\Util\Language::output("relaxeaza_te_sub"); ?> </p> </div> <div class="clear"></div> <div class="cont-create"> <p><?php echo BusinessLogic\Util\Language::output("alege_fericirea"); ?> </p> <p class="inblock"><a href="<?php