• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP ht函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中ht函数的典型用法代码示例。如果您正苦于以下问题:PHP ht函数的具体用法?PHP ht怎么用?PHP ht使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了ht函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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>&nbsp;&nbsp;<p class=\"small2\">(%sの練習風景)</p></li>\n", $ar["id"], g_name(ht($ar["name"])), ht($ar["term"]));
    }
    return $ret;
}
开发者ID:dfukushi,项目名称:racing,代码行数:11,代码来源:_index.php


示例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>
开发者ID:dfukushi,项目名称:racing,代码行数:31,代码来源:_head.php


示例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>
开发者ID:phpsource,项目名称:openclerk,代码行数:30,代码来源:kb_bitcoin_csv.php


示例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 
//.........这里部分代码省略.........
开发者ID:phpsource,项目名称:openclerk,代码行数:101,代码来源:templates.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>
开发者ID:phpsource,项目名称:openclerk,代码行数:30,代码来源:finance_accounts.php


示例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();
开发者ID:phpsource,项目名称:openclerk,代码行数:31,代码来源:wizard_accounts.php


示例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>
开发者ID:phpsource,项目名称:openclerk,代码行数:24,代码来源:kb_inline.php


示例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();
开发者ID:phpsource,项目名称:openclerk,代码行数:31,代码来源:wizard_accounts_offsets.php


示例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();
开发者ID:phpsource,项目名称:openclerk,代码行数:31,代码来源:user.php


示例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();
开发者ID:phpsource,项目名称:openclerk,代码行数:31,代码来源:vote_coins.php


示例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>
开发者ID:phpsource,项目名称:openclerk,代码行数:30,代码来源:average.php


示例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();
开发者ID:phpsource,项目名称:openclerk,代码行数:31,代码来源:purchase.php


示例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();
开发者ID:phpsource,项目名称:openclerk,代码行数:30,代码来源:your_currencies.php


示例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" >
开发者ID:rft2014,项目名称:buelow_web,代码行数:31,代码来源:schueler_lzv.php


示例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)))));
    }
}
开发者ID:phpsource,项目名称:openclerk,代码行数:25,代码来源:_profile_common.php


示例16: ct

<?php

echo ct("Hello");
echo urlencode("World");
echo t("Cat");
echo u("Ignored");
echo ht("Ignored");
echo plural("book", 5);
开发者ID:soundasleep,项目名称:translation-discovery,代码行数:8,代码来源:input.php


示例17: render_graph_new

/**
 * Render the HTML on the page necessary for rendering a graph to the user.
 *
 * @param $graph = array(
 *    'graph_type' => $id,
 *    'width' => 8,
 *    'height' => 4,
 *    'page_order' => 0,
 *    'days' => $days,
 *    'id' => 0,
 *    'arg0_resolved' => $name,
 *    'delta' => $delta,
 *    'public' => true,
 *    'no_technicals' => true,
 *  );
 * @param $include_user_hash if true, include user_id and user_hash in the graph data, necessary for
 *        graphs that require user authentication; default is false
 */
