All pastes #16854 Raw Edit

Something

public text v1 · immutable
#16854 ·published 2005-07-04 16:38 UTC
rendered paste body
<html>
<head>
<title>Tutorial-base</title>


<style type="text/css">
<!--
td.menu1 {
    color: black;
  background: #EEEEEE;
  }
td.menu2 {
  color: black;
  background: #DFDCDC;
  }

.links { text-decoration: none; font-size: 12px; font-family: Courier New, arial, verdana, helvetica; color: #000000; }
// -->
</style>



</head>
<body bgcolor="#EAEAEA">

<?php
/*------------------------------
Connect to the database
------------------------------*/
mysql_connect("localhost", "**", "**") or die("Could not connect to the database.");
mysql_select_db("tutorialbase");

/*------------------------------
Count tutorials per category
------------------------------*/
$query = "SELECT * FROM tutorials";
$result = mysql_query($query) or die("Could not query the database!");
while ($row = mysql_fetch_object($result))
  {
    if ($row->cat == "paintshop_pro")
      {
        if (!isset($m_graphics_c_paintshop_pro))
          {
            $m_graphics_c_paintshop_pro = 1;
          }
        else
          {
            $m_graphics_c_paintshop_pro++;
          }
      }
    if ($row->cat == "photoshop")
      {
        if (!isset($m_graphics_c_photoshop))
          {
            $m_graphics_c_photoshop = 1;
          }
        else
          {
            $m_graphics_c_photoshop++;
          }
        switch ($row->subcat)
            {
              case "basics":
              {
                if (!isset($m_graphics_c_photoshop_s_basics)){ $m_graphics_c_photoshop_s_basics = 1; }
                else { $m_graphics_c_photoshop_s_basics++; }
                break;
              }
            }
      }
  }

?>


<table border="0" cellspacing="0" cellpadding="0" width="880" align="center">
  <tr>
    <td colspan="5">
<!-- header -->

<table width="880" cellspacing="0" cellpadding="0">
  <tr>
    <td background="images/v2left1.jpg" width="6" height="6"></td>
    <td background="images/v2top1.jpg"></td>
    <td background="images/v2right1.jpg" width="6"></td>
  </tr>
  <tr>
    <td background="images/v2left2.jpg" width="6"></td>
    <td><img src="images/banner.jpg" width="868" height="80"></td>
    <td background="images/v2right2.jpg" width="6"></td>
  </tr>
  <tr>
    <td background="images/v2left3.jpg" width="6" height="6"></td>
    <td background="images/v2bottom.jpg"></td>
    <td background="images/v2right3.jpg" width="6"></td>
  </tr>
</table>

<!-- end header -->
    </td>
  </tr>
  <tr>
    <td colspan="5" height="10">
    </td>
  </tr>
  <tr>
    <td width="180" valign="top">
<!-- colum 1 -->
<table width="180" cellspacing="0" cellpadding="0">
  <tr>
    <td>
      <table height="27" cellspacing="0" cellpadding="0">
        <tr>
          <td width="6" background="images/left1.jpg" rowspan="2"></td>
          <td width="168" background="images/top1.jpg" height="5"></td>
          <td width="6" background="images/right1.jpg" rowspan="2"></td>
        </tr>
        <tr>
          <td width="168" height="22" background="images/title.jpg">&nbsp;<b>Tutorial-Base</b></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>
      <table cellspacing="0" cellpadding="0">
        <tr>
          <td width="6" background="images/left2.jpg"></td>
          <td width="168" background="images/content.jpg">
            <table cellspacing="0" cellpadding="2" width="168">
              <tr>
                <td class="menu1" onmouseover="this.className='menu2'" onmouseout="this.className='menu1'">
                  <a href="index.php?page=search" class="links">Search</a>
                </td>
              </tr>
              <tr>
                <td class="menu1" onmouseover="this.className='menu2'" onmouseout="this.className='menu1'">
                  <a href="index.php?page=submit" class="links">Submit Tutorials</a>
                </td>
              </tr>
            </table>
          </td>
          <td width="6" background="images/right2.jpg"></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>
      <table cellspacing="0" cellpadding="0" height="6">
        <tr>
          <td width="6" background="images/left3.jpg"></td>
          <td width="168" background="images/bottom.jpg"></td>
          <td width="6" background="images/right3.jpg"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>

<br>

<table width="180" cellspacing="0" cellpadding="0">
  <tr>
    <td>
      <table height="27" cellspacing="0" cellpadding="0">
        <tr>
          <td width="6" background="images/left1.jpg" rowspan="2"></td>
          <td width="168" background="images/top1.jpg" height="5"></td>
          <td width="6" background="images/right1.jpg" rowspan="2"></td>
        </tr>
        <tr>
          <td width="168" height="22" background="images/title.jpg">&nbsp;<b>Graphics editors</b></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>
      <table cellspacing="0" cellpadding="0">
        <tr>
          <td width="6" background="images/left2.jpg"></td>
          <td width="168" background="images/content.jpg">
            <table cellspacing="0" cellpadding="2" width="168">
              <tr>
                <td class="menu1" onmouseover="this.className='menu2'" onmouseout="this.className='menu1'">
                  <a href="index.php?page=search" class="links">GIMP</a>
                </td>
              <tr>
                <td class="menu1" onmouseover="this.className='menu2'" onmouseout="this.className='menu1'">
                  <a href="index.php?page=search" class="links">Paintshop Pro (<?php echo $m_graphics_c_paintshop_pro; ?>)</a>
                </td>
              </tr>
              <tr>
                <td class="menu1" onmouseover="this.className='menu2'" onmouseout="this.className='menu1'">
                  <a href="index.php?page=tutorials&cat=photoshop" class="links">Photoshop (<?php echo $m_graphics_c_photoshop; ?>)</a>
                </td>
              </tr>
            </table>
          </td>
          <td width="6" background="images/right2.jpg"></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>
      <table cellspacing="0" cellpadding="0" height="6">
        <tr>
          <td width="6" background="images/left3.jpg"></td>
          <td width="168" background="images/bottom.jpg"></td>
          <td width="6" background="images/right3.jpg"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>

<br>

<table width="180" cellspacing="0" cellpadding="0">
  <tr>
    <td>
      <table height="27" cellspacing="0" cellpadding="0">
        <tr>
          <td width="6" background="images/left1.jpg" rowspan="2"></td>
          <td width="168" background="images/top1.jpg" height="5"></td>
          <td width="6" background="images/right1.jpg" rowspan="2"></td>
        </tr>
        <tr>
          <td width="168" height="22" background="images/title.jpg">&nbsp;<b>3D editors</b></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>
      <table cellspacing="0" cellpadding="0">
        <tr>
          <td width="6" background="images/left2.jpg"></td>
          <td width="168" background="images/content.jpg">
            <table cellspacing="0" cellpadding="2" width="168">
              <tr>
                <td class="menu1" onmouseover="this.className='menu2'" onmouseout="this.className='menu1'">
                  <a href="index.php?page=search" class="links">3D Studio Max</a>
                </td>
              <tr>
                <td class="menu1" onmouseover="this.className='menu2'" onmouseout="this.className='menu1'">
                  <a href="index.php?page=search" class="links">Cinema 4D</a>
                </td>
              </tr>
              <tr>
                <td class="menu1" onmouseover="this.className='menu2'" onmouseout="this.className='menu1'">
                  <a href="index.php?page=search" class="links">Lightwave</a>
                </td>
              </tr>
              <tr>
                <td class="menu1" onmouseover="this.className='menu2'" onmouseout="this.className='menu1'">
                  <a href="index.php?page=search" class="links">Maya</a>
                </td>
              </tr>
            </table>
          </td>
          <td width="6" background="images/right2.jpg"></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>
      <table cellspacing="0" cellpadding="0" height="6">
        <tr>
          <td width="6" background="images/left3.jpg"></td>
          <td width="168" background="images/bottom.jpg"></td>
          <td width="6" background="images/right3.jpg"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>

<!-- end colum 1 -->
    </td>
    <td width="10">
<!-- colum 2 - white space -->
    </td>
    <td valign="top">
<!-- colum 3 content -->
<?php
if (!isset($_GET['page']))
  {
?>


<table width="500" cellspacing="0" cellpadding="0">
  <tr>
    <td>
      <table height="27" cellspacing="0" cellpadding="0">
        <tr>
          <td width="6" background="images/left1.jpg" rowspan="2"></td>
          <td width="488" background="images/top1.jpg" height="5"></td>
          <td width="6" background="images/right1.jpg" rowspan="2"></td>
        </tr>
        <tr>
          <td width="168" height="22" background="images/title.jpg">dd</td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>
      <table cellspacing="0" cellpadding="0">
        <tr>
          <td width="6" background="images/left2.jpg"></td>
          <td width="488" background="images/content.jpg">links</td>
          <td width="6" background="images/right2.jpg"></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>
      <table cellspacing="0" cellpadding="0" height="6">
        <tr>
          <td width="6" background="images/left3.jpg"></td>
          <td width="488" background="images/bottom.jpg"></td>
          <td width="6" background="images/right3.jpg"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<?
  }

else
{
  if ($_GET['page'] == "tutorials")
    {
      if ($_GET['cat'] == "photoshop")
        {
          if (!isset($_GET['subcat'])) // Main cat with links
            {
              echo "<table width=\"500\" cellspacing=\"0\" cellpadding=\"0\">";
              echo "<tr>";
              echo "<td>";
              echo "<table height=\"27\" cellspacing=\"0\" cellpadding=\"0\">";
              echo "<tr>";
              echo "<td width=\"6\" background=\"images/left1.jpg\" rowspan=\"2\"></td>";
              echo "<td width=\"488\" background=\"images/top1.jpg\" height=\"5\"></td>";
              echo "<td width=\"6\" background=\"images/right1.jpg\" rowspan=\"2\"></td>";
              echo "</tr>";
              echo "<tr>";
              echo "<td width=\"168\" height=\"22\" background=\"images/title.jpg\"><b>Tutorial-base -> Photoshop</b></td>";
              echo "</tr>";
              echo "</table>";
              echo "</td>";
              echo "</tr>";
              echo "<tr>";
              echo "<td>";
              echo "<table cellspacing=\"0\" cellpadding=\"0\">";
              echo "<tr>";
              echo "<td width=\"6\" background=\"images/left2.jpg\"></td>";
              echo "<td width=\"488\" background=\"images/content.jpg\">";
              //content
              echo "<br>";
              echo "<table cellspacing=\"0\" cellpadding=\"5\"><tr><td>";
              echo "<a href=\"index.php?cat=photoshop&subcat=basics\" class=\"links\">Basics (".$m_graphics_c_photoshop_s_basics.")</a><br>";
              echo "<a href=\"index.php?cat=photoshop&subcat=text_effects\" class=\"links\">Text effects</a><br>";
              echo "<a href=\"index.php?cat=photoshop&subcat=interfaces_and_layouts\" class=\"links\">Interfaces and layouts</a><br>";
              echo "<a href=\"index.php?cat=photoshop&subcat=photos\" class=\"links\">Photos</a><br>";
              echo "<a href=\"index.php?cat=photoshop&subcat=special_effects\" class=\"links\">Special Effects</a><br>";
              echo "<a href=\"index.php?cat=photoshop&subcat=textures\" class=\"links\">Textures</a><br>";
              echo "</td></tr></table>";
              //end content
              echo "<br></td>";
              echo "<td width=\"6\" background=\"images/right2.jpg\"></td>";
              echo "</tr>";
              echo "</table>";
              echo "</td>";
              echo "</tr>";
              echo "<tr>";
              echo "<td>";
              echo "<table cellspacing=\"0\" cellpadding=\"0\" height=\"6\">";
              echo "<tr>";
              echo "<td width=\"6\" background=\"images/left3.jpg\"></td>";
              echo "<td width=\"488\" background=\"images/bottom.jpg\"></td>";
              echo "<td width=\"6\" background=\"images/right3.jpg\"></td>";
              echo "</tr>";
              echo "</table>";
              echo "</td>";
              echo "</tr>";
              echo "</table>";
            }
        }
    }
}

?>


<br>

<table width="500" cellspacing="0" cellpadding="0">
  <tr>
    <td background="images/v2left1.jpg" width="6" height="6"></td>
    <td background="images/v2top1.jpg"></td>
    <td background="images/v2right1.jpg" width="6"></td>
  </tr>
  <tr>
    <td background="images/v2left2.jpg" width="6"></td>
    <td align="center">&copy; Tutorial-Base.net</td>
    <td background="images/v2right2.jpg" width="6"></td>
  </tr>
  <tr>
    <td background="images/v2left3.jpg" width="6" height="6"></td>
    <td background="images/v2bottom.jpg"></td>
    <td background="images/v2right3.jpg" width="6"></td>
  </tr>
</table>
    
<!-- end colum 3 -->
    </td>
    <td width="10">
<!-- colum 4 - white space -->
    </td>
    <td valign="top">
<!-- colum 5 -->
<table width="180" cellspacing="0" cellpadding="0">
  <tr>
    <td>
      <table height="27" cellspacing="0" cellpadding="0">
        <tr>
          <td width="6" background="images/left1.jpg" rowspan="2"></td>
          <td width="168" background="images/top1.jpg" height="5"></td>
          <td width="6" background="images/right1.jpg" rowspan="2"></td>
        </tr>
        <tr>
          <td width="168" height="22" background="images/title.jpg">&nbsp;<b>Languages</b></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>
      <table cellspacing="0" cellpadding="0">
        <tr>
          <td width="6" background="images/left2.jpg"></td>
          <td width="168" background="images/content.jpg">
            <table cellspacing="0" cellpadding="2" width="168">
              <tr>
                <td class="menu1" onmouseover="this.className='menu2'" onmouseout="this.className='menu1'">
                  <a href="index.php?page=search" class="links">ASP</a>
                </td>
              </tr>
              <tr>
                <td class="menu1" onmouseover="this.className='menu2'" onmouseout="this.className='menu1'">
                  <a href="index.php?page=search" class="links">C</a>
                </td>
              <tr>
                <td class="menu1" onmouseover="this.className='menu2'" onmouseout="this.className='menu1'">
                  <a href="index.php?page=search" class="links">C++</a>
                </td>
              </tr>
              <tr>
                <td class="menu1" onmouseover="this.className='menu2'" onmouseout="this.className='menu1'">
                  <a href="index.php?page=search" class="links">CSS</a>
                </td>
              </tr>
              <tr>
                <td class="menu1" onmouseover="this.className='menu2'" onmouseout="this.className='menu1'">
                  <a href="index.php?page=search" class="links">DHTML</a>
                </td>
              </tr>
              <tr>
                <td class="menu1" onmouseover="this.className='menu2'" onmouseout="this.className='menu1'">
                  <a href="index.php?page=search" class="links">HTML</a>
                </td>
              </tr>
              <tr>
                <td class="menu1" onmouseover="this.className='menu2'" onmouseout="this.className='menu1'">
                  <a href="index.php?page=search" class="links">Java</a>
                </td>
              </tr>
              <tr>
                <td class="menu1" onmouseover="this.className='menu2'" onmouseout="this.className='menu1'">
                  <a href="index.php?page=search" class="links">Javascript</a>
                </td>
              </tr>
              <tr>
                <td class="menu1" onmouseover="this.className='menu2'" onmouseout="this.className='menu1'">
                  <a href="index.php?page=search" class="links">Perl</a>
                </td>
              </tr>
              <tr>
                <td class="menu1" onmouseover="this.className='menu2'" onmouseout="this.className='menu1'">
                  <a href="index.php?page=search" class="links">PHP</a>
                </td>
              </tr>
              <tr>
                <td class="menu1" onmouseover="this.className='menu2'" onmouseout="this.className='menu1'">
                  <a href="index.php?page=search" class="links">XML</a>
                </td>
              </tr>
            </table>
          </td>
          <td width="6" background="images/right2.jpg"></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>
      <table cellspacing="0" cellpadding="0" height="6">
        <tr>
          <td width="6" background="images/left3.jpg"></td>
          <td width="168" background="images/bottom.jpg"></td>
          <td width="6" background="images/right3.jpg"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>

<br>

<table width="180" cellspacing="0" cellpadding="0">
  <tr>
    <td>
      <table height="27" cellspacing="0" cellpadding="0">
        <tr>
          <td width="6" background="images/left1.jpg" rowspan="2"></td>
          <td width="168" background="images/top1.jpg" height="5"></td>
          <td width="6" background="images/right1.jpg" rowspan="2"></td>
        </tr>
        <tr>
          <td width="168" height="22" background="images/title.jpg">&nbsp;<b>Flash</b></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>
      <table cellspacing="0" cellpadding="0">
        <tr>
          <td width="6" background="images/left2.jpg"></td>
          <td width="168" background="images/content.jpg">
            <table cellspacing="0" cellpadding="2" width="168">
              <tr>
                <td class="menu1" onmouseover="this.className='menu2'" onmouseout="this.className='menu1'">
                  <a href="index.php?page=search" class="links">Flash MX (2004)</a>
                </td>
              <tr>
                <td class="menu1" onmouseover="this.className='menu2'" onmouseout="this.className='menu1'">
                  <a href="index.php?page=search" class="links">Swish</a>
                </td>
              </tr>
              <tr>
                <td class="menu1" onmouseover="this.className='menu2'" onmouseout="this.className='menu1'">
                  <a href="index.php?page=search" class="links">Swift 3D</a>
                </td>
              </tr>
            </table>
          </td>
          <td width="6" background="images/right2.jpg"></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>
      <table cellspacing="0" cellpadding="0" height="6">
        <tr>
          <td width="6" background="images/left3.jpg"></td>
          <td width="168" background="images/bottom.jpg"></td>
          <td width="6" background="images/right3.jpg"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>

<br>

<table width="180" cellspacing="0" cellpadding="0">
  <tr>
    <td>
      <table height="27" cellspacing="0" cellpadding="0">
        <tr>
          <td width="6" background="images/left1.jpg" rowspan="2"></td>
          <td width="168" background="images/top1.jpg" height="5"></td>
          <td width="6" background="images/right1.jpg" rowspan="2"></td>
        </tr>
        <tr>
          <td width="168" height="22" background="images/title.jpg">Other</td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>
      <table cellspacing="0" cellpadding="0">
        <tr>
          <td width="6" background="images/left2.jpg"></td>
          <td width="168" background="images/content.jpg">
          link1<br>
          link2<br>
          link3<br>
          </td>
          <td width="6" background="images/right2.jpg"></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>
      <table cellspacing="0" cellpadding="0" height="6">
        <tr>
          <td width="6" background="images/left3.jpg"></td>
          <td width="168" background="images/bottom.jpg"></td>
          <td width="6" background="images/right3.jpg"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<!-- end colum 5 -->
    </td>
  </tr>
</table>