Example #1
0
echo '<table border="0" width="700" cellspacing="0" cellpadding="2" class="tables" align="center">', "\n";
echo '<tr>', "\n";
echo '<td width="100" class="rowtitle" align="center"><a href="' . $url . '?d=d&order=' . ($order == 'asc' ? 'desc' : 'asc') . '" class="sniffer">' . $lang["browse_date"] . '</a></td>', "\n";
echo '<td width="20" class="rowtitle" align="center">Type</td>', "\n";
echo '<td width="380" class="rowtitle" align="center"><a href="' . $url . '?d=f&order=' . ($order == 'asc' ? 'desc' : 'asc') . '" class="sniffer">' . $lang["browse_name"] . '</a></center></td>', "\n";
echo '<td width="80" class="rowtitle" align="center">' . $lang["browse_size"] . '</td>', "\n";
echo ' <td width="60" class="rowtitle" align="center">' . $lang["browse_select"] . '</td>', "\n";
echo ' <td width="20" class="rowtitle">' . $lang["browse_delete"] . '</td>', "\n";
echo '</tr>', "\n";
$i = 0;
while ($i < @count($ListFiles)) {
    $dd = $ListDate[$i];
    $f1 = $ListFiles[$i];
    $ext = strrchr($f1, '.');
    if ($ext == '.jpg' || $ext == '.jpeg' || $ext == '.JPG' || $ext == '.JPEG' || $ext == '.png' || $ext == '.bmp') {
        @(list($nwidth, $nheight) = thumbsize($rep . $f1, $thumbsize));
        echo '<SCRIPT LANGUAGE="JavaScript">', "\n";
        echo 'i' . $i . ' = new Image();';
        echo 'i' . $i . '.src = "' . $rep . $f1 . '";';
        echo '</SCRIPT>', "\n";
    }
    $class = $i % 2;
    echo '<tr>', "\n";
    echo '<td width="90" class="row' . $class . '" align="center">' . dd(filectime($rep . $f1)) . '</td>', "\n";
    echo '<td width="20" class="row' . $class . '"><img src="' . $icons[$ext] . '" border="0" align="right" OnError="this.src=\'icons/unknown.gif\';"></td>', "\n";
    if ($ext == '.jpg' || $ext == '.jpeg' || $ext == '.JPG' || $ext == '.JPEG' || $ext == '.png' || $ext == '.bmp') {
        echo "<td width=\"380\" class=\"row{$class}\" align=\"center\"><a href=\"{$rep}{$f1}\" title=\"" . $lang["browse_display"] . "\" target=\"_blank\" class=\"sniffer\" onMouseOver=\"Tip('<img src=\\'" . $rep . $f1 . "\\' width=\\'" . $nwidth . "\\' height=\\'" . $nheight . "\\'>',SHADOW,true,BGCOLOR,'#FFFFFF',BORDERCOLOR ,'#cbcbcb')\" onmouseout=\"UnTip()\">{$f1}</a></td>\n";
    } else {
        echo "<td width=\"380\" class=\"row{$class}\" align=\"center\"><a href=\"{$rep}{$f1}\" title=\"" . $lang["browse_display"] . "\" target=\"_blank\" class=\"sniffer\">{$f1}</a></td>\n";
    }
    echo '<td width="60" class="row' . $class . '" align="center">' . getsize(filesize($rep . $f1)) . '</td>', "\n";
 $col = 1;
 $x = 1;
 for ($i = $row; $i < sizeof($tab) - $ShowLigne; $i++) {
     list($id, $item_id, $title, $price, $discount, $cat, $subcategory, $sp_offer, $description) = explode('|', $tab[$i]);
     @($subcat = $subcategory == 'none' ? $cat : $subcategory);
     $rew_link = cleanurl(trim($title));
     if ($rewriting == 0) {
         $link = 'items.php?cat=' . $cat . '&prod=' . @$subcat . '&item=' . $item_id;
     } else {
         $link = $rew_link . '-' . $cat . '-' . @$subcat . '-' . $item_id . '.html';
     }
     if ($col % $nbcol == 1) {
         echo '<tr>';
     }
     if (file_exists('th_images/th_' . $item_id . '.jpg')) {
         list($nwidth, $nheight) = thumbsize('th_images/th_' . $item_id . '.jpg', 122);
     } else {
         $nwidth = 122;
         $nheight = 122;
     }
     echo '<td>';
     echo '<table border="0" width="163" class="tables">';
     echo '<tr>';
     echo '<td width="155" height="15" nowrap align="center"><strong>' . $title . '</strong>';
     echo '</td>';
     echo '</tr>';
     echo '<tr valign="top">';
     echo '<td width="155" height="133" valign="top" align="center">';
     if ($popup == 'yes') {
         echo '<a href="images/' . $item_id . '.jpg" rel="group" title="' . $title . '"><img style="width:' . $nwidth . 'px; height:' . $nheight . 'px; border: 1px solid #CCCCCC; padding:4px" src="th_images/th_' . $item_id . '.jpg" OnError="this.src=\'img/noimage.jpg\';"></a>';
     } else {
 if (is_array($ItemsDataList)) {
     $i = 1;
     foreach ($ItemsDataList as $value) {
         if (!empty($value)) {
             list($id, $id_item, $title, $price1, $discount1, $category, $subcategory, $sp_offer) = explode('|', $value);
             $ext = file_exists('th_images/th_' . $id_item . '.jpg') ? 'jpg' : 'png';
             $link = 'items.php?cat=' . $category . '&prod=' . $subcategory . '&item=' . $id_item;
             $price = db('db/' . $ItemsData . '.dat', $id_item);
             if (@$price[4] == 'null') {
                 $discountPrice = '';
             } else {
                 $discountPrice = '<span style="color: #FF0000;text-decoration:line-through;line-height:10px;">' . $lang['list_price'] . ':&nbsp;' . $symbole . '&nbsp;' . @$price[4] . '</span><br>';
             }
             if (file_exists('th_images/th_' . $id_item . '.' . $ext)) {
                 echo '<div class="items">' . "\n";
                 list($rpnwidth, $rpnheight) = thumbsize('th_images/th_' . $id_item . '.' . $ext, $rpimgwidth);
                 if ($catalog == 'no' || isset($_SESSION["reseller_login"])) {
                     echo '<a href="' . $link . '"><img class="tooltip-target" id="rp-target-' . $i . '" src="th_images/th_' . $id_item . '.' . $ext . '" alt="' . $title . '" width="' . $rpnwidth . '" height="' . $rpnheight . '" /></a>' . "\n";
                 } else {
                     echo '<a href="' . $link . '"><img src="th_images/th_' . $id_item . '.' . $ext . '" alt="' . $title . '" width="' . $rpnwidth . '" height="' . $rpnheight . '" /></a>' . "\n";
                 }
                 @($tooltip .= '<div class="tooltip-content" id="rp-content-' . $i . '"><div class="rp_title">' . $title . '</div>' . $discountPrice . $lang['price'] . ':&nbsp;' . $symbole . '&nbsp;' . $price[3] . '<br><br><input type="button" value="' . $lang['display_product_item'] . '" onClick="location.href=\'' . $link . '\'"  class="displayproduct"></div>' . "\n");
                 echo '<br>';
                 echo '<em>' . $title . '</em>';
                 $i++;
                 echo '</div>' . "\n";
             }
         }
     }
 }
 echo '</div>';
Example #4
0
    echo '<td class="row' . $class . '" align="center"><img src="' . $IconsDir . 'folder.gif" border="0" align="center" OnError="this.src=\'upload/Icons/unknown.gif\';"></td>', "\n";
    echo '<td class="row' . $class . '" align="center"><a href="' . $root . '?d=' . $FolderDir . $ff . '" class="detail">' . $ff . '</a></td>', "\n";
    echo '<td class="row' . $class . '" align="center">' . @getsize(sizethis($FilesDir . $ff)) . '</td>', "\n";
    echo '<td class="row' . $class . '" align="center"><a href="' . $url . '&re=' . base64_encode($FilesDir . '|' . $ff) . '"><img src="' . $IconsDir . 'edit.png" border="0" align="center" title="' . $lang["medias_rename_folder_tip"] . '"></a></td>', "\n";
    echo '<td class="row' . $class . '" align="center"><a href="' . $url . '&fd=' . base64_encode($FilesDir . '|' . $ff) . '" onClick="javascript:message()"><img src="' . $IconsDir . 'zip.gif" border="0" align="center" title="' . $lang["medias_archive_tip"] . '"></a></td>', "\n";
    echo '<td class="row' . $class . '" align="center"></td>', "\n";
    echo '<td class="row' . $class . '" align="center"><a href="javascript:if(confirm(\'' . $lang['alert_medias_folder_delete'] . '\')) location.href=\'' . $url . '&fodel=' . base64_encode($FilesDir . $ff) . '\'"><img src="' . $IconsDir . 'delete.gif" border="0" align="center" title="' . $lang["medias_delete_tip"] . '"></a></td>', "\n";
    echo '</tr>', "\n";
    $i++;
}
$i = 0;
while ($i < count($ListFiles)) {
    $f1 = $ListFiles[$i];
    $ext = strrchr($f1, '.');
    if ($ext == '.jpg' || $ext == '.jpeg' || $ext == '.JPG' || $ext == '.JPEG') {
        list($nwidth, $nheight) = thumbsize($FilesDir . $f1, $thumbsize);
        echo '<SCRIPT LANGUAGE="JavaScript">', "\n";
        echo 'i' . $i . ' = new Image();';
        echo 'i' . $i . '.src = "' . $FilesDir . $f1 . '";';
        echo '</SCRIPT>', "\n";
    }
    $class = $i % 2;
    $ck = base64_encode($FilesDir . '|' . $f1);
    if (!isset($checked)) {
        $checked = '';
    }
    if (isset($_SESSION['copy'])) {
        if (is_array($_SESSION['copy'])) {
            $checked = in_array($ck, $_SESSION['copy']) ? 'checked' : '';
        }
    }
     } else {
         $StockDisplay = "<strong><font color=\"#CC0000\">" . $lang['backorder'] . "</font></strong>";
     }
 }
 $th_ext = file_exists('th_images/th_' . $data[1] . '.jpg') ? 'jpg' : 'png';
 $md_ext = file_exists('md_images/md_' . $data[1] . '.jpg') ? 'jpg' : 'png';
 $large_ext = file_exists('images/' . $data[1] . '.jpg') ? 'jpg' : 'png';
 $price = @number_format($data[3], 2, '.', ',');
 if ($data[4] != 'null') {
     $DiscountPrice = @number_format($data[4], 2, '.', ',');
 }
 if (trim($data[20]) == 'null') {
     $data[20] = '';
 }
 if (file_exists("th_images/th_" . $data[1] . ".jpg")) {
     list($nwidth, $nheight) = thumbsize("th_images/th_" . $data[1] . ".jpg", 122);
 } else {
     $nwidth = 122;
     $nheight = 122;
 }
 echo "<table border=\"0\" width=\"{$tablwidth}\" align=\"center\" class=\"product\">\n";
 echo "<tr valign=\"top\">\n";
 echo "<td align=\"center\">\n";
 if ($popup == 'yes') {
     echo "<a href=\"images/" . $data[1] . ".{$large_ext}\" id=\"popup1\" title=\"" . $data[2] . "\"><img class=\"imgproduct\" src=\"th_images/th_" . $data[1] . ".{$th_ext}\" border=\"0\" width=\"{$nwidth}\" height=\"{$nheight}\" align=\"top\" OnError=\"this.src='img/noimage.jpg';\"></a>";
     echo "<br>";
     echo '<a href="images/' . $data[1] . '.' . $large_ext . '" id="popup1" title="' . $data[2] . '"><img src="Icons/zoom_in.png" title="' . $lang['click_to_elarge'] . '" alt="' . $data[2] . '" border="0" align="absmiddle"></a>&nbsp;&nbsp;<a href="images/' . $data[1] . '.' . $large_ext . '" id="popup1" title="' . $data[2] . '" class="zoom">' . $lang['button_zoom'] . '</a>';
 } else {
     echo "<a href=\"{$link}\"><img class=\"imgproduct\" src=\"th_images/th_" . $data[1] . ".{$th_ext}\" width=\"{$nwidth}\" height=\"{$nheight}\"  border=\"0\" align=\"top\" OnError=\"this.src='img/noimage.jpg';\"></a>";
 }
 echo "</td>\n";