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

PHP urlize函数代码示例

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

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



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

示例1: jzPopup

 function jzPopup()
 {
     global $jzUSER;
     // Now let's se if they selected a Genre, Artist, or Album:
     if (isset($_POST['chosenPath'])) {
         if (isset($_POST['jz_type']) && $_POST['jz_type'] == "track") {
             if (checkPermission($jzUSER, 'play', $_POST['chosenPath']) === false) {
                 $this->closeWindow(false);
             }
             $e = new jzMediaTrack($_POST['chosenPath']);
             $pl = new jzPlaylist();
             $pl->add($e);
             $pl->play();
             exit;
         } else {
             $return = $this->returnGoBackPage($_POST['return']);
         }
         //$url = $return. "&" . jz_encode("path") . "=". jz_encode(urlencode($_POST['chosenPath']));
         $link = array();
         $link['jz_path'] = $_POST['chosenPath'];
         // Now let's fix that if we need to
         // Ok, now that we've got the URL let's refresh the parent and close this window
         echo '<body onload="opener.location.href=\'' . urlize($link) . '\';window.close();">';
         exit;
     }
 }
开发者ID:seanfbrown,项目名称:jinzora,代码行数:26,代码来源:popup.php


示例2: mklink

function mklink($l)
{
    global $arr;
    $arr['jz_level'] = distanceTo("artist");
    $arr['jz_letter'] = $l;
    return urlize($arr);
}
开发者ID:seanfbrown,项目名称:jinzora,代码行数:7,代码来源:bottomframe.php


示例3: standardPage

 function standardPage(&$node)
 {
     global $show_artist_alpha, $truncate_length, $sort_by_year, $jzSERVICES;
     // Let's setup the objects
     $blocks =& new jzBlocks();
     $display =& new jzDisplay();
     $smarty = smartySetup();
     $itemArray = getCurNodeList();
     $smarty->assign("nodes", $itemArray);
     // Now are there any tracks?
     // Probably handle this differently:
     // change getCurNodeList to getCurMediaList.
     $tracks = $node->getSubNodes("tracks");
     if (count($tracks) != 0) {
         $smary->assign("tracks", array());
     }
     $smarty->assign("playerURL", urlize(array("frame" => "player")));
     $smarty->assign("bodyURL", urlize(array("frame" => "body")));
     // OUTPUT HTML
     // Is this our first pageview?
     if ((!isset($_GET['refview']) || $_GET['refview'] != $this->name) && !isset($_GET['frame'])) {
         $display->preheader();
         $smarty->assign("playerHeight", $jzSERVICES->returnPlayerHeight());
         jzTemplate($smarty, "page");
     } else {
         if (isset($_GET['frame']) && $_GET['frame'] == "player") {
             $display->preheader();
             jzTemplate($smarty, "player");
         } else {
             $display->preheader();
             jzTemplate($smarty, "body");
         }
     }
 }
开发者ID:seanfbrown,项目名称:jinzora,代码行数:34,代码来源:header.php


示例4: drawPage

function drawPage($node)
{
    global $random_albums, $include_path;
    $display = new jzDisplay();
    $blocks = new jzBlocks();
    echo '<br>';
    $blocks->blockBodyOpen();
    if (isset($_GET['letter'])) {
        $nodes = $node->getAlphabetical($_GET['letter'], 'nodes', 2);
    } else {
        $nodes = $node->getSubNodes('nodes');
    }
    $tracks = $node->getSubNodes('tracks');
    // Now let's display the site description
    $news = $blocks->siteNews($node);
    if ($news != "") {
        echo "<br><center>" . $news . "<center>";
    }
    $cols = 4;
    $curCol = 1;
    $per_col = round(sizeof($nodes) / $cols);
    $i = 0;
    $percent = round(100 / $cols);
    echo "<table cellpadding=\"4\" width=\"100%\"><tr class=\"jz_col_table_tr\"><td class=\"jz_col_table\" valign=\"top\" width=\"{$percent}%\"><table>";
    foreach ($nodes as $el) {
        if ($i == $per_col && $curCol != $cols) {
            $curCol++;
            echo "</table></td><td class=\"jz_col_table\" valign=\"top\" width=\"{$percent}%\"><table width=\"100%\">";
            $i = 0;
        }
        echo "<tr><td>";
        $display->link($el);
        echo "</td></tr>";
        $i++;
    }
    echo "</table></td></tr></table>";
    if (!isset($_GET['letter'])) {
        $url = array();
        $url['letter'] = '#';
        echo "| <a href=\"" . urlize($url) . "\">#</a>";
        for ($let = 'A'; $let != 'Z'; $let++) {
            $url['letter'] = $let;
            echo " | <a href=\"" . urlize($url) . "\">" . $let . "</a>";
        }
        $url['letter'] = "*";
        echo " | <a href=\"" . urlize($url) . "\">ALL</a> |";
        echo "<br>";
        if (sizeof($tracks) > 0) {
            $blocks->trackTable($tracks, false, true);
        }
        if ($random_albums != "0") {
            echo "<br>";
            $blocks->randomAlbums($node, $node->getName());
        }
    }
    $blocks->blockBodyClose();
    echo "<br>";
}
开发者ID:seanfbrown,项目名称:jinzora,代码行数:58,代码来源:root.php


