Пример #1
0
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;
}
Пример #2
0
	<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
0
"></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
0
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 
    echo ht("Tools");
    ?>
</span>
      <ul>
        <li><a href="<?php 
    echo htmlspecialchars(url_for('historical'));
    ?>
"><?php 
    echo ht("Historical Data");
    ?>
</a></li>
        <li><a href="<?php 
    echo htmlspecialchars(url_for('average'));
    ?>
"><?php 
    echo ht("Market Averages");
    ?>
</a></li>
        <li><a href="<?php 
    echo htmlspecialchars(url_for('calculator'));
    ?>
"><?php 
    echo ht("Calculator");
    ?>
</a></li>
        <li><a href="<?php 
    echo htmlspecialchars(url_for('api'));
    ?>
"><?php 
    echo ht("API");
    ?>
</a></li>
      </ul>
    </li>
    <li><span class="title"><?php 
    echo ht("Support");
    ?>
</span>
      <ul>
        <li><a href="<?php 
    echo htmlspecialchars(url_for('help'));
    ?>
"><?php 
    echo ht("Help Centre");
    ?>
</a></li>
        <li><a href="<?php 
    echo htmlspecialchars(get_site_config('blog_link'));
    ?>
" target="_blank"><?php 
    echo ht("Blog");
    ?>
</a> <span class="new"><?php 
    echo ht("new");
    ?>
</span></li>
        <li><a href="<?php 
    echo htmlspecialchars(url_for('contact'));
    ?>
"><?php 
    echo ht("Contact Us");
    ?>
</a></li>
        <li><a href="<?php 
    echo htmlspecialchars(url_for('external'));
    ?>
"><?php 
    echo ht("External API Status");
    ?>
</a></li>
      </ul>
    </li>
  </ul>

  <div id="copyright">
    <?php 
    require_template("templates_copyright");
    ?>
  </div>

</div>
<?php 
    if (!(has_required_admin() || defined('BATCH_SCRIPT'))) {
        ?>
<script type="text/javascript">
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', '<?php 
        echo get_site_config('google_analytics_account');
        ?>
', 'auto');
  ga('send', 'pageview');
</script>
<?php 
    }
    ?>
</body>
</html>
<?php 
    if (defined('PAGE_RENDER_START')) {
        $end_time = microtime(true);
        $time_diff = ($end_time - PAGE_RENDER_START) * 1000;
        echo "<!-- rendered in " . number_format($time_diff, 2) . " ms -->";
    }
    performance_metrics_page_end();
    echo "\n<!--\n" . print_r(Openclerk\MetricsHandler::getInstance()->printResults(), true) . "\n-->";
    if (is_admin()) {
        echo "\n<!-- " . print_r($_SESSION, true) . "\n-->";
    }
}
Пример #5
0
<?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
0
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
0
<?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>
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
0
  </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
0
    </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
0
?>
  <?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
0
  </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
0
    </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
0
<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
0
<?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)))));
    }
}
Пример #16
0
<?php

echo ct("Hello");
echo urlencode("World");
echo t("Cat");
echo u("Ignored");
echo ht("Ignored");
echo plural("book", 5);
Пример #17
0
/**
 * 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']));
    }
    if (isset($graph['id']) && $graph['id']) {
        $graph_id = "graph_" . $graph['id'];
    } else {
        $graph_id = "graph_" . rand(0, 0xffff);
    }
    $graph['target'] = $graph_id;
    $graph['graphWidth'] = get_site_config('default_graph_width') * $graph['width'];
    $graph['computedWidth'] = $graph['graphWidth'];
    $graph['graphHeight'] = get_site_config('default_graph_height') * $graph['height'];
    $graph['computedHeight'] = $graph['graphHeight'] + 30;
    // if we are logged in, also provide the user ID and computed user hash, to verify that we can
    // correctly access this graph (also means that we don't have to initialise sessions on the API)
    if ($include_user_hash && user_logged_in()) {
        $graph['user_id'] = user_id();
        $graph['user_hash'] = compute_user_graph_hash(get_user(user_id()));
    }
    // enable demo if necessary
    if (require_get("demo", false)) {
        $graph['demo'] = true;
    }
    // we set the widths and heights initially here so that the page layout doesn't move around
    // a lot as the graphs are loaded via AJAX
    $inline_styles = "overflow: hidden; width: " . $graph['computedWidth'] . "px; height: " . $graph['computedHeight'] . "px;";
    switch ($graph['graph_type']) {
        case "linebreak":
        case "heading":
            // don't render anything! this rendering is handled by profile.php
            return;
        case "calculator":
            // a special case for the Calculator widget; it doesn't seem a good idea to
            // have this as an API call that returns a mixture of HTML and Javascript
            ?>
      <div id="<?php 
            echo htmlspecialchars($graph_id);
            ?>
" class="graph graph_calculator" style="<?php 
            echo $inline_styles;
            ?>
">
        <div class="graph_headings">
          <h2 class="graph_title"><?php 
            echo ht("Currency converter");
            ?>
</h2>
        </div>
        <div class="graph-target">
          <?php 
            require __DIR__ . "/../pages/_calculator.php";
            ?>
        </div>
      </div>
      <script type="text/javascript">
      $(document).ready(function() {
        Graphs.render(<?php 
            echo json_encode($graph);
            ?>
, true /* static graph */);
        initialise_calculator($("#<?php 
            echo htmlspecialchars($graph_id);
            ?>
"))
      });
      </script>
      <?php 
            return;
    }
    // 'overflow: hidden;' is to fix a Chrome rendering bug
    ?>
    <div id="<?php 
    echo htmlspecialchars($graph_id);
    ?>
