本文整理汇总了PHP中opentable函数的典型用法代码示例。如果您正苦于以下问题:PHP opentable函数的具体用法?PHP opentable怎么用?PHP opentable使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了opentable函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: render_weblinks
function render_weblinks($info)
{
global $locale;
echo render_breadcrumbs();
opentable($locale['400']);
if ($info['weblink_cat_rows'] != 0) {
$counter = 0;
$columns = 2;
echo "<div class='row m-0'>\n";
if (!empty($info['item'])) {
foreach ($info['item'] as $weblink_cat_id => $data) {
if ($counter != 0 && $counter % $columns == 0) {
echo "</div>\n<div class='row m-0'>\n";
}
echo "<div class='col-xs-12 col-sm-6 col-md-6 col-lg-6 p-t-20'>\n";
echo "<div class='media'>\n";
echo "<div class='pull-left'><i class='entypo folder mid-opacity icon-sm'></i></div>\n";
echo "<div class='media-body overflow-hide'>\n";
echo "<div class='media-heading strong'><a href='" . $data['weblink_item']['link'] . "'>" . $data['weblink_item']['name'] . "</a> <span class='small'>" . $data['weblink_count'] . "</span></div>\n";
if ($data['weblink_cat_description'] != "") {
echo "<span>" . $data['weblink_cat_description'] . "</span>";
}
echo "</div>\n</div>\n";
echo "</div>\n";
$counter++;
}
}
echo "</div>\n";
} else {
echo "<div style='text-align:center'><br />\n" . $locale['430'] . "<br /><br />\n</div>\n";
}
closetable();
}
示例2: display_custom_page_admin
public function display_custom_page_admin()
{
global $aidlink;
$locale = fusion_get_locale("", LOCALE . LOCALESET . "admin/custom_pages.php");
if (isset($_POST['cancel'])) {
redirect(FUSION_SELF . $aidlink);
}
$locale = fusion_get_locale("", LOCALE . LOCALESET . "admin/custom_pages.php");
$_POST['page_id'] = isset($_POST['page_id']) && isnum($_POST['page_id']) ? $_POST['page_id'] : 0;
$_GET['status'] = isset($_GET['status']) ? $_GET['status'] : '';
$_GET['action'] = isset($_GET['action']) ? $_GET['action'] : '';
switch ($_GET['action']) {
case 'edit':
fusion_confirm_exit();
if (!isset($_GET['cpid'])) {
redirect(FUSION_SELF . $aidlink);
}
$this->data = self::load_customPage($_GET['cpid']);
if (empty($this->data)) {
redirect(FUSION_SELF . $aidlink);
}
opentable($locale['401']);
break;
case 'delete':
if (!isset($_GET['cpid'])) {
redirect(FUSION_SELF . $aidlink);
}
self::delete_customPage($_GET['cpid']);
break;
default:
opentable($locale['403']);
}
$this->display_customPage_selector();
$this->data = self::set_customPage($this->data);
}
示例3: render_article
function render_article($subject, $article, $info)
{
global $locale;
opentable($subject);
echo "<div class='floatfix'>" . ($info['article_breaks'] == "y" ? nl2br($article) : $article) . "</div>\n<div class='news-footer'>\n\t" . articleposter($info, " ·") . articleopts($info, "·") . itemoptions("A", $info['article_id']) . "\n</div>\n";
closetable();
}
示例4: __construct
public function __construct()
{
global $aidlink, $locale;
$_POST['page_id'] = isset($_POST['page_id']) && isnum($_POST['page_id']) ? $_POST['page_id'] : 0;
$_GET['status'] = isset($_GET['status']) ? $_GET['status'] : '';
$_GET['action'] = isset($_GET['action']) ? $_GET['action'] : '';
$title = '';
switch ($_GET['action']) {
case 'edit':
fusion_confirm_exit();
$this->data = self::load_customPage($_GET['cpid']);
if (empty($this->data)) {
redirect(FUSION_SELF . $aidlink);
}
opentable($locale['401']);
break;
case 'delete':
self::delete_customPage($_GET['cpid']);
break;
default:
opentable($locale['400']);
}
self::customPage_selector();
add_breadcrumb(array('link' => ADMIN . 'custom_pages.php' . $aidlink, 'title' => $locale['403']));
$this->data = self::set_customPage($this->data);
if (isset($_POST['cancel'])) {
redirect(FUSION_SELF . $aidlink);
}
}
示例5: render_faq_item
function render_faq_item($info)
{
global $locale;
echo "<span id='content'></span>\n";
opentable($locale['401'] . ": " . $info['faq_cat_name']);
echo "<a href='" . INFUSIONS . "faq/faq.php'>" . $locale['400'] . "</a> > <a href='" . $info['faq_link'] . "'>" . $info['faq_cat_name'] . "</a>\n";
if (!empty($info['nofaq_items'])) {
echo "<div class='well text-center m-t-20'>" . $info['nofaq_items'] . "</div>\n";
} else {
echo "<div class='row m-t-20'>\n";
echo "<div class='col-xs-12 col-sm-3'>\n";
if (!empty($info['items'])) {
echo "<ul>\n";
foreach ($info['items'] as $data) {
echo "<li><a href='" . FUSION_REQUEST . "#faq_" . $data['faq_id'] . "'>" . $data['faq_question'] . "</a></li>\n";
}
echo "</ul>\n";
}
echo "</div>\n";
echo "<div class='col-xs-12 col-sm-9'>\n";
foreach ($info['items'] as $data) {
echo "<a class='pull-right btn btn-xs btn-default' href='" . FUSION_REQUEST . "#content'><i class='fa fa-arrow-up'></i> " . $locale['402'] . "</a>\n";
echo "<h4 id='faq_" . $data['faq_id'] . "'>" . $data['faq_question'] . "</h4>\n";
echo nl2br(parse_textarea($data['faq_answer']));
echo "<hr/>\n";
}
echo "</div>\n";
echo "</div>\n";
}
closetable();
}
示例6: render_comments
function render_comments($c_data, $c_info)
{
global $locale;
opentable($locale['c100']);
if (!empty($c_data)) {
echo "<div class='comments floatfix'>\n";
$c_makepagenav = '';
if ($c_info['c_makepagenav'] !== false) {
echo $c_makepagenav = "<div style='text-align:center;margin-bottom:5px;'>" . $c_info['c_makepagenav'] . "</div>\n";
}
foreach ($c_data as $data) {
echo "<div class='tbl2'>\n";
if ($data['edit_dell'] !== false) {
echo "<div style='float:right' class='comment_actions'>" . $data['edit_dell'] . "\n</div>\n";
}
echo "<a href='" . FUSION_REQUEST . "#c" . $data['comment_id'] . "' id='c" . $data['comment_id'] . "' name='c" . $data['comment_id'] . "'>#" . $data['i'] . "</a> |\n";
echo "<span class='comment-name'>" . $data['comment_name'] . "</span>\n";
echo "<span class='small'>" . $data['comment_datestamp'] . "</span>\n";
echo "</div>\n<div class='tbl1 comment_message'>" . $data['comment_message'] . "</div>\n";
}
echo $c_makepagenav;
if ($c_info['admin_link'] !== false) {
echo "<div style='float:right' class='comment_admin'>" . $c_info['admin_link'] . "</div>\n";
}
echo "</div>\n";
} else {
echo $locale['c101'] . "\n";
}
closetable();
}
示例7: display_no_item
function display_no_item()
{
global $locale;
opentable($locale['home_0100']);
echo $locale['home_0101'];
closetable();
}
示例8: display_forum_pollform
function display_forum_pollform($info)
{
echo render_breadcrumbs();
opentable($info['title']);
echo "<h4 class='m-b-20'>" . $info['description'] . "</h4>\n";
echo "<!--pre_form-->\n";
echo $info['field']['openform'];
echo $info['field']['poll_field'];
echo $info['field']['poll_button'];
echo $info['field']['closeform'];
closetable();
}
示例9: head_form
function head_form()
{
global $HTTP_POST_VARS, $settings, $userdata, $locale;
opentable($locale['ugam_150']);
echo "<form action='index.php' method='post'>\n";
$none = 'no_avatar.gif';
$avatar = !empty($userdata['user_avatar']) ? $userdata['user_avatar'] : $none;
echo "<div align='center'>\n";
echo "<img src='" . $settings['siteurl'] . "images/avatars/" . $avatar . "' width='" . UGAM_AVATAR_MAKER_WIDTH . "' height='" . UGAM_AVATAR_MAKER_HEIGHT . "' border='1px' alt='" . $avatar . "' /><br /><br />\n";
echo "<strong>" . $locale['ugam_155'] . "</strong>\n";
echo "</div>\n";
echo "<hr />";
}
示例10: display_error_page
function display_error_page($data)
{
$locale = fusion_get_locale();
$text = $data['title'];
$image = $data['image'];
opentable($text);
echo "<table class='table table-responsive' width='100%' style='text-center'>";
echo "<tr>";
echo "<td width='30%' align='center'><img class='img-responsive' src='" . $image . "' alt='" . $text . "' border='0'></td>";
echo "<td style='font-size:16px;color:red' align='center'>" . $text . "</td>";
echo "</tr>";
echo "<tr>";
echo "<td colspan='2' align='center'><b><a class='button' href='" . BASEDIR . "index.php'>" . $locale['errret'] . "</a></b></td>";
echo "</tr>";
echo "</table>";
closetable();
}
示例11: gold_admin_main
function gold_admin_main()
{
//Gold administration entry view
global $locale, $aidlink;
include GOLD_INC . "version_checker/version_checker.php";
opentable($locale['urg_a_global_100'], '');
echo "<div align='left' style='float: left; width: 50%;'>\n";
echo $locale['urg_a_global_105'];
/*if (gold_table_exists(DB_PREFIX."users_points")) {//Check if usergold 2 is installed or not
$rows = dbcount("(*)", DB_UG3);
if ($rows < 2) {
echo "<br /><br />".$locale['urg_a_global_110']."<a href='install.php".$aidlink."'><strong>".$locale['urg_a_global_111']."</strong></a>".$locale['urg_a_global_112'];
}
}*/
echo "</div><div align='right' style='float: right; width: 50%;'>\n";
echo checkversion(GOLD_VERSION);
echo "</div><div style='clear:both;'></div>\n";
closetable();
}
示例12: display_loginform
/**
* Display Login form
* @param array $info
*/
function display_loginform(array $info)
{
global $locale, $userdata, $aidlink;
opentable($locale['global_100']);
if (iMEMBER) {
$msg_count = dbcount("(message_id)", DB_MESSAGES, "message_to='" . $userdata['user_id'] . "' AND message_read='0' AND message_folder='0'");
opentable($userdata['user_name']);
echo "<div style='text-align:center'><br />\n";
echo THEME_BULLET . " <a href='" . BASEDIR . "edit_profile.php' class='side'>" . $locale['global_120'] . "</a><br />\n";
echo THEME_BULLET . " <a href='" . BASEDIR . "messages.php' class='side'>" . $locale['global_121'] . "</a><br />\n";
echo THEME_BULLET . " <a href='" . BASEDIR . "members.php' class='side'>" . $locale['global_122'] . "</a><br />\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo THEME_BULLET . " <a href='" . ADMIN . "index.php" . $aidlink . "' class='side'>" . $locale['global_123'] . "</a><br />\n";
}
echo THEME_BULLET . " <a href='" . BASEDIR . "index.php?logout=yes' class='side'>" . $locale['global_124'] . "</a>\n";
if ($msg_count) {
echo "<br /><br />\n";
echo "<strong><a href='" . BASEDIR . "messages.php' class='side'>" . sprintf($locale['global_125'], $msg_count);
echo ($msg_count == 1 ? $locale['global_126'] : $locale['global_127']) . "</a></strong>\n";
}
echo "<br /><br /></div>\n";
} else {
echo "<div id='login_form' class='panel panel-default text-center text-dark'>\n";
if (fusion_get_settings("sitebanner")) {
echo "<a class='display-inline-block' href='" . BASEDIR . fusion_get_settings("opening_page") . "'><img src='" . BASEDIR . fusion_get_settings("sitebanner") . "' alt='" . fusion_get_settings("sitename") . "'/></a>\n";
} else {
echo "<a class='display-inline-block' href='" . BASEDIR . fusion_get_settings("opening_page") . "'>" . fusion_get_settings("sitename") . "</a>\n";
}
echo "<div class='panel-body text-center'>\n";
echo $info['open_form'];
echo $info['user_name'];
echo $info['user_pass'];
echo $info['remember_me'];
echo $info['login_button'];
echo $info['registration_link'] . "<br/><br/>";
echo $info['forgot_password_link'] . "<br/><br/>";
echo $info['close_form'];
echo "</div>\n";
echo "</div>\n";
}
closetable();
}
示例13: dbquery
global $settings;
if ($settings['enable_tags']) {
$result = dbquery("SELECT tag_name FROM " . DB_TAGS . " WHERE tag_item_id='" . (int) $item_id . "' AND tag_type=" . _db($type) . "");
if (dbrows($result)) {
$result = dbquery("UPDATE " . DB_TAGS . " SET tag_name=" . _db($name) . " WHERE tag_item_id='" . (int) $item_id . "' AND tag_type=" . _db($type) . "");
} else {
$result = dbquery("INSERT INTO " . DB_TAGS . " (tag_item_id, tag_type, tag_name) VALUES ('" . (int) $item_id . "', " . _db($type) . ", " . _db($name) . ")");
}
}
}
function delete_tags($item_id, $type)
{
$result = dbquery("DELETE FROM " . DB_TAGS . " WHERE tag_item_id='" . (int) $item_id . "' AND tag_type=" . _db($type) . "");
return $result ? true : false;
}
function show_tags($item_id, $type)
{
global $settings, $locale;
if ($settings['enable_tags']) {
$result = dbquery("SELECT tag_name FROM " . DB_TAGS . " WHERE tag_item_id='" . (int) $item_id . "' AND tag_type=" . _db($type));
if (dbrows($result)) {
$data = dbarray($result);
if ($data['tag_name'] != "") {
switch ($type) {
case "N":
$title = $locale['tag_news'];
break;
case "A":
$title = $locale['tag_articles'];
break;
case "C":
$title = $locale['tag_custom'];
break;
case "F":
$title = $locale['tag_thread'];
break;
default:
$title = $locale['tag_custom'];
}
opentable($title);
$tag_a = explode(",", $data['tag_name']);
$tag_r = "";
示例14: render_post
function render_post($post)
{
global $locale, $settings;
opentable($post['alb_post_title']);
echo "<div class='post-item'>";
echo "<div class='post-body'>" . $post['alb_post_text'] . "</div>";
echo "<div class='post-footer'>";
echo "<img src='" . AL_BLOG_DIR . "asset/images/user.png' class='icon' /><a href='" . BASEDIR . "profile.php?lookup=" . $post['alb_post_user'] . "'>" . $post['user_name'] . "</a>";
echo "<img src='" . AL_BLOG_DIR . "asset/images/category.png' class='icon' />" . ($post['alb_cat_title'] != '' ? "<a href='" . FUSION_SELF . "?p=view_category&id=" . $post['alb_post_cat'] . "'>" . $post['alb_cat_title'] . "</a>" : $locale['alb21']);
echo "<img src='" . AL_BLOG_DIR . "asset/images/calendar.png' class='icon' />" . showdate("forumdate", $post['alb_post_datestamp']);
echo "<img src='" . AL_BLOG_DIR . "asset/images/comments.png' class='icon' />" . $post['comments'];
//echo " <a href='".FUSION_SELF."?p=view_post&id=".$post['alb_post_id']."'>".$locale['alb22']."</a>";
echo "</div>";
echo "</div>";
closetable();
require_once INCLUDES . "comments_include.php";
showcomments("BL", DB_AL_BLOG_POSTS, "alb_post_id", $_GET['id'], FUSION_SELF . "?p=view_post&id=" . $_GET['id']);
require_once INCLUDES . "ratings_include.php";
showratings("B", $_GET['id'], FUSION_SELF . "?p=view_post&id=" . $_GET['id']);
}
示例15: render_custompage
function render_custompage($info)
{
echo render_breadcrumbs();
opentable($info['title']);
echo "<!--cp_idx-->\n";
if (!empty($info['error'])) {
echo "<div class='well text-center'>\n";
echo $info['error'];
echo "</div>\n";
} else {
echo $info['body'][$_GET['rowstart']];
}
closetable();
if (!empty($info['pagenav'])) {
echo "<div class='display-block text-center m-t-5'>\n";
echo $info['pagenav'];
echo "</div>\n";
}
echo "<!--cp_sub_idx-->\n";
echo $info['show_comments'];
echo $info['show_ratings'];
}