示例5: scrape

 function scrape()
 {
     global $RolesGraph;
     parse_str(parse_url($this->pageUri, PHP_URL_QUERY), $pageQueryParams);
     $personID = $pageQueryParams['personID'];
     if (@(!($node = $this->xpath->query('//tr/td/h3')->item(0)))) {
         $this->log_message("couldn't find name for Person");
         return null;
     }
     $name = $node->nodeValue;
     $uri = WHOISWHO . 'people/' . $personID . '/' . urlize($name);
     if (preg_match('/^([\\p{Lu} ´\\-’\'"ß\\(\\)]+) ([\\p{L} \\-’\'\\."´š]+)$/u', $name, $matches)) {
         $surname = ucwords(strtolower($matches[1]));
         $fullName = trim($matches[2]) . ' ' . $surname;
         $this->graph->add_literal_triple($uri, FOAF . 'familyName', $surname);
     } else {
         $this->log_message("Name doesn't match regular expression\t" . $name);
         $fullName = $name;
     }
     $this->add_resource($uri, FOAF . 'Person', $fullName);
     $this->graph->add_literal_triple($uri, FOAF . 'name', $fullName);
     $this->graph->add_resource_triple($uri, FOAF . 'isPrimaryTopicOf', $this->pageUri);
     $address = '';
     foreach ($this->xpath->query('//tr/td[contains(. ,"Tel:")][preceding::h3]/node()') as $node) {
         $address .= $this->parseAddressDetails($node, $uri);
     }
     if (!empty($address)) {
         $this->graph->add_literal_triple($uri, OV . 'postalAddress', trim($address));
     }
     $rolePositions = array();
     foreach ($this->xpath->query(WHOISWHO_ROLE_XPATH) as $a) {
         $orgBreadcrumbPath = $a->nodeValue;
         $roleLabels = $this->getRoleLabelsFromNode($a);
         foreach ($roleLabels as $role_label) {
             $roleSlug = urlize($role_label);
             $roleURI = WHOISWHO . 'roles/' . $roleSlug;
             $rolePositions[] = $roleURI;
             $orgNodeID = $this->getNodeIdFromUrl($a->getAttribute('href'));
             $orgURI = INST . 'institutions/' . $orgNodeID;
             $membershipURI = $orgURI . '/memberships/' . $personID . '/' . $roleSlug;
             $RolesGraph->add_resource_triple($roleURI, RDF_TYPE, ORG . 'Role');
             $RolesGraph->add_literal_triple($roleURI, RDFS_LABEL, $role_label, 'en');
             $this->add_resource($membershipURI, ORG . 'Membership', $fullName . ', ' . $role_label . ' of ' . array_pop(explode('; ', $orgBreadcrumbPath)), 'en-gb');
             $this->graph->add_resource_triple($membershipURI, ORG . 'member', $uri);
             $this->graph->add_resource_triple($membershipURI, ORG . 'organization', $orgURI);
             $this->graph->add_resource_triple($membershipURI, ORG . 'role', $roleURI);
             $this->graph->add_resource_triple($uri, ORG . 'memberOf', $orgURI);
         }
     }
     foreach ($this->translate_langs as $lang) {
         $this->translateRolesTo($rolePositions, $lang, $RolesGraph);
     }
     //file_put_contents('roles.nt', $RolesGraph->to_ntriples());
     $this->flushNtriples();
 }
开发者ID:asavagar,项目名称:EU-data-cloud,代码行数:55,代码来源:eupersonscraper.php


示例6: doTemplate

