本文整理汇总了PHP中ht函数的典型用法代码示例。如果您正苦于以下问题:PHP ht函数的具体用法?PHP ht怎么用?PHP ht使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ht函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: make_pr
function make_pr($db)
{
$sql1 = "select id,name,movie_path,date_format(term, '%Y年%m月%d日') as term from practice \r\nwhere delete_flg = '0'\r\norder by create_date desc\r\nlimit 2";
$db->prepare($sql1);
$arr = $db->execute();
$ret = "";
foreach ($arr as $ar) {
$ret .= sprintf("<li><a href=\"s_pr.php?i=%s\">%s 様</a> <p class=\"small2\">(%sの練習風景)</p></li>\n", $ar["id"], g_name(ht($ar["name"])), ht($ar["term"]));
}
return $ret;
}
示例2: ht
<meta name="Yahoo-MMCrawler" content="index,nofollow">
<meta name="keywords" content="<?php
print ht($design["google_key"]);
?>
">
<meta name="description" content="<?php
print ht($design["google_desc"]);
?>
">
<?php
} else {
?>
<meta name="robots" content="noindex,nofollow,noarchive,noydir">
<meta name="Googlebot-Image" content="noindex,nofollow">
<meta name="psbot" content="noindex,nofollow">
<meta name="Yahoo-MMCrawler" content="noindex,nofollow">
<?php
}
?>
<meta http-equiv="Content-Type" content="text/html ; charset=Shift_JIS">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">
<title><?php
print ht($head_title);
?>
</title>
<link rel="stylesheet" type="text/css" href="css/a.css">
<script type="text/javascript" src="css/a.js"></script>
</head>
<body>
示例3: t
"></li>
<li><?php
echo t('Once this CSV file has
been exported, select the "Browse..." button on the "Upload CSV" tab
on the :page to locate and upload this file to :site_name.', array(':page' => link_to(url_for('wizard_accounts_addresses#wizard_btc'), ht("add BTC Addresses page"))));
?>
<br>
<img src="<?php
echo htmlspecialchars(url_for('img/accounts/bitcoinqt3.png'));
?>
"></li>
</ol>
</div>
<div class="instructions_safe">
<h2><?php
echo ht("Is it safe to provide :site_name a Bitcoin-Qt CSV file?");
?>
</h2>
<ul>
<li><?php
echo t("The Bitcoin-Qt client will only export your public\n\t\tBitcoin addresses. These addresses can only be used to retrieve\n\t\taddress balances; it is not possible to perform transactions using a public address.");
?>
</li>
</ul>
</div>
</div>
示例4: page_footer_old
function page_footer_old()
{
?>
</div>
</div>
<?php
require_template("templates_footer");
?>
<div id="footer_nav">
<ul class="footer_nav_list">
<li><span class="title"><?php
echo htmlspecialchars(get_site_config('site_name'));
?>
</span>
<ul>
<li><a href="<?php
echo htmlspecialchars(url_for('index'));
?>
"><?php
echo ht("About");
?>
</a></li>
<li><a href="<?php
echo htmlspecialchars(url_for('premium'));
?>
"><?php
echo ht("Get Premium");
?>
</a></li>
<li><a href="<?php
echo htmlspecialchars(get_site_config('version_history_link'));
?>
"><?php
echo ht("Release History");
?>
</a></li>
<li><a href="http://openclerk.org" target="_blank">Openclerk.org</a></li>
</ul>
</li>
<li><span class="title"><?php
echo ht("Your Account");
?>
</span>
<ul>
<?php
if (user_logged_in()) {
?>
<li><a href="<?php
echo htmlspecialchars(url_for('user'));
?>
"><?php
echo ht("User Profile");
?>
</a></li>
<li><a href="<?php
echo htmlspecialchars(url_for('wizard_currencies'));
?>
"><?php
echo ht("Currency Preferences");
?>
</a></li>
<li><a href="<?php
echo htmlspecialchars(url_for('wizard_accounts'));
?>
"><?php
echo ht("Configure Accounts");
?>
</a></li>
<li><a href="<?php
echo htmlspecialchars(url_for('profile'));
?>
"><?php
echo ht("Your Reports");
?>
</a></li>
<?php
} else {
?>
<li><a href="<?php
echo htmlspecialchars(url_for('signup'));
?>
"><?php
echo ht("Signup");
?>
</a></li>
<li><a href="<?php
echo htmlspecialchars(url_for('login'));
?>
"><?php
echo ht("Login");
?>
</a></li>
<?php
}
?>
</ul>
</li>
<li><span class="title"><?php
//.........这里部分代码省略.........
示例5: ht
<?php
global $user;
?>
<h1><?php
echo ht("Finance Accounts");
?>
</h1>
<p>
<?php
echo t(":site_name Finance can\n\tkeep track of :your_transactions\n\tand assign them to separate accounts,\n\tfor tax or accounting purposes.", array(':your_transactions' => link_to(url_for('your_transactions'), ht("your cryptocurrency transactions"))));
?>
<?php
echo t("Once you have added a finance account, you can :add_remove associated with this account.", array(':add_remove' => link_to(url_for('your_transactions'), ht("add and remove transactions"))));
?>
</p>
<!--<p class="tip tip_float your_account_limits">-->
<p>
<?php
echo ht("As a :user, you may have up to :accounts defined.", array(':user' => $user['is_premium'] ? ht("premium user") : ht("free user"), ':accounts' => plural("finance account", get_premium_value($user, 'finance_accounts'))));
echo "\n";
if (!$user['is_premium']) {
echo t("To increase this limit, please purchase a :premium_account.", array(':premium_account' => link_to(url_for('premium'), ht("premium account"))));
}
?>
</p>
示例6: t
echo t("exchange rates");
?>
</li>
</ul>
</li>
</ul>
<div style="clear:both;"></div>
<div class="wizard-buttons">
<a class="button" href="<?php
echo htmlspecialchars(url_for('wizard_currencies'));
?>
"><?php
echo ht("< Previous");
?>
</a>
<a class="button submit" href="<?php
echo htmlspecialchars(url_for('wizard_reports'));
?>
"><?php
echo ht("Next >");
?>
</a>
</div>
</div>
<?php
require_template("wizard_accounts_footer");
page_footer();
示例7: htmlspecialchars
<?php
global $title;
global $kb_inline;
?>
<h1><?php
echo $title;
?>
</h1>
<p><a href="<?php
echo htmlspecialchars(url_for("help"));
?>
"><?php
echo ht("< Back to Help");
?>
</a></p>
<div class="kb_text">
<?php
require_template($kb_inline);
?>
</div>
示例8: page_header
require __DIR__ . "/../layout/templates.php";
page_header(t("Add Offsets"), "page_wizard_accounts_offsets", array('js' => array('accounts', 'wizard'), 'class' => 'page_accounts wizard_page'));
global $user;
$user = get_user(user_id());
require_user($user);
$messages = array();
global $account_type;
$account_type = get_wizard_account_type('offsets');
require_template("wizard_accounts_offsets");
?>
<div class="wizard">
<?php
require __DIR__ . "/_wizard_accounts.php";
?>
<div class="wizard-buttons">
<a class="button" href="<?php
echo htmlspecialchars(url_for('wizard_accounts'));
?>
"><?php
echo ht("< Previous");
?>
</a>
</div>
</div>
<?php
require_template("wizard_accounts_offsets_footer");
page_footer();
示例9: ht
</td>
</tr>
<tr>
<td colspan="2" class="buttons">
<?php
if ($user['is_admin']) {
?>
You cannot delete your account as you are an administrator.
<?php
} else {
?>
<input type="submit" value="<?php
echo ht("Delete your account");
?>
" onclick="return confirm('<?php
echo ht("Are you sure you want to delete your account? This action is not reversible.");
?>
');">
<?php
}
?>
</td>
</tr>
</table>
</form>
</li>
</ul>
<?php
page_footer();
示例10: ht
</td>
<?php
}
?>
</tr>
<?php
}
?>
</tbody>
<?php
if (user_logged_in()) {
?>
<tfoot>
<tr class="buttons">
<td colspan="5">
<input type="submit" name="update_votes" value="<?php
echo ht("Update votes");
?>
">
</td>
</tr>
</tfoot>
<?php
}
?>
</table>
</form>
<?php
page_footer();
示例11: render_graph_new
?>
<?php
render_graph_new($graph, true);
?>
</div>
<?php
$all_main_currencies = array();
foreach ($pairs as $pair) {
$all_main_currencies[$pair['currency1']] = $pair['currency1'];
}
?>
<div class="currencies">
<h2><?php
echo ht("Other market averages");
?>
</h2>
<div class="tabs" id="tabs_average">
<ul class="tab_list">
<?php
/* each <li> must not have any whitespace between them otherwise whitespace will appear when rendered */
?>
<?php
foreach ($all_main_currencies as $c) {
echo "<li id=\"tab_average_" . $c . "\"><span class=\"currency_name_" . $c . "\">" . htmlspecialchars(get_currency_abbr($c)) . "</span></li>";
}
?>
</ul>
示例12: htmlspecialchars
</td>
</tr>
<tr>
<td colspan="2" class="buttons">
<input type="hidden" name="currency" value="<?php
echo htmlspecialchars($currency);
?>
">
<button type="submit" class="purchase_button"><span class="currency_name_<?php
echo htmlspecialchars($currency);
?>
">Purchase</span></button>
</td>
</tr>
</table>
</form>
</div>
<div class="column">
<p>
<?php
echo ht("Once you have submitted your order, a :currency address will be generated for your payment.\n Your premium purchase will complete once the :currency network confirms your transaction.", array(':currency' => get_currency_name($currency)));
?>
</p>
</div>
</div>
<?php
page_footer();
示例13: t
</li>
<?php
$first_tab = false;
}
?>
<?php
if (!$balances) {
?>
<li>
<?php
echo t("Either you have not specified any accounts or addresses, or these addresses and accounts have not yet been updated by :site_name.");
?>
<br>
<a class="add_accounts" href="<?php
echo htmlspecialchars(url_for('wizard_accounts'));
?>
"><?php
echo ht("Add accounts and addresses");
?>
</a>
</li>
<?php
}
?>
</ul>
</div>
<?php
page_footer();
示例14: lernziel_aktualisieren
<div id="old_lz_text">
<!--<?php
echo $_SESSION['lernziel_4'] . "</br>";
?>
-->
<?php
echo lernziel_aktualisieren("4");
?>
</div>
<textarea id="lz_eingabefeld" name="lz4" cols="30" rows="40"></textarea>
</div>
</div>
<div id="lz">
<div id="lz_header">
<?php
echo ht("lernziel_5");
?>
</div>
<div id="old_lz_text">
<!--<?php
echo $_SESSION['lernziel_5'] . "</br>";
?>
-->
<?php
echo lernziel_aktualisieren("5");
?>
</div>
<textarea id="lz_eingabefeld" name="lz5" cols="30" rows="40"></textarea>
</div>
</div>
<input type="submit" value="Eingaben speichern" >
示例15: db
<?php
// get all pages
$q = db()->prepare("SELECT * FROM graph_pages WHERE user_id=? AND is_removed=0 ORDER BY page_order ASC, id ASC");
$q->execute(array(user_id()));
$pages = $q->fetchAll();
// how many securities do we have?
// we have a new job 'securities_count' to update the count of securities for each user, otherwise we'd have to recalculate this on every profile page load
$securities_count = $user['securities_count'];
if (get_site_config('new_user_premium_update_hours') && strtotime($user['created_at']) >= strtotime("-" . get_site_config('new_user_premium_update_hours') . " hour")) {
// does a non-zero report exist yet for this user?
// this query shouldn't be too slow for new users, since the user_id index will be generally empty
$q = db()->prepare("SELECT * FROM summary_instances WHERE user_id=? AND is_recent=1 AND balance > 0 LIMIT 1");
$q->execute(array(user_id()));
if (!($non_zero = $q->fetch())) {
$q = db()->prepare("SELECT premium_delay_minutes FROM site_statistics WHERE is_recent=1 LIMIT 1");
$q->execute();
$stats = $q->fetch();
if ($stats) {
$messages[] = t("As a new user, it will take :minutes for your :accounts to be updated and\n your first reports to be generated.", array(':minutes' => expected_delay_html($stats['premium_delay_minutes']), ':accounts' => link_to(url_for('wizard_accounts'), ht("accounts and addresses"))));
}
} else {
$messages[] = t("As a new user, your addresses and accounts will be updated more frequently\n (every :frequency) for the next :hours.", array(':frequency' => plural("hour", get_site_config('refresh_queue_hours_premium')), ':hours' => plural("hour", (int) (get_site_config('new_user_premium_update_hours') - (time() - strtotime($user['created_at'])) / (60 * 60)))));
}
}