当前位置: 首页>>代码示例>>PHP>>正文


PHP SecurityToken::URLParameter方法代码示例

本文整理汇总了PHP中SecurityToken::URLParameter方法的典型用法代码示例。如果您正苦于以下问题:PHP SecurityToken::URLParameter方法的具体用法?PHP SecurityToken::URLParameter怎么用?PHP SecurityToken::URLParameter使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SecurityToken的用法示例。


在下文中一共展示了SecurityToken::URLParameter方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: get_user_urlparams

		<?php } ?>

		<td>
			<?php
				$creationDate = $row['time_created'];
				if ((int)$creationDate == 0) {
					putGS('N/A');
				} else {
					echo $creationDate;
				}
			?>
		</td>
<?php
	if ($canDelete) { ?>
		<td align="center">
			<a href="/<?php echo $ADMIN; ?>/users/do_del.php?<?php echo get_user_urlparams($userId, false, true, true) . '&' . SecurityToken::URLParameter(); ?>" onclick="return confirm('<?php putGS('Are you sure you want to delete the user account $1 ?', $row['UName']); ?>');">
				<img src="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/delete.png" border="0" ALT="<?php putGS('Delete user $1', $row['UName']); ?>" title="<?php putGS('Delete user $1', $row['UName']); ?>">
			</a>
		</td>
<?php
	}
?>
	</tr>
<?php
}
?>
</table>
<?php /*?>
<table class="indent">
<tr>
	<td>
开发者ID:nistormihai,项目名称:Newscoop,代码行数:31,代码来源:index.php

示例2: p

	<?php 
    if ($g_user->hasPermission("ManageArticleTypes")) {
        ?>
	<TD ALIGN="CENTER">
		<A HREF="/<?php 
        p($ADMIN);
        ?>
/article_types/fields/do_del.php?f_article_type=<?php 
        print urlencode($articleTypeName);
        ?>
&f_field_name=<?php 
        print urlencode($field->getPrintName());
        ?>
&<?php 
        echo SecurityToken::URLParameter();
        ?>
" onclick="return confirm('<?php 
        echo $translator->trans('Are you sure you want to delete the field $1?', array('$1' => htmlspecialchars($field->getPrintName() . ' ' . $translator->trans('You will also delete all fields with this name from all articles of this type from all publications.'))), 'article_type_fields');
        ?>
');"><IMG SRC="<?php 
        echo $Campsite["ADMIN_IMAGE_BASE_URL"];
        ?>
/delete.png" BORDER="0" ALT="<?php 
        echo $translator->trans('Delete field $1', array('$1' => htmlspecialchars($field->getPrintName())), 'article_type_fields');
        ?>
" TITLE="<?php 
        $translator->trans('Delete field $1', array('$1' => htmlspecialchars($field->getPrintName())), 'article_type_fields');
        ?>
" ></A>
	</TD>
开发者ID:alvsgithub,项目名称:Newscoop,代码行数:30,代码来源:index.php

示例3: putGS

	<td align="left" valign="top"><b><?php putGS("Delete"); ?></b></td>
<?php } ?>
</tr>
<?php
foreach ($userTypes as $userType) { ?>
<tr <?php if ($color) { $color=0; ?>class="list_row_even"<?php  } else { $color=1; ?>class="list_row_odd"<?php  } ?>>
	<td>
		<?php p(htmlspecialchars($userType->getName())); ?>&nbsp;
	</td>

	<?php if ($canManage) { ?>
	<td align="center">
		<a href="/<?php echo $ADMIN; ?>/user_types/access.php?UType=<?php p(urlencode($userType->getId())); ?>"><?php  putGS('Change'); ?></a>
	</td>

	<td align="center">
		<a href="/<?php echo $ADMIN; ?>/user_types/do_del.php?UType=<?php p(urlencode($userType->getId()) . '&' . SecurityToken::URLParameter()); ?>" onclick="return confirm('<?php putGS('Are you sure you want to delete the user type $1?', $userType->getName()); ?>');">
		<img src="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/delete.png" border="0" alt="Delete user type <?php p(htmlspecialchars($userType->getName())); ?>" title="Delete user type <?php p(htmlspecialchars($userType->getName())); ?>"></a>
	</td>
<?php  } ?>
</tr>
<?php
} // foreach
?>
</table>
<?php  } else { ?><blockquote>
	<li><?php  putGS('No user types.'); ?></li>
</blockquote>
<?php  } ?>
<?php camp_html_copyright_notice(); ?>
开发者ID:nistormihai,项目名称:Newscoop,代码行数:30,代码来源:index.php

示例4: camp_html_article_url

/**
 * Create a link to an article.
 *
 * @param Article $p_articleObj
 *		The article we want to display.
 *
 * @param int $p_sectionLanguageId
 *		The language ID for the publication/issue/section.
 *
 * @param string $p_targetFileName
 *		Which file in the "articles" directory to call.
 *
 * @param string $p_backLink
 *		A URL to get back to the previous page the user was on.
 *
 * @param string $p_extraParams
 */
function camp_html_article_url($p_articleObj, $p_sectionLanguageId, $p_targetFileName = "", $p_backLink = "", $p_extraParams = null, $p_securityParameter = false)
{
    global $ADMIN;
    $str = "/{$ADMIN}/articles/" . $p_targetFileName . "?f_publication_id=" . $p_articleObj->getPublicationId() . "&f_issue_number=" . $p_articleObj->getIssueNumber() . "&f_section_number=" . $p_articleObj->getSectionNumber() . "&f_article_number=" . $p_articleObj->getArticleNumber() . "&f_language_id=" . $p_sectionLanguageId . "&f_language_selected=" . $p_articleObj->getLanguageId();
    if ($p_securityParameter) {
        $str .= '&' . SecurityToken::URLParameter();
    }
    if ($p_backLink != "") {
        $str .= "&Back=" . urlencode($p_backLink);
    }
    if (!is_null($p_extraParams)) {
        $str .= $p_extraParams;
    }
    return $str;
}
开发者ID:nidzix,项目名称:Newscoop,代码行数:32,代码来源:camp_html.php

示例5: if

    <TD ALIGN="CENTER">
        <?php if ($field->getType() == ArticleTypeField::TYPE_BODY) { ?>
        <input type="checkbox" <?php if ($field->isContent()) { ?>checked<?php } ?> id="set_is_content_<?php echo $i; ?>" name="set_is_content_<?php echo $i; ?>" onclick="if (confirm('<?php putGS('Are you sure you want to make $1 a $2 field?', $field->getPrintName(), $contentType); ?>')) { location.href='/<?php p($ADMIN); ?>/article_types/fields/set_is_content.php?f_article_type=<?php print urlencode($articleTypeName); ?>&f_field_name=<?php  print urlencode($field->getPrintName()); ?>&f_is_content=<?php print $setContentField; ?>&<?php echo SecurityToken::URLParameter(); ?>' } else { document.getElementById('set_is_content_<?php echo $i; ?>').checked = <?php echo $isContentField; ?> }">
        <?php } else { ?>
        <?php putGS('N/A'); ?>
        <?php } ?>
    </TD>

	<TD ALIGN="CENTER">
		<A HREF="/<?php p($ADMIN); ?>/article_types/fields/do_hide.php?f_article_type=<?php print urlencode($articleTypeName); ?>&f_field_name=<?php  print urlencode($field->getPrintName()); ?>&f_status=<?php print $hideShowStatus; ?>&<?php echo SecurityToken::URLParameter(); ?>" onclick="return confirm('<?php putGS('Are you sure you want to $1 the article type field $2?', $hideShowText, $field->getPrintName()); ?>');"><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/<?php echo $hideShowImage; ?>" BORDER="0" ALT="<?php  putGS('$1 article type field $2', ucfirst($hideShowText), $field->getPrintName()); ?>" TITLE="<?php  putGS('$1 article type $2', ucfirst($hideShowText), $field->getPrintName()); ?>" ></A>
	</TD>

	<?php  if ($g_user->hasPermission("ManageArticleTypes")) { ?>
	<TD ALIGN="CENTER">
		<A HREF="/<?php p($ADMIN); ?>/article_types/fields/do_del.php?f_article_type=<?php print urlencode($articleTypeName); ?>&f_field_name=<?php print urlencode($field->getPrintName()); ?>&<?php echo SecurityToken::URLParameter(); ?>" onclick="return confirm('<?php echo getGS('Are you sure you want to delete the field $1?', htmlspecialchars($field->getPrintName())).' '.getGS('You will also delete all fields with this name from all articles of this type from all publications.');  ?>');"><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/delete.png" BORDER="0" ALT="<?php  putGS('Delete field $1', htmlspecialchars($field->getPrintName())); ?>" TITLE="<?php  putGS('Delete field $1', htmlspecialchars($field->getPrintName())); ?>" ></A>
	</TD>
	<?php } ?>
