<?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');

$bannerurl=$msql->f('bannerurl');

$size1=$msql->f('size1');

$size2=$msql->f('size2');

$mainmod=$msql->f('mainmod');

$intro=$msql->f('intro');

$code=$msql->f('code');

$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_3.gif">
  <tr> 

    <td colspan="2" height="90">

      <table width="99%" border="0" cellspacing="2" cellpadding="0">

        <tr>

          <td width="20" height="74"> <?php

include("../../includes/menu57.php3");

?> 

            <div id=GuideLine style="position:absolute; width: 150; overflow: hidden"></div>

          </td>

          <td width="229" height="74"> <img src="<?php

$logofile="../../logo/".$userid.".jpg";

if(file_exists($logofile)){

echo "$logofile";

}else{

echo "images/mylogo.gif";

}

?>"> </td>

          <td colspan="2" height="74" width="511"> 

            <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="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" background="images/mod_6.gif">
  <tr> 

    <td width="71" valign="top" height="357"><img src="images/mod_4.gif" width="71" height="316"></td>

    <td width="517" height="357" valign="top"><?php

$mainf="../../includes/mainmod".$mainmod.".php3";

include($mainf);

?> <font color="#333333"> </font></td>

    <td width="188" height="357" valign="top"> 

      <table width="95%" border="0" cellspacing="4" cellpadding="0">

        <tr> 

          <td height="18">&nbsp; </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"><br>

        <br>

      </div>

      <table width="77" border="2" cellspacing="2" cellpadding="0" align="center" bordercolor="#669966">

        <tr bgcolor="#FFFFFF"> 

          <td width="77" align="center"><font color="#FFFFFF"><font face="Arial Black" color="#669966">

            <script src="../../includes/count.php3?userid=<?php echo "$userid"; ?>"></script>

            </font></font></td>

        </tr>

      </table>

      <div align="center"><br>

        <font color="#333333"><?php echo "$code"; ?></font> </div>

    </td>

  </tr>

</table>

</BODY>

</HTML>

