• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP getPreciseTime函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: displayForumActivity

 public function displayForumActivity($amountToShow = 5)
 {
     $forumObj = new ForumBoard($this->MySQL);
     $arrForumActivity = $this->getForumActivity($amountToShow);
     $member = new Member($this->MySQL);
     if (file_exists(BASE_DIRECTORY . "themes/" . $this->dir . "/menus/forumactivity.php")) {
         if (!defined("FORUMACTIVITY_MENUITEM")) {
             define("FORUMACTIVITY_MENUITEM", true);
         }
         include BASE_DIRECTORY . "themes/" . $this->dir . "/menus/forumactivity.php";
     } else {
         echo "\n\t\t\t\t\t<div class='menusForumActivityWrapper'>\n\t\t\t\t";
         $altColorSwitch = 0;
         foreach ($arrForumActivity as $forumPostID) {
             $forumObj->objPost->select($forumPostID);
             $postInfo = $forumObj->objPost->get_info_filtered();
             $forumObj->objTopic->select($postInfo['forumtopic_id']);
             $topicInfo = $forumObj->objTopic->get_info_filtered();
             $topicPostInfo = $forumObj->objPost->getTopicInfo(true);
             $member->select($postInfo['member_id']);
             if ($altColorSwitch == 1) {
                 $addCSS = "";
                 $altColorSwitch = 0;
             } else {
                 $addCSS = " alternateBGColor";
                 $altColorSwitch = 1;
             }
             echo "\n\t\t\t\t\t\t<div class='menusForumActivityItemWrapper dottedLine " . $addCSS . "'>\n\t\t\t\t\t\t\t<div class='menusForumActivityAvatarDiv'>\n\t\t\t\t\t\t\t\t" . $member->getAvatar() . "\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class='menusForumActivityTextWrapper'>\n\t\t\t\t\t\t\t\t<div class='menusForumActivityPostTitle'>\n\t\t\t\t\t\t\t\t\t<a href='" . $forumObj->objPost->getLink() . "' title='" . $topicPostInfo['title'] . "'>" . $topicPostInfo['title'] . "</a>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class='menusForumActivityPoster'>\n\t\t\t\t\t\t\t\t\tby " . $member->getMemberLink() . "\n\t\t\t\t\t\t\t\t</div><span class='menusForumActivityDate'>" . getPreciseTime($postInfo['dateposted']) . "</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div style='clear: both'></div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t";
         }
         echo "\n\t\t\t\t\t</div>\n\t\t\t\t";
     }
 }
开发者ID:nsystem1,项目名称:clanscripts,代码行数:32,代码来源:btthememenu.php


示例2: dispShoutbox

 public function dispShoutbox($setWidth = 0, $setHeight = 0, $blnPercentWidth = false, $txtBoxWidth = 0, $blnPercentHeight = false)
 {
     global $MAIN_ROOT, $THEME;
     if ($setWidth > 0) {
         $this->intDispWidth = $setWidth;
     }
     if ($setHeight > 0) {
         $this->intDispHeight = $setHeight;
     }
     $dispWidthPX = "px";
     if ($blnPercentWidth) {
         $dispWidthPX = "%";
     }
     $dispHeightPX = "px";
     if ($blnPercentHeight) {
         $dispHeightPX = "%";
     }
     $result = $this->MySQL->query("SELECT * FROM " . $this->strTableName . " WHERE newstype = '3'" . $this->strSQLSort . " ORDER BY dateposted");
     while ($row = $result->fetch_assoc()) {
         if ($this->memberObj->select($row['member_id'])) {
             $memberLink = $this->memberObj->getMemberLink();
             $dispPost = nl2br(parseBBCode(wordwrap(filterText($row['newspost']), $this->intWordWrap)));
             $dispTime = "<p align='center' style='font-size: 9px'><br>" . getPreciseTime($row['dateposted']) . "</p>";
             $dispManagePost = "";
             if ($this->strEditLink != "" && $this->strDeleteLink != "") {
                 $dispManagePost = "<p align='center'><span class='loadingSpiral' id='" . $this->strDivID . "_loading_" . $row[$this->strTableKey] . "'><img src='" . $MAIN_ROOT . "themes/" . $THEME . "/images/loading-spiral2.gif' width='30' height='30'></span><span class='tinyFont' id='" . $this->strDivID . "_manage_" . $row[$this->strTableKey] . "'><br><b><a href='" . $this->strEditLink . $row[$this->strTableKey] . "'>EDIT</a> - <a href='javascript:void(0)' onclick=\"deleteShoutbox('" . $row[$this->strTableKey] . "', '" . $this->strDeleteLink . "', '" . $this->strDivID . "')\">DELETE</a></b></span></p>";
             }
             $shoutBoxInfo .= "\n\t\t\t\t\t<b>" . $memberLink . ":</b><br>\n\t\t\t\t\t<div style='word-wrap: break-word;'>" . $dispPost . "</div>\n\t\t\t\t\t" . $dispTime . "\n\t\t\t\t\t" . $dispManagePost . "\n\t\t\t\t\t<div class='dottedLine' style='margin: 5px 0px'></div>\n\t\t\t\t";
         }
     }
     $addToReturn = "";
     $addToReturn2 = "";
     $setMainShoutbox = "";
     if ($this->blnMainShoutbox) {
         $setMainShoutbox = " data-shoutbox='main' ";
     }
     if (!$this->blnUpdateShoutbox) {
         $addToReturn = "<div class='shoutBox' id='" . $this->strDivID . "'" . $setMainShoutbox . " style='width: " . $this->intDispWidth . $dispWidthPX . "; height: " . $this->intDispHeight . $dispHeightPX . "'>";
         $addToReturn2 = "</div>";
     }
     $returnVal = $addToReturn . $shoutBoxInfo . $addToReturn2;
     if ($this->strPostLink != "") {
         $setTxtBoxWidth = $this->intDispWidth - 10;
         if ($txtBoxWidth > 0) {
             $setTxtBoxWidth = $txtBoxWidth;
         }
         $returnVal .= "\n\t\t\t<div class='shoutBoxPost' style='text-align: center; width: 100%' id='" . $this->strDivID . "_postShoutbox'>\n\t\t\t\t<div style='margin-left: auto; margin-right: auto; width: " . $setTxtBoxWidth . $dispWidthPX . "'>\n\t\t\t\t\t<textarea class='textBox' rows='1' style='margin-left: auto; margin-right: auto; width: 100%; height: 25px' id='" . $this->strDivID . "_message'></textarea>\n\t\t\t\t\t<p align='right' style='margin-right: -3px; padding-top: 1px; margin-top: 3px'><input type='button' class='submitButton' value='POST' onclick=\"postShoutbox('" . $this->strDivID . "', '" . $this->strPostLink . "')\" style='padding: 5px'></p>\n\t\t\t\t</div>\n\t\t\t</div>";
     }
     return $returnVal;
 }