" class="graph" style="<?php 
    echo $inline_styles;
    ?>
"></div>
    <script type="text/javascript">
      Graphs.render(<?php 
    echo json_encode($graph);
    ?>
);
    </script>
  <?php 
}
Пример #18
0
?>

<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);
    ?>
Пример #19
0
<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)));
Пример #20
0
<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'));
?>
Пример #21
0
<h1><?php 
echo t("Add OAuth2 Identity");
?>
</h1>

<!-- login instructions go here -->

<p><?php 
echo t("You can also see a list of :identities.", array(':identities' => link_to(url_for('user#user_openid'), ht("your current OAuth2 identities"))));
?>
</p>
Пример #22
0
    $lz2 = mysql_result($lz_tmp, '1', 'lz_text');
    $lz3 = mysql_result($lz_tmp, '2', 'lz_text');
    $lz4 = mysql_result($lz_tmp, '3', 'lz_text');
    $lz5 = mysql_result($lz_tmp, '4', 'lz_text');
    echo "<div id=\"lzframe\">";
    echo "<div id=\"lzname\">" . $uid['lastname'] . ", " . $uid['firstname'] . "</div></br> ";
    echo "<div id=\"lz\">";
    echo "<div id=\"lz_ht\">" . ht('lernziel_1') . "</div>";
    echo $lz1 . "</br>";
    echo "<div id=\"lz_ht\">" . ht('lernziel_2') . "</div>";
    echo $lz2 . "</br>";
    echo "<div id=\"lz_ht\">" . ht('lernziel_3') . "</div>";
    echo $lz3 . "</br>";
    echo "<div id=\"lz_ht\">" . ht('lernziel_4') . "</div>";
    echo $lz4 . "</br>";
    echo "<div id=\"lz_ht\">" . ht('lernziel_5') . "</div>";
    echo $lz5 . "</div></br>";
    echo "Beurteilung wird erstellt von: ";
    echo "<form action=\"schuelerschieben.php\" method=\"POST\">";
    echo "<select name = \"lehrerauswahl\" size =\"1\">";
    for ($i = 0; $i < $paukermenge; $i++) {
        echo "<option>" . $lehrer[$i] . "</option>";
    }
    echo "</select>";
    echo "<input action=\"schuelerschieben.php\" type=\"submit\" value=\"Speichern\">";
    echo "</form>";
    echo "</div>";
}
mysql_close($verbindung);
?>
   </body>
Пример #23
0
</div>

<hr>

<div class="home-block" id="home_block_support">
<h2><?php 
echo ht("Supported Addresses and Accounts");
?>
</h2>

<?php 
require_template("_supported");
?>
</div>

<div class="banner">
  <a href="<?php 
echo htmlspecialchars(url_for('screenshots'));
?>
" title="<?php 
echo ht("Screenshots");
?>
"><img src="<?php 
echo htmlspecialchars(url_for('img/screenshots/banner2_small.png'));
?>
" alt="<?php 
echo ht("Example reports and graphs");
?>
"></a>
</div>
Пример #24
0
<?php

// require_once so we can include this from /index.php router
require_once __DIR__ . "/../inc/global.php";
require __DIR__ . "/../layout/templates.php";
page_header(t("Not Found"), "page_404");
?>
<h1><?php 
echo ht("Not Found");
?>
</h1>

