示例#1
0
<div style="padding: 0px 5px;">
    <div class="fontB">
        <?php 
echo Yii::t('chachawap', 'Đăng ký Gói cước iMuzik3G');
?>
    </div>
    <div class="padT10 padL5">
        <?php 
$flag = false;
if (!empty($userObj)) {
    $isKM10days = false;
    if (time() > strtotime('2013-04-15') && time() < strtotime('2013-12-31 23:59:59') && Yii::app()->user->getState('msisdn')) {
        $isKM10days = WapUserTransactionModel::checkTrial10Days(Formatter::formatPhone(Yii::app()->user->getState('msisdn')));
    }
    if ($isKM10days && $userObj->status == 1) {
        $model = ConfigModel::getConfig('SUCCESS_10DAYS_TRIAL');
        $date_free = date('d/m/Y', time() + 24 * 3600 * 10);
        echo Yii::t('wap', $model, array('{DATE}' => $date_free));
    } else {
        echo Yii::t('wap', 'Chúc mừng Quý khách đã đăng ký thành công dịch vụ Imuzik 3G. Phí thuê bao 10.000đ/tháng, miễn phí data, miễn phí tải nhạc và video không giới hạn. Trân trọng cảm ơn!');
    }
} else {
    if (!empty($result) && $result->errorCode != 0) {
        echo $msg = Yii::t('wap', Yii::app()->params['subscribe'][$result->message]);
    } else {
        $flag = true;
        if ($isKm) {
            echo "Quý khách được khuyến mại 10 ngày dùng thử miễn phí dịch vụ Imuzik3G, miễn phí cước data (3G/GPRS), miễn phí nghe, tải nhạc chất lượng cao không giới hạn số lượng.";
        } else {
            echo $package->description;
        }
 /**
  * 获取数据
  * @param $channel
  */
 private function retrieveData($channel = null)
 {
     $ret = array('channel' => $channel, 'time' => $this->timestamp);
     // Load config
     $config = new ConfigModel();
     $ret['config'] = $config->getConfig($this->lang);
     unset($config);
     // Load levels
     $level = new LevelModel();
     $levels = array();
     foreach ($level->getAllLevels() as $level) {
         $levels[$level->level] = array('min' => $level->min_exp, 'max' => $level->max_exp);
     }
     $ret['config']->levels = (object) $levels;
     unset($level, $levels);
     // Load Store Data
     $store = new StoreModel($this->lang);
     $ret['config']->store = $store->getData();
     unset($store);
     $ret['data'] = new stdClass();
     $ret['data']->state = 'ok';
     $ret['data']->call_id = isset($this->input->call_id) ? substr($this->input->call_id, 4) : microtime();
     $ret['data']->data_hash = md5(rand(100, 10000));
     Session::instance()->set('data_hash', $ret['data']->data_hash);
     $ret['data']->swf_version = isset($this->input->swf_version) ? $this->input->swf_version : 85;
     $ret['data']->map = array();
     $ret['data']->storage = array();
     $ret['data']->gifts = array();
     $ret['data']->neighbors = array();
     $ret['data']->all_neighbors = array();
     // Check User wether inited.
     $user = new UserModel();
     $userinfo = $user->getUserById($this->uid);
     if ($userinfo) {
         $diff_time = $this->timestamp - strtotime($userinfo->logintime);
         // 用户每天登陆的奖励
         if ($diff_time > self::EVERY_DAY_LOGIN_DIFF_TIME) {
             // 更新用户的钱
             $this->debugMsg("diff_time=" . $diff_time);
             $userinfo->lottery_coins = self::EVERY_DAY_LOGIN_IN_AWARD;
             $updateData = array('coins' => $userinfo->coins + self::EVERY_DAY_LOGIN_IN_AWARD, 'logintime' => date('Y-m-d H:i:s'));
             $user->updateUser($this->uid, $updateData);
             //更新用户的金币
         } else {
             $updateData = array('logintime' => date('Y-m-d H:i:s'));
             $user->updateUser($this->uid, $updateData);
             //更新用户的logintime
         }
         // Load User Maps
         $ret['data']->map = $this->getUserMaps($this->uid);
         // Load User storage
         $storage = new StorageModel();
         $ret['data']->storage = (object) $storage->getUserStoragesByUid($this->uid);
         unset($storage);
         // Load User Gifts
         $gift = new GiftsModel();
         $gifts_list = $gift->getNewGiftByUidForRetrieve($this->uid);
         $gifts_list_re = array();
         foreach ($gifts_list as $k => $v) {
             $gifts_list_re[$v->itemid] = $v->qty;
         }
         $this->debugMsg($gifts_list);
         $ret['data']->gifts = (object) $gifts_list_re;
         $this->debugMsg($gift->getLastQuery());
         unset($gift);
         // Load User Neighbors
         $ret['data']->all_neighbors[] = $this->syncUserNeighbors($this->input->fids);
         $neighbor = new NeighborsModel();
         $ret['data']->neighbors = $neighbor->getNeighborsByUid($this->uid);
         unset($neighbor);
         $ret['data']->show_tutorial = 1;
         //TODO
         $ret['data']->items = array();
         $ret['data']->coins = $userinfo->coins;
         $ret['data']->level = $userinfo->level;
         $ret['data']->experience = $userinfo->experience;
         $ret['data']->size_x = $userinfo->size_x;
         $ret['data']->size_y = $userinfo->size_x;
         $ret['data']->reward_points = $userinfo->reward_points;
         $ret['data']->op = $userinfo->op;
         $ret['data']->top_map_size = $userinfo->top_map_size;
         $ret['data']->max_work_area_size = $userinfo->max_work_area_size;
         $ret['data']->work_area_size = $userinfo->work_area_size;
         $ret['data']->lottery_coins = $userinfo->lottery_coins;
         $ret['data']->feed_data = false;
         $ret['data']->news = false;
         $ret['data']->show_gifts_page = false;
         $ret['data']->stories = array();
         $ret['data']->items_received = array();
         $ret['data']->ask_for_materials = array();
         $ret['data']->ask_for_help = array();
         $ret['data']->friend_helped = false;
         $ret['data']->gifts_received = array();
     } else {
         $data = array('uid' => $this->uid, 'email' => '', 'level' => 1, 'experience' => 0, 'coins' => self::INIT_COINS, 'op' => 0, 'reward_points' => self::INIT_RC, 'logintime' => date('Y-m-d H:i:s'), 'loginip' => '', 'status' => 1);
         $user->add($data);
         $ret['data']->show_tutorial = 0;
         //TODO
         $ret['data']->coins = self::INIT_COINS;
         $ret['data']->items = array();
         $ret['data']->level = 1;
         $ret['data']->experience = 0;
         $ret['data']->size_x = 60;
         $ret['data']->size_y = 60;
         $ret['data']->reward_points = self::INIT_RC;
         $ret['data']->op = 0;
         $ret['data']->top_map_size = 0;
         $ret['data']->max_work_area_size = 1;
         $ret['data']->work_area_size = 1;
         $ret['data']->lottery_coins = 0;
         $ret['data']->feed_data = false;
         $ret['data']->news = false;
         $ret['data']->show_gifts_page = false;
         $ret['data']->stories = array();
         $ret['data']->items_received = array();
         $ret['data']->ask_for_materials = array();
         $ret['data']->ask_for_help = array();
         $ret['data']->friend_helped = false;
         $ret['data']->gifts_received = array();
         $ret['data']->storage = (object) array(15 => '5', 16 => '5');
         // 将平台好友导入为邻居
         $ret['data']->all_neighbors[] = $this->syncUserNeighbors($this->input->fids, true);
         $neighbor = new NeighborsModel();
         $ret['data']->neighbors = $neighbor->getNeighborsByUid($this->uid);
         unset($neighbor);
         //
         $mapData = $this->initUserMapData();
         $ret['data']->map = $mapData;
     }
     unset($model);
     if ($this->debug) {
         $ret['demsg'] = $this->demsg;
     }
     return $ret;
 }
示例#3
0
<div id="_MenuIncrustation"><img src="<?php 
echo IMG_HTTP;
?>
pages/offre/gestionnaire/img.jpg" /></div>
<div id="_MenuIncrustationEnd" style="height: 231px ;"><!-- Définie l'emplacement de l'ombre et la taille de l'image, ne modifier que la propriété height --></div>
<?php 
$aTel[0] = ConfigModel::getConfig('contact', 3);
$aTel[1] = ConfigModel::getConfig('contact', 4);
?>
<div id="_MainContent">
	<div id="_MainContentLeft66">
		<div class="_MainContentLeft66">
			<h3><span class="_HighLineViolet">COOLIZ</span> : UNE SOLUTION CLEFS EN MAIN</h3>
			<ul class="_ListPlus">
				<li><strong class="_HighLineViolet">Une prise en charge globale, de l'installation à la maintenance</strong></li>
					<p>Le bailleur ne supporte aucun cout d'installation,
					<br />Le déploiement, l'exploitation et la maintenance sont assurés par Janus Telecom.</p>
				<li><strong class="_HighLineViolet">Un faible encombrement des parties communes</strong></li>
					<p>Le cable optique en colonne montante = 10 mm de diamétre,
					<br />Une ou plusieurs bornes WiFi intégrées dans les parties communes,
					<br />Espace résiduel suffisant pour un déploiement ultérieur.</p>
				<li><strong class="_HighLineViolet">Un réseau opérationnel en 4 semaines sans travaux</strong></li>
					<p>Le réseau est déployé selon les règles de l'art,
					<br />Intervention rapide et efficace dans les colonnes.</p>				
			</ul>
			<p>&nbsp;</p>
			<p>Janus TELECOM et ses partenaires contrôlent à tout instant l'avancement des travaux et la qualitée du travail réalisé sur le terrain.</p>
			<p style="font-size: .8em;">Pour obtenir plus d'informations sur l'opérateur Janus Télécom : <a href="http://www.janustelecom.fr" target="_blank">cliquez-ici</a></p>
		</div>
	</div>
	<div id="_MainContentRight33">
示例#4
0
</p></div>

<div id="_MainContent">
	<div id="_MainContentLeft66">
		<div class="_MainContentLeft66">
			<?php 
if ($this->aView['mail'] == 'technique') {
    $sMail = ConfigModel::getConfig('contact', 1);
    // Mail Technique
    $sService = 'TECHNIQUE';
} else {
    $sMail = ConfigModel::getConfig('contact', 2);
    // Mail Commercial
    $sService = 'COMMERCIAL';
}
$aTel = ConfigModel::getConfig('contact', 3);
// Téléphone
?>
			<p>Pour toute demande concernant l'utilisation du service, appelez le <?php 
echo $aTel[0];
?>
 (<?php 
echo $aTel[1];
?>
&euro;/min) du lundi au vendredi de 9h à 19h ou par mail <a href="mailto:<?php 
echo $sMail;
?>
"><?php 
echo $sMail;
?>
</a></p>
示例#5
0
}
if (!empty($this->controller->userPhone) && empty($this->controller->userSub) && Yii::app()->session['src'] == 'ads') {
    ?>
<script  type="text/javascript">
<?php 
    if ($this->controller->isPromotion) {
        ?>
var txt_popup = decodeURIComponent("<?php 
        echo rawurlencode(ConfigModel::getConfig("PLAYER_REG_KM_TEXT"));
        ?>
");
<?php 
    } else {
        ?>
var txt_popup = decodeURIComponent("<?php 
        echo rawurlencode(ConfigModel::getConfig("PLAYER_REG_CHARG_TEXT"));
        ?>
");
<?php 
    }
    ?>
</script>
<script type="text/javascript" src="<?php 
    echo Yii::app()->request->baseUrl;
    ?>
/touch/js/vplayer_ads.js?v=1.0"></script>
<?php 
} else {
    ?>
<script type="text/javascript" src="<?php 
    echo Yii::app()->request->baseUrl;
示例#6
0
<div id="_MainContent">
	<h3>INFORMATIONS LéGALES</h3>
	<strong class="_HighLineViolet">Presse</strong>
	<p>Les retombées presse sont disponibles sur la page "Presse". Pour plus d'informations concernant le service Cooliz et la société Janus TELECOM, merci de contacter :
	<br />
	<br />Emma APPERT
	<br />Chargée de communication
	<br />
	<br />Standard : <?php 
echo ConfigModel::getConfig('contact', 5);
?>
	<br />e.appert@janustelecom.fr</p>

	<strong class="_HighLineViolet">Informations éditeur</strong>
	<p>© Janus Télécom : 131, rue de l'université, 75007 Paris - SAS au capital social de 194 400 &euro;, immatriculée au RCS de Paris au numéro 512 716 135, infos[at]janustelecom.fr (cette adresse n'est pas une adresse de service client).</p>

	<strong class="_HighLineViolet">Réalisation et Conception du site Internet</strong>
	<p>Michael LINHARDT - <a href="mailto:linhardt.michael@gmail.com">linhardt.michael@gmail.com</a></p>
	
	<strong class="_HighLineViolet">Utilisation du service</strong>
	<p>L'utilisation de tout service (ci-après "les Services") proposé à tout internaute (ci-après "Internaute"), par Janus Télécom sur son site Internet général accessible à l'URL www.janustelecom.fr ou sur l'un quelconque de ses sous-domaines (ci-après "le Site") est réservé à un usage strictement personnel.</p>
	
	<strong class="_HighLineViolet">Données personnelles</strong>
	<p>Toute information personnelle que l'Internaute serait amené à transmettre à Janus Télécom pour l'utilisation de certains Services est soumise aux dispositions de la Loi n° 78-17 Informatique et Libertés du 6 janvier 1978. A ce titre, l'Internaute dispose d'un droit d'accès, de rectification et de suppression des informations personnelles le concernant qu'il peut exercer à tout moment par écrit à l'adresse suivante : Janus Télécom : 131, rue de l'université, 75007 Paris.</p>
	
	<strong class="_HighLineViolet">Cookies</strong>
	<p>Lors de la navigation sur le site Janus Télécom, un cookie est implanté sur le disque dur de l'ordinateur. Ce cookie a pour objet d'enregistrer les informations relatives à la navigation sur le site (date et heure de la consultation, page consultée, date et heure du clic, lieu du clic...). Nous vous informons que vous pouvez vous opposer à l'enregistrement de cookies en modifiant la configuration du navigateur de votre ordinateur.</p>
	
	<strong class="_HighLineViolet">Propriété de Janus Télécom</strong>
	<p>L'ensemble des contenus (photos, textes, vidéo, son, etc...) consultables sur le Site et les Services sont et demeurent la propriété exclusive de Janus Télécom et/ou de ses partenaires. L'Internaute n'est donc pas habilité à reproduire, représenter ou commercialiser ces contenus en dehors des cas prévus par la loi ou expressément autorisés par leur propriétaire. En toute hypothèse, l'Internaute ne peut réaliser aucune utilisation secondaire des contenus du Site à titre onéreux ou gratuit. Pour toute réalisation d'un lien avec le Site, l'Internaute devra contacter au préalable Janus Télécom à l'adresse suivante afin d'obtenir l'autorisation nécessaire à cet effet : Janus Télécom : 131, rue de l'université, 75007 Paris, France.</p>