本文整理汇总了PHP中Locale::setContent方法的典型用法代码示例。如果您正苦于以下问题:PHP Locale::setContent方法的具体用法?PHP Locale::setContent怎么用?PHP Locale::setContent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Locale
的用法示例。
在下文中一共展示了Locale::setContent方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
$total = $users_model->count();
echo '<option value="' . $room['id'] . '">' . $room['room'] . ' (' . $total . ')</option>';
}
?>
</select>
</div>
<div class="block_field">
<img src="captcha.php" />
<input type="text" name="captcha" id="captcha" maxlength="4" />
</div>
<div class="block_field block_submit">
<button type="submit" value="<?php
echo Locale::setContent('Enter');
?>
"><?php
echo Locale::setContent('Enter');
?>
</button>
</div>
</form>
</div>
<!--
<div id="update_log">
<h2>Update log</h2>
<h3>20/10/2010 - Version 1.0</h3>
<ul>
<li>Simple language support</li>
<li>Images support</li>
<li>Videos support</li>
<li>Admin</li>
示例2: UsersModel
// Whose behalf he is receiving
$name_to = Locale::setContent('All users');
$users = new UsersModel();
$users->setCond('active = 1');
$users->setCond('id = ' . $line['to_user']);
$user = $users->load_all();
if (isset($user[0]) && count($user[0])) {
$name_to = Filters::convert(htmlentities($user[0]['user']));
}
$class_box .= $line['reserved'] ? ' box_msg_reserved inline_green' : '';
$class_box .= $line['to_user'] == $_SESSION['chat_login']['id_user'] ? ' to_you_message' : '';
$class_box .= $line['id_user'] == $_SESSION['chat_login']['id_user'] ? ' for_you_message' : '';
if (MESSAGE_TYPE == 'inline') {
$class_box .= ' box_msg_inline';
}
$return .= '<div class="' . $class_box . '">';
$return .= '<span class="head_msg">';
$return .= '<span class="time_msg">' . date('H:i:s', strtotime($line['timestamp'])) . '</span> ';
$return .= '<span class="user_name" rel="' . $id_user . '">' . $user_name . '</span> ';
$return .= ($line['reserved'] ? '<b>(' . Locale::setContent('reservedly') . ')</b> ' : '') . ' ' . Locale::setContent('tells') . ' ';
$return .= '<span class="name_to" rel="' . $to_user . '">' . $name_to . '</span>: ';
$return .= '<span class="remove_message">' . Locale::setContent('Hide message') . '</span> ';
$return .= '</span>';
$return .= '<span class="message_sent">' . $message . '</span>';
$return .= '</div>';
}
}
echo $return;
} else {
echo 'error';
}
示例3:
</button>
</span>
<div class="box_emoticons">
<?php
echo Emoticons::getLinks();
?>
</div>
</div>
</form>
</div>
</div>
<div id="box_alert">
<p class="center"><?php
echo Locale::setContent('You sure?');
?>
</p>
<p class="center">
<a href="logout.php"><?php
echo Locale::setContent('Yes');
?>
</a>
<a href="#" id="remove_box"><?php
echo Locale::setContent('No');
?>
</a>
</p>
</div>
</body>
</html>