开发者ID:nsystem1,项目名称:clanscripts,代码行数:50,代码来源:shoutbox.php


示例3: post_topic_redirect

function post_topic_redirect()
{
    global $mysqli, $boardObj, $postInfo, $MAIN_ROOT, $topicInfo, $member;
    if ($_POST['postredirect'] == 1) {
        $boardObj->select($_POST['moveto']);
        $arrColumns = array("forumboard_id", "lockstatus");
        $arrValues = array($topicInfo['forumboard_id'], 1);
        $boardObj->objTopic->addNew($arrColumns, $arrValues);
        $message = str_replace("[BOARD]", "<a href='" . $MAIN_ROOT . "forum/viewboard.php?bID=" . $_POST['moveto'] . "'>" . $boardObj->get_info_filtered("name") . "</a>", $_POST['postredirect_desc']);
        $message = str_replace("[TOPIC_LINK]", "<a href='" . $MAIN_ROOT . "forum/viewtopic.php?tID=" . $_GET['topicID'] . "'>" . $postInfo['title'] . "</a>", $message);
        $message .= "\n\n\n<p class='tinyFont'><i>Moved by " . $member->getMemberLink() . " on " . getPreciseTime(time(), "", true) . "</i></p>";
        $arrColumns = array("member_id", "dateposted", "title", "message", "forumtopic_id");
        $arrValues = array($postInfo['member_id'], time(), "MOVED - " . $postInfo['title'], $message, $boardObj->objTopic->get_info("forumtopic_id"));
        $boardObj->objPost->addNew($arrColumns, $arrValues);
        $boardObj->objTopic->update(array("forumpost_id", "lastpost_id"), array($boardObj->objPost->get_info("forumpost_id"), $boardObj->objPost->get_info("forumpost_id")));
    }
    $member->logAction("Moved forum topic, <a href='" . $MAIN_ROOT . "forum/viewtopic.php?tID=" . $topicInfo['forumtopic_id'] . "'>" . $postInfo['title'] . "</a>, to <a href='" . $MAIN_ROOT . "forum/viewboard.php?bID=" . $_POST['moveto'] . "'>" . $boardObj->get_info_filtered("name") . "</a>");
}
开发者ID:nsystem1,项目名称:clanscripts,代码行数:18,代码来源:movetopic.php


示例4: dispIAMessages

function dispIAMessages($iaID)
{
    global $MAIN_ROOT, $dbprefix, $mysqli;
    $iaMember = new Member($mysqli);
    $counter = 0;
    $iaMessages = "";
    $iaMessagesQuery = $mysqli->query("SELECT * FROM " . $dbprefix . "iarequest_messages WHERE iarequest_id = '" . $iaID . "' ORDER BY messagedate DESC");
    while ($iaMessageRow = $iaMessagesQuery->fetch_assoc()) {
        if ($counter == 1) {
            $addCSS = "";
            $counter = 0;
        } else {
            $addCSS = " alternateBGColor";
            $counter = 1;
        }
        $iaMember->select($iaMessageRow['member_id']);
        $iaMessages .= "\n\t\t\t<div class='dottedLine" . $addCSS . "' style='padding: 10px 5px; margin-left: auto; margin-right: auto; width: 80%;'>\n\t\t\t\t" . $iaMember->getMemberLink() . " - " . getPreciseTime($iaMessageRow['messagedate']) . "<br><br>\n\t\t\t\t<div style='padding-left: 5px'>" . nl2br(filterText($iaMessageRow['message'])) . "</div>\n\t\t\t</div>\n\t\t";
    }
    if ($iaMessagesQuery->num_rows == 0) {
        $iaMessages = "<i>No Messages</i>";
    }
    return $iaMessages;
}
开发者ID:nsystem1,项目名称:clanscripts,代码行数:23,代码来源:inactiverequestlist.php


示例5: while

 *
 * Author: Bluethrust Web Development
 * E-mail: [email protected]
 * Website: http://www.bluethrust.com
 *
 * License: http://www.bluethrust.com/license.php
 *
 */
if (!defined("SHOW_SHOUTBOXLIST")) {
    exit;
}
echo "\n\t<table class='formTable'  style='margin-top: 0px; border-spacing: 0px; table-layout: fixed'>\n\t";
$counter = 0;
$manageNewsCID = $consoleObj->findConsoleIDByName("Manage News");
$result = $mysqli->query("SELECT * FROM " . $dbprefix . "news WHERE newstype = '3' ORDER BY dateposted DESC");
while ($row = $result->fetch_assoc()) {
    $dispPoster = $member->select($row['member_id']) ? $member->getMemberLink() : "Unknown";
    if ($counter == 0) {
        $addCSS = "";
        $counter = 1;
    } else {
        $addCSS = " alternateBGColor";
        $counter = 0;
    }
    echo "\n\t\t<tr>\n\t\t\t<td class='pmInbox main solidLine" . $addCSS . "' style='padding-left: 0px' width=\"5%\"><input type='checkbox' value='" . $row['news_id'] . "' class='textBox'></td>\n\t\t\t<td class='pmInbox main solidLine" . $addCSS . "' style='padding-left: 5px' width=\"30%\">" . $dispPoster . "</a></div></td>\n\t\t\t<td class='pmInbox main solidLine" . $addCSS . "' style='padding-left: 5px; overflow: hidden' width=\"35%\"><div style='width: 85%; white-space:nowrap; overflow: hidden; text-overflow: ellipsis'><a href='" . $MAIN_ROOT . "members/console.php?cID=" . $manageNewsCID . "&newsID=" . $row['news_id'] . "'>" . filterText($row['newspost']) . "</a></div></td>\n\t\t\t<td class='pmInbox main solidLine" . $addCSS . "' style='padding-left: 5px' width=\"30%\">" . getPreciseTime($row['dateposted']) . "</td>\n\t\t</tr>\n\t";
}
if ($result->num_rows == 0) {
    echo "\t\n\t\t<tr>\n\t\t\t<td class='main' align='center' colspan='4'>\n\t\t\t\t<div class='shadedBox' style='margin-top: 20px; width: 45%; margin-left: auto; margin-right: auto'>\n\t\t\t\t\t<p align='center'><i>There are no shoutbox posts!</i></p>\n\t\t\t\t</div>\n\t\t\t</td>\n\t\t</tr>\n\t";
}
echo "</table>";
$member->select($memberInfo['member_id']);
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:manageshoutbox_list.php


示例6: elseif

    } else {
        echo "\n\t\t\t\n\t\t\t<div class='shadedBox' style='margin-left: auto; margin-right: auto; width: 50%'>\n\t\t\t\t<p class='main' align='center'>\n\t\t\t\t\tUnable to connect account!  Please Try Again.<br><br>\n\t\t\t\t\t<a href='" . $MAIN_ROOT . "members/console.php?cID=" . $_GET['cID'] . "'>Retry</a>\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t\n\t\t";
    }
} elseif ($twitterObj->hasTwitter($memberInfo['member_id'])) {
    $dispSuccess = false;
    if ($_POST['submit']) {
        $setShowFeed = $_POST['showfeed'] == 1 ? 1 : 0;
        $setEmbedTweet = $_POST['embedlasttweet'] == 1 ? 1 : 0;
        $setInfoCard = $_POST['showinfo'] == 1 ? 1 : 0;
        $setAllowLogin = $_POST['allowlogin'] == 1 ? 1 : 0;
        $arrColumns = array("showfeed", "embedtweet", "infocard", "allowlogin");
        $arrValues = array($setShowFeed, $setEmbedTweet, $setInfoCard, $setAllowLogin);
        $twitterObj->update($arrColumns, $arrValues);
        $dispSuccess = true;
    }
    // MEMBER ALREADY HAS TWITTER CONNECTED
    $twitterObj->oauthToken = $twitterObj->get_info("oauth_token");
    $twitterObj->oauthTokenSecret = $twitterObj->get_info("oauth_tokensecret");
    $twitterObj->reloadCacheInfo();
    $twitterInfo = $twitterObj->get_info_filtered();
    $checkShowFeed = $twitterInfo['showfeed'] == 1 ? " checked" : "";
    $checkEmbedTweet = $twitterInfo['embedtweet'] == 1 ? " checked" : "";
    $checkInfoCard = $twitterInfo['infocard'] == 1 ? " checked" : "";
    $checkAllowLogin = $twitterInfo['allowlogin'] == 1 ? " checked" : "";
    echo "\n\t\n\t\t<div id='connectedDiv'>\n\t\t\t<form action='" . $MAIN_ROOT . "members/console.php?cID=" . $_GET['cID'] . "' method='post'>\n\t\t\t\t<div class='formDiv'>\n\t\t\t\t\t<table class='formTable'>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td colspan='2'>\n\t\t\t\t\t\t\t\t<div class='main dottedLine' style='margin-bottom: 20px; padding-bottom: 3px'>\n\t\t\t\t\t\t\t\t\t<b>Connected:</b>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td colspan='2'>\n\t\t\t\t\n\t\t\t\t\t\t\t\t<div class='shadedBox' style='margin-left: auto; margin-right: auto; width: 50%; overflow: auto'>\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t" . $twitterObj->dispCard() . "\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div style='font-style: italic; text-align: center; margin-top: 3px; margin-left: auto; margin-right: auto; position: relative' class='main'>\n\t\t\t\t\t\t\t\t\tLast updated " . getPreciseTime($twitterInfo['lastupdate']) . "\n\t\t\t\t\t\t\t\t\t<p class='largeFont' style='font-style: normal; font-weight: bold' align='center'>\n\t\t\t\t\t\t\t\t\t\t<a style='cursor: pointer' id='btnDisconnect'>DISCONNECT ACCOUNT</a>\n\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td colspan='2'><br><br>\n\t\t\t\t\t\t\t\t<div class='main dottedLine' style='margin-bottom: 2px; padding-bottom: 3px'>\n\t\t\t\t\t\t\t\t\t<b>Profile Display Options:</b>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div style='padding-left: 3px; margin-bottom: 15px'>\n\t\t\t\t\t\t\t\t\tUse the form below to set which items from Twitter will show in your profile.\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td class='formLabel'>Show Feed:</td>\n\t\t\t\t\t\t\t<td class='main'><input type='checkbox' name='showfeed' value='1'" . $checkShowFeed . "></td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td class='formLabel'>Embed Last Tweet:</td>\n\t\t\t\t\t\t\t<td class='main'><input type='checkbox' name='embedlasttweet' value='1'" . $checkEmbedTweet . "></td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td class='formLabel'>Show Info Card: <a href='javascript:void(0)' onmouseover=\"showToolTip('An example of the Info Card is shown in the &quot;Connected&quot; section above.')\" onmouseout='hideToolTip()'>(?)</a></td>\n\t\t\t\t\t\t\t<td class='main'><input type='checkbox' name='showinfo' value='1'" . $checkInfoCard . "></td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td colspan='2'><br>\n\t\t\t\t\t\t\t\t<div class='main dottedLine' style='margin-bottom: 2px; padding-bottom: 3px'>\n\t\t\t\t\t\t\t\t\t<b>Log In Options:</b>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div style='padding-left: 3px; margin-bottom: 15px'>\n\t\t\t\t\t\t\t\t\tCheck the box below to allow logging into this website through Twitter.\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td class='formLabel'>Allow Log In:</td>\n\t\t\t\t\t\t\t<td class='main'><input type='checkbox' name='allowlogin' value='1'" . $checkAllowLogin . "></td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td class='main' colspan='2' align='center'><br>\n\t\t\t\t\t\t\t\t<input type='submit' name='submit' value='Save' class='submitButton'>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</table>\n\t\t\t\t\t<br>\n\t\t\t\t</div>\n\t\t\t</form>\n\t\t</div>\n\t\t\n\t\t<div id='disconnectDiv' style='display: none'>\n\t\t\t<p class='main' align='center'>\n\t\t\t\tAre you sure you want to disconnect your Twitter account?\n\t\t\t</p>\n\t\t</div>\n\t\t\n\t\t<script type='text/javascript'>\n\t\t\n\t\t\t\$(document).ready(function() {\n\t\t\t\n\t\t\t\t\$('#btnDisconnect').click(function() {\n\t\t\t\t\t\n\t\t\t\t\t\$('#disconnectDiv').dialog({\n\t\t\t\t\t\ttitle: 'Disconnect Twitter',\n\t\t\t\t\t\tmodal: true,\n\t\t\t\t\t\tzIndex: 99999,\n\t\t\t\t\t\twidth: 400,\n\t\t\t\t\t\tresizable: false,\n\t\t\t\t\t\tshow: 'scale',\n\t\t\t\t\t\tbuttons: {\n\t\t\t\t\t\t\t'Yes': function() {\n\t\t\t\t\t\t\t\t\$('#connectedDiv').fadeOut(250);\n\t\t\t\t\t\t\t\t\$.post('" . $MAIN_ROOT . "plugins/twitter/disconnect.php', { }, function(data) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\$('#connectedDiv').html(data);\n\t\t\t\t\t\t\t\t\t\$('#connectedDiv').fadeIn(250);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\$(this).dialog('close');\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t'Cancel': function() {\n\t\t\t\t\t\t\t\t\$(this).dialog('close');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t});\n\t\t\t\t\t\$('.ui-dialog :button').blur();\n\t\t\t\t\n\t\t\t\t});\n\t\t\t\n\t\t\t});\n\t\t\n\t\t</script>\n\t";
    if ($dispSuccess) {
        echo "\n\t\t\t<div id='successDiv' style='display: none'>\n\t\t\t\t<p align='center' class='main'>\n\t\t\t\t\tTwitter Connect Settings Saved!\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t\t<script type='text/javascript'>\n\t\t\t\n\t\t\t\t\$(document).ready(function() {\n\t\t\t\t\n\t\t\t\t\t\$('#successDiv').dialog({\n\t\t\t\t\t\ttitle: 'Twitter Connect',\n\t\t\t\t\t\tmodal: true,\n\t\t\t\t\t\tzIndex: 99999,\n\t\t\t\t\t\twidth: 400,\n\t\t\t\t\t\tresizable: false,\n\t\t\t\t\t\tshow: 'scale',\n\t\t\t\t\t\tbuttons: {\n\t\t\t\t\t\t\t'Ok': function() {\n\t\t\t\t\t\t\t\t\$(this).dialog('close');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t});\n\t\t\t\t\t\$('.ui-dialog :button').blur();\n\t\t\t\t\n\t\t\t\t});\n\t\t\t\n\t\t\t</script>\n\t\t\n\t\t\n\t\t";
    }
} else {
    echo "\n\t\n\t\t<script type='text/javascript'>\n\t\t\t\n\t\t\twindow.location = '" . $MAIN_ROOT . "members';\n\t\t\n\t\t</script>\n\t\n\t";
}
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:twitterconnect.php


示例7: array

        }
    }
    $ytInfo = $ytObj->get_info_filtered();
    $checkVideos = array();
    if ($ytInfo['showvideos'] == 0) {
        $checkVideos[0] = " selected";
    } elseif ($ytInfo['showvideos'] == 1) {
        $checkVideos[1] = " selected";
    }
    $checkInfoCard = $ytInfo['showsubscribe'] == 1 ? " checked" : "";
    $checkAllowLogin = $ytInfo['allowlogin'] == 1 ? " checked" : "";
    echo "\n\t\t\t<div id='loadingSpiralDisconnect' class='loadingSpiral'>\n\t\t\t\t<p align='center'>\n\t\t\t\t\t<img src='" . $MAIN_ROOT . "themes/" . $THEME . "/images/loading-spiral.gif'><br>Loading\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t\t<div id='connectedDiv'>\n\t\t\t<form action='" . $MAIN_ROOT . "members/console.php?cID=" . $_GET['cID'] . "' method='post'>\n\t\t\t<div class='formDiv'>\n\t\t\t";
    if ($dispError != "") {
        echo "\n\t\t\t<div class='errorDiv'>\n\t\t\t<strong>Unable to save Youtube settings because the following errors occurred:</strong><br><br>\n\t\t\t{$dispError}\n\t\t\t</div>\n\t\t\t";
    }
    echo "\n\t\t\t\n\t\t\t\t<table class='formTable'>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td colspan='2'>\n\t\t\t\t\t\t\t<div class='main dottedLine' style='margin-bottom: 20px; padding-bottom: 3px'>\n\t\t\t\t\t\t\t\t<b>Connected:</b>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td colspan='2'>\n\t\t\t\t\t\t\t<div id='loadingSpiral' class='loadingSpiral' style='padding-top: 0px'>\n\t\t\t\t\t\t\t\t<p align='center'>\n\t\t\t\t\t\t\t\t\t<img src='" . $MAIN_ROOT . "themes/" . $THEME . "/images/loading-spiral.gif'><br>Refreshing Data\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div id='ytInfoCard'>" . $ytObj->dispSubscribeButton() . "</div>\n\t\t\t\t\t\t\t<div style='font-style: italic; text-align: center; margin-top: 3px; margin-left: auto; margin-right: auto; position: relative' class='main'>\n\t\t\t\t\t\t\t\tLast updated <span id='lastUpdateTime'>" . getPreciseTime($ytInfo['lastupdate']) . "</span>\n\t\t\t\t\t\t\t\t<p class='largeFont' style='font-style: normal; font-weight: bold' align='center'>\n\t\t\t\t\t\t\t\t\t<a style='cursor: pointer' id='btnDisconnect'>DISCONNECT ACCOUNT</a>\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td colspan='2'>\n\t\t\t\t\t\t\t<div class='main dottedLine' style='margin-bottom: 20px; padding-bottom: 3px'>\n\t\t\t\t\t\t\t\t<b>Profile Display Options:</b>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class='formLabel'>Show Info Card: <a href='javascript:void(0)' onmouseover=\"showToolTip('An example of the Info Card is shown in the &quot;Connected&quot; section above.')\" onmouseout='hideToolTip()'>(?)</a></td>\n\t\t\t\t\t\t<td class='main'><input type='checkbox' name='showinfocard' value='1'" . $checkInfoCard . "></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class='formLabel'>Video Display:</td>\n\t\t\t\t\t\t<td class='main'>\n\t\t\t\t\t\t\t<select name='showvideos' class='textBox'>\n\t\t\t\t\t\t\t\t<option value='0'" . $checkVideos[0] . ">Don't Show Videos</option>\n\t\t\t\t\t\t\t\t<option value='1'" . $checkVideos[1] . ">Most Recent Video</option>\n\t\t\t\t\t\t\t\t";
    for ($i = 2; $i <= 5; $i++) {
        $dispChecked = "";
        if ($ytInfo['showvideos'] == $i) {
            $dispChecked = " selected";
        }
        echo "<option value='" . $i . "'" . $dispChecked . ">" . $i . " Most Recent Videos</option>";
    }
    echo "\n\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td colspan='2'><br>\n\t\t\t\t\t\t\t<div class='main dottedLine' style='margin-bottom: 2px; padding-bottom: 3px'>\n\t\t\t\t\t\t\t\t<b>Log In Options:</b>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div style='padding-left: 3px; margin-bottom: 15px'>\n\t\t\t\t\t\t\t\tCheck the box below to allow logging into this website through Youtube.\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class='formLabel'>Allow Log In:</td>\n\t\t\t\t\t\t<td class='main'><input type='checkbox' name='allowlogin' value='1'" . $checkAllowLogin . "></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class='main' colspan='2' align='center'><br>\n\t\t\t\t\t\t\t<input type='submit' name='submit' value='Save' class='submitButton'>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>\n\t\t\t\n\t\t\t</div>\n\t\t\t</form>\n\t\t\t</div>\n\t\t\t\n\t\t\t<div id='disconnectDiv' style='display: none'>\n\t\t\t<p class='main' align='center'>\n\t\t\t\tAre you sure you want to disconnect your Youtube account?\n\t\t\t</p>\n\t\t</div>\n\t\t\n\t\t<script type='text/javascript'>\n\t\t\n\t\t\t\$(document).ready(function() {\n\t\t\t\n\t\t\t\t\$('#btnDisconnect').click(function() {\n\t\t\t\t\t\n\t\t\t\t\t\$('#disconnectDiv').dialog({\n\t\t\t\t\t\ttitle: 'Disconnect Youtube',\n\t\t\t\t\t\tmodal: true,\n\t\t\t\t\t\tzIndex: 99999,\n\t\t\t\t\t\twidth: 400,\n\t\t\t\t\t\tresizable: false,\n\t\t\t\t\t\tshow: 'scale',\n\t\t\t\t\t\tbuttons: {\n\t\t\t\t\t\t\t'Yes': function() {\n\t\t\t\t\t\t\t\t\$('#connectedDiv').fadeOut(250);\n\t\t\t\t\t\t\t\t\$('#loadingSpiralDisconnect').show();\n\t\t\t\t\t\t\t\t\$.post('" . $MAIN_ROOT . "plugins/youtube/disconnect.php', { }, function(data) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\$('#connectedDiv').html(data);\n\t\t\t\t\t\t\t\t\t\$('#loadingSpiralDisconnect').hide();\n\t\t\t\t\t\t\t\t\t\$('#connectedDiv').fadeIn(250);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\$(this).dialog('close');\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t'Cancel': function() {\n\t\t\t\t\t\t\t\t\$(this).dialog('close');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t});\n\t\t\t\t\t\$('.ui-dialog :button').blur();\n\t\t\t\t\n\t\t\t\t});\n\t\t\t\n\t\t\t});\n\t\t\n\t\t</script>\n\t\t\t\n\t\t";
    if (time() - $ytInfo['lastupdate'] > 1800) {
        echo "\n\t\t\t\t\n\t\t\t\t<script type='text/javascript'>\n\t\t\t\t\n\t\t\t\t\t\$(document).ready(function() {\n\t\t\t\t\t\n\t\t\t\t\t\t\$('#loadingSpiral').show();\n\t\t\t\t\t\t\$('#ytInfoCard').fadeOut(250);\n\t\t\t\t\t\n\t\t\t\t\t\t\$.post('" . $MAIN_ROOT . "plugins/youtube/reloadcache.php', { yID: '" . $ytInfo['youtube_id'] . "' }, function(data) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tpostResult = JSON.parse(data);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(postResult['result'] == 'success') {\n\t\t\t\t\t\t\t\t\$('#ytInfoCard').html(postResult['html']);\n\t\t\t\t\t\t\t\t\$('#lastUpdateTime').html(postResult['time']);\n\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\$('#ytInfoCard').fadeIn(250);\n\t\t\t\t\t\t\t\$('#loadingSpiral').hide();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tvar bubbleRight = (\$('.ytBubble').width()*-1)-20;\n\t\t\t\t\t\t\t\$('.ytBubble').css('right', bubbleRight+'px');\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t});\n\t\t\t\t\n\t\t\t\t</script>\n\t\t\t\n\t\t\t";
    }
    if ($dispSuccess) {
        echo "\n\t\t\t\t<div id='successDiv' style='display: none'>\n\t\t\t\t\t<p align='center' class='main'>\n\t\t\t\t\t\tYoutube Connect Settings Saved!\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t\t<script type='text/javascript'>\n\t\t\t\t\n\t\t\t\t\t\$(document).ready(function() {\n\t\t\t\t\t\n\t\t\t\t\t\t\$('#successDiv').dialog({\n\t\t\t\t\t\t\ttitle: 'Twitter Connect',\n\t\t\t\t\t\t\tmodal: true,\n\t\t\t\t\t\t\tzIndex: 99999,\n\t\t\t\t\t\t\twidth: 400,\n\t\t\t\t\t\t\tresizable: false,\n\t\t\t\t\t\t\tshow: 'scale',\n\t\t\t\t\t\t\tbuttons: {\n\t\t\t\t\t\t\t\t'Ok': function() {\n\t\t\t\t\t\t\t\t\t\$(this).dialog('close');\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t});\n\t\t\t\t\t\t\$('.ui-dialog :button').blur();\n\t\t\t\t\t\n\t\t\t\t\t});\n\t\t\t\t\n\t\t\t\t</script>\n\t\t\t";
    }
}
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:youtubeconnect.php


