<?php
/**
*为了获取模板的标签,定义数组值,如果是旧标签的话.在后来会被数值替换.新标签的话继续是数组,也会进一步被处理
**/
function label_array($key){
global $label,$all_label;
$key=str_replace(array('"',"'"),array('',''),$key);
$label[$key]=array();
$all_label[]=$key;
}
//头与尾用
function label_array_hf($key){
global $label_hf,$all_label;
$label_hf[$key]=array();
$all_label[]=$key;
}
/**
*添加层,后台更新内容要用到
**/
function add_div($value,$tag,$type='code',$div_w='',$div_h='',$div_bgcolor='',$if_hf=''){
global $webdb,$chtype,$ch;
if($value){
$div_w>50 || $div_w=50;
$div_h>21 || $div_h=21;
$div_bgcolor || $div_bgcolor='#A6A6FF';
$type=="flash" && $br="<br>"; //防止被FLASH档住,看不到层
$value_a="<div id=\"$tag\" style=\"text-align:left;width:{$div_w}px;height:{$div_h}px;position:absolute;z-index:2;border:#ff0000 solid 1.5px;background-color: $div_bgcolor;filter:Alpha(Opacity=50);\" onmouseover=\"showlabel_(this,'over','$type','$if_hf');\" onmouseout=\"showlabel_(this,'out','$type','$if_hf');\" onclick=\"showlabel_(this,'click','$type','$if_hf');\"><div style='position:absolute;z-index:6;' onclick='return false;' onmouseover=\"ckjump_(0);\" onmouseout=\"ckjump_(1);\"><img src=\"$webdb[www_url]/images/default/position2.gif\" style='width:21px;height:21px;' border=\"0\" usemap=\"#Map$tag\" /><map name=\"Map$tag\"><area shape=\"rect\" coords=\"7,0,14,7\" href=\"javascript:\" onMouseDown=\"change_po_('up',1,'$tag');\" onMouseUp=\"change_po_('up',0,'$tag');\" alt=\"向上\" /><area shape=\"rect\" coords=\"7,14,14,21\" href=\"javascript:\" onMouseDown=\"change_po_('down',1,'$tag');\" onMouseUp=\"change_po_('down',0,'$tag');\" alt=\"向下\" /><area shape=\"rect\" coords=\"0,7,7,14\" href=\"javascript:\" onMouseDown=\"change_po_('left',1,'$tag');\" onMouseUp=\"change_po_('left',0,'$tag');\" alt=\"向左\" /><area shape=\"rect\" coords=\"14,7,21,14\" href=\"javascript:\" onMouseDown=\"change_po_('right',1,'$tag');\" onMouseUp=\"change_po_('right',0,'$tag');\" alt=\"向右\" /></map></div></div>$br<table border='0' cellspacing='0' cellpadding='0' class='label_$tag'> <tr> <td>$value</td> </tr></table>";
$value_b="<div class=\"p8label\" id=\"$tag\" style=\"filter:alpha(opacity=50);position: absolute; border: 1px solid #ff0000; z-index: 9999; color: rgb(0, 0, 0); text-align: left; opacity: 0.4; width: {$div_w}px; height:{$div_h}px; background-color:$div_bgcolor;\" onmouseover=\"showlabel_(this,'over','$type','$if_hf');\" onmouseout=\"showlabel_(this,'out','$type','$if_hf');\" onclick=\"showlabel_(this,'click','$type','$if_hf');\"><div onmouseover=\"ckjump_(0);\" onmouseout=\"ckjump_(1);\" style=\"position: absolute; width: 15px; height: 15px; background: url($webdb[www_url]/images/default/se-resize.png) no-repeat scroll -8px -8px transparent; right: 0px; bottom: 0px; clear: both; cursor: se-resize; font-size: 1px; line-height: 0%;\"></div></div>$br<table border='0' cellspacing='0' cellpadding='0' class='label_$tag'> <tr> <td>$value</td> </tr></table>";
//$value外面套一个table,目的是为了处理兼容性问题,有时标签过多,有个别标签无法显示
if(is_file(ROOT_PATH."images/default/label_jq.js")){
return $value_b;
}else{ //兼容旧的
return "$value_a";
}
}
}
function rollpic_2js($rolldb){
global $webdb;
@extract($rolldb);
$width || $width=200;
$height || $height=200;
$num=count($picurl);
for($i=0;$i<=$num;$i++){
if(!$picurl[$i]){
continue;
}
$picurl[$i]=tempdir($picurl[$i]);
//$picurl[$i]=AddSlashes($picurl[$i]);
//$piclink[$i]=urlencode(AddSlashes($piclink[$i]));
//$picalt[$i]=AddSlashes($picalt[$i]);
$j=$i-1;//后台那里是从1开始的.所以这时要处理
$show.="<LI style=\"WIDTH: {$width}px; HEIGHT: {$height}px\"><A href=\"{$piclink[$i]}\" target=\"_blank\"><IMG src=\"{$picurl[$i]}\" style=\"WIDTH: {$width}px; HEIGHT: {$height}px;\"></A><SPAN class=\"title\">{$picalt[$i]}</SPAN></LI>";
}
$show="<SCRIPT src=\"$webdb[www_url]/images/default/rollpic.js\" type=\"text/javascript\"></SCRIPT>
<link rel=\"stylesheet\" type=\"text/css\" href=\"$webdb[www_url]/images/default/rollpic.css\">
<DIV class=\"p8rollpic\"><UL class=\"slideshow\">$show</UL></DIV>
<SCRIPT type=\"text/javascript\">runslideshow();</SCRIPT>";
return $show;
}
/*滚动特效的图片--js方式*/
function rollPic_JS($rolldb){
global $webdb;
@extract($rolldb);
$width || $width=200;
$height || $height=150;
$num=count($picurl);
$rand=rands(5);
$string='';
for($i=0;$i<=$num;$i++){
if(!$picurl[$i]){
continue;
}
$img=tempdir($picurl[$i]);
$url=$piclink[$i];
$title=$picalt[$i];
$string.="<P><A title='$title' href='$url' target=_blank><IMG style='HEIGHT:{$height}px;' alt='$title' src='$img'></A><A title='$title' href='$url' target='_blank'>$title</A></P>";
}
//自定义幻灯片接口
if($RollStyleType&&is_file(ROOT_PATH."template/default/rollpic/$RollStyleType") ){
foreach($picurl AS $key=>$value){
$picurl[$key]=addslashes($picurl[$key]);
$picalt[$key]=addslashes($picalt[$key]);
$piclink[$key]=urlencode($piclink[$key]);
}
$title=implode("|",$picalt);
$img=implode("|",$picurl);
$url=implode("|",$piclink);
include(ROOT_PATH."template/default/rollpic/$RollStyleType");
return $show;
}
$height=$height+30;
$rolltype || $rolltype='scrollLeft';
$rolltime>0 || $rolltime=3;
$show="<link rel='stylesheet' type='text/css' href='$webdb[www_url]/images/default/rollpic.css'>
<script type='text/javascript' src='$webdb[www_url]/images/default/jquery-1.2.6.min.js'></script>
<SCRIPT type='text/javascript'>
$(function() {
$('#rollpicobj$rand')
.after('<div id=pager$rand class=pager>')
.cycle({
fx: '$rolltype',
speed: 500,
timeout: {$rolltime}000,
pause: 1,
pager: '#pager$rand'
});
});
</SCRIPT>
<DIV class='rollpicTB' style='width:{$width}px;FLOAT: left;TEXT-ALIGN: center;'><DIV id='rollpicobj$rand' class='rollpicobj' style='HEIGHT:{$height}px;'>$string</DIV></div>";
return $show;
}
//JS幻灯片,没有标题的
function rollPic_no_title_js($rolldb){
global $webdb;
@extract($rolldb);
$width || $width=200;
$height || $height=200;
$jsnum=$num=count($picurl);
for($i=1;$i<=$num;$i++){
if(!$picurl[$i]){
$jsnum--;
continue;
}
$picurl[$i]=tempdir($picurl[$i]);
$picurl[$i]=AddSlashes($picurl[$i]);
$piclink[$i]=(AddSlashes($piclink[$i]));
$picalt[$i]=AddSlashes($picalt[$i]);
$show.="
img{$i}=new Image ();img{$i}.src='$picurl[$i]';
url{$i}=new Image ();url{$i}.src='$piclink[$i]';
";
}
$show="
<script type='text/javascript'>
var widths=$width;
var heights=$height;
var counts=$jsnum;
$show
var nn=1;
var key=0;
function change_img()
{if(key==0){key=1;}
else if(document.all)
{document.getElementById(\"pic\").filters[0].Apply();document.getElementById(\"pic\").filters[0].Play(duration=2);}
eval('document.getElementById(\"pic\").src=img'+nn+'.src');
eval('document.getElementById(\"url\").href=url'+nn+'.src');
eval('document.getElementById(\"url\").target=\"blank\"');
for (var i=1;i<=counts;i++){document.getElementById(\"xxjdjj\"+i).className='axx';}
document.getElementById(\"xxjdjj\"+nn).className='bxx';
nn++;if(nn>counts){nn=1;}
tt=setTimeout('change_img()',4000);}
function changeimg(n){nn=n;window.clearInterval(tt);change_img();}
document.write('<style>');
document.write('.axx{padding:1px 7px;border-left:#cccccc 1px solid;}');
document.write('a.axx:link,a.axx:visited{text-decoration:none;color:#fff;line-height:12px;font:9px sans-serif;background-color:#666;}');
document.write('a.axx:active,a.axx:hover{text-decoration:none;color:#fff;line-height:12px;font:9px sans-serif;background-color:#999;}');
document.write('.bxx{padding:1px 7px;border-left:#cccccc 1px solid;}');
document.write('a.bxx:link,a.bxx:visited{text-decoration:none;color:#fff;line-height:12px;font:9px sans-serif;background-color:#D34600;}');
document.write('a.bx
没有合适的资源?快使用搜索试试~ 我知道了~
php-fenlei1.0.rar_classifieds
共1848个文件
gif:849个
htm:472个
php:303个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 15 浏览量
2022-09-24
17:28:15
上传
评论
收藏 8.2MB RAR 举报
温馨提示
php分类信息网站源码,我们项目团队二次开发的产物,给大家一起学习交流
资源推荐
资源详情
资源评论
收起资源包目录
php-fenlei1.0.rar_classifieds (1848个子文件)
default.css 36KB
default.css 36KB
default.css 33KB
style.css 25KB
style.css 20KB
style.css 10KB
default.css 8KB
tinymce.css 8KB
style.css 7KB
style.css 5KB
css.css 5KB
homepage.css 5KB
css.css 4KB
im.css 4KB
editor.css 3KB
editor.css 3KB
all_city.css 3KB
style.css 2KB
style.css 2KB
rollpic.css 2KB
photo.css 2KB
theme6.css 1KB
theme5.css 1KB
theme2.css 1KB
theme3.css 1KB
theme4.css 1KB
theme1.css 1KB
pic.css 970B
menuarea.css 624B
menuarea.css 624B
dialog.css 424B
editorarea.css 250B
editorarea.css 250B
common.css 125B
ip.dat 8.18MB
mobilebook.dat 2.82MB
ciyu.dat 872KB
l8.gif 86KB
testimg.gif 34KB
mpbasebg.gif 25KB
l7.gif 22KB
l5.gif 22KB
l6.gif 19KB
l4.gif 19KB
homepagebg.gif 18KB
nomap.gif 17KB
nomap.gif 17KB
li_6.gif 13KB
tinymce.gif 12KB
ad3.gif 12KB
card_logo.gif 12KB
news_06.gif 12KB
freefei.gif 11KB
freefei.gif 11KB
ad2.gif 10KB
li_2.gif 9KB
li_4.gif 9KB
b_right.gif 9KB
default.gif 8KB
footer_logo.gif 8KB
header_gray.gif 7KB
header_gray.gif 7KB
flower.gif 7KB
city_logo.gif 6KB
righthead.gif 6KB
logo.gif 6KB
ivy.gif 6KB
index_hz01.gif 5KB
logo.gif 5KB
yeepay_logo.gif 5KB
ewebeditor.gif 5KB
headbg.gif 4KB
cate_nav_bg.gif 4KB
icon.gif 4KB
but_buy.gif 4KB
li_10.gif 4KB
postinfo.gif 4KB
topbg.gif 4KB
logo.gif 4KB
99bill_logo.gif 4KB
bg_logo.gif 4KB
icons8.gif 4KB
11_offline.gif 4KB
icons3.gif 4KB
tenpay_logo.gif 4KB
11_online.gif 4KB
postinfo.gif 4KB
logo.gif 4KB
button_czrecord.gif 4KB
5.gif 4KB
allcity_post.gif 4KB
allcity_post.gif 4KB
icons1.gif 4KB
noface.gif 4KB
baidu1.gif 3KB
baidu1.gif 3KB
christmas.gif 3KB
icons5.gif 3KB
icons6.gif 3KB
icons2.gif 3KB
共 1848 条
- 1
- 2
- 3
- 4
- 5
- 6
- 19
资源评论
JaniceLu
- 粉丝: 80
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功