</TR>


    <tr id="translate_field_<?php p($i); ?>" style="display: none;"><td colspan="7">
    	<table>

		<?php
		$color2 = 0;
		$isFirstTranslation = true;
		$fieldTranslations = $field->getTranslations();
		foreach ($fieldTranslations as $languageId => $transName) {
		?>
		<TR <?php  if ($color2) { $color2 = 0; ?>class="list_row_even"<?php  } else { $color2 = 1; ?>class="list_row_odd"<?php  } ?>">
开发者ID:nistormihai,项目名称:Newscoop,代码行数:30,代码来源:index.php

示例6: putGS

</TR>
<tr class="table_list_header">
	<TD ALIGN="LEFT" VALIGN="TOP" nowrap><B><?php  putGS("trial subscription"); ?></B></TD>
	<TD ALIGN="LEFT" VALIGN="TOP" nowrap><B><?php  putGS("paid subscription"); ?></B></TD>
</tr>
<?php
$color = 0;
foreach ($defaultTimes as $time) {
	$country = new Country($time->getCountryCode(), $Language);
	?>
	<TR <?php  if ($color) { $color=0; ?>class="list_row_even"<?php  } else { $color=1; ?>class="list_row_odd"<?php  } ?>>
		<TD>
    	<A HREF="/<?php p($ADMIN); ?>/pub/editdeftime.php?Pub=<?php p($Pub); ?>&CountryCode=<?php  p($time->getCountryCode()); ?>&Language=<?php p($Language); ?>"><?php p(htmlspecialchars($country->getName())); ?> (<?php p(htmlspecialchars($country->getCode())); ?>)</A>
		</TD>
		<TD ALIGN="center">
			<?php p(htmlspecialchars($time->getTrialTime())); ?>
		</TD>
		<TD ALIGN="center">
			<?php p(htmlspecialchars($time->getPaidTime())); ?>
		</TD>
		<TD ALIGN="CENTER">
			<A HREF="/<?php p($ADMIN); ?>/pub/do_deldeftime.php?Pub=<?php p($Pub); ?>&CountryCode=<?php  p($time->getCountryCode()); ?>&Language=<?php p($Language); ?>&<?php echo SecurityToken::URLParameter(); ?>" onclick="return confirm('<?php putGS('Are you sure you want to delete the subscription settings for $1?', "&quot;".htmlspecialchars($publicationObj->getName()).':'.htmlspecialchars($time->getCountryCode())."&quot;"); ?>');"><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/delete.png" BORDER="0" ALT="<?php  putGS('Delete'); ?>" TITLE="<?php  putGS('Delete'); ?>" ></A>
		</TD>
	</TR>
<?php
}
?>	<TR><TD COLSPAN="2" NOWRAP>
</TABLE>

<?php camp_html_copyright_notice(); ?>
开发者ID:nistormihai,项目名称:Newscoop,代码行数:30,代码来源:deftime.php

示例7: putGS

    putGS("Attach");
    ?>
</A>
			</TD>
			<?php 
}
?>
		</TR>
		</TABLE>
	</TD>
