⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 product_music_functions.php

📁 您上载的源码为何会被站长不采用或帐号被删除? 1.源码太简单 2.不是源码 3.缺少文件 4.所选类别和开发环境不对 5.乱写说明或说明不够认真 6.压缩文件有密码 7.源码重复或已经存
💻 PHP
字号:
<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce                                       |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003 The zen-cart developers                           |
// |                                                                      |
// | http://www.zen-cart.com/index.php                                    |
// |                                                                      |
// | Portions Copyright (c) 2003 osCommerce                               |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license,       |
// | that is bundled with this package in the file LICENSE, and is        |
// | available through the world-wide-web at the following url:           |
// | http://www.zen-cart.com/license/2_0.txt.                             |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to       |
// | license@zen-cart.com so we can mail you a copy immediately.          |
// +----------------------------------------------------------------------+
//  $Id: product_music_functions.php 1105 2005-04-04 22:05:35Z birdbrain $
//
 
////
// Return the artists URL in the needed language
  function zen_get_artists_url($artists_id, $language_id) {
    global $db;
    $artist = $db->Execute("select artists_url
                                  from " . TABLE_RECORD_ARTISTS_INFO . "
                                  where artists_id = '" . (int)$artists_id . "'
                                  and languages_id = '" . (int)$language_id . "'");

    return $artist->fields['artists_url'];
  }
////
// Return the Record Company URL in the needed language
  function zen_get_record_company_url($record_company_id, $language_id) {
    global $db;
    $record_company = $db->Execute("select record_company_url
                                  from " . TABLE_RECORD_COMPANY_INFO . "
                                  where record_company_id = '" . (int)$record_company_id . "'
                                  and languages_id = '" . (int)$language_id . "'");

    return $record_company->fields['record_company_url'];
  }

////
// Return the Music Genre URL in the needed language
  function zen_get_music_genre_url($music_genre_id, $language_id) {
    global $db;
    $music_genre = $db->Execute("select music_genre_url
                                  from " . TABLE_RECORD_COMPANY_INFO . "
                                  where music_genre_id = '" . (int)$music_genre_id . "'
                                  and languages_id = '" . (int)$language_id . "'");

    return $music_genre->fields['music_genre_url'];
  }
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -