本文整理汇总了PHP中freetrix_sessid_get函数的典型用法代码示例。如果您正苦于以下问题:PHP freetrix_sessid_get函数的具体用法?PHP freetrix_sessid_get怎么用?PHP freetrix_sessid_get使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了freetrix_sessid_get函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __GetSubmenu
function __GetSubmenu($menu)
{
global $aUserOpt, $bSkipRecent;
$aPopup = array();
if (is_array($menu))
{
foreach($menu as $item)
{
if(!is_array($item))
continue;
$aItem = array(
"TEXT"=>$item["text"],
"TITLE"=>($aUserOpt['start_menu_title'] <> 'N'? $item["title"] : ''),
"ICON"=>$item["icon"],
);
if($item["url"] <> "")
{
$link = htmlspecialcharsback($item["url"]);
if(strpos($link, "/freetrix/admin/") !== 0)
$link = "/freetrix/admin/".$link;
if ($_REQUEST['back_url_pub'])
$link .= (strpos($link, '?') > 0 ? '&' : '?')."back_url_pub=".urlencode($_REQUEST["back_url_pub"]);
$aItem['LINK'] = $link;
if (!$bSkipRecent)
$aItem['ONCLICK'] = 'BX.admin.startMenuRecent('.CUtil::PhpToJsObject($aItem).')';
}
if(is_array($item["items"]) && count($item["items"])>0)
{
$aItem["MENU"] = __GetSubmenu($item["items"]);
if($item["url"] <> "" && $aUserOpt['start_menu_title'] <> 'N')
$aItem["TITLE"] .= ' '.GetMessage("get_start_menu_dbl");
}
elseif($item["dynamic"] == true)
{
$aItem["MENU_URL"] = '/freetrix/admin/get_start_menu.php?mode=dynamic&lang='.LANGUAGE_ID.'&admin_mnu_module_id='.urlencode($item['module_id']).'&admin_mnu_menu_id='.urlencode($item['items_id']).($bSkipRecent?'&skip_recent=Y':'').($_REQUEST["back_url_pub"]<>''? '&back_url_pub='.urlencode($_REQUEST["back_url_pub"]):'').'&'.freetrix_sessid_get();
$aItem['MENU_PRELOAD'] = false;
if($item["url"] <> "" && $aUserOpt['start_menu_title'] <> 'N')
$aItem["TITLE"] .= ' '.GetMessage("get_start_menu_dbl");
}
$aPopup[] = $aItem;
}
}
return $aPopup;
}
示例2: freetrix_sessid_get
<?php
echo $authID;
?>
<?if ($arUser["PERSONAL_LINK"] != ''):?>
</a>
<?endif;?>
</td>
<td class="soc-serv-name">
<?php
echo $arUser["VIEW_NAME"];
?>
</td>
<td class="split-item-actions">
<?if (in_array($arUser["ID"], $arResult["ALLOW_DELETE_ID"])):?>
<a class="split-delete-item" href="?action=delete&user_id=<?php
echo $arUser["ID"] . "&" . freetrix_sessid_get();
?>
" onclick="return confirm('<?php
echo GetMessage("SS_PROFILE_DELETE_CONFIRM");
?>
')" title=<?php
echo GetMessage("SS_DELETE");
?>
></a>
<?endif;?>
</td>
</tr>
<?
}
?>
</table>
示例3: GetMessage
echo $href;
?>
"><?php
echo GetMessage("FORM_VIEW");
?>
</a> ]<br />
<?
} //endif (strlen(trim($VIEW_URL))>0);
?>
<?
} //endif ($can_view);
?>
<?
if ($arRes["can_delete"])
{
$href = $arParams["LIST_URL"].(strpos($arParams["LIST_URL"], "?") === false ? "?" : "&").($arParams["SEF_MODE"] == "Y" ? "" : "WEB_FORM_ID=".$arParams["WEB_FORM_ID"]."&")."del_id=".$arRes["ID"]."&".freetrix_sessid_get()."#nav_start";
?>
[ <a title="<?php
echo GetMessage("FORM_DELETE_ALT");
?>
" href="javascript:if(confirm('<?php
echo GetMessage("FORM_CONFIRM_DELETE");
?>
')) window.location='<?php
echo $href;
?>
'"><?php
echo GetMessage("FORM_DELETE");
?>
</a> ]<br />
<?
示例4: DoNext
function DoNext(name, id, recount)
{
if (!name || name=='undefined')
{
name = 'size_files';
id = name;
}
var str = '';
if (result['stop'] == false)
{
if (result['done'] == true)
{
result['done'] = false;
if (recount == 'begin')
str = '&recount=begin';
document.getElementById('frame_disk_quota').src='/freetrix/admin/quota.php?name=' + id + '&id=' + name + str + '&<?echo freetrix_sessid_get()?>';
}
}
else
{
StopReCount();
return;
}
setTimeout('DoNext(\''+name+'\', \''+id+'\')', 1000);
}
CheckButtons();
</script>
<?endif;?>
<?endif;?>
示例5: BXLoadInfo
</tr>
<?
$tabControl->End();
?>
<script type="text/javascript">
function BXLoadInfo(action)
{
BX.ajax.loadJSON(
'/freetrix/tools/seo_google.php?action='+action+'_feed&domain=<?php
echo urlencode($arDomain['DOMAIN']);
?>
&dir=<?php
echo urlencode($arDomain['SITE_DIR']);
?>
&<?php
echo freetrix_sessid_get();
?>
',
function(res)
{
var node = BX('seo_google_' + action);
if(!!node)
{
node.innerHTML = '';
if(res.error)
{
node.innerHTML = res.error;
}
else
{
var s = '', i = 0;
示例6: GetPanelHtml
function GetPanelHtml()
{
global $USER, $APPLICATION, $adminPage;
if ($APPLICATION->ShowPanel === false || !$USER->IsAuthorized() && $APPLICATION->ShowPanel !== true) {
return "";
}
CTopPanel::InitPanelIcons();
$arPanelButtons =& $APPLICATION->arPanelButtons;
$bShowPanel = false;
foreach ($arPanelButtons as $arValue) {
if (trim($arValue["HREF"]) != "" || is_array($arValue["MENU"]) && !empty($arValue["MENU"])) {
//we have at least one button to show
$bShowPanel = true;
break;
}
}
if ($bShowPanel == false) {
$bShowPanel = self::IsShownForUser();
}
if ($bShowPanel == false && $APPLICATION->ShowPanel !== true) {
return "";
}
$APPLICATION->PanelShowed = true;
if (isset($_GET["back_url_admin"]) && $_GET["back_url_admin"] != "" && strpos($_GET["back_url_admin"], "/") === 0) {
$_SESSION["BACK_URL_ADMIN"] = $_GET["back_url_admin"];
}
$aUserOpt = CUserOptions::GetOption("admin_panel", "settings");
$aUserOptGlobal = CUserOptions::GetOption("global", "settings");
$toggleModeSet = false;
if (isset($_GET["freetrix_include_areas"]) && $_GET["freetrix_include_areas"] != "") {
$APPLICATION->SetShowIncludeAreas($_GET["freetrix_include_areas"] == "Y");
$toggleModeSet = true;
}
$params = DeleteParam(array("freetrix_include_areas", "freetrix_show_mode", "back_url_admin"));
$href = $APPLICATION->GetCurPage();
$hrefEnc = htmlspecialcharsbx($href);
$toggleModeDynamic = $aUserOptGlobal['panel_dynamic_mode'] == 'Y';
$toggleMode = $toggleModeDynamic && !$toggleModeSet ? $aUserOpt['edit'] == 'on' : $APPLICATION->GetShowIncludeAreas() == 'Y';
//Save if changed
$old_edit = $aUserOpt['edit'];
$aUserOpt['edit'] = $toggleMode ? 'on' : 'off';
if ($old_edit !== $aUserOpt['edit']) {
CUserOptions::SetOption('admin_panel', 'settings', $aUserOpt);
}
$toggleModeLink = $hrefEnc . '?freetrix_include_areas=' . ($toggleMode ? 'N' : 'Y') . ($params != "" ? "&" . htmlspecialcharsbx($params) : "");
$result = CTopPanel::ShowPanelScripts(true);
$result .= '
<!--[if lte IE 7]>
<style type="text/css">#bx-panel {display:none !important;}</style>
<div id="bx-panel-error">' . GetMessage("top_panel_browser") . '</div><![endif]-->
<script type="text/javascript">BX.admin.dynamic_mode=' . ($toggleModeDynamic ? 'true' : 'false') . '; BX.admin.dynamic_mode_show_borders = ' . ($toggleMode ? 'true' : 'false') . ';</script>
<div style="display:none; overflow:hidden;" id="bx-panel-back"></div>
<div id="bx-panel"' . ($aUserOpt["collapsed"] == "on" ? ' class="bx-panel-folded"' : '') . '>
<div id="bx-panel-top">
<div id="bx-panel-top-gutter"></div>
<div id="bx-panel-tabs">
';
$result .= '
<a id="bx-panel-menu" href="" ' . CTopPanel::AddAttrHint(GetMessage('top_panel_start_menu_tooltip_title'), GetMessage('top_panel_start_menu_tooltip')) . '><span id="bx-panel-menu-icon"></span><span id="bx-panel-menu-text">' . GetMessage("top_panel_menu") . '</span></a><a id="bx-panel-view-tab"><span>' . GetMessage("top_panel_site") . '</span></a><a id="bx-panel-admin-tab" href="' . (isset($_SESSION["BACK_URL_ADMIN"]) && $_SESSION["BACK_URL_ADMIN"] != "" ? htmlspecialcharsbx($_SESSION["BACK_URL_ADMIN"]) . (strpos($_SESSION["BACK_URL_ADMIN"], "?") !== false ? "&" : "?") : '/freetrix/admin/index.php?lang=' . LANGUAGE_ID . '&') . 'back_url_pub=' . urlencode($href . ($params != "" ? "?" . $params : "")) . '"><span>' . GetMessage("top_panel_admin") . '</span></a>';
$back_url = CUtil::JSUrlEscape(CUtil::addslashes($href . ($params != "" ? "?" . $params : "")));
$arStartMenuParams = array('DIV' => 'bx-panel-menu', 'ACTIVE_CLASS' => 'bx-pressed', 'MENU_URL' => '/freetrix/admin/get_start_menu.php?lang=' . LANGUAGE_ID . '&back_url_pub=' . urlencode($back_url) . '&' . freetrix_sessid_get(), 'MENU_PRELOAD' => $aUserOptGlobal["start_menu_preload"] == 'Y');
$result .= '<script type="text/javascript">BX.message({MENU_ENABLE_TOOLTIP: ' . ($aUserOptGlobal['start_menu_title'] != 'N' ? 'true' : 'false') . '}); new BX.COpener(' . CUtil::PhpToJsObject($arStartMenuParams) . ');</script>';
$hkInstance = CHotKeys::getInstance();
$Execs = $hkInstance->GetCodeByClassName("top_panel_menu", GetMessage("top_panel_menu"));
$result .= $hkInstance->PrintJSExecs($Execs);
$Execs = $hkInstance->GetCodeByClassName("top_panel_admin", GetMessage("top_panel_admin"));
$result .= $hkInstance->PrintJSExecs($Execs);
if ($USER->CanDoOperation("cache_control")) {
$result .= '<a id="bx-panel-clear-cache" href="" onclick="BX.clearCache(); return false;"><span id="bx-panel-clear-cache-icon"></span><span id="bx-panel-clear-cache-text">' . GetMessage("top_panel_cache_new_tooltip_title") . '</span></a>';
}
$result .= '
</div>
<div id="bx-panel-userinfo">
';
$bCanProfile = $USER->CanDoOperation('view_own_profile') || $USER->CanDoOperation('edit_own_profile');
$userName = CUser::FormatName(CSite::GetNameFormat(false), array("NAME" => $USER->GetFirstName(), "LAST_NAME" => $USER->GetLastName(), "SECOND_NAME" => $USER->GetSecondName(), "LOGIN" => $USER->GetLogin()), $bUseLogin = true, $bHTMLSpec = true);
if ($bCanProfile) {
$result .= '<a href="/freetrix/admin/user_edit.php?lang=' . LANGUAGE_ID . '&ID=' . $USER->GetID() . '" id="bx-panel-user" ' . CTopPanel::AddAttrHint(GetMessage('top_panel_profile_tooltip')) . '><span id="bx-panel-user-icon"></span><span id="bx-panel-user-text">' . $userName . '</span></a>';
} else {
$result .= '<a id="bx-panel-user"><span id="bx-panel-user-icon"></span><span id="bx-panel-user-text">' . $userName . '</span></a>';
}
$result .= '<a href="' . $hrefEnc . '?logout=yes' . htmlspecialcharsbx(($s = DeleteParam(array("logout"))) == "" ? "" : "&" . $s) . '" id="bx-panel-logout" ' . CTopPanel::AddAttrHint(GetMessage('top_panel_logout_tooltip') . $hkInstance->GetTitle("bx-panel-logout", true)) . '>' . GetMessage("top_panel_logout") . '</a>';
$toggleCaptionOn = '<span id="bx-panel-toggle-caption-mode-on">' . GetMessage("top_panel_on") . '</span>';
$toggleCaptionOff = '<span id="bx-panel-toggle-caption-mode-off">' . GetMessage("top_panel_off") . '</span>';
$toggleCaptions = $toggleMode ? $toggleCaptionOn . $toggleCaptionOff : $toggleCaptionOff . $toggleCaptionOn;
$toogle = '<a href="' . $toggleModeLink . '" id="bx-panel-toggle" class="bx-panel-toggle' . ($toggleMode ? '-on' : '-off') . '"' . ($toggleModeDynamic ? '' : ' ' . CTopPanel::AddAttrHint(GetMessage("top_panel_edit_mode_new_tooltip_title"), GetMessage('top_panel_toggle_tooltip') . $hkInstance->GetTitle("bx-panel-small-toggle", true))) . '><span id="bx-panel-switcher-gutter-left"></span><span id="bx-panel-toggle-indicator"><span id="bx-panel-toggle-icon"></span><span id="bx-panel-toggle-icon-overlay"></span></span><span class="bx-panel-break"></span><span id="bx-panel-toggle-caption">' . GetMessage("top_panel_edit_mode_new") . '</span><span class="bx-panel-break"></span><span id="bx-panel-toggle-caption-mode">' . $toggleCaptions . '</span><span id="bx-panel-switcher-gutter-right"></span></a>';
if ($aUserOpt["collapsed"] == "on") {
$result .= $toogle;
}
$result .= '<a href="" id="bx-panel-expander" ' . CTopPanel::AddAttrHint(GetMessage("top_panel_expand_tooltip_title"), GetMessage("top_panel_expand_tooltip") . $hkInstance->GetTitle("bx-panel-expander", true)) . '><span id="bx-panel-expander-text">' . GetMessage("top_panel_expand") . '</span><span id="bx-panel-expander-arrow"></span></a>';
if ($hkInstance->IsActive()) {
$result .= '<a id="bx-panel-hotkeys" href="javascript:void(0)" onclick="BXHotKeys.ShowSettings();" ' . CTopPanel::AddAttrHint(GetMessage("HK_PANEL_TITLE") . $hkInstance->GetTitle("bx-panel-hotkeys", true)) . '></a>';
}
$result .= '<a href="javascript:void(0)" id="bx-panel-pin"' . ($aUserOpt['fix'] == 'on' ? ' class="bx-panel-pin-fixed"' : '') . ' ' . CTopPanel::AddAttrHint(GetMessage('top_panel_pin_tooltip')) . '></a>';
$Execs = $hkInstance->GetCodeByClassName("bx-panel-logout", GetMessage('top_panel_logout_tooltip'));
$result .= $hkInstance->PrintJSExecs($Execs);
$Execs = $hkInstance->GetCodeByClassName("bx-panel-small-toggle", GetMessage("top_panel_edit_mode_new_tooltip_title"), 'location.href="' . $href . '?freetrix_include_areas=' . ($toggleMode ? 'N' : 'Y') . ($params != "" ? "&" . $params : "") . '";');
$result .= $hkInstance->PrintJSExecs($Execs);
$Execs = $hkInstance->GetCodeByClassName("bx-panel-expander", GetMessage("top_panel_expand_tooltip_title") . "/" . GetMessage("top_panel_collapse_tooltip_title"));
$result .= $hkInstance->PrintJSExecs($Execs);
//.........这里部分代码省略.........
示例7: array
);
if($ID>0)
{
$aMenu[] = array("SEPARATOR"=>"Y");
$aMenu[] = array(
"TEXT"=>GetMessage("HK_ADD"),
"TITLE"=>GetMessage("HK_ADD_TITLE"),
"LINK"=>"hot_keys_edit.php?lang=".LANG,
"ICON"=>"btn_new",
);
if($str_IS_CUSTOM)
$aMenu[] = array(
"TEXT"=>GetMessage("HK_DELETE"),
"TITLE"=>GetMessage("HK_DELETE_TITLE"),
"LINK"=>"javascript:if(confirm('".GetMessage("HK_DEL_CONFIRM")."')) window.location='hot_keys_list.php?ID=".$ID."&action=delete&lang=".LANG."&".freetrix_sessid_get()."';",
"ICON"=>"btn_delete",
);
}
$context = new CAdminContextMenu($aMenu);
$context->Show();
if($_GET["applied"]=="ok")
CAdminMessage::ShowMessage(array("MESSAGE"=>GetMessage("HK_EDIT_SUCCESS"), "TYPE"=>"OK"));
if($errMess)
echo $errMess->Show();
$aTabs = array(
array("DIV" => "edit1", "TAB" => GetMessage("HK_EDIT_TAB"), "TITLE"=>GetMessage("HK_EDIT_TAB_TITLE")),
);
示例8: CAdminTabControl
$tabControl = new CAdminTabControl("tabControl", $aTabs, true, true);
?>
<script>
var running = false;
function DoNext(NS)
{
var interval = parseInt(document.getElementById('INTERVAL').value);
var queryString =
'Export=Y'
+ '&lang=<?php
echo LANGUAGE_ID;
?>
'
+ '&<?echo freetrix_sessid_get()?>'
+ '&INTERVAL=' + interval
;
if(!NS)
{
queryString+='&URL_DATA_FILE='+jsUtils.urlencode(document.getElementById('URL_DATA_FILE').value);
queryString+='&IBLOCK_ID='+jsUtils.urlencode(document.getElementById('IBLOCK_ID').value);
queryString+='&SECTIONS_FILTER='+jsUtils.urlencode(document.getElementById('SECTIONS_FILTER').value);
queryString+='&ELEMENTS_FILTER='+jsUtils.urlencode(document.getElementById('ELEMENTS_FILTER').value);
if(document.getElementById('CK_DOWNLOAD_CLOUD_FILES'))
queryString+='&DOWNLOAD_CLOUD_FILES='+(document.getElementById('CK_DOWNLOAD_CLOUD_FILES').checked? 'Y': 'N');
}
if(running)
{
示例9: addDeleteAction
/**
* Function adds an delete action to some area inside the component.
*
* <ul>
* <li>$arParams['CONFIRM'] = false - disable confirm;
* <li>$arParams['CONFIRM'] = 'Text' - confirm with custom text;
* <li>no $arParams['CONFIRM'] at all - confirm with default text
* </ul>
* @param string $entryId
* @param string $deleteLink
* @param string|bool $deleteTitle
* @param array[string]mixed $arParams
* @return void
*
*/
public final function addDeleteAction($entryId, $deleteLink, $deleteTitle = false, $arParams = array())
{
/** @global CMain $APPLICATION */
global $APPLICATION;
if (!$entryId || !$deleteLink) {
return;
}
includeModuleLangFile(__FILE__);
if (!$deleteTitle) {
$deleteTitle = GetMessage('DELETE_ACTION_TITLE_DEFAULT');
}
if (!is_array($arParams)) {
$arParams = array();
}
if (!$arParams['ICON'] && !$arParams['SRC'] && !$arParams['IMAGE']) {
$arParams['ICON'] = 'bx-context-toolbar-delete-icon';
}
if (substr($deleteLink, 0, 11) != 'javascript:') {
if (false === strpos($deleteLink, 'return_url=')) {
$deleteLink .= '&return_url=' . urlencode($APPLICATION->getCurPageParam());
}
$deleteLink .= '&' . freetrix_sessid_get();
if ($arParams['CONFIRM'] !== false) {
$confirmText = $arParams['CONFIRM'] ? $arParams['CONFIRM'] : GetMessage('DELETE_ACTION_CONFIRM');
$deleteLink = 'javascript:if(confirm(\'' . CUtil::JSEscape($confirmText) . '\')) jsUtils.Redirect([], \'' . CUtil::JSEscape($deleteLink) . '\');';
}
}
$arBtn = array('URL' => $deleteLink, 'TITLE' => $deleteTitle);
if ($arParams['ICON']) {
$arBtn['ICON'] = $arParams['ICON'];
} elseif ($arParams['SRC'] || $arParams['IMAGE']) {
$arBtn['SRC'] = $arParams['IMAGE'] ? $arParams['IMAGE'] : $arParams['SRC'];
}
$APPLICATION->setEditArea($this->getEditAreaId($entryId), array($arBtn));
}
示例10: GetMessage
"TEXT" => GetMessage("MAIN_NEW_RECORD"),
"LINK" => "/freetrix/admin/message_edit.php?lang=".LANGUAGE_ID,
"TITLE" => GetMessage("MAIN_NEW_RECORD_TITLE"),
"ICON" => "btn_new"
);
$aMenu[] = array(
"TEXT" => GetMessage("MAIN_COPY_RECORD"),
"LINK" => "/freetrix/admin/message_edit.php?lang=".LANGUAGE_ID.htmlspecialcharsbx("©_ID=").$ID,
"TITLE" => GetMessage("MAIN_COPY_RECORD_TITLE"),
"ICON" => "btn_copy"
);
$aMenu[] = array(
"TEXT" => GetMessage("MAIN_DELETE_RECORD"),
"LINK" => "javascript:if(confirm('".GetMessage("MAIN_DELETE_RECORD_CONF")."')) window.location='/freetrix/admin/message_admin.php?ID=".$ID."&lang=".LANGUAGE_ID."&".freetrix_sessid_get()."&action=delete';",
"TITLE" => GetMessage("MAIN_DELETE_RECORD_TITLE"),
"ICON" => "btn_delete"
);
}
$context = new CAdminContextMenu($aMenu);
$context->Show();
if ($e = $APPLICATION->GetException())
$message = new CAdminMessage(GetMessage("MAIN_ERROR_SAVING"), $e);
if($message)
echo $message->Show();
if(strlen($strError)>0)
CAdminMessage::ShowMessage(Array("MESSAGE"=>$strError, "HTML"=>true, "TYPE"=>"ERROR"));
示例11: require
$APPLICATION->SetTitle($ID > 0 ? Loc::getMessage("SEO_SITEMAP_EDIT_TITLE") : Loc::getMessage("SEO_SITEMAP_ADD_TITLE"));
require($_SERVER["DOCUMENT_ROOT"]."/freetrix/modules/main/include/prolog_admin_after.php");
$aMenu = array();
$aMenu[] = array(
"TEXT" => Loc::getMessage("SITEMAP_LIST"),
"LINK" => "/freetrix/admin/seo_sitemap.php?lang=".LANGUAGE_ID,
"ICON" => "btn_list",
"TITLE" => Loc::getMessage("SITEMAP_LIST_TITLE"),
);
if ($ID > 0)
{
$aMenu[] = array(
"TEXT" => Loc::getMessage("SITEMAP_DELETE"),
"LINK" => "javascript:if(confirm('".Loc::getMessage("SITEMAP_DELETE_CONFIRM")."')) window.location='/freetrix/admin/seo_sitemap_edit.php?action=delete&ID=".$ID."&lang=".LANGUAGE_ID."&".freetrix_sessid_get()."';",
"ICON" => "btn_delete",
"TITLE" => Loc::getMessage("SITEMAP_DELETE_TITLE"),
);
}
$context = new CAdminContextMenu($aMenu);
$context->Show();
if(!empty($errors))
{
CAdminMessage::ShowMessage(join("\n", $errors));
}
?>
<form method="POST" action="<?php
示例12: ShowComment
//.........这里部分代码省略.........
?>
= '<?php
echo CUtil::JSEscape($comment["~POST_TEXT"]);
?>
';
top.title<?php
echo $comment["ID"];
?>
= title<?php
echo $comment["ID"];
?>
= '<?php
echo CUtil::JSEscape($comment["TITLE"]);
?>
';
</script>
<span class="blog-vert-separator"></span>
<span class="blog-comment-edit"><a href="javascript:void(0)" onclick="return editComment('<?php
echo $comment["ID"];
?>
')"><?php
echo GetMessage("BPC_MES_EDIT");
?>
</a></span>
<?
}
if(strlen($comment["urlToShow"])>0)
{
?>
<span class="blog-vert-separator"></span>
<span class="blog-comment-show">
<?if($arParams["AJAX_POST"] == "Y"):?>
<a href="javascript:void(0)" onclick="return hideShowComment('<?php
echo $comment["urlToShow"] . "&" . freetrix_sessid_get();
?>
', '<?php
echo $comment["ID"];
?>
');" title="<?php
echo GetMessage("BPC_MES_SHOW");
?>
">
<?else:?>
<a href="<?php
echo $comment["urlToShow"] . "&" . freetrix_sessid_get();
?>
" title="<?php
echo GetMessage("BPC_MES_SHOW");
?>
">
<?endif;?>
<?php
echo GetMessage("BPC_MES_SHOW");
?>
</a></span>
<?
}
if(strlen($comment["urlToHide"])>0)
{
?>
<span class="blog-vert-separator"></span>
<span class="blog-comment-show">
<?if($arParams["AJAX_POST"] == "Y"):?>
<a href="javascript:void(0)" onclick="return hideShowComment('<?php
echo $comment["urlToHide"] . "&" . freetrix_sessid_get();
?>
示例13: array
"ICON"=>"btn_list",
)
);
if($ID>0)
{
$aMenu[] = array("SEPARATOR"=>"Y");
$aMenu[] = array(
"TEXT"=>GetMessage("fav_edit_add"),
"TITLE"=>GetMessage("fav_edit_add_title"),
"LINK"=>"favorite_edit.php?lang=".LANG,
"ICON"=>"btn_new",
);
$aMenu[] = array(
"TEXT"=>GetMessage("fav_edit_del"),
"TITLE"=>GetMessage("fav_edit_del_title"),
"LINK"=>"javascript:if(confirm('".GetMessage("fav_edit_del_conf")."')) window.location='favorite_list.php?ID=".$ID."&action=delete&lang=".LANG."&".freetrix_sessid_get()."';",
"ICON"=>"btn_delete",
);
}
$context = new CAdminContextMenu($aMenu);
$context->Show();
if(is_array($_SESSION["SESS_ADMIN"]["FAVORITES_EDIT_MESSAGE"]))
{
CAdminMessage::ShowMessage($_SESSION["SESS_ADMIN"]["FAVORITES_EDIT_MESSAGE"]);
$_SESSION["SESS_ADMIN"]["FAVORITES_EDIT_MESSAGE"]=false;
}
if($message)
echo $message->Show();
示例14: array
);
if (StrLen($CONDITION) > 0)
{
$aMenu[] = array("SEPARATOR" => "Y");
$aMenu[] = array(
"TEXT" => GetMessage("MURL_ACT_ADD"),
"LINK" => "/freetrix/admin/urlrewrite_edit.php?lang=".LANG."&site_id=".UrlEncode($site_id)."&".GetFilterParams("filter_", false),
"ICON" => "btn_new",
"TITLE" => GetMessage("MURL_ACT_ADD_ALT"),
);
$aMenu[] = array(
"TEXT" => GetMessage("MURL_ACT_DEL"),
"LINK" => "javascript:if(confirm('".GetMessage("MURL_ACT_DEL_CONF")."')) window.location='/freetrix/admin/urlrewrite_list.php?ID=".urlencode(urlencode($CONDITION))."&filter_site_id=".urlencode(urlencode($site_id))."&action=delete&lang=".LANG."&".freetrix_sessid_get()."';",
"WARNING" => "Y",
"ICON" => "btn_delete"
);
}
$context = new CAdminContextMenu($aMenu);
$context->Show();
if($message)
echo $message->Show();
?>
<form method="POST" action="<?php
echo $APPLICATION->GetCurPage();
?>
示例15: InitJS
function InitJS($Params)
{
global $APPLICATION, $USER;
CUtil::InitJSCore(array('window', 'ajax'));
$APPLICATION->AddHeadScript('/freetrix/js/fileman/sticker.js', true);
$APPLICATION->SetAdditionalCSS('/freetrix/js/fileman/sticker.css', true);
$pageUrl = $APPLICATION->GetCurPage();
$pageTitle = $APPLICATION->GetTitle();
if ($pageTitle == '')
$pageTitle = $pageUrl;
$listSize = CUtil::GetPopupSize("bx_sticker_list_resize_id", array("width" => 800, "height" => 450));
$size = explode("_", COption::GetOptionString("fileman", "stickers_start_sizes", "350_200"));
$min_width = 280;
$min_height = 160;
$JSConfig = array(
"access" => CSticker::CanDoOperation('sticker_edit') ? "W" : "R",
"sessid_get" => freetrix_sessid_get(),
"start_width" => $size[0] > $min_width ? $size[0] : $min_width,
"start_height" => $size[1] > $min_height ? $size[1] : $min_height,
"min_width" => $min_width,
"min_height" => $min_height,
"start_color" => CUserOptions::GetOption('fileman', "stickers_last_color", 0),
"zIndex" => 5000,
"curUserName" => CSticker::GetUserName(),
"curUserId" => $USER->GetId(),
"pageUrl" => $pageUrl,
"pageTitle" => $pageTitle,
"bShowStickers" => $Params['bInit'],
"listWidth" => $listSize['width'],
"listHeight" => $listSize['height'],
"listNaviSize" => CUserOptions::GetOption('fileman', "stickers_navi_size", 5),
"useHotkeys" => COption::GetOptionString('fileman', "stickers_use_hotkeys", "Y") == "Y",
"filterParams" => CSticker::GetFilterParams(),
"bHideBottom" => COption::GetOptionString("fileman", "stickers_hide_bottom", "Y") == "Y",
"focusOnSticker" => isset($_GET['show_sticker'])? intVal($_GET['show_sticker']): 0,
"strDate" => FormatDate("j F", time()+CTimeZone::GetOffset()),
"curPageCount" => $Params['curPageCount'],
"site_id" => SITE_ID
);
if (!is_array($Params['stickers']))
$Params['stickers'] = array();
self::$Params = array("JSCONFIG" => $JSConfig, "STICKERS" => $Params['stickers']);
}