本文整理汇总了PHP中dcPage::jsToolMan方法的典型用法代码示例。如果您正苦于以下问题:PHP dcPage::jsToolMan方法的具体用法?PHP dcPage::jsToolMan怎么用?PHP dcPage::jsToolMan使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类dcPage
的用法示例。
在下文中一共展示了dcPage::jsToolMan方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: catch
}
# Get links
try {
$rs = $menu->getLinks();
} catch (Exception $e) {
$core->error->add($e->getMessage());
}
?>
<html>
<head>
<title><?php
echo $page_title;
?>
</title>
<?php
echo dcPage::jsToolMan();
?>
<?php
echo dcPage::jsConfirmClose('links-form', 'add-link-form');
?>
<script type="text/javascript">
//<![CDATA[
var dragsort = ToolMan.dragsort();
$(function() {
dragsort.makeTableSortable($("#links-list").get(0),
dotclear.sortable.setHandle,dotclear.sortable.saveOrder);
$('.checkboxes-helpers').each(function() {
dotclear.checkboxesHelpers(this);
});
示例2: catch
} catch (Exception $e) {
$core->error->add($e->getMessage());
}
}
# Reset order
if (!empty($_POST['reset'])) {
try {
$core->blog->resetCategoriesOrder();
http::redirect('categories.php?reord=1');
} catch (Exception $e) {
$core->error->add($e->getMessage());
}
}
/* Display
-------------------------------------------------------- */
dcPage::open(__('Categories'), dcPage::jsToolMan() . "\n" . dcPage::jsLoad('js/_categories.js'));
if (!empty($_GET['add'])) {
echo '<p class="message">' . __('The category has been successfully created.') . '</p>';
}
if (!empty($_GET['del'])) {
echo '<p class="message">' . __('The category has been successfully removed.') . '</p>';
}
if (!empty($_GET['reord'])) {
echo '<p class="message">' . __('Categories have been successfully reordered.') . '</p>';
}
if (!empty($_GET['moved'])) {
echo '<p class="message">' . __('The category has been successfully moved.') . '</p>';
}
echo '<h2>' . html::escapeHTML($core->blog->name) . ' › ' . __('Categories') . '</h2>';
$rs = $core->blog->getCategories(array('post_type' => 'post'));
echo '<div class="two-cols">' . '<div class="col">';
示例3: catch
}
dcAntispam::$filters->saveFilterOpts($filters_opt);
http::redirect($p_url . '&upd=1');
}
} catch (Exception $e) {
$core->error->add($e->getMessage());
}
?>
<html>
<head>
<title><?php
echo $page_name;
?>
</title>
<?php
echo dcPage::jsToolMan() . dcPage::jsPageTabs($default_tab) . dcPage::jsLoad('index.php?pf=antispam/antispam.js');
?>
<link rel="stylesheet" type="text/css" href="index.php?pf=antispam/style.css" />
</head>
<body>
<?php
echo '<h2>' . html::escapeHTML($core->blog->name) . ' › ' . $page_name . '</h2>';
if ($filter_gui !== false) {
echo '<p><a href="' . $p_url . '">' . __('Return to filters') . '</a></p>';
printf('<h3>' . __('%s configuration') . '</h3>', $filter->name);
echo $filter_gui;
} else {
# Information
$spam_count = dcAntispam::countSpam($core);
$published_count = dcAntispam::countPublishedComments($core);
$moderationTTL = $core->blog->settings->antispam_moderation_ttl;