Esempio n. 1
0
<?php

if (!defined('IN_SUPESITE')) {
    exit('Access Denied');
}
include template('header');
$ads = getad('system', 'space', '1');
if (!empty($ads['pageheadad'])) {
    ?>
<div class="ad_header"><?php 
    echo $ads['pageheadad'];
    ?>
</div>
<?php 
}
?>
</div><!--header end-->

<div id="nav">
<div class="main_nav">
<ul>
<?php 
if (empty($_SCONFIG['defaultchannel'])) {
    ?>
<li><a href="<?php 
    echo S_URL;
    ?>
/index.php">首页</a></li>
<?php 
}
if (is_array($channels['menus'])) {
option = tmpOption.cloneNode(false);
option.value = '';
option.text = '请选择';
add(option,onedit3);
while(fromversion[k]){
option = tmpOption.cloneNode(false);
option.value = fromversion[k];
option.text = fromversion[k];
add(option,onedit3);
k++;
}
}
}
}
</script><?php 
$ads2 = getad('system', $modelsinfoarr['modelname'], '2');
if (!empty($ads2['pageheadad'])) {
    ?>
<div class="ad_header"><?php 
    echo $ads2['pageheadad'];
    ?>
</div>
<?php 
}
?>
</div>

<div id="nav">
<div class="main_nav">
<ul>
<?php 
Esempio n. 3
0
}
if (!is_numeric($gid)) {
    die;
}
if (!is_numeric($page)) {
    die;
}
?>
    <table width="705" border="0" cellspacing="0">
    <?php 