示例8: array

    if (time() - $fbInfo['lastupdate'] > 1800) {
        $fbObj->accessToken = $fbInfo['access_token'];
        $fbInfo = $fbObj->getFBInfo();
        if ($fbInfo == "") {
            // User revoked access through Facebook, refresh page and re-ask for access
            $fbObj->delete();
            echo "\n\t\t\t\n\t\t\t\t<script type='text/javascript'>\n\t\t\t\t\n\t\t\t\t\twindow.location = '" . $MAIN_ROOT . "members/console.php?cID=" . $_GET['cID'] . "';\n\t\t\t\t\n\t\t\t\t</script>\n\t\t\t\n\t\t\t";
            exit;
        }
        $arrColumns = array("name", "lastupdate");
        $arrValues = array($fbInfo['name'], time());
        $fbObj->select($fbID);
        $fbObj->update($arrColumns, $arrValues);
        $fbInfo = $fbObj->get_info_filtered();
    }
    echo "\n\t\n\t\t<div id='loadingSpiral' class='loadingSpiral'>\n\t\t\t<p align='center'>\n\t\t\t\t<img src='" . $MAIN_ROOT . "themes/" . $THEME . "/images/loading-spiral.gif'><br>Loading\n\t\t\t</p>\n\t\t</div>\n\t\t<div id='connectedDiv'>\n\t\t\t<div class='formDiv'>\n\t\t\t\t<table class='formTable'>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<div class='main dottedLine' style='margin-bottom: 20px; padding-bottom: 3px'>\n\t\t\t\t\t\t\t\t<b>Connected:</b>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t<div class='shadedBox' style='margin-left: auto; margin-right: auto; width: 50%; overflow: auto'>\n\t\n\t\t\t\t\t\t\t\t<div style='float: left; margin: 3px; padding: 0px' class='solidBox'><img src='" . $fbObj->getProfilePic("normal") . "'></div>\n\t\t\t\t\t\t\t\t<div style='float: left; padding-left: 8px; padding-top: 30px'>\n\t\t\t\t\t\t\t\t\t<span class='breadCrumbTitle' style='padding: 0px'><a href='https://www.facebook.com/profile.php?id=" . $fbInfo['facebook_id'] . "'>" . $fbInfo['name'] . "</a></span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div style='font-style: italic; text-align: center; margin-top: 3px; margin-left: auto; margin-right: auto; position: relative' class='main'>\n\t\t\t\t\t\t\t\tLast updated " . getPreciseTime($fbInfo['lastupdate']) . "\n\t\t\t\t\t\t\t\t<p class='largeFont' style='font-style: normal; font-weight: bold' align='center'>\n\t\t\t\t\t\t\t\t\t<a style='cursor: pointer' id='btnDisconnect'>DISCONNECT ACCOUNT</a>\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>\t\t\n\t\t\t</div>\n\t\t</div>\n\t\t<div id='disconnectDiv' style='display: none'>\n\t\t\t<p class='main' align='center'>\n\t\t\t\tAre you sure you want to disconnect your Facebook account?\n\t\t\t</p>\n\t\t</div>\n\t\t\n\t\t<script type='text/javascript'>\n\t\t\n\t\t\t\$(document).ready(function() {\n\t\t\t\n\t\t\t\t\$('#btnDisconnect').click(function() {\n\t\t\t\t\t\n\t\t\t\t\t\$('#disconnectDiv').dialog({\n\t\t\t\t\t\ttitle: 'Disconnect Facebook',\n\t\t\t\t\t\tmodal: true,\n\t\t\t\t\t\tzIndex: 99999,\n\t\t\t\t\t\twidth: 400,\n\t\t\t\t\t\tresizable: false,\n\t\t\t\t\t\tshow: 'scale',\n\t\t\t\t\t\tbuttons: {\n\t\t\t\t\t\t\t'Yes': function() {\n\t\t\t\t\t\t\t\t\$('#connectedDiv').fadeOut(250);\n\t\t\t\t\t\t\t\t\$('#loadingSpiral').show();\n\t\t\t\t\t\t\t\t\$.post('" . $MAIN_ROOT . "plugins/facebook/disconnect.php', { }, function(data) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\$('#connectedDiv').html(data);\n\t\t\t\t\t\t\t\t\t\$('#loadingSpiral').hide();\n\t\t\t\t\t\t\t\t\t\$('#connectedDiv').fadeIn(250);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\$(this).dialog('close');\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t'Cancel': function() {\n\t\t\t\t\t\t\t\t\$(this).dialog('close');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t});\n\t\t\t\t\t\$('.ui-dialog :button').blur();\n\t\t\t\t\n\t\t\t\t});\n\t\t\t\n\t\t\t});\n\t\t\n\t\t</script>\n\t\n\t";
} elseif (!$blnCheckForFacebook && isset($_GET['code'])) {
    $fbObj->tokenNonce = $_SESSION['btFacebookNonce'];
    $arrURLInfo = parse_url($dispHTTP . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']);
    $arrAccessToken = $fbObj->getAccessToken($_GET['code'], $_GET['state'], $arrURLInfo['scheme'] . "://" . $arrURLInfo['host'] . $arrURLInfo['path'] . "?cID=" . $_GET['cID']);
    $_SESSION['btFBAccessToken'] = $arrAccessToken['access_token'];
    if ($fbObj->checkAccessToken()) {
        $fbInfo = $fbObj->getFBInfo();
        // Save in DB
        $arrColumns = array("facebook_id", "member_id", "name", "access_token", "lastupdate");
        $arrValues = array($fbInfo['id'], $memberInfo['member_id'], $fbInfo['name'], $arrAccessToken['access_token'], time());
        $fbObj->addNew($arrColumns, $arrValues);
        echo "\n\t\t\t\n\t\t\t<script type='text/javascript'>\n\t\t\t\twindow.location = '" . $MAIN_ROOT . "members/console.php?cID=" . $_GET['cID'] . "';\n\t\t\t</script>\n\t\t\n\t\t";
    } else {
        echo "\n\t\t\n\t\t\t<div class='shadedBox' style='margin-left: auto; margin-right: auto; width: 50%'>\n\t\t\t\t<p class='main' align='center'>\n\t\t\t\t\tUnable to connect account!  Please Try Again.<br><br>\n\t\t\t\t\t<a href='" . $MAIN_ROOT . "members/console.php?cID=" . $_GET['cID'] . "'>Retry</a>\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t\n\t\t";
    }
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:facebookconnect.php


示例9: elseif

    }
    $pageoptions .= "<option value='" . $i . "'" . $dispSelected . ">" . $i . "</option>";
}
if ($_GET['page'] == 1) {
    $startLimit = 0;
} else {
    $startLimit = ($_GET['page'] - 1) * $_GET['show'];
}
$dispLinks = "";
if ($_GET['page'] == 1 && $numOfPages > 1) {
    $dispLinks = "<a href='" . $MAIN_ROOT . "members/console.php?cID=" . $cID . "&page=" . ($_GET['page'] + 1) . "&show=" . $_GET['show'] . "'>Next</a> &raquo;";
} elseif ($_GET['page'] != 1 && $numOfPages > $_GET['page']) {
    $dispLinks = "&laquo; <a href='" . $MAIN_ROOT . "members/console.php?cID=" . $cID . "&page=" . ($_GET['page'] - 1) . "&show=" . $_GET['show'] . "'>Previous</a> | <a href='" . $MAIN_ROOT . "members/console.php?cID=" . $cID . "&page=" . ($_GET['page'] + 1) . "&show=" . $_GET['show'] . "'>Next</a> &raquo;";
} elseif ($_GET['page'] != 1 && $numOfPages == $_GET['page']) {
    $dispLinks = "&laquo; <a href='" . $MAIN_ROOT . "members/console.php?cID=" . $cID . "&page=" . ($_GET['page'] - 1) . "&show=" . $_GET['show'] . "'>Previous</a>";
}
foreach ($arrShowPerPage as $numShowPerPage) {
    $dispSelected = "";
    if ($numShowPerPage == $_GET['show']) {
        $dispSelected = " selected";
    }
    $showoptions .= "<option value='" . $numShowPerPage . "'" . $dispSelected . ">" . $numShowPerPage . " entries per page</option>";
}
echo "\n\t<div class='formDiv'>\n\t\n\t\t<div style='float: left'>\n\t\t\t<p class='main' style='padding-left: 10px'>\n\t\t\t\tDisplay: <select id='showselect' class='textBox'>" . $showoptions . "</select> <input type='button' id='showselectButton' class='submitButton' value='GO'>\n\t\t\t</p>\n\t\t</div>\n\t\t<div style='float: right'>\n\t\t\t<p class='main' align='right' style='padding-right: 10px'>\n\t\t\t\t<b>Page:</b> <select id='pageselect' class='textBox'>" . $pageoptions . "</select> <input type='button' id='pageselectButton' class='submitButton' value='GO'> &nbsp;&nbsp;&nbsp; " . $dispLinks . " \n\t\t\t</p>\n\t\t</div>\n\t\t\n\t\t<table class='formTable'>\n";
$result = $mysqli->query("SELECT * FROM " . $dbprefix . "logs ORDER BY logdate DESC LIMIT " . $startLimit . "," . $_GET['show']);
while ($row = $result->fetch_assoc()) {
    $member->select($row['member_id']);
    $formatDate = getPreciseTime($row['logdate']);
    echo "\n\t\t<tr>\n\t\t\t<td class='formLabel'>Log ID#:</td>\n\t\t\t<td class='main'>" . $row['log_id'] . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td class='formLabel'>Log Date:</td>\n\t\t\t<td class='main'>" . $formatDate . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td class='formLabel'>Member:</td>\n\t\t\t<td class='main'>" . $member->getMemberLink() . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td class='formLabel' valign='top'>Action:</td>\n\t\t\t<td class='main' valign='top'>" . $row['message'] . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td colspan='2' align='center'><br><div class='dottedLine' style='width: 90%'></div><br></td>\n\t\t</tr>\n\t";
}
echo "</table>\n\n<p align='right' style='padding-right: 10px' class='main'>\n\t<a href='javascript:void(0)' id='goUpLink'>^^ Go Up</a>\n</p>\n<div style='clear: both'></div>\n</div>\n\n\n<script type='text/javascript'>\n\t\n\t\$(document).ready(function() {\n\t\t\n\t\t\$('#pageselectButton').click(function() {\n\t\t\tvar pageNum = \$('#pageselect').val();\n\t\t\twindow.location = '" . $MAIN_ROOT . "members/console.php?cID=" . $cID . "&page='+pageNum+'&show=" . $_GET['show'] . "';\n\t\t});\n\t\n\t\t\$('#showselectButton').click(function() {\n\t\t\t\n\t\t\tvar showPerPage = \$('#showselect').val();\n\t\t\twindow.location = '" . $MAIN_ROOT . "members/console.php?cID=" . $cID . "&page=1&show='+showPerPage;\n\t\t\n\t\t});\n\t\n\t\n\t\t\n\t\t\$('#goUpLink').click(function() {\n\t\t\t\$('html, body').animate({ scrollTop: 0 });\n\t\t});\n\t\n\t});\n\n</script>\n\n";
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:logs.php


