本文整理汇总了PHP中putGS函数的典型用法代码示例。如果您正苦于以下问题:PHP putGS函数的具体用法?PHP putGS怎么用?PHP putGS使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了putGS函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: drawNoResults
function drawNoResults()
{
?>
<table width="100%">
<tr>
<td class="noResult"><?php putGS("No Media Files Found"); ?></td>
</tr>
</table>
<?php
} // fn drawNoResults
示例2: editor_load_tinymce
//.........这里部分代码省略.........
theme_advanced_buttons3 : "<?php
p($theme_buttons3);
?>
",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_resizing : false,
theme_advanced_statusbar_location: "<?php
p($statusbar_location);
?>
",
// Example content CSS (should be your site CSS)
content_css : "<?php
echo $stylesheetFile;
?>
",
// Drop lists for link/image/media/template dialogs
template_external_list_url : "lists/template_list.js",
external_link_list_url : "lists/link_list.js",
external_image_list_url : "lists/image_list.js",
media_external_list_url : "lists/media_list.js",
// paste options
paste_auto_cleanup_on_paste: true,
paste_convert_headers_to_strong: true,
paste_remove_spans: true,
paste_remove_styles: true,
// not escaping greek characters
entity_encoding: 'raw',
<?php
if ($p_user->hasPermission('EditorSpellcheckerEnabled')) {
?>
gecko_spellcheck : true,
<?php
}
?>
<?php
if ($p_user->hasPermission('EditorSubhead') && $p_objectType == 'article') {
?>
setup : function(ed) {
ed.onInit.add(function(){ed.controlManager.setDisabled('pasteword', true);});
ed.onNodeChange.add(function(){ed.controlManager.setDisabled('pasteword', true);});
ed.onKeyUp.add(function(ed, l) {
var idx = ed.id.lastIndexOf('_');
var buttonId = ed.id.substr(0, idx);
});
ed.addButton('campsite-subhead', {
title : '<?php
putGS("Newscoop Subhead");
?>
',
image : website_url + '/js/tinymce/themes/advanced/img/campsite_subhead.gif',
onclick : function() {
CampsiteSubhead(ed);
}
});
},
<?php
}
?>
});
});
<?php
if ($p_objectType == 'article') {
?>
function campsitemedia(field_name, url, type, win)
{
topDoc = window.top.document;
articleNo = topDoc.getElementById('f_article_number').value;
langId = topDoc.getElementById('f_language_selected').value;
tinyMCE.activeEditor.windowManager.open({
url: website_url + "/js/tinymce/plugins/campsitemedia/popup.php?article_id="+articleNo+'&language_selected='+langId,
width: 580,
height: 320,
inline : "yes",
close_previous : "no"
},{
window : win,
input : field_name
});
}
<?php
}
?>
</script>
<!-- /TinyMCE -->
<?php
}
示例3: putGS
$map_width = 600;
$map_height = 400;
echo Geo_Map::GetMapSearchHeader($map_width, $map_height, $bbox_divs);
?>
</head>
<body onLoad="return false;">
<div class="map_preview_serach">
<div class="map_mappart_outer_serach">
<div class="map_mappart_serach">
<div class="map_mapmenu_serach">
<a href="#" onClick="<?php
echo Geo_Map::GetMapSearchCenter();
?>
return false;"><?php
putGS('show initial map view');
?>
</a>
</div><!-- end of map_mapmenu -->
<?php
echo Geo_Map::GetMapSearchBody();
?>
</div><!-- end of map_mappart -->
</div><!-- end of map_mappart_outer -->
</div><!-- end of map_preview -->
<div class="map_search_rectangle">
<ol>Top left
<li>longitude: <span id="top_left_longitude"> </span></li>
<li>latitude: <span id="top_left_latitude"> </span></li>
</ol>
</div>
示例4: function
",
"name": $('#commenter_name').val(),
"subject": $('#comment_subject').val(),
"message" :$('#comment_message').val()
};
var call_url = '../comment/add-to-article/format/json';
var res_handle = function(data) {
$('#comment-add').each(function(){
this.reset();
});
loadComments();
flashMessage('<?php
putGS('Comment saved.');
?>
');
};
callServer(call_url, call_data, res_handle, true);
return false;
});
};
</script>
<script>
$(function() {
addComment();
});
示例5: if
echo " / ".htmlspecialchars($name);
}
?>
</td>
</tr>
<?PHP
}
?>
</table>
<p></p>
<DIV class="action_buttons" align="center">
<?php if ($is_admin) { ?>
<INPUT type="submit" value="<?php putGS("Save and Close"); ?>" class="button">
<?php } ?>
<INPUT type="submit" value="<?php putGS("Cancel"); ?>" class="button" onclick="window.close();">
</div>
</FORM>
<?php } else { ?>
<BLOCKQUOTE>
<LI><?php putGS('No topics.'); ?></LI>
</BLOCKQUOTE>
<DIV align="center" style="padding-top: 20px;">
<INPUT type="submit" value="<?php putGS("Close"); ?>" class="button" onclick="window.close();">
</div>
<?php } ?>
</body>
</html>
示例6: foreach
<BLOCKQUOTE>
<?php
foreach ($errorMsgs as $errorMsg) {
?>
<li><?php
echo $errorMsg;
?>
</li>
<?php
}
?>
</BLOCKQUOTE>
</TD>
</TR>
<TR>
<TD COLSPAN="2">
<DIV ALIGN="CENTER">
<INPUT TYPE="button" class="button" NAME="OK" VALUE="<?php
putGS('OK');
?>
" ONCLICK="location.href='/<?php
p($ADMIN);
?>
/pub/'">
</DIV>
</TD>
</TR>
</TABLE>
<P>
<?php
camp_html_copyright_notice();
示例7: putGS
<P>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="8" class="message_box">
<TR>
<TD COLSPAN="2">
<B> <?php putGS("Change topic name"); ?> </B>
<HR NOSHADE SIZE="1" COLOR="BLACK">
</TD>
</TR>
<TR>
<TD COLSPAN="2">
<BLOCKQUOTE>
<?php foreach ($errorMsgs as $errorMsg) { ?>
<li><?php p($errorMsg); ?></li>
<?php
}
?>
</BLOCKQUOTE>
</TD>
</TR>
<TR>
<TD COLSPAN="2">
<DIV ALIGN="CENTER">
<INPUT TYPE="button" class="button" NAME="OK" VALUE="<?php putGS('OK'); ?>" ONCLICK="location.href='/admin/topics/edit.php?f_topic_language_id=<?php p($f_topic_language_id); ?>&f_topic_edit_id=<?php p($f_topic_edit_id); ?>'">
</DIV>
</TD>
</TR>
</TABLE>
<P>
<?php camp_html_copyright_notice(); ?>
示例8: Event
$event = new Event($entry->getEventId(), 1);
echo htmlspecialchars($event->getName());
?>
</TD>
<?php } ?>
<TD>
<?php p(htmlspecialchars($entry->getText())); ?>
</TD>
<TD>
<?php p(htmlspecialchars($entry->getClientIP())); ?>
</TD>
</TR>
<?php
}
?>
</table>
<table class="indent">
<TR>
<TD>
<?php echo $pager->render(); ?>
</TD>
</TR>
</TABLE>
<?php } else { ?>
<BLOCKQUOTE>
<LI><?php putGS('No events.'); ?></LI>
</BLOCKQUOTE>
<?php } ?>
<?php camp_html_copyright_notice(); ?>
示例9: flashMessage
$('tbody input:checkbox:checked', smartlist).each(function() {
items.push($(this).attr('name'));
});
if (items.length == 0) {
flashMessage('<?php
putGS('Select some article first.');
?>
', 'error');
return;
}
params = [];
if (action == 'delete') {
if (!confirm('<?php
putGS('Are you sure you want to delete selected articles?');
?>
')) {
return;
}
} else if (action == 'move'
|| action == 'duplicate_interactive'
|| action == 'publish_schedule') {
params = {
'f_publication_id': <?php
echo (int) $this->publication;
?>
,
'f_issue_number': <?php
echo (int) $this->issue;
?>
示例10: p
</TR>
</TABLE>
</TD>
<TD style="padding-left: 10px;">
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="1">
<TR>
<TD><A HREF="/<?php echo $ADMIN; ?>/templates/new_template.php?Path=<?php p(urlencode($path)); ?>" ><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/add.png" BORDER="0"></A></TD>
<TD><A HREF="/<?php echo $ADMIN; ?>/templates/new_template.php?Path=<?php p(urlencode($path)); ?>" ><B><?php putGS("Create new template"); ?></B></A></TD>
</TR>
</TABLE>
</TD>
<TD style="padding-left: 10px;">
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="1">
<TR>
<TD><A HREF="/<?php echo $ADMIN; ?>/templates/upload_templ.php?Path=<?php p(urlencode($path)); ?>" ><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/tol.gif" BORDER="0"></A></TD>
<TD><A HREF="/<?php echo $ADMIN; ?>/templates/upload_templ.php?Path=<?php p(urlencode($path)); ?>" ><B><?php putGS("Upload template"); ?></B></A></TD>
</TR>
</TABLE>
</TD>
<?PHP
}
?>
</TR>
</TABLE>
<P>
<?php
camp_html_display_msgs("0.5em", 0);
$listbasedir = $path;
require_once($Campsite['HTML_DIR'] . "/$ADMIN_DIR/templates/list_dir.php");
?>
示例11: putGS
?>
<br/>
<form name="f_set_author" method="post">
<TABLE BORDER="0" CELLSPACING="4" CELLPADDING="2" CLASS="table_input">
<TR>
<TD VALIGN="TOP" align="left" nowrap>
<?php putGS("Select the field from which to generate the author"); ?>:
</td>
<td valign="top" align="left">
<select name="f_src_author_field">
<?php
foreach ($availableFields as $field) {
echo "<option value=\"" . htmlspecialchars($field->getPrintName())
. "\">" . $field->getPrintName() . "</option>\n";
}
?>
</select>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" name="f_submit" value="<?php putGS("Submit"); ?>">
</td>
</tr>
</table>
</form>
<?php camp_html_copyright_notice(false); ?>
示例12: camp_load_translation_strings
camp_load_translation_strings("plugin_debate");
?>
<div class="articlebox" title="<?php
putGS('Debates');
?>
">
<?php
if ($f_edit_mode == "edit" && $g_user->hasPermission('plugin_debate_admin')) {
?>
<a class="iframe ui-state-default icon-button right-floated" href="<?php
p("/{$ADMIN}/debate/assign_popup.php?f_debate_item=article&f_language_id={$articleObj->getLanguageId()}&f_article_nr=" . $articleObj->getArticleNumber());
?>
"><span class="ui-icon ui-icon-plusthick"></span><?php
putGS('Attach');
?>
</a>
<div class="clear"></div>
<?php
}
?>
<ul class="block-list">
<?php
foreach (DebateArticle::getAssignments(null, $articleObj->getLanguageId(), $articleObj->getArticleNumber()) as $debateArticle) {
$debate = $debateArticle->getDebate($articleObj->getLanguageId());
?>
<li><?php
echo htmlspecialchars($debate->getName()), ' (', htmlspecialchars($debate->getLanguageName()), ')';
?>
示例13: putGS
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Expires" content="now" />
<link rel="stylesheet" type="text/css" href="<?php echo $Campsite['ADMIN_STYLE_URL']; ?>/admin_stylesheet_new.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $Campsite['ADMIN_STYLE_URL']; ?>/admin_stylesheet.css" />
<title><?php putGS("Attach Image To Article"); ?></title>
</head>
<body>
<?php camp_html_display_msgs(); ?>
<table style="margin-top: 10px; margin-left: 5px;" cellpadding="0" cellspacing="0">
<tr>
<?php if ($g_user->hasPermission('AddImage')) { ?>
<td style="padding: 3px; background-color: #EEE; border-top: 1px solid #8baed1; border-left: 1px solid #8baed1; <?php if ($f_image_attach_mode != "new") { ?>border-bottom: 1px solid #8baed1;<?php } ?>"><a href="<?php echo camp_html_article_url($articleObj, $f_language_id, "images/popup.php", "", "&f_image_attach_mode=new"); ?>"><img src="<?php p($Campsite['ADMIN_IMAGE_BASE_URL']); ?>/add.png" border="0"><b><?php putGS("Attach New Image"); ?></b></a></td>
<?php } ?>
<td style="padding: 3px; background-color: #EEE; border-top: 1px solid #8baed1; border-right: 1px solid #8baed1; border-left: 1px solid #8baed1; <?php if ($f_image_attach_mode != "existing") { ?>border-bottom: 1px solid #8baed1;<?php } ?>"><a href="<?php echo camp_html_article_url($articleObj, $f_language_id, "images/popup.php", "", "&f_image_attach_mode=existing"); ?>"><img src="<?php p($Campsite['ADMIN_IMAGE_BASE_URL']); ?>/add.png" border="0"><b><?php putGS("Attach Existing Image"); ?></b></a></td>
</tr>
<tr>
<td colspan="2" style="background-color: #EEE; padding-top: 5px; border-bottom: 1px solid #8baed1; border-right: 1px solid #8baed1; border-left: 1px solid #8baed1;">
<?php
if ($f_image_attach_mode == "existing") {
include("search.php");
} else {
include("add.php");
}?>
</td>
</tr>
</table>
</body>
</html>
示例14: array
$allTemplates = Template::GetAllTemplates(null, true, true, true);
$timeUnits = TimeUnit::GetTimeUnits(camp_session_get('TOL_Language', 'en'));
$shortNameUrlType = UrlType::GetByName('short names');
$aliases = array();
$crumbs = array();
$crumbs[] = array(getGS("Publications"), "/$ADMIN/pub/");
$crumbs[] = array(getGS("Add new publication"), "");
echo camp_html_breadcrumbs($crumbs);
include_once($GLOBALS['g_campsiteDir']."/$ADMIN_DIR/javascript_common.php");
?>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="1" class="action_buttons" style="padding-top: 5px;">
<TR>
<TD><A HREF="/<?php echo $ADMIN; ?>/pub/"><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/left_arrow.png" BORDER="0"></A></TD>
<TD><A HREF="/<?php echo $ADMIN; ?>/pub/"><B><?php putGS("Publication List"); ?></B></A></TD>
</TR>
</TABLE>
<?php camp_html_display_msgs(); ?>
<p>
<FORM NAME="publication_add" METHOD="POST" ACTION="do_add.php" onsubmit="return <?php camp_html_fvalidate(); ?>;">
<?php echo SecurityToken::FormParameter(); ?>
<?php include("pub_form.php"); ?>
</FORM>
<P>
<script>
document.publication_add.f_name.focus();
</script>
<?php camp_html_copyright_notice(); ?>
示例15: foreach
:</TD>
<TD>
<SELECT NAME="f_country_language" class="input_select">
<?php
foreach ($languages as $language) {
camp_html_select_option($language->getLanguageId(), 0, $language->getNativeName());
}
?>
</SELECT>
</TD>
</TR>
<TR>
<TD COLSPAN="2">
<DIV ALIGN="CENTER">
<INPUT TYPE="submit" class="button" NAME="OK" VALUE="<?php
putGS('Save');
?>
">
<!--<INPUT TYPE="button" class="button" NAME="Cancel" VALUE="<?php
putGS('Cancel');
?>
" ONCLICK="location.href='/admin/country/'">-->
</DIV>
</TD>
</TR>
</TABLE>
</FORM>
<P>
<?php
camp_html_copyright_notice();