function doTemplate($node)
{
    global $jzUSER, $display, $chart_size;
    $display =& new jzDisplay();
    $smarty = mobileSmarty();
    $smarty->assign('Play', word('Play'));
    $smarty->assign('Shuffle', word('Shuffle'));
    /** Playlists **/
    $smarty->assign('Playlists', word('Playlists'));
    $editPage = array('page' => 'playlist');
    $sm_lists = array();
    $l = $jzUSER->loadPlaylist("session");
    if ($l->length() > 0) {
        $sm_lists[] = array('name' => word("Quick List"), 'openPlayTag' => $display->getOpenPlayTag($l), 'editHREF' => urlize($editPage, array('playlist' => 'session')), 'isStatic' => true, 'openShuffleTag' => $display->getOpenPlayTag($l, true));
    }
    $lists = $jzUSER->listPlaylists("static") + $jzUSER->listPlaylists("dynamic");
    // use "all" to mix ordering
    foreach ($lists as $id => $plName) {
        $l = $jzUSER->loadPlaylist($id);
        $static = $l->getPLType() == 'static' ? true : false;
        $sm_lists[] = array('name' => $plName, 'openPlayTag' => $display->getOpenPlayTag($l), 'editHREF' => urlize($editPage, array('playlist' => $id)), 'isStatic' => $static, 'openShuffleTag' => $display->getOpenPlayTag($l, true));
    }
    $smarty->assign('playlists', $sm_lists);
    /** Charts **/
    /**
     * array of titles and lists */
    $root = new jzMediaNode();
    $charts = array();
    /* recently added albums */
    $chart = array();
    $chart['title'] = word('New Albums');
    $entries = array();
    $list = $root->getRecentlyAdded('nodes', distanceTo('album'), $chart_size);
    for ($i = 0; $i < sizeof($list); $i++) {
        $entries[] = array('name' => $list[$i]->getName(), 'link' => urlize(array('jz_path' => $list[$i]->getPath("String"))), 'openPlayTag' => $display->getOpenPlayTag($list[$i]));
    }
    $chart['entries'] = $entries;
    $charts[] = $chart;
    /* recently played albums */
    $chart = array();
    $chart['title'] = word('Recently Played Albums');
    $entries = array();
    $list = $root->getRecentlyPlayed('nodes', distanceTo('album'), $chart_size);
    for ($i = 0; $i < sizeof($list); $i++) {
        $entries[] = array('name' => $list[$i]->getName(), 'link' => urlize(array('jz_path' => $list[$i]->getPath("String"))), 'openPlayTag' => $display->getOpenPlayTag($list[$i]));
    }
    $chart['entries'] = $entries;
    $charts[] = $chart;
    $smarty->assign('charts', $charts);
    jzTemplate($smarty, 'lists');
}
开发者ID:seanfbrown,项目名称:jinzora,代码行数:51,代码来源:lists.php


示例7: doTemplate

function doTemplate($node)
{
    global $jbArr, $jzUSER;
    $display =& new jzDisplay();
    $smarty = mobileSmarty();
    $smarty->assign('Playback', word('Playback'));
    $smarty->assign('SendToDevice', word('Send to Device:'));
    $smarty->assign('AddToPlaylist', word('Add to Playlist:'));
    $path = $node->getPath("String");
    $url = array('jz_path' => $path, 'page' => 'settings');
    $pbt = array();
    $playlists = array();
    $url['jz_player'] = 'stream';
    $url['jz_player_type'] = 'stream';
    $selected = !actionIsQueue() && checkPlayback() == 'stream';
    $pbt[] = array('label' => word('Stream media'), 'url' => urlize($url), 'selected' => $selected);
    $url['jz_player_type'] = 'jukebox';
    if (isset($jbArr) && is_array($jbArr)) {
        for ($i = 0; $i < sizeof($jbArr); $i++) {
            $url['jz_player'] = $i;
            $url['jz_player_type'] = 'jukebox';
            $selected = !actionIsQueue() && checkPlayback() == 'jukebox' && $_SESSION['jb_id'] == $i;
            $pbt[] = array('label' => word('Send to %s', $jbArr[$i]['description']), 'url' => urlize($url), 'selected' => $selected);
        }
    }
    $smarty->assign('devices', $pbt);
    /* playlists */
    $url['jz_player_type'] = 'playlist';
    $url['jz_player'] = 'session';
    $selected = actionIsQueue() && $_SESSION['jz_playlist_queue'] == 'session';
    $playlists[] = array('label' => word('Quick List'), 'url' => urlize($url), 'selected' => $selected);
    $lists = $jzUSER->listPlaylists("static");
    foreach ($lists as $id => $plName) {
        $url['jz_player'] = $id;
        $selected = actionIsQueue() && $_SESSION['jz_playlist_queue'] == $id;
        $playlists[] = array('label' => $plName, 'url' => urlize($url), 'selected' => $selected);
    }
    $smarty->assign('playlists', $playlists);
    $url['jz_player'] = 'new';
    $smarty->assign('newList', array('href' => '#', 'onclick' => "window.location='" . urlize($url) . "'.concat('&playlistname='.concat(document.getElementById('playlistname').value)); return true;", 'name' => word('My Playlist'), 'inputID' => word('playlistname'), 'label' => word('New list:'), 'selected' => false));
    jzTemplate($smarty, 'settings');
}
开发者ID:seanfbrown,项目名称:jinzora,代码行数:42,代码来源:settings.php