function render_graph_new($graph, $include_user_hash = false)
{
    global $_rendered_graph_contents;
    if (!$_rendered_graph_contents) {
        // calculate the relevant text for outofdate indicators
        $title = "";
        if (user_logged_in()) {
            $user = get_user(user_id());
            $plural_hours = plural("hour", user_is_new($user) ? get_site_config('refresh_queue_hours_premium') : get_premium_value($user, "refresh_queue_hours"));
            if ($user['is_first_report_sent']) {
                $title = t("This graph will take up to :hours to be updated with recently added or removed accounts.", array(':hours' => $plural_hours));
            } else {
                if ($user['has_added_account']) {
                    $title = t("As a new user, it will take up to :hours for this graph to be populated with initial data.", array(':hours' => $plural_hours));
                } else {
                    $title = t("You need to add some account data for this graph to display.");
                }
            }
        }
        ?>
    <div id="graph_contents_template" style="display:none;">
      <div class="graph_headings">
        <h1 class="h1"></h1>
        <h2 class="h2"></h2>
        <h2 class="graph_title">
          <a href=""></a>
        </h2>
        <span class="outofdate" style="display:none;" title="<?php 
        echo htmlspecialchars($title);
        ?>
"></span>
        <span class="subheading"></span>
        <span class="last-updated"></span>
        <ul class="graph_controls">
          <li class="move_up"><a><?php 
        echo ht("Move up");
        ?>
</a></li>
          <li class="move_down"><a><?php 
        echo ht("Move down");
        ?>
</a></li>
          <li class="remove"><a><?php 
        echo ht("Remove");
        ?>
</a></li>
          <li class="edit"><a><?php 
        echo ht("Edit");
        ?>
</a></li>
        </ul>
        <div class="edit_target" style="display:none;">
          <ul class="graph_edit_controls">
            <li class="close"><a><?php 
        echo ht("Close");
        ?>
</a></li>
          </ul>
        </div>
      </div>
      <div class="graph-target"><span class="status_loading"><?php 
        echo ht("Loading...");
        ?>
</span></div>
      <div class="graph_extra extra" style="display:none;"><a href="#"></a></span></div>
      <div class="admin-stats-wrapper hide-admin"><span class="admin-stats render_time"></span></div>
    </div>
    <div id="graph_table_template" class="overflow_wrapper extra-text-container" style="display:none;">
      <table class="standard graph_table">
      </table>
    </div>
    <?php 
    }
    if (user_logged_in()) {
        $user = get_user(user_id());
        $graph['can_be_edited'] = !($user['graph_managed_type'] == 'auto' && isset($graph['is_managed']) && $graph['is_managed']);
    }
    if (isset($graph['page_id']) && isset($graph['id'])) {
        $graph['move_up_link'] = url_for('profile', array('page' => $graph['page_id'], 'move_up' => $graph['id']));
        $graph['move_down_link'] = url_for('profile', array('page' => $graph['page_id'], 'move_down' => $graph['id']));
        $graph['remove_link'] = url_for('profile', array('page' => $graph['page_id'], 'remove' => $graph['id']));
    }
//.........这里部分代码省略.........
开发者ID:phpsource,项目名称:openclerk,代码行数:101,代码来源:new.php


示例18: ht

?>

<div class="authentication-form">
<h2><?php 
echo ht("Add OAuth2 Identity");
?>
</h2>

<form action="<?php 
echo htmlspecialchars(absolute_url(url_for('oauth2_add')));
?>
" method="post">
<table class="login_form">
  <tr class="signup-with">
    <th><?php 
echo ht("Login with:");
?>
</th>
    <td>
      <input type="hidden" name="submit" value="1">

      <?php 
$openids = get_default_oauth2_providers();
foreach ($openids as $key => $data) {
    ?>
        <button type="submit" name="oauth2" class="oauth2 oauth2-submit" value="<?php 
    echo htmlspecialchars($key);
    ?>
"><span class="oauth2 <?php 
    echo htmlspecialchars($key);
    ?>
开发者ID:phpsource,项目名称:openclerk,代码行数:31,代码来源:oauth2_add.php


示例19: t

<h1><?php 
echo t("Support :site_name with Premium Accounts");
?>
</h1>

<?php 
if (user_logged_in() && ($user = get_user(user_id()))) {
    if ($user['is_premium']) {
        ?>
	<div class="success success_float">
		<?php 
        echo t("Thank you for supporting :site_name with :premium!", array(':premium' => link_to(url_for('user#user_premium'), ht("your premium account"))));
        ?>
		<br>
		<?php 
        echo t("Your premium account expires in :time.", array(":time" => recent_format_html($user['premium_expires'], " ago", "")));
        ?>
	</div>
<?php 
    }
}
?>

<p>
	<?php 
$result = array();
foreach (get_site_config('premium_currencies') as $currency) {
    $result[] = get_currency_name($currency);
}
echo t("You can support :site_name by purchasing a\n\tpremium account with :currencies currencies. You will also get access to exclusive, premium-only functionality such as\n\tvastly increased limits on the number of addresses and accounts you may track at once,\n\tand advanced reporting and notification functionality. Your jobs and reports will also have higher priority over free users.", array(":currencies" => implode_english($result)));
开发者ID:phpsource,项目名称:openclerk,代码行数:30,代码来源:premium.php


示例20: htmlspecialchars

<div class="tip">
Cryptocurrencies that do <em>not</em> have a suitable explorer API yet at the time of writing:
<ul>
	<li><span class="currency_name_smc">Smartcoin</span></li>
</ul>
</div>

<p>
	Currently <?php 
echo htmlspecialchars(get_site_config('site_name'));
?>
 supports the <?php 
$result = array();
foreach (get_all_cryptocurrencies() as $c) {
    $result[] = "<span class=\"currency_name_" . htmlspecialchars($c) . "\">" . htmlspecialchars(get_currency_name($c)) . "</span>" . (in_array($c, get_new_supported_currencies()) ? " <span class=\"new\">" . ht("new") . "</span>" : "");
}
echo implode_english($result);
?>
 cryptocurrencies.
</p>

<p>
	In the future, <?php 
echo htmlspecialchars(get_site_config('site_name'));
?>
 will host cryptocurrency
	explorer instances locally, removing these requirements and making it possible to add almost any
	cryptocurrency; please donate or purchase a <a href="<?php 
echo htmlspecialchars(url_for('premium'));
?>
开发者ID:phpsource,项目名称:openclerk,代码行数:30,代码来源:inline_add_currency.php



注:本文中的ht函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP htmLawed函数代码示例发布时间:2022-05-15
下一篇:
PHP hsprintf函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap