<?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="#333333" text="#000000" link="#000000" vlink="#000000" alink="#000000">
<table width="776" border="0" cellspacing="0" cellpadding="0" align="center" height="111" bgcolor="#FFFFFF">
  <tr> 
    <td width="188"><img src="images/mod_0.gif" width="188" height="111"></td>
    <td background="images/mod_1.gif" valign="top"> 
      <table width="100%" border="0" cellspacing="4" cellpadding="0">
        <tr> 
          <td height="101"> 
            <table width="94%" border="0" cellspacing="3" cellpadding="0" align="center">
              <tr> 
                <td height="39" width="1"><img src="<?php
$logofile="../../logo/".$userid.".jpg";
if(file_exists($logofile)){
echo "$logofile";
}else{
echo "images/mylogo.gif";
}
?>"></td>
                <td height="39"> 
                  <table width="100%" border="0" cellspacing="1" cellpadding="0" align="center">
                    <tr> 
                      <td height="36"> <?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."'><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:#000000'><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>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table width="776" border="0" cellspacing="0" cellpadding="0" align="center" height="24" bgcolor="#FFFFFF">
  <tr> 
    <td width="188"><img src="images/mod_3.gif" width="188" height="24"></td>
    <td background="images/mod_4.gif"> 
      <table width="100%" border="0" cellspacing="2" cellpadding="0" align="center">
        <tr> 
          <td> <?php
$msql->query("select * from auto_dir where userid='$userid' and parentid=0 order by xuhao");
$mainnum=1;
while($msql->next_record()){
$dirid=$msql->f('dirid');
$dirname=$msql->f('dirname');
$mod=$msql->f('mod');
?><img src="images/dot.gif" width="8" height="10"><img src="images/d.gif" width="1"><img src="images/dot.gif" width="8" height="10"><?php
	if($mod=='1'){
		echo "<a href=index.php3?file=1.php3&kdir=$dirid&nowdir=$dirid>$dirname</a>";
	}elseif($mod=='2'){
		echo "<a href=index.php3?file=2.php3&kdir=$dirid&nowdir=$dirid>$dirname</a>";
	}elseif($mod=='3'){
		echo "<a href=index.php3?file=3.php3>$dirname</a>";
	}elseif($mod=='101'){
		echo "<a href=".$baseurl."com/".$dirname.">¤¤ ¤å ª©</a>";
	}elseif($mod=='102'){
		echo "<a href=".$baseurl."com/".$dirname.">ENGLISH</a>";
	}elseif($mod=='0'){
		echo "<a href=index.php3?file=index.php3>$dirname</a>";
	}

}
?><img src="images/dot.gif" width="8" height="10"><img src="images/d.gif" width="1"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table width="776" border="0" cellspacing="0" cellpadding="0" align="center" height="24" bgcolor="#FFFFFF">
  <tr> 
    <td width="188"><img src="images/mod_6.gif" width="188" height="61"></td>
    <td valign="top"><img src="images/mod_7.gif" width="588" height="61"></td>
  </tr>
</table>
<table width="776" border="0" cellspacing="0" cellpadding="0" align="center" height="24" bgcolor="#FFFFFF" background="images/mod_10.gif">
  <tr> 
    <td width="188" valign="top" height="294"><img src="images/mod_8.gif" width="188" height="103"> 
      <table width="84%" border="0" cellspacing="4" cellpadding="0" height="198">
        <tr valign="top"> 
          <td> 
            <div align="center"> </div>
          </td>
        </tr>
      </table>
    </td>
    <td valign="top" height="294"> 
      <table width="100%" border="0" cellspacing="4" cellpadding="0">
        <tr valign="top"> 
          <td height="217"> 
            <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="29%"> 
                          <div align="right"><font size="2">¥DÃD(Subject)¡G</font></div>
                        </td>
                        <td height="24" width="71%"> 
                          <div align="left"> 
                            <input type="text" name="title" size="40">
                          </div>
                        </td>
                      </tr>
                      <tr> 
                        <td height="82" width="29%" valign="top"> 
                          <div align="right"><font size="2">¤º®e(Message)¡G</font></div>
                        </td>
                        <td height="82" width="71%" valign="top"> 
                          <div align="left"> 
                            <textarea name="con" cols="38" rows="15"></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="29%"> 
                          <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="71%"> 
                          <input type="text" name="frommail" size="40">
                        </td>
                      </tr>
                      <tr> 
                        <td height="28" width="29%"> 
                          <div align="right"><font size="2"><font size="2"></font></font></div>
                        </td>
                        <td height="28" width="71%"> 
                          <input type="submit" name="Submit" value="µo°e">
                        </td>
                      </tr>
                    </table>
                  </form>
                  <p></p>
                  <font color="#000000"></font></td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="4" cellpadding="0" align="center">
        <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>";
}
?> <font color="#333333"> <br>
              <?php echo "$code"; ?> </font></div>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table width="776" border="0" cellspacing="0" cellpadding="0" align="center" height="30" bgcolor="#FFFFFF" background="images/mod_12.gif">
  <tr> 
    <td colspan="2" height="11"> <font color="#FF6600"><font color="#3399FF"><font color="#FF6600"><font color="#3399FF"><font color="#F6F6F6">–R</font></font></font></font><font color="#FF6600"><font color="#3399FF"><font color="#F6F6F6">–R</font></font></font><font color="#3399FF"><font color="#F6F6F6">±z¬O²Ä 
      <script src="../../includes/count.php3?userid=<?php echo "$userid"; ?>"></script>
      ¦ì³X«È </font></font></font></td>
  </tr>
</table>
</BODY>
</HTML>