示例10: Medal

    exit;
}
// MEDALS
$arrMedals = $member->getMedalList(false, $websiteInfo['medalorder']);
$medalObj = new Medal($mysqli);
if (count($arrMedals) > 0) {
    foreach ($arrMedals as $medalID) {
        $medalObj->select($medalID);
        $medalInfo = $medalObj->get_info_filtered();
        if ($medalInfo['imagewidth'] == 0) {
            $imgInfo = getimagesize($medalObj->getLocalImageURL());
            $medalInfo['imagewidth'] = $imgInfo[0];
        }
        if ($medalInfo['imageheight'] == 0) {
            $imgInfo = getimagesize($medalObj->getLocalImageURL());
            $medalInfo['imageheight'] = $imgInfo[1];
        }
        $result = $mysqli->query("SELECT * FROM " . $dbprefix . "medals_members WHERE member_id = '" . $memberInfo['member_id'] . "' AND medal_id = '" . $medalInfo['medal_id'] . "'");
        $row = $result->fetch_assoc();
        $dispDateAwarded = "<b>Date Awarded:</b><br>" . getPreciseTime($row['dateawarded']);
        $dispReason = "";
        if ($row['reason'] != "") {
            $dispReason = "<br><br><b>Awarded for:</b><br>" . filterText($row['reason']);
        }
        $dispMedalMessage = "<b>" . $medalInfo['name'] . "</b><br><br>" . $dispDateAwarded . $dispReason;
        $tempArr = array("width" => $medalInfo['imagewidth'], "height" => $medalInfo['imageheight'], "url" => $medalInfo['imageurl'], "message" => $dispMedalMessage);
        $arrDispMedals[] = $tempArr;
    }
    $jsonMedals = json_encode($arrDispMedals);
    echo "\n\t\t<div class='formTitle' style='position: relative; text-align: center; margin-top: 20px'>Medals</div>\n\t\t\t<table class='profileTable' id='medalTable' style='border-top-width: 0px'>\n\t\t\t\t<tr>\n\t\t\t\t\t<td class='main' align='center'>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<div id='medalDiv'>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t</table>\n\t\t\n\t\t\t\n\t\t\t<script type='text/javascript'>\n\t\t\t\tvar arrMedals = " . $jsonMedals . "\n\t\t\t\tvar medalHTML = \"\";\n\t\t\t\tvar divWidth = \$('#medalTable').width();\n\t\t\t\tvar countWidth = 0;\n\t\t\t\tvar arrMessage = [];\n\t\t\t\t\n\t\t\t\t\$(document).ready(function() {\n\t\t\t\t\t\n\t\t\t\t\t\$.each(arrMedals, function(i, val) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tcountWidth += parseInt(val.width);\n\t\t\t\t\t\tif(countWidth > divWidth) {\n\t\t\t\t\t\t\tmedalHTML += \"<br><br>\";\n\t\t\t\t\t\t\tcountWidth = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tarrMessage[i] = val.message;\n\t\t\t\t\t\t//alert(arrMessage[i]);\n\t\t\t\t\t\tmedalHTML += \"<img src='\"+val.url+\"' width='\"+val.width+\"' height='\"+val.height+\"' style='margin: 0px 20px' onmouseover='showToolTip(arrMessage[\"+i+\"])' onmouseout='hideToolTip()'>\";\n\n\t\t\t\t\t});\n\t\t\t\t\n\t\t\t\t\t\$('#medalDiv').html(medalHTML);\n\t\t\t\t\t\n\t\t\t\t});\n\t\t\t\t\n\t\t\t</script>\n\t\t";
}
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:_medals.php


