本文整理汇总了PHP中page::trad方法的典型用法代码示例。如果您正苦于以下问题:PHP page::trad方法的具体用法?PHP page::trad怎么用?PHP page::trad使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类page
的用法示例。
在下文中一共展示了page::trad方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<div id="fields_contener">
<?php
echo form::get_input('nom', 'text', $value['nom'], array('placeholder' => $tab_labels['nom'], 'error' => $tab_erreur['nom'], 'class' => 'text'));
?>
<?php
echo form::get_input('prenom', 'text', $value['prenom'], array('placeholder' => $tab_labels['prenom'], 'error' => $tab_erreur['prenom'], 'class' => 'text'));
?>
<?php
echo form::get_input('num_tridente', 'text', $value['num_tridente'], array('placeholder' => $tab_labels['num_tridente'], 'error' => $tab_erreur['num_tridente'], 'validation' => 'num_tridente', 'class' => 'text'));
?>
<?php
echo form::get_input('email', 'text', $value['email'], array('placeholder' => $tab_labels['email'], 'error' => $tab_erreur['email'], 'validation' => 'email', 'class' => 'text'));
?>
</div>
<?php
echo form::get_input('bt_sub', 'submit', page::trad('COORDONNEES', 'label_bt_sub'), array('class' => 'bt_submit'));
?>
</div>
</div>
</div>
<?php
include ELEMENTS . '_bottom_link.elt.php';
include ELEMENTS . 'mentions_legales.elt.php';
echo form::getJsValidationFunction();
?>
<script type="text/javascript">
$(document).ready(function() {
$('#form_coord').submit(valid_form_coord);
});
示例2: array
}
$date_achat_annees = array();
for ($i = intval(date('Y')); $i >= 1950; $i--) {
$date_achat_annees[$i] = str_pad($i, 2, '0', STR_PAD_LEFT);
}
$step = 'home';
if ($isCountrySel && $isLanguageSel) {
$step = 'coordonnees';
}
$sports = page::trad('SPORTS');
$style_musical = page::trad('STYLE_MUSICAL');
$artistes = page::trad('ARTISTES');
$passions = page::trad('PASSIONS');
$tab_labels = array('country' => 'Please choose your country', 'language' => 'Select your language', 'nom' => page::trad('COORDONNEES', 'label_nom'), 'prenom' => page::trad('COORDONNEES', 'label_prenom'), 'num_tridente' => page::trad('COORDONNEES', 'label_num_tridente'), 'email' => page::trad('COORDONNEES', 'label_email'), 'modele' => page::trad('INFORMATIONS', 'label_modele'), 'immat' => page::trad('INFORMATIONS', 'label_immat'), 'date_achat_jour' => page::trad('INFORMATIONS', 'label_date_achat_jour'), 'date_achat_mois' => page::trad('INFORMATIONS', 'label_date_achat_mois'), 'date_achat_annee' => page::trad('INFORMATIONS', 'label_date_achat_annee'), 'sport' => page::trad('INFORMATIONS', 'label_sport'), 'style_musical' => page::trad('INFORMATIONS', 'label_style_musical'), 'artiste' => page::trad('INFORMATIONS', 'label_artiste'), 'autre' => page::trad('INFORMATIONS', 'label_autre'), 'adresse1' => page::trad('INFORMATIONS', 'label_adresse1'), 'adresse2' => page::trad('INFORMATIONS', 'label_adresse2'), 'code_postal' => page::trad('INFORMATIONS', 'label_code_postal'), 'ville' => page::trad('INFORMATIONS', 'label_ville'), 'telephone' => page::trad('INFORMATIONS', 'label_telephone'));
//
$oui_non = array('oui' => page::trad('INFORMATIONS', 'label_oui'), 'non' => page::trad('INFORMATIONS', 'label_non'));
$field = array('country' => 'select', 'language' => 'select', 'nom' => 'text', 'prenom' => 'text', 'num_tridente' => 'text', 'email' => 'text', 'modele' => 'select', 'immat' => 'text', 'date_achat_jour' => 'select', 'date_achat_mois' => 'select', 'date_achat_annee' => 'select', 'sport' => 'select', 'style_musical' => 'select', 'artiste' => 'text', 'autre' => 'text', 'passion' => 'radio', 'adresse1' => 'test', 'adresse2' => 'test', 'code_postal' => 'test', 'ville' => 'test', 'telephone' => 'test', 'optin' => 'radio', 'optin_sms' => 'radio', 'optin_courrier' => 'radio');
$tab_erreur = array();
$value = array();
foreach ($field as $k => $t) {
$value[$k] = '';
$tab_erreur[$k] = false;
}
$stat_action = '';
if (!empty($_POST['form']) && !empty($_POST['form']['action']) && $_POST['form']['action'] == 'form_pays_langue') {
$step = 'home';
$value['country'] = !empty($_POST['form']['country']) ? $_POST['form']['country'] : '';
$value['language'] = !empty($_POST['form']['language']) ? $_POST['form']['language'] : '';
if (empty($value['country']) || !array_key_exists($value['country'], $countries)) {
$tab_erreur['country'] = true;
}
示例3: array
</div>
<div id="page_content_contener">
<div id="page_content">
<div id="contener_intro">
<div id="intro1"><?php
echo page::trad('CONFIRMATION', 'intro1');
?>
</div>
<div id="intro2"><b><?php
echo page::trad('CONFIRMATION', 'intro21');
?>
</b> <?php
echo page::trad('CONFIRMATION', 'intro22');
?>
</div>
<div id="intro3"><?php
echo page::trad('CONFIRMATION', 'intro3');
?>
</div>
</div>
<div class="contener_link"><a href="<?php
echo $site_maserati_url_confirm;
?>
"><?php
echo page::trad(array('CONFIRMATION', 'label_bt_prolonger'), array('{SITE_NAME}' => $site_maserati_url_ultrashort));
?>
</a></div>
</div>
</div>
</div>
示例4:
<div id="contener_bottom_link"><div id="bottom_link">
<a class="site_maserati" href="<?php
echo $site_maserati_url;
?>
"><?php
echo $site_maserati_url_footer;
?>
</a><!--
--><span>|</span><!--
--><a class="fb_maserati" href="<?php
echo $fb_maserati_url;
?>
"><?php
echo page::trad('FOOTER', 'fb_maserati');
?>
</a>
</div></div>
示例5: date_ymd_text
function date_ymd_text($date_ymd, $format = 'txt_j jj txt_m')
{
if (!$date_ymd || dh_vide($date_ymd) || date_vide($date_ymd)) {
return "";
}
$tab = explode(" ", $date_ymd);
$date_ymd = $tab[0];
$tab_date = explode("-", $date_ymd);
$tab_format = explode(' ', $format);
$out = '';
foreach ($tab_format as $f) {
switch ($f) {
case 'txt_j':
$elt = page::trad('TAB_JOURS', date('N', timestamp($date_ymd)));
break;
case 'txt_m':
$elt = page::trad('TAB_MOIS', intval($tab_date[1]));
break;
case 'jj':
$elt = intval($tab_date[2]);
break;
case 'mm':
$elt = $tab_date[1];
break;
case 'yyyy':
$elt = intval($tab_date[0]);
break;
}
if (!empty($out)) {
$out .= ' ';
}
if (!empty($elt)) {
$out .= $elt;
}
}
return $out;
return page::trad('TAB_JOURS', date('w', timestamp($date_ymd))) . " " . intval($tab_date[2]) . " " . page::trad('TAB_MOIS', intval($tab_date[1]));
}