</TR>
<?php 
foreach ($DebateAnswerAttachments as $DebateAnswerAttachment) {
    $file = $DebateAnswerAttachment->getAttachment();
    $fileEditUrl = "edit.php?f_publication_id=" . (isset($f_publication_id) ? $f_publication_id : '') . "&f_issue_number=" . (isset($f_issue_number) ? $f_issue_number : '') . "&f_section_number=" . (isset($f_section_number) ? $f_section_number : '') . "&f_article_number=" . (isset($f_article_number) ? $f_article_number : '') . "&f_attachment_id=" . $file->getAttachmentId() . "&f_language_id=" . (isset($f_language_id) ? $f_language_id : '') . "&f_language_selected=" . (isset($f_language_selected) ? $f_language_selected : '');
    $deleteUrl = "do_del.php?f_debate_nr={$f_debate_nr}&amp;f_debateanswer_nr={$f_debateanswer_nr}&amp;f_fk_language_id={$f_fk_language_id}&amp;f_attachment_id=" . $file->getAttachmentId() . '&amp;' . SecurityToken::URLParameter();
    $downloadUrl = "/attachment/" . basename($file->getStorageLocation()) . "?g_download=1";
    if (strstr($file->getMimeType(), "image/") && (strstr($_SERVER['HTTP_ACCEPT'], $file->getMimeType()) || strstr($_SERVER['HTTP_ACCEPT'], "*/*"))) {
        $previewUrl = "/attachment/" . basename($file->getStorageLocation()) . "?g_show_in_browser=1";
    }
    ?>
<TR>
	<TD align="center" width="100%">
		<TABLE>
		<TR>
			<TD align="center" valign="top">
				<?php 
    if (isset($f_edit_mode) && $f_edit_mode == "edit") {
        ?>
<a href="<?php 
        p($fileEditUrl);
开发者ID:nidzix,项目名称:Newscoop,代码行数:31,代码来源:edit_files_box.php

示例8: p

			<?php p(htmlspecialchars($section->getUrlName())); ?>
		</TD>
        <?php if ($g_user->hasPermission('ManageSection')) { ?>
        <TD ALIGN="CENTER">
			<A HREF="/<?php p($ADMIN); ?>/sections/edit.php?Pub=<?php  p($Pub); ?>&Issue=<?php  p($section->getIssueNumber()); ?>&Section=<?php p($section->getSectionNumber()); ?>&Language=<?php  p($section->getLanguageId()); ?>"><img src="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/configure.png" alt="<?php  putGS("Configure"); ?>" title="<?php  putGS("Configure"); ?>" border="0"></A>
        </TD>
        <?php } ?>
		<?php if ($g_user->hasPermission('ManageSection') && $g_user->hasPermission('AddArticle')) { ?>
		<TD ALIGN="CENTER">
			<A HREF="/<?php p($ADMIN);?>/sections/duplicate.php?Pub=<?php  p($Pub); ?>&Issue=<?php  p($Issue); ?>&Section=<?php p($section->getSectionNumber()); ?>&Language=<?php  p($Language); ?>"><img src="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/duplicate.png" alt="<?php putGS('Duplicate'); ?>" title="<?php putGS('Duplicate'); ?>" border="0"></A>
		</TD>
		<?php } ?>

		<?php if ($g_user->hasPermission('DeleteSection')) { ?>
		<TD ALIGN="CENTER">
			<A HREF="/<?php p($ADMIN); ?>/sections/del.php?Pub=<?php  p($Pub); ?>&Issue=<?php  p($section->getIssueNumber()); ?>&Section=<?php p($section->getSectionNumber()); ?>&Language=<?php  p($section->getLanguageId()); ?>&SectOffs=<?php p($SectOffs); ?>&<?php echo SecurityToken::URLParameter(); ?>"><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/delete.png" BORDER="0" ALT="<?php putGS('Delete section $1', htmlspecialchars($section->getName())); ?>" TITLE="<?php  putGS('Delete section $1', htmlspecialchars($section->getName())); ?>"></A>
		</TD>
		<?php  } ?>
	</TR>
<?php
} // foreach
?>
</table>
<table class="indent">
<TR>
	<TD>
		<?php echo $pager->render(); ?>
	</TD>
</TR>
</TABLE>
<?php
开发者ID:nistormihai,项目名称:Newscoop,代码行数:31,代码来源:index.php

示例9: if

                <td align='center'>
                <?php if ($poll->isExtended()) { ?>
                    <a href="copy.php?f_poll_nr=<?php p($poll->getNumber()); ?>&f_fk_language_id=<?php p($poll->getLanguageId()) ?>" title="<?php putGS('Copy') ?>">
                        <IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/duplicate.png" BORDER="0">
                    </a>
                <?php } ?>
                </td>

                <td align='center'>
                    <a href="result.php?f_poll_nr=<?php p($poll->getNumber()); ?>&f_fk_language_id=<?php p($poll->getLanguageId()); ?>" title="<?php putGS('Result') ?>">
                        <IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/preview.png" BORDER="0">
                    </a>
                </td>

                <td align='center'>
                    <a href="javascript: if (confirm('<?php echo camp_javascriptspecialchars(getGS('Are you sure you want to delete the poll "$1"?', $poll->getProperty('title'))); ?>')) location.href='do_delete.php?f_poll_nr=<?php p($poll->getNumber()); ?>&amp;f_fk_language_id=<?php p($poll->getLanguageId()); ?>&amp;<?php echo SecurityToken::URLParameter(); ?>'">
                        <IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/delete.png" BORDER="0">
                    </a>
                </td>

            </tr>
            <?php
            $counter++;
        }
      ?>
    </table>
