Example #1
0
            print "        \r\n      </small>\r\n    </td>\r\n  </tr>\r\n  <tr>\r\n    <td style='width:85px; background-color:#000000;'></td>\r\n    <td>\r\n      <div id='" . $key . "' style='display:none;'>\r\n      <table cellpadding='0' cellspacing='0' border='0'>" . $GLOBAL['browse_info']['str_newline'];
            foreach ($image_thissub['id'] as $sub_key => $sub_index) {
                $file_name = "items/item" . $image_main['id'][$sub_key] . ".php";
                unset($file_output);
                if (file_exists($file_name)) {
                    $file_handle = fopen($file_name, 'r');
                    $file_output = file($file_name);
                    fclose($file_handle);
                }
                print "\r\n        <tr>\r\n          <td valign='top' style='vertical-align:top; width:535; padding-left:40px;'><br>\r\n            " . $image_main['name'][$sub_key] . "\r\n            <small><br>";
                !$file_output || $sub_key == $_GET['id'] && isset($_GET['change']) ? item_nofile($sub_key) : item_file($sub_key);
                print "\r\n            </small>\r\n          </td>\r\n        </tr>" . $GLOBAL['browse_info']['str_newline'];
            }
            print "\r\n      </table>\r\n      </div>\r\n    </td>\r\n  </tr>" . $GLOBAL['browse_info']['str_newline'];
        } else {
            unset($file_output);
            if (file_exists($file_name)) {
                $file_handle = fopen($file_name, 'r');
                $file_output = file($file_name);
                fclose($file_handle);
            }
            print "\r\n  <tr>\r\n    <td style='width:85px; background-color:#000000; text-align:center;'>\r\n      <img src='items/" . $image . "' alt=\"" . $image_main['name'][$key] . "\">\r\n    </td>\r\n    <td style='padding:2px; padding-left:20px; width:535px; vertical-align:top;'><br>\r\n      " . $image_main['name'][$key] . "\r\n      <small><br>";
            !$file_output || $key == $_GET['id'] && isset($_GET['change']) ? item_nofile($key) : item_file($key);
            print "        \r\n      </small>\r\n    </td>\r\n  </tr>" . $GLOBAL['browse_info']['str_newline'];
        }
    }
}
?>
</table>
<?php 
include $_SERVER['DOCUMENT_ROOT'] . "/includes/layout.bottom.php";
Example #2
0
            print "        \r\n      </small>\r\n    </td>\r\n  </tr>\r\n  <tr>\r\n    <td colspan='3' style=\"background-image:url('items/background.gif'); background-repeat:no-repeat;\">\r\n      <div id='" . $key . "' style='display:none;'>\r\n      <table cellpadding='0' cellspacing='0' border='0'>\r\n        <tr>\r\n          <td style=\"width:85px; background-color:#000000;\"></td><td style=\"width:40px;\" rowspan='" . (count($image_thissub['id']) + 1) . "'></td><td style=\"width:515px;\"></td>\r\n        </tr>" . $GLOBAL['browse_info']['str_newline'];
            foreach ($image_thissub['id'] as $sub_key => $sub_index) {
                $file_name = "items/" . $image_main['file'][$sub_key] . ".php";
                unset($file_output);
                if (file_exists($file_name)) {
                    $file_handle = fopen($file_name, 'r');
                    $file_output = file($file_name);
                    fclose($file_handle);
                }
                print "\r\n        <tr>\r\n          <td style=\"height:80px; text-align:right; background-color:#000000;\">\r\n            <img src='items/" . $image_main['file'][$sub_key] . "'>\r\n          </td>\r\n          <td style=\"width:515px; vertical-align:top;\"><br>\r\n            " . $image_main['name'][$sub_key] . "\r\n            <small><br>";
                !$file_output || $sub_key == $_GET['id'] && $_GET['change'] ? item_nofile($sub_key) : item_file($sub_key);
                print "\r\n            </small>\r\n          </td>\r\n        </tr>" . $GLOBAL['browse_info']['str_newline'];
            }
            print "\r\n      </table>\r\n      </div>\r\n    </td>\r\n  </tr>" . $GLOBAL['browse_info']['str_newline'];
        } else {
            unset($file_output);
            if (file_exists($file_name)) {
                $file_handle = fopen($file_name, 'r');
                $file_output = file($file_name);
                fclose($file_handle);
            }
            print "\r\n  <tr>\r\n    <td style=\"height:80px; background-color:#000000;\">\r\n      <img src='items/" . $image . "'>\r\n    </td>\r\n    <td></td>\r\n    <td style=\"width:535px; vertical-align:top;\"><br>\r\n      " . $image_main['name'][$key] . "\r\n      <small><br>";
            !$file_output || $key == $_GET['id'] && $_GET['change'] ? item_nofile($key) : item_file($key);
            print "        \r\n      </small>\r\n    </td>\r\n  </tr>" . $GLOBAL['browse_info']['str_newline'];
        }
    }
}
?>
</table>
<?php 
include $_SERVER['DOCUMENT_ROOT'] . "/includes/layout.bottom.php";