<?php
include("../../includes/db.inc.php");
include("../../includes/config.php");
$msql=new SHARP_SQL;
$fsql=new SHARP_SQL;
$msql->query("select * from auto_user where userid='$userid'");
if($msql->next_record()){
$urlname=$msql->f('urlname');
$sitename=$msql->f('sitename');
$ensitename=$msql->f('ensitename');
$name=$msql->f('name');
$email=$msql->f('email');
$tel=$msql->f('tel');
$fax=$msql->f('fax');
$addr=$msql->f('addr');
$zip=$msql->f('zip');
$size1=$msql->f('size1');
$size2=$msql->f('size2');
$intro=$msql->f('intro');
$code=$msql->f('code');
$bannerurl=$msql->f('bannerurl');
$intro=str_replace("\n","<br>",$intro);
}
?>
<HTML>
<HEAD><title><?php echo "$sitename"; ?></title>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=big5">
<STYLE>HTML {TEXT-DECORATION: none}
A:link {COLOR: #000000; TEXT-DECORATION: none}
A:hover {COLOR: rgb(0,147,43); TEXT-DECORATION: none}
A:active {COLOR: #000000; TEXT-DECORATION: none}
A:visited {COLOR: #000000; TEXT-DECORATION: none}
EM {FONT-FAMILY: CourierNew; FONT-SIZE: 16pt; FONT-STYLE: normal}
A {FONT-SIZE: 9pt}
TD {FONT-SIZE: 9pt}
P {
FONT-SIZE: 9pt
}
<base href="../../mod/1/"></STYLE>
</HEAD>
<BODY LEFTMARGIN="0" MARGINWIDTH="0" TOPMARGIN="0" MARGINHEIGHT="0" bgcolor="#FFFFFF" text="#000000" link="#000000" vlink="#000000" alink="#000000">
<table cellpadding="0" cellspacing="0" border="0" width="776">
  <tr> 
    <td colspan="2"><img src="images/mod_0.gif" width="776" height="32"></td>
  </tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="776" background="images/mod_1.gif">
  <tr> 
    <td colspan="2" height="90"> 
      <table width="99%" border="0" cellspacing="2" cellpadding="0">
        <tr> 
          <td width="20" height="74"> 
            <script>
var inn_line=new Array();
<?php
$intext="";
$mainmenu=1;
$msql->query("select * from auto_dir where userid='$userid' and parentid=0 order by xuhao");
while($msql->next_record()){
$pdirid=$msql->f('dirid');
$ifson=$msql->f('ifson');
$dirname=$msql->f('dirname');
$mod=$msql->f('mod');
if($ifson=='0'){
	$tbname="tb".$mainmenu;
	include("../../includes/dir10.php3");
	$arrey[$mainmenu]=$show;
}else{
	$tbname="tb".$mainmenu;
	$arrey[$mainmenu]="<a href=# onMouseOver='Line_Change(".$pdirid.",".$tbname.",".$mainmenu.")' onMouseout='leavetb(".$tbname.")'>$dirname</a>";
}
	$fsql->query("select * from auto_dir where parentid='$pdirid' order by xuhao");
$intext="<table cellspacing=1 width=85 cellpadding=2 bgcolor=#ffffff>";
	while($fsql->next_record()){
		$dirid=$fsql->f('dirid');
		$dirname=$fsql->f('dirname');
		$mod=$fsql->f('mod');
		include("../../includes/dir9.php3");
		$intext.="<tr><td bgcolor=#cccccc align=center>".$show."</td></tr>";
	}
$intext.="</table>";
?>
inn_line[<?php echo $pdirid; ?>]="<?php echo $intext; ?>";
<?php
$intext="";
$mainmenu++;
}
?> 
function Line_Change(i,tbname,x){
	tbname.background='images/tbbg.gif';
	//x=document.body.scrollLeft+event.clientX; 
	//y=document.body.scrollTop+event.clientY; 
	GuideLine.style.posLeft=x*83-69;
	GuideLine.style.posTop=142;
	GuideLine.innerHTML=inn_line[i];
}
function leavetb(tbname){
	tbname.background='images/tbbg0.gif';
}
</script>
            <div id=GuideLine style="position:absolute; width: 150; overflow: hidden"></div>
          </td>
          <td width="250" height="74"> 
            <table width="100%" border="0" cellspacing="1" cellpadding="0" align="center">
              <tr> 
                <td> <?php
$msql->query("select * from auto_name where userid='$userid'");
if($msql->next_record()){
$cnsize=$msql->f('cnsize');
$ensize=$msql->f('ensize');
$cncolor=$msql->f('cncolor');
$encolor=$msql->f('encolor');
$cnface=$msql->f('cnface');
$enface=$msql->f('enface');

echo "<div style='width: 100%; font-size: ".$cnsize."pt; font-family: ".$cnface."; color:".$cncolor."; filter:shadow(color=#000000,direction=240)'><b>".$sitename."</b></div>";
echo "<div style='width: 100%; font-size: ".$ensize."pt; font-family: ".$enface." ; color:".$encolor."'><img src=../../images/dot.gif width=3>".$ensitename."</div>";


}else{

echo "<div style='width: 100%; font-size:20pt; font-family: ²Ó©úÅé; color:#ffffff; filter:shadow(color=#000000,direction=240)'><b>".$sitename."</b></div>";
echo "<div style='width: 100%; font-size:12pt; font-family: Arial; color:#ffffff'><img src=../../images/dot.gif width=3>".$ensitename."</div>";
}
?> </td>
              </tr>
            </table>
          </td>
          <td colspan="2" height="74"> 
            <table width="468" border="0" cellspacing="0" cellpadding="0" align="center" height="60">
              <tr> 
                <td height="57"> 
                  <div align="center"><?php
$bannerfile="../../banner/".$userid.".jpg";
if(file_exists($bannerfile)){
echo "<a href=$bannerurl target=_blank><img border=0 src=$bannerfile width=468 height=60></a>";
}else{
echo "<img border=0 src='images/banner.gif' width=468 height=60>";
}
?> </div>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="776" background="images/mod_2.gif" height="20">
  <tr> 
    <td colspan="2" height="20"> 
      <table width="755" border="0" cellspacing="0" cellpadding="0" align="center" height="20">
        <tr> 
          <td> 
            <table border="0" cellspacing="1" cellpadding="0" height="20" width=755>
              <tr> <?php
for($k=1;$k<$mainmenu;$k++){
echo "<td background='images/tbbg0.gif' id=tb".$k." align=center width=83>".$arrey[$k]."</td>";
}
if($mainmenu<=9){
echo "<td background='images/tbbg0.gif'>–R</td>";
}
?> </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table width="776" border="0" cellspacing="0" cellpadding="0" background="images/mod_6.gif">
  <tr> 
    <td width="70" valign="top"><img src="images/mod_4.gif" width="71" height="316"></td>
    <td width="706" valign="top"> 
      <table width="100%" border="0" cellspacing="6" cellpadding="0">
        <tr> 
          <td height="272" width="120" valign="top"> 
            <div align="center"> 
              <table width="93%" border="0" cellspacing="4" cellpadding="0">
                <tr align="center"> 
                  <td height="18"><img src="<?php
$logofile="../../logo/".$userid.".jpg";
if(file_exists($logofile)){
echo "$logofile";
}else{
echo "images/mylogo.gif";
}
?>"> </td>
                </tr>
                <?php
$msql->query("select * from auto_link where userid='$userid'  order by xuhao");
while($msql->next_record()){
$linkname=$msql->f('linkname');
$mod=$msql->f('mod');
$url=$msql->f('url');
$linkid=$msql->f('linkid');
?> 
                <tr> 
                  <td> 
                    <div align="center"><?php
$linkimg="../../link/".$linkid.".jpg";
if(file_exists($linkimg)){
echo "<a href=$url target=_blank><img src=$linkimg border=0 width=88 ></a>"; 
}else{
echo "<a href=$url target=_blank>$linkname</a>"; 
}
?> </div>
                  </td>
                </tr>
                <?php
}
?> 
              </table>
              <div align="center"></div>
            </div>
          </td>
          <td height="272" valign="top" width="1" background="images/line.gif"><img src="images/dot.gif" width="1" height="10"></td>
          <td height="272" valign="top" width="570">
            <table width="100%" border="0" cellspacing="10" cellpadding="0">
              <tr valign="top"> 
                <td height="295"> 
                  <p align="center">&nbsp;</p>
                  <form method=post action=../../sendmail.php3>
                    <table width="87%" cellspacing="0" cellpadding="0" align="center">
                      <tr> 
                        <td height="24" width="32%"> 
                          <div align="right"><font size="2">¥DÃD(Subject)¡G</font></div>
                        </td>
                        <td height="24" width="68%"> 
                          <div align="left"> 
                            <input type="text" name="title" size="40">
                          </div>
                        </td>
                      </tr>
                      <tr> 
                        <td height="82" width="32%" valign="top"> 
                          <div align="right"><font size="2">¤º®e(Message)¡G</font></div>
                        </td>
                        <td height="82" width="68%" valign="top"> 
                          <div align="left"> 
                            <textarea name="con" cols="39" rows="8"></textarea>
                            <input type="hidden" name="step" value="send">
                            <input type="hidden" name="userid" value="<?php echo "$userid"; ?>">
                            <input type="hidden" name="email" value="<?php echo "$email"; ?>">
                          </div>
                        </td>
                      </tr>
                      <tr> 
                        <td height="5" width="32%"> 
                          <div align="right"><font size="3"><font size="2"><font size="2">¹q¤l¶l¥ó(E-mail):</font></font></font></div>
                        </td>
                        <td height="5" width="68%"> 
                          <input type="text" name="frommail" size="40">
                        </td>
                      </tr>
                      <tr> 
                        <td height="28" width="32%"> 
                          <div align="right"><font size="2"><font size="2"></font></font></div>
                        </td>
                        <td height="28" width="68%"> 
                          <input type="submit" name="Submit" value="µo°e">
                        </td>
                      </tr>
                    </table>
                  </form>
                  <p></p>
                  <font color="#000000"></font></td>
              </tr>
            </table>
            <br>
          </td>
        </tr>
        <tr> 
          <td height="28" width="120" valign="middle"> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" bordercolor="#669966">
              <tr bgcolor="#FFFFFF"> 
                <td width="108" align="center"><font color="#FFFFFF"><font color="#000000"> 
                  <font color="#FF9933">³X°Ý¤H¼Æ: 
                  <script src="../../includes/count.php3?userid=<?php echo "$userid"; ?>"></script>
                  </font><font color="#669966"> </font></font></font></td>
              </tr>
            </table>
          </td>
          <td height="28" valign="top" width="1" background="images/line.gif"><img src="images/dot.gif" width="1" height="10"></td>
          <td height="28" width="570"> 
            <div align="center"><font color="#333333"><?php echo "$code"; ?></font> 
            </div>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</BODY>
</HTML>