<p><?php 
echo ht("That resource could not be found.");
?>
 :(</p>

<?php 
page_footer();
Пример #25
0
            ?>
      </p>

      <?php 
            page_footer();
            return;
        }
    }
}
$query = db()->prepare("UPDATE users SET email=NULL,updated_at=NOW() where email=?");
$query->execute(array($email));
require __DIR__ . "/../layout/templates.php";
page_header(t("Unsubscribe"), "page_unsubscribe");
?>
<h1><?php 
echo ht("Unsubscribe");
?>
</h1>

<p class="success">
  <?php 
echo t("Your e-mail address, :email, has been completely removed from this site, and you will no longer receive any information or notifications via e-mail.", array(':email' => '<a href="mailto:' . htmlspecialchars($email) . '">' . htmlspecialchars($email) . '</a>'));
?>
</p>

<p>
  <?php 
echo t("If you have accidentally removed your e-mail from your account, you will need to login and :add_it_back, in order to resume e-mail notifications.", array(':add_it_back' => link_to(url_for('user'), t("add your e-mail address back to your profile"))));
?>
</p>
<p>
	<?php 
echo t("You can also :vote_for_new_currencies not listed here with your :site_name account :new_marker.", array(':vote_for_new_currencies' => link_to(url_for('vote_coins'), t('vote for new currencies')), ':new_marker' => "<span class=\"new\">" . ht("new") . "</span>"));
?>
</p>

<div style="clear:both;"></div>

</div><?php 
/* ends wizard-content div */
Пример #27
0
echo htmlspecialchars(get_site_config('openclerk_version'));
echo " - ";
?>
<a href="<?php 
echo htmlspecialchars(url_for('terms'));
?>
"><?php 
echo ht("Terms of Service");
?>
</a>
<?php 
echo " - ";
?>
<a href="<?php 
echo htmlspecialchars(url_for('terms#privacy'));
?>
"><?php 
echo ht("Privacy Policy");
?>
</a><br>
<div class="donate"><a href="http://code.google.com/p/openclerk/wiki/Donating" target="_blank"><?php 
echo ht("Donate");
?>
</a>: <?php 
echo crypto_address('btc', '17eTMdqaFRSttfBYB9chKEzHubECZPTS6p');
?>
 - <?php 
echo crypto_address('ltc', 'LbYmauLERxK1vyqJbB9J2MNsffsYkBSuVX');
?>
</div>
Пример #28
0
echo ht("CSV File:");
?>
</label></th>
  <td>
    <input type="file" name="csv" accept="text/*">
    <input type="hidden" name="MAX_FILE_SIZE" value="131072">
  </td>
</tr>
<tr>
  <td colspan="2" class="buttons">
  <input type="hidden" name="currency" value="<?php 
echo htmlspecialchars($account_data['currency']);
?>
">
  <input type="submit" name="add" value="<?php 
echo ht("Upload CSV");
?>
" class="add">
<?php 
if (isset($account_data['csv_kb'])) {
    ?>
    <div class="help">
    <a href="<?php 
    echo htmlspecialchars(url_for('help/' . $account_data['csv_kb']));
    ?>
"><?php 
    echo t("How do I upload a :client CSV file?", array(':client' => $account_data['client']));
    ?>
</a>
    </div>
<?php 
Пример #29
0
        ?>
</div>
    <?php 
    }
    ?>
    <?php 
    echo t(":cost1 per month, or :cost2 per year", array(':cost1' => currency_format($currency, get_premium_price($currency, 'monthly')), ':cost2' => currency_format($currency, get_premium_price($currency, 'yearly'))));
    ?>
  </td>
  <td class="buttons">
    <form action="<?php 
    echo htmlspecialchars(url_for('purchase'));
    ?>
" method="post">
      <input type="hidden" name="currency" value="<?php 
    echo htmlspecialchars($currency);
    ?>
">
      <input type="submit" value="<?php 
    echo ht("Purchase");
    ?>
">
    </form>
  </td>
</tr>
<?php 
}
?>
</table>
</div>
Пример #30
0
function expected_delay_html($minutes)
{
    if ($minutes == 0) {
        return "<i>" . ht("none") . "</i>";
    } else {
        if ($minutes < 60) {
            return "&lt; " . plural("min", ceil($minutes));
        } else {
            if ($minutes < 60 * 60) {
                return "&lt; " . plural("hour", ceil($minutes / 60));
            } else {
                return "&lt; " . plural("day", ceil($minutes / (60 * 60)));
            }
        }
    }
}