本文整理汇总了PHP中SecurityToken::FormParameter方法的典型用法代码示例。如果您正苦于以下问题:PHP SecurityToken::FormParameter方法的具体用法?PHP SecurityToken::FormParameter怎么用?PHP SecurityToken::FormParameter使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SecurityToken
的用法示例。
在下文中一共展示了SecurityToken::FormParameter方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: camp_html_content_top
camp_html_content_top(getGS('Copy previous issue'), array('Pub' => $publicationObj), true, true, array(getGS("Issues") => "/$ADMIN/issues/?Pub=$Pub"));
if (is_null($lastCreatedIssue)) { ?>
<BLOCKQUOTE>
<LI><?php putGS('No previous issue.'); ?></LI>
</BLOCKQUOTE>
<?php
} else {
camp_html_display_msgs();
?>
<P>
<FORM name="issue_add" METHOD="POST" ACTION="do_add_prev.php" onsubmit="return <?php camp_html_fvalidate(); ?>;">
<?php echo SecurityToken::FormParameter(); ?>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" CLASS="box_table">
<TR>
<TD COLSPAN="2">
<B><?php putGS("Copy previous issue"); ?></B>
<HR NOSHADE SIZE="1" COLOR="BLACK">
</TD>
</TR>
<TR>
<TD COLSPAN="2"><?php putGS('Copy structure from issue number $1','<B>'. $lastCreatedIssue->getIssueNumber().'</B>'); ?></TD>
</TR>
<TR>
<TD ALIGN="RIGHT" ><?php putGS("Issue Number"); ?>:</TD>
<TD>
<INPUT TYPE="TEXT" class="input_text" NAME="f_issue_number" VALUE="<?php print ($lastCreatedIssue->getIssueNumber() + 1); ?>" SIZE="5" MAXLENGTH="10" alt="number|0|1|1000000000" emsg="<?php putGS("You must input a number greater than 0 into the $1 field.", "'".getGS("Number")."'"); ?>">
</TD>
示例2: translationForm
//.........这里部分代码省略.........
$mapPrefixToDisplay["topics"] = getGS("Topics");
$mapPrefixToDisplay["languages"] = getGS("Languages");
$mapPrefixToDisplay["country"] = getGS("Countries");
$mapPrefixToDisplay["localizer"] = getGS("Localizer");
$mapPrefixToDisplay["logs"] = getGS("Logs");
$mapPrefixToDisplay["users"] = getGS("Users");
$mapPrefixToDisplay["user_subscriptions"] = getGS("User Subscriptions");
$mapPrefixToDisplay["user_subscription_sections"] = getGS("User Subscriptions Sections");
$mapPrefixToDisplay["user_types"] = getGS("Staff User Types");
$mapPrefixToDisplay["bug_reporting"] = getGS("Bug Reporting");
$mapPrefixToDisplay["feedback"] = getGS("Feedback");
$mapPrefixToDisplay["preview"] = getGS("Preview Window");
$mapPrefixToDisplay["tiny_media_plugin"] = getGS("Editor Media Plugin");
$mapPrefixToDisplay["plugins"] = getGS("Plugins");
$mapPrefixToDisplay["extensions"] = getGS("Extensions");
$mapPrefixToDisplay["authors"] = getGS("Authors");
foreach (CampPlugin::GetPluginsInfo(true) as $info) {
if (array_key_exists('localizer', $info) && is_array($info['localizer'])) {
$mapPrefixToDisplay[$info['localizer']['id']] = getGS($info['localizer']['screen_name']);
}
}
// Whether to show translated strings or not.
$hideTranslated = camp_session_get('hide_translated', 'off');
camp_html_display_msgs();
?>
<table>
<tr>
<td valign="top"> <!-- Begin top control panel -->
<form action="index.php" method="post">
<?php echo SecurityToken::FormParameter(); ?>
<input type="hidden" name="localizer_lang_id" value="<?php echo $targetLang->getLanguageId(); ?>">
<input type="hidden" name="search_string" value="<?php echo htmlspecialchars($searchString); ?>">
<table border="0" cellpadding="0" cellspacing="0" class="box_table">
<tr>
<td>
<table>
<tr>
<td>
<?php putGS('Area to localize'); ?>:
</td>
</tr>
<tr>
<td>
<SELECT name="prefix" class="input_select" onchange="this.form.submit();">
<?PHP
foreach ($mapPrefixToDisplay as $prefix => $displayStr) {
if (!empty($prefix)) {
$transl_status[$prefix] = Localizer::GetTranslationStatus($prefix, $localizerTargetLanguage);
}
camp_html_select_option($prefix, $screenDropDownSelection, $displayStr, $transl_status[$prefix]['untranslated'] ? array('style' => 'color:red') : array());
}
?>
</SELECT>
</td>
</tr>
</table>
</td>
<td>
<table>
<tr>
<td>