<?php
include("includes/db.inc.php");
include("includes/config.php");
$msql=new SHARP_SQL;
$fsql=new SHARP_SQL;
if(!isset($AUTOUSERID) || $AUTOUSERID=="" || $AUTOUSERID=="deleted"){
header("Location: log.php3?fm=moduser.php3");
}else{
$userid=$AUTOUSERID;
}
?><HTML><HEAD><TITLE></TITLE>



<META content="text/html; charset=big5" http-equiv=Content-Type>



<STYLE>HTML {TEXT-DECORATION: none}



A:link {COLOR: #000000; TEXT-DECORATION: underline}



A:hover {COLOR: rgb(0,147,43); TEXT-DECORATION: underline}



EM {FONT-FAMILY: CourierNew; FONT-SIZE: 16pt; FONT-STYLE: normal}



A {FONT-SIZE: 9pt}



TD {FONT-SIZE: 9pt}



P {



FONT-SIZE: 9pt



}



.hh input {background-color: #ffffff; border-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px}



</STYLE>



</HEAD>



<BODY aLink=#000000 bgColor=#00CCFF leftMargin=0 link=#000000 topMargin=0 vLink=#000000 marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr valign="bottom"> 
    <td height="27" colspan="2"><font color="#000000">¡½ ºô¯¸¤º®eºÞ²z¡Ð­º­¶¤Î°ò¥»¸ê®Æ­×§ï</font><font color="#000000"></font></td>
  </tr>
  <tr> 
    <td height="1" width="25%" bgcolor="#FF3300"><img src="images/dot.gif" width="22" height="1"></td>
    <td height="1" width="75%" bgcolor="#FF3300"><img src="images/dot.gif" width="22" height="1"></td>
  </tr>
  <tr valign="top"> 
    <td height="413" colspan="2"> 
      <div align="center"></div>
      <div align="center"></div>
      <p><?php
if($step=="2"){
if($sitename=="" || $sitename==" " ){
sendback("¹ï¤£°_,ºô¯¸¦WºÙ¥²¶·¶ñ¼g");
}

if(strlen($intro)>15000){
sendback('¹ï¤£°_¡AÂ²¤¶¤£¯à¶W¹L15000¦r²Å¡A½Ðªð¦^­×§ï');
}
if($ttype=="html"){
$intro=str_replace("\n","",$intro);
}else{
$intro=str_replace("  ","–R",$intro);
$intro=str_replace("¡@","–R",$intro);
}
///////////
$msql->query("update auto_user set 
sitename='$sitename',
ensitename='$ensitename',
name='$name',
email='$email',
tel='$tel',
fax='$fax',
addr='$addr',
zip='$zip',
intro='$intro'  where userid='$AUTOUSERID'");

?> <br>
      </p>
      <br>
      <table width="564" border="1" cellspacing="2" cellpadding="0" align="center" bordercolor="#333333">
        <tr bgcolor="#FFCC66" align="center" valign="middle"> 
          <form method="post" action="modcon.php3">
            <td height="65" width="33%"> 
              <input type="submit" name="Submit" value="Ä~ÄòºÞ²z¤º®e">
            </td></form> <form method="post" action="modmain.php3">
            <td height="65" width="33%"> 
              <input type="submit" name="Submit2" value="§ó´«­º­¶±Æª©¤è¦¡">
            </td>
          
         
          </form>
          <form method="post" action="goto.php3" target=_blank>
            <td height="65" width="33%"> 
              <input type="submit" name="Submit22" value="§ó·s¨Ã¹wÄýºô¯¸">
              <input type="hidden" name="userid" value="<?php echo "$AUTOUSERID"; ?>">
            </td>
          </form>
        </tr>
      </table>
      <p><?php
}
if($step!="2"){
$msql->query("select * from auto_user where userid='$AUTOUSERID'");
if($msql->next_record()){
$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');
$intro=$msql->f('intro');
$intro=$intro." ";
if(strstr($intro,"<")){
$hc="checked";
}else{
$tc="checked";
}
}
?> </p>
      <form method="post" action="">
        <table width='564' border='1' cellspacing='1' cellpadding='2' align="center" bordercolor="#333333">
          <tr bgcolor="#FFCC66"> 
            <td width='21%' height='29'> 
              <div align="right">ºô¯¸¤¤¤å¦WºÙ¡G</div>
            </td>
            <td width='79%' height='29'> 
              <input type='text' name='sitename' size='30' value="<?php echo "$sitename"; ?>">
              <font color='red'><small>*</small></font> (¥ø·~¦W©Îºô¯¸¦W)</td>
          </tr>
          <tr bgcolor="#FFCC66"> 
            <td width='21%' height='29'> 
              <div align="right">ºô¯¸­^¤å¦WºÙ¡G</div>
            </td>
            <td width='79%' height='29'> 
              <input type='text' name='ensitename' size='30' value="<?php echo "$ensitename"; ?>">
              <font color='red'></font> (­^¤å©Î«÷­µ)</td>
          </tr>
          <tr bgcolor="#FFCC66"> 
            <td width='21%'> 
              <div align='right'>³q°T¦a§}¡G</div>
            </td>
            <td width='79%'> 
              <input type='text' name='addr' value='<?php echo "$addr"; ?>' size=50>
              <font color='red'><small>*</small></font> </td>
          </tr>
          <tr bgcolor="#FFCC66"> 
            <td width='21%'> 
              <div align='right'>Áp µ¸ ¤H¡G</div>
            </td>
            <td width='79%'> 
              <input type='text' name='name' value='<?php echo "$name"; ?>' size=10>
              <font color='red'></font> <font color='red'><small>*</small></font></td>
          </tr>
          <tr bgcolor="#FFCC66"> 
            <td width='21%' height="19"> 
              <div align="right">¶l»¼°Ï¸¹¡G</div>
            </td>
            <td width='79%' height="19"> 
              <input type='text' name='zip' value='<?php echo "$zip"; ?>' size=6 maxlength=6>
              <font color='red'><small>*</small></font> </td>
          </tr>
          <tr bgcolor="#FFCC66"> 
            <td width='21%'> 
              <div align='right'>¹q¤l¶l¥ó¡G</div>
            </td>
            <td width='79%'> 
              <input type='text' name='email' value='<?php echo "$email"; ?>' size=50>
              <font color='red'><small>*</small></font> </td>
          </tr>
          <tr bgcolor="#FFCC66"> 
            <td width='21%' height="3"> 
              <div align='right'>¹q¸Ü¡G</div>
            </td>
            <td width='79%' height="3"> 
              <input type='text' name='tel' value='<?php echo "$tel"; ?>' size=40>
              <font color='red'><small>*</small></font> </td>
          </tr>
          <tr bgcolor="#FFCC66"> 
            <td width='21%' height="2"> 
              <div align='right'>¶Ç¯u¡G</div>
            </td>
            <td width='79%' height="2"> 
              <input type='text' name='fax' value='<?php echo "$fax"; ?>' size=24>
            </td>
          </tr>
          <tr bgcolor="#FFCC66"> 
            <td width='21%'> 
              <div align='right'>Â²¤¶¡G</div>
            </td>
            <td width='79%'> 
              <textarea name='intro' cols='50' rows='8'><?php echo "$intro"; ?></textarea>
              <font color='red'><small>*</small></font> </td>
          </tr>
          <tr bgcolor="#FFCC66"> 
            <td width='21%'> 
              <div align="right">Â²¤¶Ãþ«¬¡G</div>
            </td>
            <td width='79%'> 
              <input type="radio" name="ttype" value="text" <?php echo "$tc"; ?> >
              ¤å¦r 
              <input type="radio" name="ttype" value="html" <?php echo "$hc"; ?> >
              HTML·½¥N½X </td>
          </tr>
          <tr bgcolor="#FFCC66"> 
            <td width='21%'> 
              <div align='right'>¡@¡@</div>
            </td>
            <td width='79%'> 
              <input type='submit' name='Submit3' value='°e ¥X'>
              <input type="hidden" name="step" value="2">
            </td>
          </tr>
        </table>
      </form>
      <?php
}
?> </td>
  </tr>
</table>
</BODY></HTML>