$st = "FROM `ad_visibility` WHERE `gid`={$gid} ORDER BY aid DESC";
$q = "SELECT * FROM `ad_visibility` WHERE `gid`={$gid} ORDER BY aid DESC LIMIT {$startpoint},{$limit}";
$result = mysql_query($q) or die('sqlerr 1 groupads');
$i = $startpoint;
while ($ad = mysql_fetch_array($result)) {
    $row = getad($ad['aid']);
    $artid = $row['artid'];
    $q = "select alias,hits from jos_content where id={$artid}";
    $result1 = mysql_query($q) or die('groupads sqlerr 12');
    $row1 = mysql_fetch_array($result1);
    if (check_active($artid)) {
        $i++;
        $link = "viewad.php?id=" . $artid . "&&item=" . $row1['alias'];
        ?>
	      <tr>
        <td width="21" rowspan="4"><?php 
        echo $i;
        ?>
.)</td>
        <td width="144" rowspan="3"><a href="<?php 
        echo $link;
Esempio n. 4
0
<?php

if (!defined('IN_SUPESITE')) {
    exit('Access Denied');
}
include template('header');
$ads = getad('system', 'indexad', '1');
if (!empty($ads['pageheadad'])) {
    ?>
    <div class="ad_header"><?php 
    echo $ads['pageheadad'];
    ?>
</div>
<?php 
}
?>
</div><!--header end-->

<div id="nav">
    <div class="main_nav">
        <ul>
            <li style="width:80px" class="current"><a href="<?php 
echo S_URL;
?>
/">首页</a></li>
            
<?php 
if (is_array($channels['menus'])) {
    foreach ($channels['menus'] as $key => $value) {
        ?>
            <li style="width:110px"><a href="<?php 
Esempio n. 5
0
<?php

include 'framework.php';
include 'sqlcon.php';
include 'kartlib.php';
$id = $_GET['id'];
$ad = getad($id);
?>
<script type="text/javascript" src="lightbox.js"></script>
<table width="700" border="0">
  <tr>
    <td><b><font size="+2" color="#333333"><?php 
echo $ad['title'];
?>
</font></b></td>
  </tr>
</table>
<table width="700" border="0">
  <tr>
    <td width="200"><font size="-1" color="#666666">Click on Pictures to Enlarge them</font></td>
    <td width="500"><font size="-1" color="#333333">Posted On :</font> <font size="-1" color="#666666"><?php 
echo $ad['date'];
?>
</font> &nbsp;&nbsp;&nbsp;&nbsp;<font size="-1" color="#333333">under</font>&nbsp;: <font size="-1" color="#666666"><?php 
echo getsec($ad['section']);
?>
 &gt;&gt; 
    <?php 
echo getcat($ad['category']);
?>
 &gt;&gt; 
Esempio n. 6
0
<?php

if (!defined('IN_SUPESITE')) {
    exit('Access Denied');
}
include template('header');
$ads2 = getad('system', 'news', '2');
if (!empty($ads2['pageheadad'])) {
    ?>
<div class="ad_header"><?php 
    echo $ads2['pageheadad'];
    ?>
</div>
<?php 
}
?>
</div><!--header end-->

<div id="nav">
<div class="main_nav">
<ul>
<?php 
if (empty($_SCONFIG['defaultchannel'])) {
    ?>
<li><a href="<?php 
    echo S_URL;
    ?>
/index.php">首页</a></li>
<?php 
}
if (is_array($channels['menus'])) {
<?php

if (!defined('IN_SUPESITE')) {
    exit('Access Denied');
}
$newgradearr = array_reverse($gradearr);
$lastone = array_pop($newgradearr);
array_unshift($newgradearr, $lastone);
include template($tpldir . '/header.html.php', 1);
$ads3 = getad('system', $modelsinfoarr['modelname'], '3');
if (!empty($ads3['pageheadad'])) {
    ?>
<div class="ad_header"><?php 
    echo $ads3['pageheadad'];
    ?>
</div>
<?php 
}
?>
</div>
<script type="text/javascript" src="./data/ckeditor/plugins/syntaxhighlight/scripts/shCore.js"></script>
<script type="text/javascript" src="./data/ckeditor/plugins/syntaxhighlight/scripts/shBrushDelphi.js"></script>
<script type="text/javascript" src="./data/ckeditor/plugins/syntaxhighlight/scripts/shBrushDiff.js"></script>
<script type="text/javascript" src="./data/ckeditor/plugins/syntaxhighlight/scripts/shBrushGroovy.js"></script>
<script type="text/javascript" src="./data/ckeditor/plugins/syntaxhighlight/scripts/shBrushJava.js"></script>
<script type="text/javascript" src="./data/ckeditor/plugins/syntaxhighlight/scripts/shBrushJScript.js"></script>
<script type="text/javascript" src="./data/ckeditor/plugins/syntaxhighlight/scripts/shBrushBatch.js"></script>
<script type="text/javascript" src="./data/ckeditor/plugins/syntaxhighlight/scripts/shBrushPhp.js"></script>
<script type="text/javascript" src="./data/ckeditor/plugins/syntaxhighlight/scripts/shBrushPlain.js"></script>
<script type="text/javascript" src="./data/ckeditor/plugins/syntaxhighlight/scripts/shBrushPython.js"></script>
<script type="text/javascript" src="./data/ckeditor/plugins/syntaxhighlight/scripts/shBrushRuby.js"></script>
<?php

if (!defined('IN_SUPESITE')) {
    exit('Access Denied');
}
include template('header');
$ads = getad('system', $channel, '1');
if (!empty($ads['pageheadad'])) {
    ?>
<div class="ad_header"><?php 
    echo $ads['pageheadad'];
    ?>
</div>
<?php 
}
?>
</div><!--header end-->

<div id="nav">
<div class="main_nav">
<ul>
<?php 
if (empty($_SCONFIG['defaultchannel'])) {
    ?>
<li><a href="<?php 
    echo S_URL;
    ?>
/">首页</a></li>
<?php 
}
if (is_array($channels['menus'])) {
<?php

if (!defined('IN_SUPESITE')) {
    exit('Access Denied');
}
include template('header');
$ads = getad('system', 'news', '1');
if (!empty($ads['pageheadad'])) {
    ?>
<div class="ad_header"><?php 
    echo $ads['pageheadad'];
    ?>
</div>
<?php 
}
?>
</div><!--header end-->

<div id="nav">
<div class="main_nav">
<ul>
<?php 
if (empty($_SCONFIG['defaultchannel'])) {
    ?>
<li><a href="<?php 
    echo S_URL;
    ?>
/index.php">首页</a></li>
<?php 
}
if (is_array($channels['menus'])) {