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


PHP camp_html_article_url函数代码示例

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


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

示例1: camp_html_article_url

        ?>
;
}
<?php 
    }
    ?>
*/
</style>
    <div id="multiDateEventList" style="display:block; padding-bottom:8px;">

    </div>

    <?php 
    if ($inEditMode && $g_user->hasPermission('ChangeArticle')) {
        ?>
        <a class="iframe ui-state-default icon-button right-floated"
        href="<?php 
        echo camp_html_article_url($articleObj, $f_language_id, "multidate/popup.php", "", "");
        ?>
">
        <span class="ui-icon ui-icon-pencil"></span><?php 
        echo $translator->trans('Edit');
        ?>
</a>
    <?php 
    }
    ?>
</div>
</div></div>
<?php 
}
开发者ID:sourcefabric,项目名称:newscoop,代码行数:31,代码来源:edit_multidate_box.php

示例2: camp_html_add_msg

        $f_section_name = Input::Get('f_section_name', 'string', $sectionObj->getName());
        $f_section_urlname = Input::Get('f_section_urlname', 'string', $sectionObj->getUrlName());
        if ($f_section_urlname == "") {
            camp_html_add_msg(getGS('You must fill in the $1 field.', '"' . getGS('New section URL name') . '"'));
            camp_html_goto_page($backLink);
        }
        if (!camp_is_valid_url_name($f_section_urlname)) {
            camp_html_add_msg(getGS('The $1 field may only contain letters, digits and underscore (_) character.', '"' . getGS('New section URL name') . '"'));
            camp_html_goto_page($backLink);
        }
        $translationSectionObj->create($f_section_name, $f_section_urlname);
        if (!$translationSectionObj->exists()) {
            camp_html_add_msg(getGS('Unable to create the section for translation $1.', $translationLanguageObj->getName()));
            camp_html_goto_page($backLink);
        }
    } else {
        $f_section_name = Input::Get('f_section_name', 'string', $sectionObj->getName());
        $f_section_urlname = Input::Get('f_section_urlname', 'string', $sectionObj->getUrlName());
        $translationSectionObj->update(array('Name' => $f_section_name, 'ShortName' => $f_section_urlname));
    }
}
if ($articleObj->translationTitleExists($f_translation_title, $f_translation_language)) {
    camp_html_add_msg(getGS("There already is an article with the same name. Please change the name and try again."), "ok");
    camp_html_goto_page($backLink);
    exit;
}
$articleCopy = $articleObj->createTranslation($f_translation_language, $g_user->getUserId(), $f_translation_title);
camp_html_add_msg(getGS("Article translation created."), "ok");
ArticleIndex::RunIndexer(3, 10, true);
camp_html_goto_page(camp_html_article_url($articleCopy, $f_translation_language, 'edit.php'), true);
开发者ID:nidzix,项目名称:Newscoop,代码行数:30,代码来源:do_translate.php