示例11: elseif

        $pmObj->select($key);
        $pmInfo = $pmObj->get_info_filtered();
        $useAltBG = " alternateBGColor";
        if (isset($arrPMMID[$key]) && $multiMemPMObj->select($arrPMMID[$key]) && $multiMemPMObj->get_info("seenstatus") == 1) {
            $useAltBG = "";
        } elseif (!isset($arrPMMID[$key]) && $pmInfo['status'] == 1) {
            $useAltBG = "";
        }
        $addToPMValue = "";
        $addToPMURL = "";
        if (isset($arrPMMID[$key])) {
            $addToPMValue = "_" . $arrPMMID[$key];
            $addToPMURL = "&pmMID=" . $arrPMMID[$key];
        }
        $member->select($pmInfo['sender_id']);
        if ($_POST['folder'] == "-1" && $pmInfo['receiver_id'] != 0) {
            $member->select($pmInfo['receiver_id']);
            $dispSender = $member->getMemberLink();
            $member->select($memberInfo['member_id']);
        } elseif ($_POST['folder'] == "-1" && $pmInfo['receiver_id'] == 0) {
            $dispSender = $pmObj->getRecipients(true);
        } else {
            $dispSender = $member->getMemberLink();
        }
        echo "\n\t<tr>\n\t\t<td class='pmInbox main solidLine" . $useAltBG . "' style='padding-left: 0px' width=\"5%\"><input type='checkbox' value='" . $pmInfo['pm_id'] . $addToPMValue . "' class='textBox'></td>\n\t\t<td class='pmInbox main solidLine" . $useAltBG . "' style='overflow: hidden' width=\"30%\"><div style='width: 85%; white-space:nowrap; overflow: hidden; text-overflow: ellipsis'>" . $dispSender . "</a></div></td>\n\t\t<td class='pmInbox main solidLine" . $useAltBG . "' style='overflow: hidden' width=\"35%\"><div style='width: 85%; white-space:nowrap; overflow: hidden; text-overflow: ellipsis'><a href='" . $MAIN_ROOT . "members/privatemessages/view.php?pmID=" . $pmInfo['pm_id'] . $addToPMURL . "'>" . filterText($pmInfo['subject']) . "</a></div></td>\n\t\t<td class='pmInbox main solidLine" . $useAltBG . "' width=\"30%\">" . getPreciseTime($pmInfo['datesent']) . "</td>\n\t</tr>\n\t";
    }
    if (count($arrPM) == 0) {
        echo "\n\t<tr>\n\t\t<td class='main' colspan='4'>\n\t\t\t<p align='center' style='font-style: italic'>\n\t\t\t\tThis folder is empty!\n\t\t\t</p>\n\t\t</td>\n\t</tr>\n\n\t";
    }
    echo "</table>";
}
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:inbox.php


示例12: getPreciseTime

 $newTopicBG = "";
 $dispNewTopicIMG = "";
 if ($LOGGED_IN && $boardObj->hasNewTopics($memberInfo['member_id'])) {
     $dispNewTopicIMG = " <img style='margin-left: 5px' src='" . $MAIN_ROOT . "themes/" . $THEME . "/images/forum-new.png' title='New Posts!'>";
     $newTopicBG = " boardNewPostBG";
 }
 // Get Last Post Display Info
 if (count($arrForumTopics) > 0) {
     $boardObj->objPost->select($arrForumTopics[0]);
     $firstPostInfo = $boardObj->objPost->get_info_filtered();
     $boardObj->objTopic->select($firstPostInfo['forumtopic_id']);
     $lastPostID = $boardObj->objTopic->get_info("lastpost_id&qu 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getPref函数代码示例发布时间:2022-05-15
下一篇:
PHP getPrdQtyInStck函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap