<?php
include("CheckSession.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="馬戲團" />
<title>馬戲團</title>
<Script Language="javascript" src="control/calendar.js"></Script>
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<script type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<script language="JavaScript" type="text/JavaScript"> 
<!-- 
function MM_openBrWindow(theURL,winName,win_width,win_height) { 
  var PosX = ((screen.width-win_width)/2); 
  var PosY = ((screen.height-win_height)/2);
  features = "status=no,toolbar=no,scrollbars=yes,resizable=yes,width="+win_width+",Height="+win_height+",top="+PosY+",left="+PosX;; 
  var urlStr = theURL + "?CMissCount=" + document.all['CMissCount'].value 
               + "&tempCustomerId=" + document.all['id'].value
  var newwin = window.open(urlStr,winName,features); 
}
//--> 
</script>

<?php


require_once("class/DBConfig.php");
require_once("class/DBOperation.php");

$CNickname = "";
$CArea = "";
$CSource = "";
$CGreenTel = "";
$CBlackTel = "";
$CRedTel = "";
$CMemo = "";
$id = "";
$TelClass = "";
$CCreator = "";
$CClass = "";

$db = new DBOperation();

$id = $_GET["id"];
$db->connect_db($_DB['host'], $_DB['username'], $_DB['password'], $_DB['dbname']);
$db->query("SELECT * FROM Customer where CId = '".$db->mysql_real_escape_string($id)."'");
$row = $db->fetch_row();
$CNickname = $row[1];
$CArea = $row[2];
$CSource = $row[3];
$CGreenTel = $row[4];
$CBlackTel = $row[5];
$CRedTel = $row[6];
$CMemo = nl2br($row[7]);
$CCreator = $row[10];
$CClass = $row[13];

if($CRedTel != "")
{
	$CTel = $CRedTel;
	$TelClass = "Red";
}
elseif($CBlackTel != "")
{
	$CTel = $CBlackTel;
	$TelClass = "Black";
}
elseif($CGreenTel != "")
{
	$CTel = $CGreenTel;
	$TelClass = "Green";
}

$db->close_db();

$db->connect_db($_DB['host'], $_DB['username'], $_DB['password'], $_DB['dbname']);
$querySql = "select CId,CMiss,CPayDate from CMissContent where CCId = '".$actionid."' order by CPayDate desc";
$db->query($querySql);
$CMiss = "";
while($myrow = $db->fetch_array())
{
	if($CMiss == "")
	{
		$CMiss = $myrow['CPayDate']." - ".$myrow['CMiss'];
	}
	else
	{
		$CMiss = $CMiss."<br>".$myrow['CPayDate']." - ".$myrow['CMiss'];
	}
}

$db->close_db();


?>
<SCRIPT language="JavaScript">
function validateForm(objThisUi) 
{
	return true;  
}
</SCRIPT>
<body onload="MM_preloadImages('images/Update1.jpg')">
<form name="CustomerForm" method="post" action="CustomerQueryBuyTimesUpdateDealW.php" id="CustomerForm"
 onSubmit="return validateForm(this);">
<input type="hidden" name="id" id="id" value="<?php echo $id ?>"/>
<input type="hidden" value="<?php echo $CTel; ?>" name="CTel" id="CTel" />
<table border="0" cellspacing="0" cellspadding="0" width="100%">
<tr>
<td align="left" colspan="2">
&nbsp;
</td>
</tr>
<tr>
<td align="left" colspan="2">
<span class="t14b"><b>資料修改</b></span>
</td>
</tr>
<tr>
<td align="left" colspan="2">

<table border="3" cellspacing="2" cellspadding="2" width="100%">
<table border="3" cellspacing="2" cellspadding="2" width="100%">
<tr>
<td align="left" width="20%">
<span class="t12">電話</span>
</td>
<td align="left" width="85%">
<?php
if(($_SESSION['rightLevel'] == "0") || ($_SESSION['rightLevel'] == "1") ||
  ($_SESSION['rightLevel'] == "2" && str_indexof($_SESSION['updateFields'],"CTel") >= 0))
{
?>
<input type="text" value="<?php echo $CTel ?>" name="CTel" id="CTel" size="70" maxlength="70" style="font-size: 12.0pt;font-family: 微軟正黑體;"/>
<?php
}
else
{
?>
<input type="text" value="<?php echo $CTel ?>" name="CTel" id="CTel" size="70" maxlength="70" style="font-size: 12.0pt;font-family: 微軟正黑體;" readonly/>
<?php
}
?>
</td>
</tr>
<tr>
<td align="left" width="15%">
<span class="t12">地區</span>
</td>
<td align="left" width="85%">
<?php
if(($_SESSION['rightLevel'] == "0") || ($_SESSION['rightLevel'] == "1") ||
  ($_SESSION['rightLevel'] == "2" && str_indexof($_SESSION['updateFields'],"CArea") >= 0))
{
?>
<table border="0" cellspacing="5" cellspading="5">
<tr>
<td>
<span class="t12">
<input type="checkbox" name="chkTaipei" id="chkTaipei" value="N:Taipei" <?php if(str_indexof($CArea,"N:Taipei") >= 0) echo "checked"; ?>>台北
</span>
<br>
<span class="t12">
<input type="checkbox" name="chkTainan" id="chkTainan" value="S:Tainan" <?php if(str_indexof($CArea,"S:Tainan") >= 0) echo "checked"; ?>>台南
</span>
</td>
<td>
<span class="t12">
<input type="checkbox" name="chkTaoyuan" id="chkTaoyuan" value="N:Taoyuan" <?php if(str_indexof($CArea,"N:Taoyuan") >= 0) echo "checked"; ?>>桃園
</span>
<br>
<span class="t12">
<input type="checkbox" name="chkKaohsiung" id="chkKaohsiung" value="S:Kaohsiung" <?php if(str_indexof($CArea,"S:Kaohsiung") >= 0) echo "checked"; ?>>高雄
</span>
</td>
<td>
<span class="t12">
<input type="checkbox" name="chkZhongli" id="chkZhongli" value="N:Zhongli" <?php if(str_indexof($CArea,"N:Zhongli") >= 0) echo "checked"; ?>>中壢
</span>
<br>
<span class="t12">
<input type="checkbox" name="chkHualien" id="chkHualien" value="E:Hualien" <?php if(str_indexof($CArea,"E:Hualien") >= 0) echo "checked"; ?>>花蓮
</span>
</td>
<td>
<span class="t12">
<input type="checkbox" name="chkHsinchu" id="chkHsinchu" value="M:Hsinchu" <?php if(str_indexof($CArea,"M:Hsinchu") >= 0) echo "checked"; ?>>新竹
</span>
<br>
&nbsp;
</td>
<td>
<span class="t12">
<input type="checkbox" name="chkTaichung" id="chkTaichung" value="M:Taichung" <?php if(str_indexof($CArea,"M:Taichung") >= 0) echo "checked"; ?>>台中
</span>
<br>
&nbsp;
</td>
<td>
<span class="t12">
<input type="checkbox" name="chkZhanghua" id="chkZhanghua" value="M:Zhanghua" <?php if(str_indexof($CArea,"M:Zhanghua") >= 0) echo "checked"; ?>>彰投
</span>
<br>
&nbsp;
</td>
</tr>
</table>
<?php
}
else
{
?>
<table border="0" cellspacing="5" cellspading="5">
<tr>
<td>
<span class="t12">
<input type="checkbox" name="chkTaipei" id="chkTaipei" value="N:Taipei" <?php if(str_indexof($CArea,"N:Taipei") >= 0) echo "checked"; ?> disabled="disabled">台北
</span>
<br>
<span class="t12">
<input type="checkbox" name="chkTainan" id="chkTainan" value="S:Tainan" <?php if(str_indexof($CArea,"S:Tainan") >= 0) echo "checked"; ?> disabled="disabled">台南
</span>
</td>
<td>
<span class="t12">
<input type="checkbox" name="chkTaoyuan" id="chkTaoyuan" value="N:Taoyuan" <?php if(str_indexof($CArea,"N:Taoyuan") >= 0) echo "checked"; ?> disabled="disabled">桃園
</span>
<br>
<span class="t12">
<input type="checkbox" name="chkKaohsiung" id="chkKaohsiung" value="S:Kaohsiung" <?php if(str_indexof($CArea,"S:Kaohsiung") >= 0) echo "checked"; ?> disabled="disabled">高雄
</span>
</td>
<td>
<span class="t12">
<input type="checkbox" name="chkZhongli" id="chkZhongli" value="N:Zhongli" <?php if(str_indexof($CArea,"N:Zhongli") >= 0) echo "checked"; ?> disabled="disabled">中壢
</span>
<br>
<span class="t12">
<input type="checkbox" name="chkHualien" id="chkHualien" value="E:Hualien" <?php if(str_indexof($CArea,"E:Hualien") >= 0) echo "checked"; ?> disabled="disabled">花蓮
</span>
</td>
<td>
<span class="t12">
<input type="checkbox" name="chkHsinchu" id="chkHsinchu" value="M:Hsinchu" <?php if(str_indexof($CArea,"M:Hsinchu") >= 0) echo "checked"; ?> disabled="disabled">新竹
</span>
<br>
&nbsp;
</td>
<td>
<span class="t12">
<input type="checkbox" name="chkTaichung" id="chkTaichung" value="M:Taichung" <?php if(str_indexof($CArea,"M:Taichung") >= 0) echo "checked"; ?> disabled="disabled">台中
</span>
<br>
&nbsp;
</td>
<td>
<span class="t12">
<input type="checkbox" name="chkZhanghua" id="chkZhanghua" value="M:Zhanghua" <?php if(str_indexof($CArea,"M:Zhanghua") >= 0) echo "checked"; ?> disabled="disabled">彰投
</span>
<br>
&nbsp;
</td>
</tr>
</table>
<?php
}
?>
</td>
</tr>
<tr>
<td align="left">
<span class="t12">來源</span>
</td>
<td align="left">
<?php
if(($_SESSION['rightLevel'] == "0") || ($_SESSION['rightLevel'] == "1") ||
  ($_SESSION['rightLevel'] == "2" && str_indexof($_SESSION['updateFields'],"CSource") >= 0))
{
?>
<input type="checkbox" name="chkSourceL" id="chkSourceL" value="L" <?php if(str_indexof($CSource,"L") >= 0) echo "checked";?>>
<span class="t12">Line</span>
<input type="checkbox" name="chkSourceW" id="chkSourceW" value="W" <?php if(str_indexof($CSource,"W") >= 0) echo "checked";?>>
<span class="t12">微信</span>
<input type="checkbox" name="chkSourceT" id="chkSourceT" value="T" <?php if(str_indexof($CSource,"T") >= 0) echo "checked";?>>
<span class="t12">電話</span>
<input type="checkbox" name="chkSourceG" id="chkSourceG" value="G" <?php if(str_indexof($CSource,"G") >= 0) echo "checked";?>>
<span class="t12">即時通</span>
<input type="checkbox" name="chkSourceS" id="chkSourceS" value="S" <?php if(str_indexof($CSource,"S") >= 0) echo "checked";?>>
<span class="t12">SKYPE</span>
<input type="checkbox" name="chkSourceO" id="chkSourceO" value="O" <?php if(str_indexof($CSource,"O") >= 0) echo "checked";?>>
<span class="t12">其他</span>
<?php
}
else
{
?>
<input type="checkbox" name="chkSourceL" id="chkSourceL" value="L" <?php if(str_indexof($CSource,"L") >= 0) echo "checked";?> disabled="disabled">
<span class="t12">Line</span>
<input type="checkbox" name="chkSourceW" id="chkSourceW" value="W" <?php if(str_indexof($CSource,"W") >= 0) echo "checked";?> disabled="disabled">
<span class="t12">微信</span>
<input type="checkbox" name="chkSourceT" id="chkSourceT" value="T" <?php if(str_indexof($CSource,"T") >= 0) echo "checked";?> disabled="disabled">
<span class="t12">電話</span>
<input type="checkbox" name="chkSourceG" id="chkSourceG" value="G" <?php if(str_indexof($CSource,"G") >= 0) echo "checked";?> disabled="disabled">
<span class="t12">即時通</span>
<input type="checkbox" name="chkSourceS" id="chkSourceS" value="S" <?php if(str_indexof($CSource,"S") >= 0) echo "checked";?> disabled="disabled">
<span class="t12">SKYPE</span>
<input type="checkbox" name="chkSourceO" id="chkSourceO" value="O" <?php if(str_indexof($CSource,"O") >= 0) echo "checked";?> disabled="disabled">
<span class="t12">其他</span>
<?php
}
?>
</td>
</tr>
<tr>
<td align="left">
<span class="t12">類別</span>
</td>
<td align="left">
<?php
if(($_SESSION['rightLevel'] == "0") || ($_SESSION['rightLevel'] == "1") ||
  ($_SESSION['rightLevel'] == "2" && str_indexof($_SESSION['updateFields'],"CSource") >= 0))
{
?>
<input  type="radio" name="radClass" id="radClass" value="A" <?php if($CClass == "A") echo "checked";?>>
<span class="t12">A</span>
<input  type="radio" name="radClass" id="radClass" value="B" <?php if($CClass == "B") echo "checked";?>>
<span class="t12">B</span>
<input  type="radio" name="radClass" id="radClass" value="C" <?php if($CClass == "C") echo "checked";?>>
<span class="t12">C</span>
<input  type="radio" name="radClass" id="radClass" value="D" <?php if($CClass == "D") echo "checked";?>>
<span class="t12">D</span>
<?php
}
else
{
?>
<input type="radio" name="radClass" id="radClass" value="A" <?php if(str_indexof($CClass,"A") >= 0) echo "checked";?> disabled="disabled">
<span class="t12">A</span>
<input type="radio" name="radClass" id="radClass" value="B" <?php if(str_indexof($CClass,"B") >= 0) echo "checked";?> disabled="disabled">
<span class="t12">B</span>
<input type="radio" name="radClass" id="radClass" value="C" <?php if(str_indexof($CClass,"C") >= 0) echo "checked";?> disabled="disabled">
<span class="t12">C</span>
<input type="radio" name="radClass" id="radClass" value="D" <?php if(str_indexof($CClass,"D") >= 0) echo "checked";?> disabled="disabled">
<span class="t12">D</span>
<?php
}
?>
</td>
</tr>
<tr>
<td align="left" width="15%">
<span class="t12">暱稱/其他</span>
</td>
<td align="left" width="85%">
<?php
if(($_SESSION['rightLevel'] == "0") || ($_SESSION['rightLevel'] == "1") ||
  ($_SESSION['rightLevel'] == "2" && str_indexof($_SESSION['updateFields'],"CNickname") >= 0))
{
?>
<input type="text" value="<?php echo $CNickname ?>" name="CNickname" id="CNickname" size="70" maxlength="70" style="font-size: 12.0pt;font-family: 微軟正黑體;"/>
<?php
}
else
{
?>
<input type="text" value="<?php echo $CNickname ?>" name="CNickname" id="CNickname" size="70" maxlength="70" style="font-size: 12.0pt;font-family: 微軟正黑體;" readonly/>
<?php
}
?>
</td>
</tr>
<tr>
<td align="left" width="15%">
<span class="t12">喜好/備註</span>
</td>
<td align="left" width="85%">
<?php
if(($_SESSION['rightLevel'] == "0") || ($_SESSION['rightLevel'] == "1") ||
  ($_SESSION['rightLevel'] == "2" && str_indexof($_SESSION['updateFields'],"CMemo") >= 0))
{
?>
<table border="0" cellspacing="2" cellspading="2">
<tr>
<td>
<input type="checkbox" name="chk01" id="chk01" value="01" <?php if(str_indexof($CMemo,"01") >= 0) echo "checked"; ?>><span class="t12r">高價</span>
</td>
<td>
<input type="checkbox" name="chk07" id="chk07" value="07" <?php if(str_indexof($CMemo,"07") >= 0) echo "checked"; ?>><span class="t12">年輕</span>
</td>
<td>
<input type="checkbox" name="chk13" id="chk13" value="13" <?php if(str_indexof($CMemo,"13") >= 0) echo "checked"; ?>><span class="t12">氣質</span>
</td>
<td>
<input type="checkbox" name="chk19" id="chk19" value="19" <?php if(str_indexof($CMemo,"19") >= 0) echo "checked"; ?>><span class="t12">無套BJ</span>
</td>
<td>
<input type="checkbox" name="chk25" id="chk25" value="25" <?php if(str_indexof($CMemo,"25") >= 0) echo "checked"; ?>><span class="t12">不抽菸</span>
</td>
<td>
<input type="checkbox" name="chk31" id="chk31" value="31" <?php if(str_indexof($CMemo,"31") >= 0) echo "checked"; ?>><span class="t12">漂亮</span>
</td>
<td>
<input type="checkbox" name="chk37" id="chk37" value="37" <?php if(str_indexof($CMemo,"37") >= 0) echo "checked"; ?>><span class="t12">大眼</span>
</td>
<td>
<input type="checkbox" name="chk43" id="chk43" value="43" <?php if(str_indexof($CMemo,"43") >= 0) echo "checked"; ?>><span class="t12g">奧客</span>
</td>
</tr>
<tr>
<td>
<input type="checkbox" name="chk02" id="chk02" value="02" <?php if(str_indexof($CMemo,"02") >= 0) echo "checked"; ?>><span class="t12r">好客</span>
</td>
<td>
<input type="checkbox" name="chk08" id="chk08" value="08" <?php if(str_indexof($CMemo,"08") >= 0) echo "checked"; ?>><span class="t12">臉蛋</span>
</td>
<td>
<input type="checkbox" name="chk14" id="chk14" value="14" <?php if(str_indexof($CMemo,"14") >= 0) echo "checked"; ?>><span class="t12">清純</span>
</td>
<td>
<input type="checkbox" name="chk20" id="chk20" value="20" <?php if(str_indexof($CMemo,"20") >= 0) echo "checked"; ?>><span class="t12">主動</span>
</td>
<td>
<input type="checkbox" name="chk26" id="chk26" value="26" <?php if(str_indexof($CMemo,"26") >= 0) echo "checked"; ?>><span class="t12">熟女</span>
</td>
<td>
<input type="checkbox" name="chk32" id="chk32" value="32" <?php if(str_indexof($CMemo,"32") >= 0) echo "checked"; ?>><span class="t12">要求高</span>
</td>
<td>
<input type="checkbox" name="chk38" id="chk38" value="38" <?php if(str_indexof($CMemo,"38") >= 0) echo "checked"; ?>><span class="t12">活潑</span>
</td>
<td>
<input type="checkbox" name="chk44" id="chk44" value="44" <?php if(str_indexof($CMemo,"44") >= 0) echo "checked"; ?>><span class="t12g">注意</span>
</td>
</tr>
<tr>
<td>
<input type="checkbox" name="chk03" id="chk03" value="03" <?php if(str_indexof($CMemo,"03") >= 0) echo "checked"; ?>><span class="t12r">常客</span>
</td>
<td>
<input type="checkbox" name="chk09" id="chk09" value="09" <?php if(str_indexof($CMemo,"09") >= 0) echo "checked"; ?>><span class="t12">學生</span>
</td>
<td>
<input type="checkbox" name="chk15" id="chk15" value="15" <?php if(str_indexof($CMemo,"15") >= 0) echo "checked"; ?>><span class="t12">可愛</span>
</td>
<td>
<input type="checkbox" name="chk21" id="chk21" value="21" <?php if(str_indexof($CMemo,"21") >= 0) echo "checked"; ?>><span class="t12g">不傳</span>
</td>
<td>
<input type="checkbox" name="chk27" id="chk27" value="27" <?php if(str_indexof($CMemo,"27") >= 0) echo "checked"; ?>><span class="t12">服務好</span>
</td>
<td>
<input type="checkbox" name="chk33" id="chk33" value="33" <?php if(str_indexof($CMemo,"33") >= 0) echo "checked"; ?>><span class="t12">注重身材</span>
</td>
<td>
<input type="checkbox" name="chk39" id="chk39" value="39" <?php if(str_indexof($CMemo,"39") >= 0) echo "checked"; ?>><span class="t12">兼職型</span>
</td>
<td>
<input type="checkbox" name="chk45" id="chk45" value="45" <?php if(str_indexof($CMemo,"45") >= 0) echo "checked"; ?>><span class="t12">帶朋友</span>
</td>
</tr>
<tr>
<td>
<input type="checkbox" name="chk04" id="chk04" value="04" <?php if(str_indexof($CMemo,"04") >= 0) echo "checked"; ?>><span class="t12r">固定</span>
</td>
<td>
<input type="checkbox" name="chk10" id="chk10" value="10" <?php if(str_indexof($CMemo,"10") >= 0) echo "checked"; ?>><span class="t12">高挑</span>
</td>
<td>
<input type="checkbox" name="chk16" id="chk16" value="16" <?php if(str_indexof($CMemo,"16") >= 0) echo "checked"; ?>><span class="t12">OL</span>
</td>
<td>
<input type="checkbox" name="chk22" id="chk22" value="22" <?php if(str_indexof($CMemo,"22") >= 0) echo "checked"; ?>><span class="t12">很挑</span>
</td>
<td>
<input type="checkbox" name="chk28" id="chk28" value="28" <?php if(str_indexof($CMemo,"28") >= 0) echo "checked"; ?>><span class="t12">膚白</span>
</td>
<td>
<input type="checkbox" name="chk34" id="chk34" value="34" <?php if(str_indexof($CMemo,"34") >= 0) echo "checked"; ?>><span class="t12">女友FU</span>
</td>
<td>
<input type="checkbox" name="chk40" id="chk40" value="40" <?php if(str_indexof($CMemo,"40") >= 0) echo "checked"; ?>><span class="t12">不要大陸</span>
</td>
<td>
<input type="checkbox" name="chk46" id="chk46" value="46" <?php if(str_indexof($CMemo,"46") >= 0) echo "checked"; ?>><span class="t12g">危險</span>
</td>
</tr>
<tr>
<td>
<input type="checkbox" name="chk05" id="chk05" value="05" <?php if(str_indexof($CMemo,"05") >= 0) echo "checked"; ?>><span class="t12r">新人</span>
</td>
<td>
<input type="checkbox" name="chk11" id="chk11" value="11" <?php if(str_indexof($CMemo,"11") >= 0) echo "checked"; ?>><span class="t12">骨感</span>
</td>
<td>
<input type="checkbox" name="chk17" id="chk17" value="17" <?php if(str_indexof($CMemo,"17") >= 0) echo "checked"; ?>><span class="t12">大奶</span>
</td>
<td>
<input type="checkbox" name="chk23" id="chk23" value="23" <?php if(str_indexof($CMemo,"23") >= 0) echo "checked"; ?>><span class="t12">無套做</span>
</td>
<td>
<input type="checkbox" name="chk29" id="chk29" value="29" <?php if(str_indexof($CMemo,"29") >= 0) echo "checked"; ?>><span class="t12">加節</span>
</td>
<td>
<input type="checkbox" name="chk35" id="chk35" value="35" <?php if(str_indexof($CMemo,"35") >= 0) echo "checked"; ?>><span class="t12">無刺青</span>
</td>
<td>
<input type="checkbox" name="chk41" id="chk41" value="41" <?php if(str_indexof($CMemo,"41") >= 0) echo "checked"; ?>><span class="t12">要大陸</span>
</td>
<td>
<input type="checkbox" name="chk47" id="chk47" value="47" <?php if(str_indexof($CMemo,"47") >= 0) echo "checked"; ?>><span class="t12g">問題</span>
</td>
</tr>
<tr>
<td>
<input type="checkbox" name="chk06" id="chk06" value="06" <?php if(str_indexof($CMemo,"06") >= 0) echo "checked"; ?>><span class="t12r">不挑</span>
</td>
<td>
<input type="checkbox" name="chk12" id="chk12" value="12" <?php if(str_indexof($CMemo,"12") >= 0) echo "checked"; ?>><span class="t12">美腿</span>
</td>
<td>
<input type="checkbox" name="chk18" id="chk18" value="18" <?php if(str_indexof($CMemo,"18") >= 0) echo "checked"; ?>><span class="t12">要</span>LG
</td>
<td>
<input type="checkbox" name="chk24" id="chk24" value="24" <?php if(str_indexof($CMemo,"24") >= 0) echo "checked"; ?>><span class="t12">絲襪</span>
</td>
<td>
<input type="checkbox" name="chk30" id="chk30" value="30" <?php if(str_indexof($CMemo,"30") >= 0) echo "checked"; ?>><span class="t12">嬌小</span>
</td>
<td>
<input type="checkbox" name="chk36" id="chk36" value="36" <?php if(str_indexof($CMemo,"36") >= 0) echo "checked"; ?>><span class="t12">長髮</span>
</td>
<td>
<input type="checkbox" name="chk42" id="chk42" value="42" <?php if(str_indexof($CMemo,"42") >= 0) echo "checked"; ?>><span class="t12">要外國人</span>
</td>
<td>
<input type="checkbox" name="chk48" id="chk48" value="48" <?php if(str_indexof($CMemo,"48") >= 0) echo "checked"; ?>><span class="t12">俄羅斯</span>
</td>
</tr>
<tr>
<td>
<input type="checkbox" name="chk49" id="chk49" value="49" <?php if(str_indexof($CMemo,"49") >= 0) echo "checked"; ?>><span class="t12">按摩</span>
</td>
<td>
<input type="checkbox" name="chk50" id="chk50" value="50" <?php if(str_indexof($CMemo,"50") >= 0) echo "checked"; ?>><span class="t12">半套</span>
</td>
<td>
<input type="checkbox" name="chk51" id="chk51" value="51" <?php if(str_indexof($CMemo,"51") >= 0) echo "checked"; ?>><span class="t12">全套</span>
</td>
<td>
<input type="checkbox" name="chk52" id="chk52" value="52" <?php if(str_indexof($CMemo,"52") >= 0) echo "checked"; ?>><span class="t12">工作室</span>
</td>
<td>
&nbsp;
</td>
<td>
&nbsp;
</td>
<td>
&nbsp;
</td>
<td>
&nbsp;
</td>
</tr>
</table>
<?php
}
else
{
?>
<table border="0" cellspacing="2" cellspading="2">
<tr>
<td>
<input type="checkbox" name="chk01" id="chk01" value="01" <?php if(str_indexof($CMemo,"01") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12r">高價</span>
</td>
<td>
<input type="checkbox" name="chk07" id="chk07" value="07" <?php if(str_indexof($CMemo,"07") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">年輕</span>
</td>
<td>
<input type="checkbox" name="chk13" id="chk13" value="13" <?php if(str_indexof($CMemo,"13") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">氣質</span>
</td>
<td>
<input type="checkbox" name="chk19" id="chk19" value="19" <?php if(str_indexof($CMemo,"19") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">無套BJ</span>
</td>
<td>
<input type="checkbox" name="chk25" id="chk25" value="25" <?php if(str_indexof($CMemo,"25") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">不抽菸</span>
</td>
<td>
<input type="checkbox" name="chk31" id="chk31" value="31" <?php if(str_indexof($CMemo,"31") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">漂亮</span>
</td>
<td>
<input type="checkbox" name="chk37" id="chk37" value="37" <?php if(str_indexof($CMemo,"37") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">大眼</span>
</td>
<td>
<input type="checkbox" name="chk43" id="chk43" value="43" <?php if(str_indexof($CMemo,"43") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12g">奧客</span>
</td>
</tr>
<tr>
<td>
<input type="checkbox" name="chk02" id="chk02" value="02" <?php if(str_indexof($CMemo,"02") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12r">好客</span>
</td>
<td>
<input type="checkbox" name="chk08" id="chk08" value="08" <?php if(str_indexof($CMemo,"08") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">臉蛋</span>
</td>
<td>
<input type="checkbox" name="chk14" id="chk14" value="14" <?php if(str_indexof($CMemo,"14") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">清純</span>
</td>
<td>
<input type="checkbox" name="chk20" id="chk20" value="20" <?php if(str_indexof($CMemo,"20") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">主動</span>
</td>
<td>
<input type="checkbox" name="chk26" id="chk26" value="26" <?php if(str_indexof($CMemo,"26") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">熟女</span>
</td>
<td>
<input type="checkbox" name="chk32" id="chk32" value="32" <?php if(str_indexof($CMemo,"32") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">要求高</span>
</td>
<td>
<input type="checkbox" name="chk38" id="chk38" value="38" <?php if(str_indexof($CMemo,"38") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">活潑</span>
</td>
<td>
<input type="checkbox" name="chk44" id="chk44" value="44" <?php if(str_indexof($CMemo,"44") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12g">注意</span>
</td>
</tr>
<tr>
<td>
<input type="checkbox" name="chk03" id="chk03" value="03" <?php if(str_indexof($CMemo,"03") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12r">常客</span>
</td>
<td>
<input type="checkbox" name="chk09" id="chk09" value="09" <?php if(str_indexof($CMemo,"09") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">學生</span>
</td>
<td>
<input type="checkbox" name="chk15" id="chk15" value="15" <?php if(str_indexof($CMemo,"15") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">可愛</span>
</td>
<td>
<input type="checkbox" name="chk21" id="chk21" value="21" <?php if(str_indexof($CMemo,"21") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12g">不傳</span>
</td>
<td>
<input type="checkbox" name="chk27" id="chk27" value="27" <?php if(str_indexof($CMemo,"27") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">服務好</span>
</td>
<td>
<input type="checkbox" name="chk33" id="chk33" value="33" <?php if(str_indexof($CMemo,"33") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">注重身材</span>
</td>
<td>
<input type="checkbox" name="chk39" id="chk39" value="39" <?php if(str_indexof($CMemo,"39") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">兼職型</span>
</td>
<td>
<input type="checkbox" name="chk45" id="chk45" value="45" <?php if(str_indexof($CMemo,"45") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12g">空號</span>
</td>
</tr>
<tr>
<td>
<input type="checkbox" name="chk04" id="chk04" value="04" <?php if(str_indexof($CMemo,"04") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12r">固定</span>
</td>
<td>
<input type="checkbox" name="chk10" id="chk10" value="10" <?php if(str_indexof($CMemo,"10") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">高挑</span>
</td>
<td>
<input type="checkbox" name="chk16" id="chk16" value="16" <?php if(str_indexof($CMemo,"16") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">OL</span>
</td>
<td>
<input type="checkbox" name="chk22" id="chk22" value="22" <?php if(str_indexof($CMemo,"22") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">很挑</span>
</td>
<td>
<input type="checkbox" name="chk28" id="chk28" value="28" <?php if(str_indexof($CMemo,"28") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">膚白</span>
</td>
<td>
<input type="checkbox" name="chk34" id="chk34" value="34" <?php if(str_indexof($CMemo,"34") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">女友FU</span>
</td>
<td>
<input type="checkbox" name="chk40" id="chk40" value="40" <?php if(str_indexof($CMemo,"40") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">不要大陸</span>
</td>
<td>
<input type="checkbox" name="chk46" id="chk46" value="46" <?php if(str_indexof($CMemo,"46") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12g">危險</span>
</td>
</tr>
<tr>
<td>
<input type="checkbox" name="chk05" id="chk05" value="05" <?php if(str_indexof($CMemo,"05") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12r">新人</span>
</td>
<td>
<input type="checkbox" name="chk11" id="chk11" value="11" <?php if(str_indexof($CMemo,"11") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">骨感</span>
</td>
<td>
<input type="checkbox" name="chk17" id="chk17" value="17" <?php if(str_indexof($CMemo,"17") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">大奶</span>
</td>
<td>
<input type="checkbox" name="chk23" id="chk23" value="23" <?php if(str_indexof($CMemo,"23") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">無套做</span>
</td>
<td>
<input type="checkbox" name="chk29" id="chk29" value="29" <?php if(str_indexof($CMemo,"29") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">加節</span>
</td>
<td>
<input type="checkbox" name="chk35" id="chk35" value="35" <?php if(str_indexof($CMemo,"35") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">無刺青</span>
</td>
<td>
<input type="checkbox" name="chk41" id="chk41" value="41" <?php if(str_indexof($CMemo,"41") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">要大陸</span>
</td>
<td>
<input type="checkbox" name="chk47" id="chk47" value="47" <?php if(str_indexof($CMemo,"47") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12g">問題</span>
</td>
</tr>
<tr>
<td>
<input type="checkbox" name="chk06" id="chk06" value="06" <?php if(str_indexof($CMemo,"06") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12r">不挑</span>
</td>
<td>
<input type="checkbox" name="chk12" id="chk12" value="12" <?php if(str_indexof($CMemo,"12") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">美腿</span>
</td>
<td>
<input type="checkbox" name="chk18" id="chk18" value="18" <?php if(str_indexof($CMemo,"18") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">要</span>LG
</td>
<td>
<input type="checkbox" name="chk24" id="chk24" value="24" <?php if(str_indexof($CMemo,"24") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">絲襪</span>
</td>
<td>
<input type="checkbox" name="chk30" id="chk30" value="30" <?php if(str_indexof($CMemo,"30") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">嬌小</span>
</td>
<td>
<input type="checkbox" name="chk36" id="chk36" value="36" <?php if(str_indexof($CMemo,"36") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">長髮</span>
</td>
<td>
<input type="checkbox" name="chk42" id="chk42" value="42" <?php if(str_indexof($CMemo,"42") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">要外國人</span>
</td>
<td>
<input type="checkbox" name="chk48" id="chk48" value="48" <?php if(str_indexof($CMemo,"48") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">俄羅斯</span>
</td>
</tr>
<tr>
<td>
<input type="checkbox" name="chk49" id="chk49" value="49" <?php if(str_indexof($CMemo,"49") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">按摩</span>
</td>
<td>
<input type="checkbox" name="chk50" id="chk50" value="50" <?php if(str_indexof($CMemo,"50") >= 0) echo "checked"; ?> disabled="disabled"><span class="t12">半套</span>
</td>
<td>
<input type="checkbox" name="chk51" id="chk51" value="51" <?php if(str_indexof($CMemo,"51") >= 0) echo "checked"; ?>><span class="t12">全套</span>
</td>
<td>
<input type="checkbox" name="chk52" id="chk52" value="52" <?php if(str_indexof($CMemo,"52") >= 0) echo "checked"; ?>><span class="t12">工作室</span>
</td>
<td>
&nbsp;
</td>
<td>
&nbsp;
</td>
<td>
&nbsp;
</td>
<td>
&nbsp;
</td>
</tr>
</table>
<?php
}
?>
</td>
</tr>
<tr>
<td align="left" width="15%">
<span class="t12">消費內容</span>
</td>
<td align="left">
<?php
if(($_SESSION['rightLevel'] == "0") || ($_SESSION['rightLevel'] == "1") ||
  ($_SESSION['rightLevel'] == "2" && str_indexof($_SESSION['updateFields'],"CMissContent") >= 0))
{
?>
<iframe src="MissContentOperation.php?tempCustomerId=<?php echo $id;?>" width="550" height="400" scrolling="yes" frameborder="0" marginwidth="0" marginheight="0"> 
</iframe> 
<?php
}
else
{
?>
<span class="t12"><?php echo $CMiss; ?></span>
<?php
}
?>
</td>
</tr>
<tr>
<td align="center" colspan="2">
<a href="javascript:CustomerForm.submit();">
<img src="images/Update1.jpg" ID="ImgLogIn" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('ImgLogIn','','images/Update2.jpg',1)">
</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>
