本文整理汇总了PHP中LANG::T方法的典型用法代码示例。如果您正苦于以下问题:PHP LANG::T方法的具体用法?PHP LANG::T怎么用?PHP LANG::T使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LANG
的用法示例。
在下文中一共展示了LANG::T方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
echo 'nationality=>' . $passenger->nationality . "<br>";
echo '},<br />';
}
echo '},<br />';
}
//print_r(json_decode($item['decription']));
?>
</div>
</td>
<!-- <td>
<a href="#" class="more" onclick="More(<?php
echo $item['id'];
?>
);">
<?php
echo LANG::T('click here');
?>
</a>
</td>-->
</tr>
<?php
}
?>
</tbody>
</table>
<!-- <div id="modal" class="modal fade" role="dialog">
<div class="modal-dialog">
Modal content
<div class="modal-content">
示例2:
<input type="text" name="credit[aed]" class="form-control" placeholder="<?php
echo LANG::T('AED Credit');
?>
" required="required">
</div>
<div class="input-group">
Type:
<div class="radio">
<label> <input type="radio" name="isadmin" value="1" id="admin" ><?php
echo LANG::T('Administrator');
?>
</label>
</div>
<div class="radio">
<label><input type="radio" name="isadmin" value="0" id="user" checked="checked"><?php
echo LANG::T('_User');
?>
</label>
</div>
</div>
<tr>
<td>
<button type="submit" value="Create" class="btn btn-success"><?php
echo LANG::T('Create');
?>
</button>
</td>
</tr>
</form>
</div>
示例3:
<form action="index.php?controller=user&action=profile" method="post">
<div class="form-group">
<label for="name"></label>
<input name='name' value="<?php
echo $_SESSION['user']['name'];
?>
" class="form-control" required="required" />
<label for="family"></label>
<input name='family' value="<?php
echo $_SESSION['user']['family'];
?>
" class="form-control" required="required" />
</div>
<div class="form-group">
<button type="submit" class="btn btn-success"><?php
echo LANG::T('Save Data');
?>
</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<script>
$(document).ready(function ()
{
$("#datepicker-report-in").datepicker({
示例4:
?>
">
<input type="hidden" name="orderid" value="<?php
echo $orderid;
?>
">
<input type="hidden" name="roomid" value="<?php
echo $_GET['tid'];
?>
"></tbody>
<input type="hidden" name="total" value="<?php
echo $_total;
?>
"></tbody>
<button id="accept-box-btn" class="btn btn-success register" type="submit"><?php
echo LANG::T('Register');
?>
</button>
</form>
</div>
<script>
$(document).ready(function()
{
$( ".datepicker-in" ).datepicker({
showButtonPanel: true,
defaultDate: "0w",
isRTL: true,
dateFormat: "yy/m/d",
currentText: "Today",
closeText: "Close",
示例5:
<option value="11"> 11 </option>
<option value="12"> 12 </option>
</select>
</span>
</p>
</div>
</div>
<!-- <div class="ht-st-two-box-item-third">
</div> -->
</div>
</div>
<div class="ht-search-box-btn">
<button type="submit" id="search-box-btn"><?php
echo LANG::T('Search');
?>
</button>
</div>
</form>
</div>
<script>
$(document).ready(function()
{
$( "#datepicker-in" ).datepicker({
showButtonPanel: true,
defaultDate: "0w",
isRTL: true,
示例6: Paydoc
//chang inoice status
$pd = new Paydoc();
$invoice->submit($invc_num, $confirm['voucher'], $confirm['Reference']);
$current_credit = $u->getcredit($_SESSION['user']['id'], $_SESSION['currency_unit']);
$remain = $current_credit - $totalamont;
if ($pd->Save($_SESSION['user']['id'], -1, $totalamont, $invc_num, $_SESSION['currency_unit'])) {
$u->change_credit($_SESSION['user']['id'], $_SESSION['currency_unit'], $remain);
}
$ctrl->ShowReserve_info($confirm);
} else {
$app = new AppController();
$app->Erro('متاسفانه درتکمیل فرآیند رزرو خطایی رخ داد');
}
} else {
$app = new AppController();
$app->Erro(LANG::T('Low Creadit'));
}
}
}
} else {
$app = new AppController();
$app->Erro('متاسفانه در فرآیند رزرو خطایی رخ داد');
}
break;
}
break;
case 'user':
$usr = new UserController();
switch ($action) {
case 'login':
if (isset($_SESSION['user']['id'])) {
示例7:
<li><a href="index.php?controller=user&action=dashboard" <?php
if (isset($_GET['controller']) && $_GET['controller'] == 'user') {
echo 'class="active-menu"';
}
?>
><?php
echo LANG::T('User');
?>
</a></li>
<li><a href="index.php?controller=report&action=list" <?php
if (isset($_GET['controller']) && $_GET['controller'] == 'report') {
echo 'class="active-menu"';
}
?>
><?php
echo LANG::T('Reports');
?>
</a></li>
<?php
}
if ($_GET['action'] == 'avial' || $_GET['action'] == 'search') {
?>
<li>
<select onchange="chg_currency($(this).val());">
<option value="IRR" <?php
if (isset($_SESSION['currency_unit']) && $_SESSION['currency_unit'] == 'IRR') {
echo 'selected="selected"';
}
?>
>IRR</option>
<!-- <option value="EUR" <?php
示例8:
<thead>
<td><?php
echo LANG::T('Voucher');
?>
</td>
<td><?php
echo LANG::T('Reference');
?>
</td>
</thead>
<tbody>
<tr>
<td><?php
echo $voucher;
?>
</td>
<td><?php
echo $Reference;
?>
</td>
</tr>
</tbody>
</table>
<a href="index.php?controller=hotel&action=search">
<button class="btn btn-success"><?php
echo LANG::T('OK');
?>
</button>
</a>
</div>
示例9:
?>
</label></span>
<!-- <span><img style="width:100%" src="gohar/capthca/?"></span>-->
<span></span>
<!-- <span><input type="text" name="captchaText" id="captchaText" placeholder="Image No" required></span>-->
<span></span>
<span>
<button name="login" class="btn btn-primary btn-block grad2" style="height:30px" type="submit"><?php
echo LANG::T('Sign in');
?>
</button>
</span>
</form>
<span style="width:100%;text-align:center"><a href="images/sign.pdf" target="_blank"><?php
echo LANG::T('signup Form');
?>
</a></span>
</div>
</div>
</div>
<div class="col-md-8" align="center">
<div style="max-width:500px;">
<img src="images/slides/<?php
echo $slide;
?>
" style="width:100%;height:270px;max-width:500px">
</div>
示例10: date
<?php
//}
?>
<!--End Gallery-->
</head>
<body>
<div class="main-menu">
<div class="inline-main-menu" id="inline-main-menu">
<div class="head-time"><?php
echo date("l , d , M , Y");
?>
</div>
<div class="menu_container" >
<?php
echo LANG::T('Language');
?>
<select onchange="chg_lang($(this).val());">
<option value="en" <?php
if (isset($_SESSION['lang']) && $_SESSION['lang'] == 'en') {
echo 'selected="selected"';
}
?>
>EN (English)</option>
<option value="fa" <?php
if (isset($_SESSION['lang']) && $_SESSION['lang'] == 'fa') {
echo 'selected="selected"';
}
?>
>FA (فارسی)</option>
</select>