<?php
require_once $_SERVER['DOCUMENT_ROOT']."/data/config.php";
require_once $_SERVER['DOCUMENT_ROOT']."/comn/ImageTool.class.php";
set_time_limit(0);
/**
* 取得当前位置和页面标题
*
* @access public
* @param integer $cat 分类编号(只有商品及分类、文章及分类用到)
* @param string $str 商品名、文章标题或其他附加的内容(无链接)
* @return array
*/
function assign_ur_here($cat = 0, $str = '')
{
/* 判断是否重写,取得文件名 */
$cur_url = basename(PHP_SELF);
if (intval(0))
{
$filename = strpos($cur_url,'-') ? substr($cur_url, 0, strpos($cur_url,'-')) : substr($cur_url, 0, -4);
}
else
{
$filename = substr($cur_url, 0, -4);
}
/* 初始化“页面标题”和“当前位置” */
$page_title = '硬汉联盟';
$ur_here = '<a href="http://www.manlm.com">' . '首页' . '</a>';
/* 根据文件名分别处理中间的部分 */
if ($filename != 'index')
{
/* 处理有分类的 */
if (in_array($filename, array('category', 'goods', 'article_cat', 'article', 'brand')))
{
/* 商品分类或商品 */
if ('category' == $filename || 'goods' == $filename || 'brand' == $filename)
{
if ($cat > 0)
{
$cat_arr = get_parent_cats($cat);
$key = 'cid';
$type = 'category';
}
else
{
$cat_arr = array();
}
}
/* 文章分类或文章 */
elseif ('article_cat' == $filename || 'article' == $filename)
{
if ($cat > 0)
{
$cat_arr = get_article_parent_cats($cat);
$key = 'acid';
$type = 'article_cat';
}
else
{
$cat_arr = array();
}
}
/* 循环分类 */
if (!empty($cat_arr))
{
krsort($cat_arr);
foreach ($cat_arr as $val)
{
$page_title = htmlspecialchars($val['Name']) . '_' . $page_title;
$args = array($key => $val['ID']);
$ur_here .= ' <code>></code> <a href="' . build_uri($type, $args, $val['Name']) . '">' .
htmlspecialchars($val['Name']) . '</a>';
}
}
}
/* 处理无分类的 */
else
{
/* 团购 */
if ('group_buy' == $filename)
{
$page_title = $GLOBALS['_LANG']['group_buy_goods'] . '_' . $page_title;
$args = array('gbid' => '0');
$ur_here .= ' <code>></code> <a href="group_buy.php">' .
$GLOBALS['_LANG']['group_buy_goods'] . '</a>';
}
/* 拍卖 */
elseif ('auction' == $filename)
{
$page_title = $GLOBALS['_LANG']['auction'] . '_' . $page_title;
$args = array('auid' => '0');
$ur_here .= ' <code>></code> <a href="auction.php">' .
$GLOBALS['_LANG']['auction'] . '</a>';
}
/* 夺宝 */
elseif ('snatch' == $filename)
{
$page_title = $GLOBALS['_LANG']['snatch'] . '_' . $page_title;
$args = array('id' => '0');
$ur_here .= ' <code> > </code><a href="snatch.php">' . $GLOBALS['_LANG']['snatch_list'] . '</a>';
}
/* 批发 */
elseif ('wholesale' == $filename)
{
$page_title = $GLOBALS['_LANG']['wholesale'] . '_' . $page_title;
$args = array('wsid' => '0');
$ur_here .= ' <code>></code> <a href="wholesale.php">' .
$GLOBALS['_LANG']['wholesale'] . '</a>';
}
/* 积分兑换 */
elseif ('exchange' == $filename)
{
$page_title = $GLOBALS['_LANG']['exchange'] . '_' . $page_title;
$args = array('wsid' => '0');
$ur_here .= ' <code>></code> <a href="exchange.php">' .
$GLOBALS['_LANG']['exchange'] . '</a>';
}
/* 其他的在这里补充 */
}
}
/* 处理最后一部分 */
if (!empty($str))
{
$page_title = $str . '_' . $page_title;
$ur_here .= ' <code>></code> ' . $str;
}
/* 返回值 */
return array('title' => $page_title, 'ur_here' => $ur_here);
}
/**
* 重写 URL 地址
*
* @access public
* @param string $app 执行程序
* @param array $params 参数数组
* @param string $append 附加字串
* @param integer $page 页数
* @param string $keywords 搜索关键词字符串
* @return void
*/
function build_uri($app, $params, $append = '', $page = 0, $keywords = '', $size = 0)
{
static $rewrite = NULL;
if ($rewrite === NULL)
{
$rewrite = intval(0);
}
$args = array('cid' => 0,
'gid' => 0,
'bid' => 0,
'acid' => 0,
'aid' => 0,
'sid' => 0,
'gbid' => 0,
'auid' => 0,
'alid' => array(),
'sort' => '',
'order' => '',
);
extract(array_merge($args, $params));
$uri = '';
switch ($app)
{
case 'category':
if (empty($cid))
{
return false;
}
else
{
if ($rewrite)
{
$uri = 'category-' . $cid;
if (isset($bid))
{
$uri .= '-b' . $bid;
}
if (isset($price_min))
{
$uri .= '-min'.$price_min;
}
if (isset($price_max))
{
$uri .= '-max'.$price_max;
}
if (isset($filter_attr))
{
$uri .= '-attr' . $filter_attr;
}
if (!empty($page))
{
$uri .= '-' . $page;
}
if (!empty($sort))
{
$uri .= '-' . $sort;
}
if (!empty($order))
{
$uri .= '-' . $order;
}
}
else
{
$uri = 'category.php?id=' . $cid;
if (!empty($bid))
{
$uri .= '&brand=' . $bid;
}
if (isset($price_min))
{
$uri .= '&price_min=' . $price_min;
}
if (isset($price_max))
{
$uri .= '&price_max=' . $price_max;
}
if (!empty($filter_attr))
{
$uri .='&filter_attr=' . $filter_attr;
}
if (!empty($page))
没有合适的资源?快使用搜索试试~ 我知道了~
PHP实例开发源码—硬汉联盟家装平台 php版.zip
共1407个文件
jpg:590个
php:267个
png:260个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 181 浏览量
2022-11-24
01:36:50
上传
评论
收藏 54.34MB ZIP 举报
温馨提示
PHP实例开发源码—硬汉联盟家装平台 php版.zip
资源推荐
资源详情
资源评论
收起资源包目录
PHP实例开发源码—硬汉联盟家装平台 php版.zip (1407个子文件)
amazeui.min.css 201KB
main.css 169KB
common.css 84KB
renovation.css 75KB
user.css 65KB
ueditor.css 44KB
jquery-ui.css 35KB
ueditor.min.css 34KB
jquery-ui.min.css 32KB
font.min.css 22KB
video-js.css 21KB
image.css 19KB
jquery-ui.structure.css 18KB
jquery-ui.theme.css 17KB
video.css 15KB
attachment.css 15KB
jquery-ui.structure.min.css 14KB
jquery-ui.theme.min.css 14KB
ShearPhoto.css 12KB
video-js.min.css 11KB
layer.css 11KB
mine.css 10KB
style.css 9KB
shCoreDefault.css 7KB
iconfont.css 4KB
scrawl.css 4KB
indexslides.css 3KB
star-rating.css 3KB
slide.css 3KB
codemirror.css 3KB
layer.ext.css 3KB
charts.css 3KB
background.css 2KB
sb.css 2KB
emotion.css 2KB
dialogbase.css 2KB
music.css 2KB
edittable.css 1KB
template.css 1KB
bootstrap.min.css 985B
webuploader.css 515B
help.css 395B
iframe.css 42B
fontawesome-webfont.eot 37KB
iconfont.eot 34KB
glyphicons-halflings-regular.eot 20KB
vjs.eot 3KB
UEditorSnapscreen.exe 508KB
wface.gif 49KB
jxface2.gif 40KB
yface.gif 28KB
bface.gif 27KB
icons.gif 20KB
file-icons.gif 20KB
file-icons.gif 20KB
tface.gif 19KB
fface.gif 18KB
cface.gif 8KB
loading-0.gif 6KB
loading.gif 5KB
icons-all.gif 4KB
bg_index.gif 3KB
loading-2.gif 2KB
icon_confirm.gif 2KB
videologo.gif 2KB
icon_search.gif 1KB
default.gif 1KB
icon_view.gif 1KB
default.gif 1KB
themes.gif 1KB
ZoomBar.gif 1KB
cancelbutton.gif 1KB
icon_edit.gif 1KB
icon_drop.gif 1KB
button-bg.gif 1KB
lock.gif 1KB
alignicon.gif 1KB
word.gif 1019B
icon_doc.gif 1012B
icon_psd.gif 1009B
icon_rar.gif 1007B
icon_xls.gif 1005B
icon_ppt.gif 1001B
icon_mv.gif 1001B
icon_pdf.gif 996B
icon_mp3.gif 986B
icon_txt.gif 970B
icon_jpg.gif 950B
icon_exe.gif 949B
icon_chm.gif 923B
tabbg.gif 836B
loading.gif 734B
loading-1.gif 701B
inputradio.gif 481B
icons.gif 453B
icons.gif 453B
icons.gif 453B
success.gif 445B
success.gif 445B
success.gif 445B
共 1407 条
- 1
- 2
- 3
- 4
- 5
- 6
- 15
资源评论
毕业_设计
- 粉丝: 1947
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功