Пример #1
0
<!--<?php 
$tem_product = tmpcentarr($lang_product_id);
$tem_product['name'] = $lang_product_title ? $lang_product_title : $tem_product['name'];
$tem_product['list'] = methtml_getarray($lang_product_id, $lang_product_type, '', '', $lang_product_num);
echo <<<EOT
-->
<section class="tem_index_product {$into}">
\t<div class="tem_inner">
\t\t<h3 class="tem_index_title">
\t\t\t<span>
\t\t\t\t{$tem_product[name]}
\t\t\t\t<p></p>
\t\t\t</span>
\t\t</h3>
\t\t<ul>
<!--
EOT;
foreach ($tem_product['list'] as $key => $val) {
    $val[imgurl] = "{$thumb_src}dir=../{$val[imgurl]}&x=300&y=300";
    echo <<<EOT
-->
\t\t\t<li class="tem_wp2">
\t\t\t\t<a href="{$val[url]}" title="{$val[title]}" {$metblank}>
\t\t\t\t  <img src="{$val[imgurl]}" title="{$val[title]}" alt="{$val[title]}"  />
\t\t\t\t  <h2>{$val[title]}</h2>
\t\t\t\t</a>
\t\t\t</li>
<!--
EOT;
}
echo <<<EOT
Пример #2
0
function sitemaplist()
{
    global $db, $nav_listall, $m_now_date, $met_sitemap_not1, $met_sitemap_not2, $lang, $met_langok, $met_index_url, $met_webname, $met_weburl;
    global $met_config, $langmark, $class_list, $met_index_type, $met_pseudo, $met_webhtm, $met_htmtype, $met_htmpagename, $met_listhtmltype, $met_htmlistname, $met_chtmtype, $metadmin;
    if ($met_index_type == $lang) {
        $met_chtmtype = '.' . $met_htmtype;
        $met_htmtype = '.' . $met_htmtype;
    } else {
        $met_chtmtype = '_' . $lang . '.' . $met_htmtype;
        $met_htmtype = '_' . $lang . '.' . $met_htmtype;
    }
    $langmark = "lang={$lang}";
    include ROOTPATH . 'include\\lang.php';
    $indexar = array('title' => $met_webname, 'url' => $met_index_url[$lang], 'updatetime' => date("Y-m-d"), 'priority' => 1);
    $nav_listall = array();
    include ROOTPATH . 'include/global/pseudo.php';
    $sitemaplist[] = $indexar;
    foreach ($nav_listall as $key => $val) {
        $no1ok = $val[nav] ? 1 : ($met_sitemap_not1 && !$val['bigclass'] ? 0 : 1);
        $no2ok = $val[if_in] == 0 ? 1 : ($met_sitemap_not2 ? 0 : 1);
        if ($val[module] != 10 && $val[module] != 11 && $no1ok && $no2ok && $val[isshow] == 1) {
            $val[updatetime] = date("Y-m-d", strtotime($m_now_date));
            $val[title] = $val[name];
            $val[url] = str_replace('../', '', $val[url]);
            $val[url] = $met_weburl . $val[url];
            $sitemaplist[] = $val;
        }
    }
    foreach (methtml_getarray('', 'all', 'time', 'news', 50000) as $key => $val) {
        $val[url] = str_replace('..//', '', $val[url]);
        $val[url] = str_replace('../', '', $val[url]);
        $val[url] = $met_weburl . $val[url];
        $val['updatetime'] = $val['updatetime_original'];
        $sitemaplist[] = $val;
    }
    foreach (methtml_getarray('', 'all', 'time', 'product', 50000) as $key => $val) {
        $val[url] = str_replace('..//', '', $val[url]);
        $val[url] = str_replace('../', '', $val[url]);
        $val[url] = $met_weburl . $val[url];
        $val['updatetime'] = $val['updatetime_original'];
        $sitemaplist[] = $val;
    }
    foreach (methtml_getarray('', 'all', 'time', 'download', 50000) as $key => $val) {
        $val[url] = str_replace('..//', '', $val[url]);
        $val[url] = str_replace('../', '', $val[url]);
        $val[url] = $met_weburl . $val[url];
        $val['updatetime'] = $val['updatetime_original'];
        $sitemaplist[] = $val;
    }
    foreach (methtml_getarray('', 'all', 'time', 'img', 50000) as $key => $val) {
        $val[url] = str_replace('..//', '', $val[url]);
        $val[url] = str_replace('../', '', $val[url]);
        $val[url] = $met_weburl . $val[url];
        $val['updatetime'] = $val['updatetime_original'];
        $sitemaplist[] = $val;
    }
    foreach (methtml_getarray('', 'all', 'time', 'job', 50000) as $key => $val) {
        $val[url] = str_replace('..//', '', $val[url]);
        $val[url] = str_replace('../', '', $val[url]);
        $val[url] = $met_weburl . $val[url];
        $val[title] = $val[position];
        $val[updatetime] = $val[addtime];
        $sitemaplist[] = $val;
    }
    return $sitemaplist;
}
Пример #3
0
Файл: case.php Проект: nanfs/lt
<!--<?php 
$tem_case = tmpcentarr($lang_case_id);
$tem_case['name'] = $lang_case_title ? $lang_case_title : $tem_case['name'];
$tem_case['list'] = methtml_getarray($lang_case_id, $lang_case_type, '', '', $lang_case_num);
echo <<<EOT
-->
<section class="tem_index_case {$into}">
\t<div class="tem_inner">
\t\t<h3 class="tem_index_title">
\t\t\t<span>
\t\t\t\t{$tem_case[name]}
\t\t\t\t<p></p>
\t\t\t</span>
\t\t</h3>
\t\t<div class="am-slider am-slider-default tem_index_case_list">
\t\t<ul class="am-slides">
<!--
EOT;
$i = 0;
$k = 1;
$c = count($tem_case['list']);
foreach ($tem_case['list'] as $key => $val) {
    $i++;
    $qq = $i == 1 ? "<li>" : '';
    if ($i == $k + 4) {
        $k = $i;
        $qq = "<li>";
    }
    $qz = $i % 4 == 0 || $i == $c ? "</li>" : '';
    $val[imgurl] = "{$thumb_src}dir=../{$val[imgurl]}&x=300&y=300";
    echo <<<EOT
Пример #4
0
Файл: news.php Проект: nanfs/lt
    $tem_news[2] = tmpcentarr($lang_news_list2_id);
    $tem_news[2]['name'] = $lang_news_list2_title ? $lang_news_list2_title : $tem_news[2]['name'];
    $tem_news[2]['imgurl'] = $lang_news_list2_img ? $lang_news_list2_img : "{$img_url}newlistbg2.jpg";
    $tem_news[2]['list'] = methtml_getarray($lang_news_list2_id, $lang_news_list2_type, '', '', $lang_news_num);
}
if ($lang_news_list3_open) {
    $tem_news[3] = tmpcentarr($lang_news_list3_id);
    $tem_news[3]['name'] = $lang_news_list3_title ? $lang_news_list3_title : $tem_news[3]['name'];
    $tem_news[3]['imgurl'] = $lang_news_list3_img ? $lang_news_list3_img : "{$img_url}newlistbg3.jpg";
    $tem_news[3]['list'] = methtml_getarray($lang_news_list3_id, $lang_news_list3_type, '', '', $lang_news_num);
}
if ($lang_news_list4_open) {
    $tem_news[4] = tmpcentarr($lang_news_list4_id);
    $tem_news[4]['name'] = $lang_news_list4_title ? $lang_news_list4_title : $tem_news[4]['name'];
    $tem_news[4]['imgurl'] = $lang_news_list4_img ? $lang_news_list4_img : "{$img_url}newlistbg4.jpg";
    $tem_news[4]['list'] = methtml_getarray($lang_news_list4_id, $lang_news_list4_type, '', '', $lang_news_num);
}
$tem_wp3 = $lang_waypointsok == 1 ? 'tem_wp3' : '';
echo <<<EOT
-->
<section class="tem_index_news {$into}">
\t<div class="tem_inner">
\t\t<h3 class="tem_index_title">
\t\t\t<span>
\t\t\t\t{$lang_news_title}
\t\t\t\t<p></p>
\t\t\t</span>
\t\t</h3>
\t\t<ol class="tem_index_news_tab">
<!--
EOT;
Пример #5
0
function methtml_list($listtype, $mark, $type, $order, $module, $titlenum, $color, $max, $newwindow = 1, $classname = 1, $time = 1, $news = 1, $hot = 1, $top = 1, $hits = 0, $description, $deslen)
{
    global $class_index, $index;
    global $met_img_x, $met_img_y;
    $maxmodule = $module == '' ? methtml_module($class_index[$mark][module]) : $module;
    $maxmodule = $maxmodule ? $maxmodule : 'news';
    $maxmodule = $maxmodule . "_no";
    if (intval($max) == 0) {
        $max = $index[$maxmodule];
    }
    $listarray = methtml_getarray($mark, $type, $order, $module, $max);
    $i = 0;
    $listtext .= "<ul>\n";
    foreach ($listarray as $key => $val) {
        $i++;
        if (intval($titlenum) != 0) {
            $val[title] = utf8substr($val[title], 0, $titlenum);
        }
        if ($i == 1) {
            $firsttitle = $color;
        }
        $listtext .= "<li>";
        if ($listtype == 'img') {
            $listtext .= "<span class='info_img'><a href='" . $val[url] . "'";
            if ($newwindow == 1) {
                $listtext .= " target='_blank' ";
            }
            $listtext .= " ><img src=" . $val[imgurls] . " alt='" . $val[title] . "' width=" . $met_img_x . " height=" . $met_img_y . " /></a></span>";
            if ($classname == 2) {
                $listtext .= "<span class='info_class'>[<a href='" . $val[class3_url] . "' title='" . $val[class3_name] . "' >" . $val[class3_name] . "</a>]</span>";
            }
            $listtext .= "<span class='info_title'><a href='" . $val[url] . "'";
            if ($newwindow == 1) {
                $listtext .= " target='_blank' ";
            }
            if ($i == 1) {
                $listtext .= "style='color:" . $firsttitle . ";'";
            }
            $listtext .= "  title='" . $val[title] . "' >" . $val[title] . "</a></span>";
            if ($description == 1) {
                $listtext .= "<span class='info_discription'><a href=" . $val[url];
                if ($newwindow == 1) {
                    $listtext .= " target='_blank' ";
                }
                if (intval($deslen)) {
                    $val[description] = utf8substr($val[title], 0, $deslen);
                }
                $listtext .= "  title='" . $val[title] . "' >" . $val[description] . "</a></span>";
            }
        } else {
            if ($classname == 1) {
                $listtext .= "<span class='info_class'>[<a href='" . $val[class3_url] . "' title='" . $val[class3_name] . "' >" . $val[class3_name] . "</a>]</span>";
            }
            $listtext .= "<span class='info_title'><a  href=" . $val[url];
            if ($newwindow == 1) {
                $listtext .= " target='_blank' ";
            }
            if ($i == 1) {
                $listtext .= " style='color:" . $firsttitle . ";'";
            }
            $listtext .= " title='" . $val[title] . "' >" . $val[title] . "</a></span>";
            if ($hits == 1) {
                $listtext .= "<span class='info_hits'>[<font>" . $val[hits] . "</font>]</span>";
            }
            if ($top == 1) {
                $listtext .= $val[top];
            }
            if ($news == 1) {
                $listtext .= $val[news];
            }
            if ($hot == 1) {
                $listtext .= $val[hot];
            }
            if ($time == 1) {
                $listtext .= "<span class='info_updatetime'>" . $val[updatetime] . "</span>";
            }
        }
        $listtext .= "</li>\n";
    }
    $listtext .= "</ul>";
    return $listtext;
}