</FORM>
<?php
} else {?>
    <BLOCKQUOTE>
    <LI><?php  putGS('No polls.'); ?></LI>
开发者ID:nistormihai,项目名称:Newscoop,代码行数:31,代码来源:index.php

示例10: Language

    <li id="topic_<?php echo $currentTopic->getTopicId() ?>">

<?php
	$isFirstTranslation = true;
    $topicTranslations = $currentTopic->getTranslations();
	foreach ($topicTranslations as $topicLanguageId => $topicName) {
		if (!in_array($topicLanguageId, $f_show_languages)) {
			continue;
		}

        $topicLanguage = new Language($topicLanguageId);
        $topicId = $currentTopic->getTopicId();
?>

        <div class="item"><div>
            <a class="icon delete" href="<?php p("/$ADMIN/topics/do_del.php?f_topic_delete_id=".$currentTopic->getTopicId()."&amp;f_topic_language_id=$topicLanguageId"); ?>&amp;<?php echo SecurityToken::URLParameter(); ?>" onclick="return confirm('<?php putGS('Are you sure you want to delete the topic $1?', htmlspecialchars($topicName)); ?>');" title="<?php putGS("Delete"); ?>"><span></span>x</a>
            <a class="edit" title="<?php putGS('Edit'); ?>"><?php putGS('Edit'); ?></a>

            <span class="open" title="<?php putGS('Click to edit'); ?>">
                <span><?php echo $topicLanguage->getCode(); ?></span>
                <strong><?php echo htmlspecialchars($topicName); ?></strong>
            </span>

            <form method="post" action="do_edit.php" onsubmit="return validate(this);">
                <?php echo SecurityToken::FormParameter(); ?>
	            <input type="hidden" name="f_topic_edit_id" value="<?php echo $topicId; ?>" />
	            <input type="hidden" name="f_topic_language_id" value="<?php  echo $topicLanguageId; ?>" />

            <fieldset class="name">
                <legend><?php  putGS("Change topic name"); ?></legend>
                <input type="text" class="input_text" name="f_name" value="<?php echo htmlspecialchars($topicName); ?>" size="32" maxlength="255"  title="<?php putGS('You must fill in the $1 field.',getGS('Name')); ?>" />
开发者ID:nistormihai,项目名称:Newscoop,代码行数:31,代码来源:index.php

示例11: putGS

</a>
    <?php 
}
?>
      <label class="left-floated block-label"><?php 
putGS('Topics');
?>
</label>
      <div class="clear"></div>
    <?php 
if (sizeof($articleTopics) > 0) {
    ?>
      <ul class="block-list">
    <?php 
    foreach ($articleTopics as $tmpArticleTopic) {
        $detachUrl = "/{$ADMIN}/articles/topics/do_del.php?f_article_number={$f_article_number}&f_topic_id=" . $tmpArticleTopic->getTopicId() . "&f_language_selected={$f_language_selected}&f_language_id={$f_language_id}&" . SecurityToken::URLParameter();
        $path = $tmpArticleTopic->getPath();
        $pathStr = '';
        foreach ($path as $element) {
            $name = $element->getName($f_language_selected);
            if (empty($name)) {
                // For backwards compatibility -
                // get the english translation if the translation
                // doesnt exist for the article's language.
                $name = $element->getName(1);
                if (empty($name)) {
                    $name = '-----';
                }
            }
            $pathStr .= ' / ' . htmlspecialchars($name);
        }
开发者ID:nidzix,项目名称:Newscoop,代码行数:31,代码来源:edit_topics_box.php

示例12: putGS

	$color= 0;
?>
	<tr class="table_list_header">
		<td align="left" valign="top" style="padding-left: 3px; padding-top: 3px; padding-bottom: 3px; "><B><?php putGS("Start IP"); ?></b></td>
		<td align="left" valign="top" style="padding-left: 3px;"><b><?php putGS("Number of addresses"); ?></b></td>
		<td align="left" valign="top" width="1%" style="padding-left: 3px;"><b><?php putGS("Delete"); ?></b></td>
	</tr>
<?php
	foreach ($ipAccessList as $i=>$ipAccess) {
		$startIP = $ipAccess->getStartIPstring();
		$addresses = $ipAccess->getAddresses();
		?>	<tr style="padding-left: 3px;" <?php  if ($color) { $color=0; ?>class="list_row_even"<?php  } else { $color=1; ?>class="list_row_odd"<?php  } ?>>
		<td style="padding-left: 3px; padding-top: 3px; padding-bottom: 3px; "><?php echo $startIP; ?></td>
		<td style="padding-left: 3px;"><?php p(htmlspecialchars($addresses)); ?></td>
		<td align="center" style="padding-left: 3px;">
			<a href="/<?php echo $ADMIN; ?>/users/do_ipdel.php?User=<?php echo $editUser->getUserId() . '&' . SecurityToken::URLParameter(); ?>&StartIP=<?php  p($startIP); ?>"  onclick="return confirm('<?php putGS('Are you sure you want to delete the IP Group $1:$2?', $startIP, htmlspecialchars($addresses)); ?>');">
			<img src="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/delete.png" border="0" ALT="<?php putGS('Delete'); ?>" title="<?php putGS('Delete'); ?>"></a>
		</td>
	</tr>
<?php
	}
} else {
?><tr class="list_row_odd"><td colspan="3" style="padding-left: 3px;"><?php  putGS('No records.'); ?></td></tr>
<?php } ?>
<tr id="add_ip_row_id" style="display: none;">
	<td colspan="3" align="center" style="padding-top: 3px;">
		<form name="dialog" method="POST" action="do_ipadd.php" onsubmit="return <?php camp_html_fvalidate(); ?>;">
		<?php echo SecurityToken::FormParameter(); ?>
		<input type="hidden" name="User" value="<?php echo $editUser->getUserId(); ?>">
		<table border="0" cellspacing="0" cellpadding="0" class="box_table">
			<tr>
开发者ID:nistormihai,项目名称:Newscoop,代码行数:31,代码来源:ipaccesslist.php

示例13: putGS

                    putGS("N/A");
                }
                print "</td>";
                print "\n\t\t\t<td align=\"center\">";
                if ($templateObj->exists()) {
                    echo $templateObj->getCacheLifetime();
                } else {
                    putGS("N/A");
                }
                print "</td>";
                if ($g_user->hasPermission("ManageTempl")){
                    print "\n\t\t\t<TD ALIGN=\"CENTER\"><A HREF=\"/".$ADMIN.'/templates/dup.php?Path='.urlencode($listbasedir).'&Name='.urlencode($filename).'"><IMG SRC="'.$Campsite["ADMIN_IMAGE_BASE_URL"].'/duplicate.png" BORDER="0" ALT="'.getGS('Duplicate file').'" TITLE="'.getGS('Duplicate file').'"></A></TD>';
                    print "\n\t\t\t<TD ALIGN=\"CENTER\"><A HREF=\"/".$ADMIN.'/templates/rename.php?Path='.urlencode($listbasedir).'&Name='.urlencode($filename).'"><IMG SRC="'.$Campsite["ADMIN_IMAGE_BASE_URL"].'/rename.png" BORDER="0" ALT="'.getGS('Rename file').'" TITLE="'.getGS('Rename file').'"></A?</TD>';
                }
                if ($g_user->hasPermission("DeleteTempl")) {
                    print "\n\t\t\t<TD ALIGN=\"CENTER\"><A HREF=\"/".$ADMIN.'/templates/do_del.php?What=1&Path='.urlencode($listbasedir).'&Name='.urlencode($filename).'&'.SecurityToken::URLParameter().'" onclick="return confirm(\''.getGS('Are you sure you want to delete the template object $1 from folder $2?', htmlspecialchars($filename),htmlspecialchars($currentFolder)).'\');"><IMG SRC="'.$Campsite["ADMIN_IMAGE_BASE_URL"].'/delete.png" BORDER="0" ALT="'.getGS('Delete file').'" TITLE="'.getGS('Delete file').'"></A></TD>';
                }
                print "</TR>\n";
                $counter++;
            }
        }
        else{
            echo '<TR><TD COLSPAN="2">'.getGS('No templates.').'</TD></TR>' ;
        }
        ?>
        </TABLE>
    </TD>
</TR>
</TABLE>
<INPUT TYPE="HIDDEN" NAME="f_current_folder" VALUE="<?php p($currentFolder); ?>">
</FORM>
开发者ID:nistormihai,项目名称:Newscoop,代码行数:31,代码来源:list_dir.php

示例14: if

			<?php if (($f_edit_mode == "edit") && $g_user->hasPermission('AddFile')) {  ?>
			<TD align="right">
				<IMG src="<?php p($Campsite["ADMIN_IMAGE_BASE_URL"]);?>/add.png" border="0">
				<A href="javascript: void(0);" onclick="window.open('<?php echo camp_html_article_url($articleObj, $f_language_id, "files/popup.php"); ?>', 'attach_file', 'scrollbars=yes, resizable=yes, menubar=no, toolbar=no, width=500, height=400, top=200, left=100');"><?php putGS("Attach"); ?></A>
			</TD>
			<?php } ?>
		</TR>
		</TABLE>
	</TD>
</TR>
<?php
foreach ($PollAnswerAttachments as $PollAnswerAttachment) {
    $file = $PollAnswerAttachment->getAttachment();

	$fileEditUrl = "edit.php?f_publication_id=$f_publication_id&f_issue_number=$f_issue_number&f_section_number=$f_section_number&f_article_number=$f_article_number&f_attachment_id=".$file->getAttachmentId()."&f_language_id=$f_language_id&f_language_selected=$f_language_selected";
	$deleteUrl = "do_del.php?f_poll_nr=$f_poll_nr&amp;f_pollanswer_nr=$f_pollanswer_nr&amp;f_fk_language_id=$f_fk_language_id&amp;f_attachment_id=".$file->getAttachmentId().'&amp;'.SecurityToken::URLParameter();
	$downloadUrl = "/attachment/".basename($file->getStorageLocation())."?g_download=1";
	if (strstr($file->getMimeType(), "image/") && (strstr($_SERVER['HTTP_ACCEPT'], $file->getMimeType()) ||
							(strstr($_SERVER['HTTP_ACCEPT'], "*/*")))) {
	$previewUrl = "/attachment/".basename($file->getStorageLocation())."?g_show_in_browser=1";
	}
?>
<TR>
	<TD align="center" width="100%">
		<TABLE>
		<TR>
			<TD align="center" valign="top">
				<?php if ($f_edit_mode == "edit") { ?><a href="<?php p($fileEditUrl); ?>"><?php } p(wordwrap($file->getFileName(), "25", "<br>", true)); ?><?php if ($f_edit_mode == "edit") { ?></a><?php } ?><br><?php p(htmlspecialchars($file->getDescription($f_language_selected))); ?>
			</TD>
			<?php if ($g_user->hasPermission('DeleteFile')) { ?>
			<TD>
开发者ID:nistormihai,项目名称:Newscoop,代码行数:31,代码来源:edit_files_box.php

示例15: if

	</TD>

	<TD ALIGN="CENTER">
	<?php
		p(htmlspecialchars($country->getCode()));
	?>
    </TD>

    <?php  if ($g_user->hasPermission("ManageCountries")) { ?>
		<TD ALIGN="CENTER">
			<A HREF="/<?php p($ADMIN); ?>/country/translate.php?f_country_code=<?php p(urlencode($country->getCode())); ?>&f_country_language=<?php p($country->getLanguageId()); ?>"><?php  putGS("Translate"); ?></A>
		</TD>
	<?php  }
	if ($g_user->hasPermission("DeleteCountries")) { ?>
		<TD ALIGN="CENTER">
			<A HREF="/<?php p($ADMIN); ?>/country/do_del.php?f_country_code=<?php p(urlencode($country->getCode())); ?>&f_country_language=<?php p($country->getLanguageId()); ?>&<?php echo SecurityToken::URLParameter(); ?>" onclick="return confirm('<?php  putGS('Are you sure you want to delete the country $1?' ,htmlspecialchars($country->getName()).' ('.htmlspecialchars($language->getNativeName()).')'); ?>');"><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/delete.png" BORDER="0" ALT="Delete country <?php p(htmlspecialchars($country->getName())); ?>" TITLE="Delete country <?php  p(htmlspecialchars($country->getName())); ?>" ></A>
		</TD>
	<?php  } ?>
	</TR>
	<?php
	$previousCountryCode = $country->getCode();
} ?>
</table>
<table class="action_buttons">
<TR>
	<TD>
		<?php  echo $pager->render(); ?>
	</TD>
</TR>
</TABLE>
<?php camp_html_copyright_notice(); ?>
开发者ID:nistormihai,项目名称:Newscoop,代码行数:31,代码来源:index.php


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