示例8: smartyNode

function smartyNode($e)
{
    global $compare_ignores_the;
    static $anchor = 'A';
    $display = new jzDisplay();
    $arr = array();
    $arr['name'] = $e->getName();
    $arr['link'] = urlize(array('jz_path' => $e->getPath("String")));
    if ($e->getPType() == "album" || $e->getPType == "disk") {
        if (isset($_SESSION['jz_playlist_queue'])) {
            $arr['openPlayTag'] = $display->getOpenAddToListTag($e);
        } else {
            $arr['openPlayTag'] = $display->getOpenPlayTag($e);
        }
    } else {
        if (actionIsQueue()) {
            $arr['openPlayTag'] = $display->getOpenAddToListTag($e);
        } else {
            $arr['openPlayTag'] = $display->getOpenPlayTag($e, true, 50);
        }
    }
    $compName = $arr['name'];
    if ($compare_ignores_the == "true" && strtoupper(substr($compName, 0, 4)) == 'THE ') {
        $compName = substr($compName, 4);
    }
    $compName = trim($compName);
    $anchors = array();
    if ($i == 0) {
        $anchors[] = 'anchor_NUM';
        $first = false;
    }
    while (strlen($anchor) == 1 && ($anchor < strtoupper($compName) || $i == sizeof($items) - 1)) {
        $anchors[] = 'anchor_' . $anchor++;
    }
    $arr['anchors'] = $anchors;
    return $arr;
}
开发者ID:seanfbrown,项目名称:jinzora,代码行数:37,代码来源:browse.php


示例9: array

        echo '</form>';
        ?>
				<SCRIPT language="JavaScript">
				document.retagger.submit();
				</SCRIPT>

				<?php 
        exit;
    }
}
// Now let's give them a form so they can pick what to auto-tag
$arr = array();
$arr['action'] = "popup";
$arr['ptype'] = "retagger";
$arr['jz_path'] = $node->getPath("String");
echo '<form name="retagger" action="' . urlize($arr) . '" method="POST">';
?>
		<?php 
echo word("This tool will rewrite the ID3 tags on your MP3 files based on their structure in the filesystem or with the values you specify below.  You may select which values will be updated by check them below.");
?>
		<br><br>
		<table width="100%">
			<tr>
				<td valign="top">
					<input type="checkbox" <?php 
if (getInformation($node, "genre") !== false) {
    echo "checked";
}
?>
 name="reGenre"> <?php 
echo word("Genre");
开发者ID:seanfbrown,项目名称:jinzora,代码行数:31,代码来源:retagger.php


示例10: slickRandomAlbums

    /**
     * Displays the random albums block
     * @author Ross Carlson
     * @version 12/22/04
     * @since 12/22/04
     * @param object $node the node that we are looking at
     * @param string $level The level we are looking at, like a subartist
     */
    function slickRandomAlbums(&$node, $level = "")
    {
        global $show_album_art, $random_albums, $random_per_slot, $random_albums, $random_per_slot, $random_rate, $row_colors, $root_dir, $jzUSER, $show_album_art, $random_art_size;
        // Should we show this?
        if ($show_album_art == "false") {
            return;
        }
        if ($_GET['action'] == "viewallart") {
            return;
        }
        // Now let's get a random amount of albums with album art
        $artArray = $node->getSubNodes("nodes", distanceTo("album", $node), true, $random_albums * $random_per_slot, true);
        if (count($artArray) == 0) {
            return;
        }
        $title = word("Random Albums");
        if ($node->getName() != "") {
            $title = word("Random Albums") . " :: " . $node->getName();
        }
        $url_array = array();
        $url_array['jz_path'] = $node->getPath("String");
        $url_array['action'] = "viewallart";
        $showLink = '<a href="' . urlize($url_array) . '">' . word("View All Art") . '</a> &nbsp; ';
        // Should we be here????
        if ($random_albums == "0" or $show_album_art == "false") {
            return;
        }
        // Let's setup the new display object
        $display =& new jzDisplay();
        /* // WTF is this doing here? (BJD 6/21/06)
        			// Let's make sure they didn't pass the data already
        			if ($valArray){
        				$artArray = $valArray;
        			} else {
        				// Now let's get a random amount of albums with album art
        				$artArray = $node->getSubNodes("nodes",distanceTo("album",$node),true,$random_albums*$random_per_slot,true);
        			}
        	
        			// Now let's see how much we got back and make sure we just shouldn't return
        			if (count($artArray) == 0){ return; }
        			*/
        // Let's startup Smarty
        $smarty = smartySetup();
        $smarty->assign('title', $title);
        $smarty->assign('showLink', $showLink);
        // Now let's display the template
        $smarty->display(SMARTY_ROOT . 'templates/slick/block-random-albums.tpl');
        // Now let's add the Javascript for the rotations
        ?>
			<SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT"><!--\
				
				//you may add your image file or text below
				$c=1;
				// Now let's create the variables
				<?php 
        $c = 1;
        while ($c < $random_albums + 1) {
            echo "var imgItem" . $c . "=new Array()" . "\n";
            $c++;
        }
        // Now let's build the first array with ALL the data so we can break it up later
        $c = 0;
        for ($i = 0; $i < count($artArray); $i++) {
            $albumName_long = $artArray[$i]->getName();
            $albumName = returnItemShortName($albumName_long, 12);
            $albumLink = str_replace('"', "\\\"", $display->link($artArray[$i], $albumName, word("Browse") . ": " . $albumName_long, "jz_random_art_block", true));
            $artist = $artArray[$i]->getNaturalParent();
            $artistName_long = $artist->getName();
            $artistName = returnItemShortName($artistName_long, 12);
            $artistLink = str_replace('"', "\\\"", $display->link($artist, $artistName, word("Browse") . ": " . $artistName_long, "jz_random_art_block", true));
            $artsize = explode("x", $random_art_size);
            $art = $artArray[$i]->getMainArt($random_art_size);
            $imgSrc = str_replace('"', "'", $display->returnImage($art, $artistName_long, $artsize[0], $artsize[1], "fixed"));
            $item_link = str_replace('"', "'", $display->link($artArray[$i], $imgSrc, $albumName_long, "jz_random_art_block", true));
            // Now, can they stream?
            if ($jzUSER->getSetting('stream')) {
                $playLink = str_replace('"', "\\\"", $display->playLink($artArray[$i], word("Play"), word("Play") . ": " . $albumName_long, "jz_random_art_block", true));
                $randLink = str_replace('"', "\\\"", $display->playLink($artArray[$i], word("Play Random"), word("Play Random") . ": " . $albumName_long, "jz_random_art_block", true, true));
                $dispLink = $playLink . " - " . $randLink;
            } else {
                $dispLink = "";
            }
            // Let's make sure they aren'te view only
            $arrayVar = "<center>" . $artistLink . "<br>" . $albumLink . "<br>" . $item_link;
            if ($jzUSER->getSetting('stream')) {
                $arrayVar .= "<br>" . $dispLink . "</center>";
            }
            $fullArray[] = $arrayVar;
        }
        // Now we need to get the different arrays
        $c = 1;
        $start = 0;
//.........这里部分代码省略.........
开发者ID:jinzora,项目名称:jinzora3,代码行数:101,代码来源:blocks.php


示例11: smartySetup

<?php

$smarty = smartySetup();
$display = new jzDisplay();
$desc = $node->getDescription();
if (isNothing($desc)) {
    return false;
}
if ($desc_truncate === false) {
    $desc_truncate = 700;
}
$smarty->assign('description', $display->returnShortName($desc, $desc_truncate));
$smarty->assign('read_more', "");
if (strlen($desc) > $desc_truncate) {
    $url_array = array();
    $url_array['jz_path'] = $node->getPath("String");
    $url_array['action'] = "popup";
    $url_array['ptype'] = "readmore";
    $smarty->assign('read_more', '<a href="' . urlize($url_array) . '" onclick="openPopup(this, 450, 450); return false;">...read more</a>');
}
jzTemplate($smarty, 'description');
开发者ID:seanfbrown,项目名称:jinzora,代码行数:21,代码来源:description.php


示例12: drawPage

function drawPage(&$node)
{
    global $media_dir, $skin, $hierarchy, $album_name_truncate, $web_root, $root_dir, $jz_MenuItemLeft, $jz_MenuSplit, $jz_MenuItemHover, $jz_MainItemHover, $jz_MenuItem, $disable_random, $allow_download, $allow_send_email, $amg_search, $echocloud, $include_path, $enable_ratings, $truncate_artist_description, $sort_by_year, $cms_mode;
    $display =& new jzDisplay();
    $blocks =& new jzBlocks();
    $fe =& new jzFrontend();
    // Let's see if the theme is set or not, and if not set it to the default
    //if (isset($_SESSION['cur_theme'])){ $_SESSION['cur_theme'] = $skin; }
    $nodes = $node->getSubNodes("nodes");
    $tracks = $node->getSubNodes("tracks");
    echo '<br>';
    $blocks->blockBodyOpen();
    // Now let's setup the big table to display everything
    ?>
		<table width="100%" cellpadding="0" cellspacing="0" border="0">
			<tr>
				<td width="100%" valign="top" colspan="2">
					<?php 
    // Now let's include the menu system for the artist
    // First we'll need to setup some variables
    $play_all_artist = $display->link($node, false, false, false, true, true, false, true);
    $play_all_artist_rand = $display->link($node, false, false, false, true, true, true, true);
    $artist = $node->getName();
    // Now let's inlucde the artist menu
    include_once $include_path . "frontend/menus/artist-menu.php";
    ?>
				</td>
			</tr>
			<tr><td width="100%" valign="top" colspan="2" height="5"></td></tr>
			<tr>
				<td width="35%" valign="top">
					<!-- Let's show the albums -->
					<?php 
    // First let's sort this up
    if ($sort_by_year == "true") {
        sortElements($nodes, "year");
    } else {
        sortElements($nodes, "name");
    }
    foreach ($nodes as $child) {
        $display->playButton($child);
        $display->randomPlayButton($child);
        if ($enable_ratings == "true") {
            $display->rateButton($child);
        }
        echo '<input type="checkbox">';
        echo '&nbsp;';
        $year = $child->getYear();
        $dispYear = "";
        if (!isNothing($year)) {
            $dispYear = " (" . $year . ")";
        }
        $display->link($child, $display->returnShortName($child->getName(), $album_name_truncate) . $dispYear, $child->getName() . $dispYear);
        // *******************************
        // Need to know how to return NEW information HERE
        // *******************************
        echo "<br>";
    }
    include_once $include_path . 'frontend/frontends/classic/general.php';
    //displayArtistPLBar();
    echo "<br>";
    // Now let's show the art
    if (($art = $node->getMainArt('200x200')) !== false) {
        $display->image($art, $node->getName(), 200, 200, "limit", false, false, "left", "5", "5");
    }
    // Now let's show the description
    if ($cms_mode == "false") {
        echo '<span class="jz_artistDesc">';
    }
    $desc = $node->getDescription();
    echo $display->returnShortName($desc, $truncate_artist_description);
    if (strlen($desc) > $truncate_artist_description) {
        $url_array = array();
        $url_array['jz_path'] = $node->getPath("String");
        $url_array['action'] = "popup";
        $url_array['ptype'] = "readmore";
        echo ' <a href="' . urlize($url_array) . '" onclick="openPopup(this, 450, 450); return false;">read more</a>';
    }
    if ($cms_mode == "false") {
        echo '</span>';
    }
    ?>
				</td>
				<td width="65%" valign="top">
					<!-- Let's show the art -->
					<?php 
    // Ok, now let's set our table for the art
    echo '<table width="100%" cellpadding="5" cellspacing="0" border="0">';
    $c = 0;
    foreach ($nodes as $child) {
        $year = $child->getYear();
        $dispYear = "";
        if (!isNothing($year)) {
            $dispYear = " (" . $year . ")";
        }
        // Now let's see if we should start a row
        if ($c == 0) {
            echo '</tr><tr>';
        }
        // Now let's display the data
//.........这里部分代码省略.........
开发者ID:seanfbrown,项目名称:jinzora,代码行数:101,代码来源:artist.php


示例13: word

            $meta['pic_name'] = $imgShortName;
        }
    }
    if ($dirtyFlag) {
        $node->bulkMetaUpdate($meta);
    }
}
$this->displayPageTop("", word("Item Information for") . ": " . $node->getName());
$this->openBlock();
$display = new jzDisplay();
// Let's setup our form
$arr = array();
$arr['action'] = "popup";
$arr['ptype'] = "iteminfo";
$arr['jz_path'] = $_GET['jz_path'];
echo '<form action="' . urlize($arr) . '" method="POST" enctype="multipart/form-data">';
// Ok, now let's see what they can edit?
$i = 0;
?>
				<table class="jz_track_table" width="100%" cellpadding="5" cellspacing="0" border="0">
				   <?php 
$artist = $node->getAncestor("artist");
if ($artist !== false) {
    ?>
					<tr class="<?php 
    echo $row_colors[$i];
    $i = 1 - $i;
    ?>
">
						<td width="30%" valign="top">
							<nobr>
开发者ID:seanfbrown,项目名称:jinzora,代码行数:31,代码来源:iteminfo.php


示例14: unset

    if (isset($_SESSION['language'])) {
        unset($_SESSION['language']);
    }
    ?>
			<script language="javascript">
			opener.location.reload(true);
			-->
			</SCRIPT>
		<?php 
    //$this->closeWindow(true);
    //return;
}
$url_array = array();
$url_array['action'] = "popup";
$url_array['ptype'] = "preferences";
echo '<form action="' . urlize($url_array) . '" method="POST">';
?>
	<table width="100%" cellpadding="3">
<?php 
if ($cms_mode == "false") {
    ?>
		<tr>
			<td width="30%" valign="top" align="right">
				<?php 
    echo word("Password");
    ?>
:
			</td>
			<td width="70%">
				<input type="password" name="field1" class="jz_input" value="jznoupd"><br>
				<input type="password" name="field2" class="jz_input" value="jznoupd">
开发者ID:seanfbrown,项目名称:jinzora,代码行数:31,代码来源:preferences.php


示例15: while

    $array[$i]['active'] = $row['active'];
    $array[$i]['img'] = $row['img'];
    $array[$i]['flag_featured'] = $row['flag_featured'];
    $array[$i]['date_created'] = $row['date_created'];
    $i++;
}
$x = 0;
while ($x < count($array)) {
    ?>

<div class="col-xs-6 col-sm-6 col-md-3">
    <div class="product-image-wrapper">
		<div class="single-products">
	       	<div class="productinfo text-center">
		      	<a href="product-details.php?name=<?php 
    echo urlize($array[$x]['name']);
    ?>
"><img src="uploads/<?php 
    echo explode('.', $array[$x]['img'])[0] . '_th.' . explode('.', $array[$x]['img'])[1];
    ?>
" alt="<?php 
    echo $array[$x]['name'];
    ?>
" /></a>
				<p><?php 
    echo $array[$x]['description'];
    ?>
</p>
			</div>
		</div>
    </div>
开发者ID:rickyalex,项目名称:eshopper,代码行数:31,代码来源:display_other_items_index.php


示例16: flushdisplay

		<?php 
flushdisplay();
$display = new jzDisplay();
$this->displayPageTop("", "Searching for art for: " . $node->getName());
$this->openBlock();
echo word('Searching, please wait...') . "<br><br>";
flushdisplay();
// Now let's display what we got
$i = 0;
echo "<center>";
// Let's setup our form
$arr = array();
$arr['action'] = "popup";
$arr['ptype'] = "getalbumart";
$arr['jz_path'] = $node->getPath('String');
echo '<form action="' . urlize($arr) . '" method="POST">';
$i = 0;
// Ok, now let's setup a service to get the art for each of the providers
// Now let's get a link from Amazon
$jzService = new jzServices();
$jzService->loadService("metadata", "amazon");
$image = $jzService->getAlbumMetadata($node, false, "image");
if (strlen($image) != 0) {
    echo '<img src="' . $image . '" border="0"><br>';
    echo $display->returnImageDimensions($image);
    echo '<br><br>';
    echo '<input type="hidden" value="' . $image . '" name="edit_image_' . $i . '">';
    echo '<input type="submit" name="edit_download_' . $i . '" value="' . word('Download') . '" class="jz_submit"><br><br><br>';
    $i++;
}
flushdisplay();
开发者ID:seanfbrown,项目名称:jinzora,代码行数:31,代码来源:getalbumart.php


示例17: word

$title = $node->getName();
if ($title == "") {
    $title = word("Root Level");
}
$this->displayPageTop("", "Scanning for new media in: " . $title);
$this->openBlock();
// Let's show them the form
if (!isset($_POST['edit_scan_now'])) {
    $url_array = array();
    $url_array['action'] = "popup";
    $url_array['ptype'] = "scanformedia";
    $url_array['jz_path'] = $_GET['jz_path'];
    $i = 0;
    ?>
			<form action="<?php 
    echo urlize($url_array);
    ?>
" method="post">
			   <?php 
    if (!($backend == "id3-cache" || $backend == "id3-database")) {
        ?>
				<input name="edit_scan_where" value="only" checked type="radio"> <?php 
        echo word("This level only");
        ?>
<br>
				<input name="edit_scan_where" value="all" type="radio"> <?php 
        echo word("All sub items (can be very slow)");
        ?>
<br><br>
			     <?php 
    } else {
开发者ID:seanfbrown,项目名称:jinzora,代码行数:31,代码来源:scanformedia.php


示例18: returnNowStreaming

/** 
 * Returns the AJAX code for the NSB
 *
 * @author Ross Carlson
 * @since 8.21.05
 *
 **/
function returnNowStreaming()
{
    global $jzUSER, $img_tiny_play, $im_tiny_play_dis, $css, $img_tiny_info, $skin, $root_dir, $include_path, $jzSERVICES, $who_is_where_height;
    $define_only = true;
    //include_once($include_path. $css);
    writeLogData("messages", "NSB: starting up");
    // Now let's figure out the height
    $be = new jzBackend();
    $display = new jzDisplay();
    $tracks = $be->getPlaying();
    $retVal = "";
    $count = 0;
    foreach ($tracks as $sid => $song) {
        // Let's make sure we got data
        if (count($song) != 0) {
            // Now let's setup for our links
            $url_array = array();
            $url_array['jz_path'] = $song['path'];
            $url_array['action'] = "playlist";
            $url_array['type'] = "track";
            $urlArr = array();
            $urlArr['session'] = $sid;
            $urlArr['action'] = "popup";
            $urlArr['ptype'] = "viewcurrentinfo";
            $infoLink = '<a href="' . str_replace("ajax_request", "index", urlize($urlArr)) . '" onclick="openPopup(this, 450, 300); return false;">' . $img_tiny_info . '</a>';
            $arr = array();
            $pArr = explode("/", $song['path']);
            unset($pArr[count($pArr) - 1]);
            $arr['jz_path'] = implode("/", $pArr);
            $songTrack = $display->returnShortName($song['track'], 15);
            /*
            if ($lyricsLink == ""){
            	$songTrack = $display->returnShortName($song['track'],15);
            } else {
            	$songTrack = $display->returnShortName($song['track'],13);
            }
            */
            $track = new jzMediaNode($song['path']);
            $item = $track->getParent();
            if ($item->getPType() == "disk") {
                $item = $item->getParent();
            }
            $album = $item->getName();
            $artParent = $item->getParent();
            $artist = $artParent->getName();
            $art = $item->getMainArt("75x75");
            if ($art) {
                $albumImage = str_replace("'", "\\'", str_replace('"', '', $display->returnImage($art, $album, 75, 75, "limit", false, false, "left", "3", "3")));
            } else {
                $albumImage = "";
            }
            $desc_truncate = 200;
            $desc = htmlentities(str_replace("'", "\\'", str_replace('"', '', $item->getDescription())));
            // Now let's set the title and body
            $title = htmlentities(str_replace("'", "\\'", str_replace('"', '', $artist . " - " . $song['track'])));
            $userName = $song['name'];
            if ($userName == "") {
                $userName = word("Anonymous");
            }
            if ($song['fullname'] != "") {
                $userName = $song['fullname'];
            }
            $body = "<strong>" . word("Streaming to: ") . $userName . "</strong><br>" . $albumImage . $display->returnShortName($desc, $desc_truncate);
            //$albumImage;
            $count++;
            if ($jzUSER->getSetting('stream')) {
                $retVal .= ' <a href="' . str_replace("ajax_request.php", "index.php", urlize($url_array)) . '"';
                if (checkPlayback() == "embedded") {
                    //$jzSERVICES = new jzServices();
                    $jzSERVICES->loadUserServices();
                    $retVal .= ' ' . $jzSERVICES->returnPlayerHref();
                }
                $retVal .= '>' . $img_tiny_play . '</a>' . $infoLink . '<a ' . $display->returnToolTip($body, $title) . ' target="_parent" href="' . str_replace("ajax_request", "index", urlize($arr)) . '">' . $songTrack . '</a><br>';
            } else {
                $retVal .= '' . $img_tiny_play_dis . '' . $infoLink . '<a ' . $display->returnToolTip($body, $title) . ' target="_parent" ' . $title . ' href="' . str_replace("ajax_request", "index", urlize($arr)) . '">' . $songTrack . '</a><br>';
            }
        }
    }
    if ($count == 1 or $count == 0) {
        $tCtr = "";
    } else {
        $tCtr = " (" . $count . ")";
    }
    $retVal = "<strong>" . word("Now Streaming") . $tCtr . "</strong><br />" . $retVal;
    $maxHeight = $who_is_where_height * 13 + 26;
    $style = "";
    if ($maxHeight < $count * 13 + 26) {
        $style = "<style>#whoiswhere{height: " . $maxHeight . "px;overflow:auto;}</style>";
    }
    $return = $style . $retVal;
    writeLogData("messages", "NSB: displaying data");
    echo $retVal;
    exit;
//.........这里部分代码省略.........
开发者ID:seanfbrown,项目名称:jinzora,代码行数:101,代码来源:ajax.php


示例19: array

            $array[$i]['items'] = $display->link($item, $count . " " . $files, false, false, true);
        }
    }
    $array[$i]['play_button'] = $display->playButton($item, false, false, false, true);
    $array[$i]['random_button'] = $display->randomPlayButton($item, false, false, false, true);
    // Now do we hvae another row 

鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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