示例3: p

     href="<?php p($detachMapUrl); ?>" onclick="return confirm('<?php putGS("Are you sure you want to remove the map from the article?"); ?>'); return false;" style="margin-bottom:8px;"><span
     class="ui-icon ui-icon-closethick"></span><?php putGS('Remove'); ?></a>
   <a class="iframe ui-state-default icon-button right-floated"
     href="<?php echo camp_html_article_url($articleObj, $f_language_id, 'locations/preview.php'); ?>"><span
     class="ui-icon ui-icon-zoomin"></span><?php putGS('Preview'); ?></a>
   <?php } else { ?>
   <a href="<?php echo camp_html_article_url($articleObj, $f_language_id, 'locations/preview.php'); ?>"
       class="iframe map-thumb"><img
     src="<?php echo $Campsite['ADMIN_STYLE_URL']; ?>/images/map_thumb.png" alt="<?php putGS('Preview'); ?>" title="<?php putGS('Preview'); ?>" /></a>
   <a class="iframe ui-state-default icon-button right-floated"
     href="<?php echo camp_html_article_url($articleObj, $f_language_id, 'locations/preview.php'); ?>"><span
     class="ui-icon ui-icon-zoomin"></span><?php putGS('Preview'); ?></a>
 <?php }
 } elseif ($canEdit) { ?>
   <a class="iframe ui-state-default icon-button right-floated"
     href="<?php echo camp_html_article_url($articleObj, $f_language_id, 'locations/popup.php'); ?>"><span
     class="ui-icon ui-icon-plusthick"></span><?php putGS('Add'); ?></a>
 <?php } ?>
 <?php if ($map->exists()) { ?>
   <h4 class="geo_map_name"<?php echo $map_name_title; ?>>
   <?php echo $map_name; ?>
   </h4>
 <?php } ?>
   <div class="clear"></div>
 <?php if ($map->exists() && !empty($locations)) { ?>
   <ul class="block-list">
   <?php
   $language_usage = $f_language_selected;
   if (!$language_usage) { $language_usage = $f_language_id; }
   foreach ($locations as $location) {
       $content = $location->getContent($language_usage);
开发者ID:nistormihai,项目名称:Newscoop,代码行数:31,代码来源:edit_locations_box.php

示例4: camp_html_article_url

            <A HREF="<?php 
        echo camp_html_article_url($articleObj, $f_language_id, "images/view.php", camp_html_article_url($articleObj, $f_language_id, "images/popup.php")) . '&f_image_id=' . $image['id'];
        ?>
">
              <img src="<?php 
        echo $image['thumbnail_url'];
        ?>
" border="0"><br>
              <?php 
        echo $image['width'] . 'x' . $image['height'];
        ?>
            </a>
        </TD>
        <TD style="padding-left: 5px;">
            <A HREF="<?php 
        echo camp_html_article_url($articleObj, $f_language_id, "images/view.php", camp_html_article_url($articleObj, $f_language_id, "images/popup.php")) . '&f_image_id=' . $image['id'];
        ?>
"><?php 
        echo htmlspecialchars($image['description']);
        ?>
</A>
        </TD>
        <TD style="padding-left: 5px;">
            <?php 
        echo htmlspecialchars($image['photographer']);
        ?>
&nbsp;
        </TD>
        <TD style="padding-left: 5px;">
            <?php 
        echo htmlspecialchars($image['place']);
开发者ID:nidzix,项目名称:Newscoop,代码行数:31,代码来源:search.php

示例5: array

	$topArray = array('Pub' => $publicationObj, 'Issue' => $issueObj,
					  'Section' => $sectionObj, 'Article'=>$articleObj);
	camp_html_content_top($title, $topArray, true, true, $extraCrumbs);
} else {
	$crumbs = array();
	$crumbs[] = array(getGS("Actions"), "");
	$crumbs[] = array(getGS("Edit article"), camp_html_article_url($articleObj, $f_language_id, "edit.php"));
	$crumbs[] = array(getGS("Attachments"), "");
	$crumbs[] = array($title, "");
	echo camp_html_breadcrumbs($crumbs);
}
?>
<table cellpadding="1" cellspacing="0" class="action_buttons" style="padding-top: 10px;">
<tr>
	<td><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/left_arrow.png" BORDER="0"></td>
	<td><a href="<?php echo camp_html_article_url($articleObj, $f_language_id, "edit.php"); ?>"><b><?php putGS("Back to Edit Article"); ?></b></a></td>
</table>
<P>
<?php if (strstr($attachmentObj->getMimeType(), "image/") &&
                (strstr($_SERVER['HTTP_ACCEPT'], $attachmentObj->getMimeType()) ||
                (strstr($_SERVER['HTTP_ACCEPT'], "*/*")))) { ?>
<div class="indent">
<IMG SRC="<?php echo $attachmentObj->getAttachmentUrl(); ?>" BORDER="0" ALT="<?php echo htmlspecialchars($attachmentObj->getDescription($f_language_selected)); ?>">
</div>
<P>
<?php } ?>
<FORM NAME="dialog" METHOD="POST" ACTION="do_edit.php" >
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="6" class="table_input" width="400px">
<TR>
	<TD COLSPAN="2">
		<B><?php  p($title); ?></B>
开发者ID:nistormihai,项目名称:Newscoop,代码行数:31,代码来源:edit.php

示例6: putGS

            <?php 
    if ($g_user->hasPermission('CommentModerate')) {
        ?>
            <a href="<?php 
        echo $controller->view->url(array('module' => 'admin', 'controller' => 'comment', 'action' => 'set-recommended'));
        ?>
/comment/${id}/recommended/${recommended_toggle}" class="ui-state-default text-button comment-recommend status-${recommended_toggle}"><?php 
        putGS('Recommend');
        ?>
</a>
            <?php 
    }
    ?>

            <a href="<?php 
    echo camp_html_article_url($articleObj, $f_language_selected, 'comments/reply.php', '', '&f_comment_id=${id}');
    ?>
" class="ui-state-default text-button"><?php 
    putGS('Reply to comment');
    ?>
</a>

        </dd>
        <?php 
}
//inEditMode
?>
      </dl>
    </div>
</fieldset>
<p style="display:none"><?php 
开发者ID:nidzix,项目名称:Newscoop,代码行数:31,代码来源:show_comments.php

示例7: void

	        <td>
            	<a href="javascript: void(0);" onclick="window.open('/<?php p($ADMIN); ?>/comments/ban.php?f_comment_id=<?php p($comment->getMessageId()); ?>', null, 'resizable=yes, menubar=no, toolbar=no, width=400, height=200, top=200, left=200'); return false;"><b><?php putGS("Ban user"); ?></b></a>
	        </td>

	        <td style="padding-left: 10px;">
	        	<input type="submit" name="save" value="<?php putGS("Save"); ?>" class="button">
	        </td>

            </tr>
            </table>
            <!-- END table for the action controls -->

            <!-- BEGIN table with article content -->
            <table BORDER="0" CELLSPACING="1" CELLPADDING="3" width="100%"  style="border-top: 1px solid #8EAED7;">
            <tr><td style="padding-top: 5px;">
                <b><?php putGS("Article"); ?>:</b>&nbsp; <a href="<?php echo camp_html_article_url($article, $article->getLanguageId(), "edit.php"); ?>"><?php p(htmlspecialchars($article->getName())); ?></a>
            </td></tr>
            <TR id="article_closed_<?php p($comment->getMessageId()); ?>">
                <td valign="middle">
                    <a href="javascript:void(0);" onclick="HideElement('article_closed_<?php p($comment->getMessageId()); ?>'); ShowElement('article_<?php p($comment->getMessageId()); ?>');"><img src="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/viewmagplus.png" border="0" align="absmiddle"><b><?php putGS("Show article"); ?></b></a>
                </td>
            </tr>
            <tr style="display: none;" id="article_<?php p($comment->getMessageId()); ?>">
                <td>
                    <a href="javascript:void(0);" onclick="HideElement('article_<?php p($comment->getMessageId()); ?>'); ShowElement('article_closed_<?php p($comment->getMessageId()); ?>');"><img src="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/viewmagminus.png" border="0" align="absmiddle"><b><?php putGS("Hide article"); ?></b></a><br>
                    <table bgcolor="#EFEFEF" style="margin: 10px; border: 1px solid #777;" width="100%" cellpadding="0" cellspacing="0">
                    <?php
                        $articleData = $article->getArticleData();
                        // Get article type fields.
                        $dbColumns = $articleData->getUserDefinedColumns(false, true);
                        foreach ($dbColumns as $dbColumn) {
开发者ID:nistormihai,项目名称:Newscoop,代码行数:31,代码来源:index.php

示例8: putGS

<?php
$PollAnswerAttachments = PollAnswerAttachment::getPollAnswerAttachments($f_poll_nr, $f_pollanswer_nr);
?>
<center>
<TABLE width="95%" style="border: 1px solid #EEEEEE;">
<TR>
	<TD>
		<TABLE width="100%" bgcolor="#EEEEEE" cellpadding="3" cellspacing="0">
		<TR>
			<TD align="left">
			<STRONG><?php putGS("Files"); ?></STRONG>
			</TD>
			<?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'], "*/*")))) {
开发者ID:nistormihai,项目名称:Newscoop,代码行数:31,代码来源:edit_files_box.php

示例9: camp_html_display_error

if (!SecurityToken::isValid()) {
    camp_html_display_error(getGS('Invalid security token!'));
    exit;
}

if (!$g_user->hasPermission('CommentModerate')) {
	camp_html_display_error(getGS("You do not have the right to moderate comments." ));
	exit;
}

if (SystemPref::Get("UseDBReplication") == 'Y') {
    $dbReplicationObj = new DbReplication();
    $connectedToOnlineServer = $dbReplicationObj->connect();
    if ($connectedToOnlineServer == false) {
        camp_html_add_msg(getGS("Comments Disabled: you are either offline or not able to reach the Online server"));
        camp_html_goto_page(camp_html_article_url($articleObj, $f_language_selected, "edit.php"));
    }
}

// process all comments
foreach ($_REQUEST as $name => $value) {
    if (strstr($name, "comment_action_")) {
        $parts = explode("_", $name);
        $messageId = $parts[2];
        $comment = new Phorum_message($messageId);
        if (!$comment->exists()) {
            continue;
        }
        switch ($value) {
            case "inbox":
                $comment->setStatus(PHORUM_STATUS_HOLD);
开发者ID:nistormihai,项目名称:Newscoop,代码行数:31,代码来源:do_edit.php

示例10: putGS

            <span id="playlist-default-message" <?php 
        if (count($playlistsData)) {
            ?>
style="display:none"<?php 
        }
        ?>
>
			    <?php 
        putGS('Add article to a list');
        ?>
			</span>
			</label>

    		<a class="iframe ui-state-default icon-button right-floated"
    			popup-width="600"
        		href="<?php 
        echo camp_html_article_url($articleObj, $f_language_id, "playlist/popup.php");
        ?>
">
       		<span class="ui-icon ui-icon-pencil"></span><?php 
        putGS('Edit');
        ?>
</a>
       		<?php 
    }
    ?>
		</div>
	</div>
</div>
<?php 
}
开发者ID:nidzix,项目名称:Newscoop,代码行数:31,代码来源:edit_playlist.php

示例11: foreach

    $color = 0;
    $previousArticleNumber = -1;
    foreach ($articles as $article) {
        $translations = $article->getTranslations();
        foreach ($translations as $translation) {
            echo '<tr ';
            if ($color) {
                $color = 0;
                echo 'class="list_row_even"';
            } else {
                $color = 1;
                echo 'class="list_row_odd"';
            }
            echo '>';
            if ($translation->getArticleNumber() == $previousArticleNumber) {
                echo '<td class="translation_indent">';
            } else {
                echo '<td>';
            }
            echo "<a href=\"" . camp_html_article_url($translation, $translation->getLanguageId(), "edit.php") . '">' . $this->view->escape($translation->getTitle()) . '</a></td>';
            echo "<td>" . $this->view->escape($translation->getLanguageName()) . "</td>";
            echo "</tr>";
            $previousArticleNumber = $translation->getArticleNumber();
        }
    }
    ?>
	</table>

<?php 
}
camp_html_copyright_notice();
开发者ID:alvsgithub,项目名称:Newscoop,代码行数:31,代码来源:edit.php

示例12: htmlspecialchars

if (!empty($f_image_url)) {
	if (camp_is_valid_url($f_image_url)) {
		$image = Image::OnAddRemoteImage($f_image_url, $attributes, $g_user->getUserId());
	} else {
		camp_html_add_msg(getGS("The URL you entered is invalid: '$1'", htmlspecialchars($f_image_url)));
		camp_html_goto_page(camp_html_article_url($articleObj, $f_language_id, 'images/popup.php'));
	}
} elseif (!empty($_FILES['f_image_file']) && !empty($_FILES['f_image_file']['name'])) {
	$image = Image::OnImageUpload($_FILES['f_image_file'], $attributes, $g_user->getUserId());
} else {
	camp_html_add_msg(getGS("You must select an image file to upload."));
	camp_html_goto_page(camp_html_article_url($articleObj, $f_language_id, 'images/popup.php'));
}

// Check if image was added successfully
if (PEAR::isError($image)) {
	camp_html_add_msg($image->getMessage());
	camp_html_goto_page(camp_html_article_url($articleObj, $f_language_id, 'images/popup.php'));
}

ArticleImage::AddImageToArticle($image->getImageId(), $articleObj->getArticleNumber(), $f_image_template_id);

?>
<script type="text/javascript">
try {
    parent.$.fancybox.reload = true;
    parent.$.fancybox.message = "<?php putGS("Image '$1' added.", addslashes($image->getDescription())); ?>";
    parent.$.fancybox.close();
} catch (e) {}
</script>
开发者ID:nistormihai,项目名称:Newscoop,代码行数:30,代码来源:do_add.php

示例13: putGS

if (empty($userIsBlogger)) {
    ?>
<div class="articlebox" title="<?php 
    putGS('Related Articles');
    ?>
"><div>
<div id="context_box">
    <div id="contextBoxArticlesList" style="display:block; padding-bottom:8px;">

    </div>

    <?php 
    if ($inEditMode && $g_user->hasPermission('ChangeArticle')) {
        ?>
        <a class="iframe ui-state-default icon-button right-floated"
        href="<?php 
        echo camp_html_article_url($articleObj, $f_language_id, "context_box/popup.php");
        ?>
">
        <span class="ui-icon ui-icon-pencil"></span><?php 
        putGS('Edit');
        ?>
</a>
    <?php 
    }
    ?>
</div>
</div></div>
<?php 
}
开发者ID:nidzix,项目名称:Newscoop,代码行数:30,代码来源:edit_context_box.php

示例14: Author

} else {
    $articleObj->create($f_article_type, $f_article_name, $publication_id, $issue_number, $section_number);
}
if ($articleObj->exists()) {
    $author = $this->_helper->service('user')->getCurrentUser()->getAuthorId();
    if (empty($author)) {
        $articleObj->setCreatorId($g_user->getUserId());
        $authorObj = new Author($g_user->getRealName());
        if (!$authorObj->exists()) {
            $authorData = Author::ReadName($g_user->getRealName());
            $authorData['email'] = $g_user->getEmail();
            $authorObj->create($authorData);
        }
    } else {
        $authorObj = new Author($author);
    }
    if ($authorObj->exists()) {
        $articleObj->setAuthor($authorObj);
    }
    $articleObj->setIsPublic(true);
    if ($publication_id > 0) {
        $commentDefault = $publicationObj->commentsArticleDefaultEnabled();
        $articleObj->setCommentsEnabled($commentDefault);
    }
    camp_html_add_msg(getGS("Article created."), "ok");
    camp_html_goto_page(camp_html_article_url($articleObj, $f_language_id, "edit.php"), false);
    ArticleIndex::RunIndexer(3, 10, true);
    exit;
} else {
    camp_html_display_error("Could not create article.");
}
开发者ID:nidzix,项目名称:Newscoop,代码行数:31,代码来源:do_add.php

示例15: foreach

	$articleObj->setCreationDate($f_creation_date);
}

// Verify publish date is in the correct format.
// If not, dont change it.
if (preg_match("/\d{4}-\d{2}-\d{2}/", $f_publish_date)) {
	$articleObj->setPublishDate($f_publish_date);
}

foreach ($articleFields as $dbColumnName => $text) {
	$articleTypeObj->setProperty($dbColumnName, $text);
}

$articleObj->setIsLocked(false);

Log::ArticleMessage($articleObj, getGS('Content edited'), $g_user->getUserId(), 37);

if ($f_save_button == "save") {
	camp_html_goto_page(camp_html_article_url($articleObj, $f_language_id, 'edit.php'), false);
} elseif ($f_save_button == "save_and_close") {
	if ($f_publication_id > 0) {
		camp_html_goto_page(camp_html_article_url($articleObj, $f_language_id, 'index.php'), false);
	} else {
		camp_html_goto_page("/$ADMIN/", false);
	}
}

ArticleIndex::RunIndexer(3, 10, true);

?>
开发者ID:nistormihai,项目名称:Newscoop,代码行数:30,代码来源:do_edit.php


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