<?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');
$bannerurl=$msql->f('bannerurl');
$code=$msql->f('code');
$intro=$msql->f('intro');
$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" align="center" background="images/mod_1.gif" height="74">
  <tr> 
    <td colspan="2" height="74"> 
      <table width="99%" border="0" cellspacing="2" cellpadding="0" height="70">
        <tr> 
          <td width="20" height="67"> <?php
include("../../includes/menu58.php3");
?> 
            <div id=GuideLine style="position:absolute; width: 150; overflow: hidden"></div>
          </td>
          <td width="240" height="67"> <img src="<?php
$logofile="../../logo/".$userid.".jpg";
if(file_exists($logofile)){
echo "$logofile";
}else{
echo "images/mylogo.gif";
}
?>"> </td>
          <td colspan="2" height="67" width="500" valign="bottom"> 
            <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" align="center" width="775" 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" align="center" background="images/mod_6.gif">
  <tr> 
    <td width="15" valign="top" height="357">&nbsp;</td>
    <td height="357" valign="top"> 
      <table width="100%" border="0" cellspacing="10" cellpadding="0">
        <tr valign="top"> 
          <td height="346"> <?php
if($detail=="2"){
?> 
            <table width="100%" border="0" cellspacing="8" cellpadding="0">
              <tr valign="middle"> 
                <td colspan="3" height="30"> 
                  <div align="center"><font color="#000000"><?php
$msql->query("select id,title,ms1,ms2,con from auto_con where userid='$userid' and id='$id'");
if($msql->next_record()){
$title=$msql->f('title');
$ms1=$msql->f('ms1');
$ms2=$msql->f('ms2');
$con=$msql->f('con');
$con=str_replace("\n","<br>",$con);
$body=$con;
}
?></font><?php echo "<font size=3> <b>$title</b></font><br><br>".$ms1."<br> ".$ms2; ?> 
                    <font color="#FFFFFF"></font><font color="#FFFFFF"></font><font color="#000000"> 
                    </font></div>
                </td>
              </tr>
              <tr valign="middle" bgcolor="#000000"> 
                <td colspan="3" height="1"><img src="images/dot.gif" width="20" height="1"></td>
              </tr>
              <tr> 
                <td  valign="top"  height="350"> <?php
$imgfile="../../comimg/$id.jpg";
if(file_exists($imgfile)){
echo "<img src=$imgfile  border=0 align=left hspace=6>"; 
}
?><font color="#000000"><?php echo "$body"; ?></font><font color="#000000"> </font></td>
              </tr>
              <tr valign="top"> </tr>
            </table>
            <?php
}else{
?> 
            <table width="100%" border="0" cellspacing="8" cellpadding="0">
              <tr valign="middle"> 
                <td colspan="3" height="30"> 
                  <div align="center"><font color="#000000"><?php
$msql->query("select id,title,ms1,ms2,con from auto_con where userid='$userid' and id='$id'");
if($msql->next_record()){
$title=$msql->f('title');
$ms1=$msql->f('ms1');
$ms2=$msql->f('ms2');
$con=$msql->f('con');
$con=str_replace("\n","<br>",$con);
$body=$con;
}
?></font><?php echo "<font size=3> <b>$title</b></font><br><br>".$ms1."<br> ".$ms2; ?> 
                    <font color="#FFFFFF"></font><font color="#FFFFFF"></font><font color="#000000"> 
                    </font></div>
                </td>
              </tr>
              <tr valign="middle" bgcolor="#000000"> 
                <td colspan="3" height="1"><img src="images/dot.gif" width="20" height="1"></td>
              </tr>
              <tr> 
                <td  valign="top"  height="350"> <?php
$imgfile="../../comimg/$id.jpg";
if(file_exists($imgfile)){
echo "<img src=$imgfile  border=0 align=left hspace=6>"; 
}
?><font color="#000000"><?php echo "$body"; ?></font><font color="#000000"> </font></td>
              </tr>
              <tr valign="top"> </tr>
            </table>
            <?php
}
?> </td>
        </tr>
      </table>
      <font color="#333333"> </font></td>
  </tr>
</table>
<table width="758" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr bgcolor="#000000"> 
    <td><img src="images/dot.gif" width="10" height="1"></td>
  </tr>
</table>
<table width="758" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td height="25"> 
      <div align="center"><br>
        <table width="77" border="0" cellspacing="0" cellpadding="0" align="center" bordercolor="#669966">
          <tr bgcolor="#FFFFFF"> 
            <td width="77" align="center"><font color="#FFFFFF"><font color="#000000">
              <script src="../../includes/count.php3?userid=<?php echo "$userid"; ?>"></script>
              </font></font></td>
          </tr>
        </table>
        <br>
        <font color="#333333"><?php echo "$code"; ?></font></div>
    </td>
  </tr>
</table>
</BODY>
</HTML>
