<!--<?php
require_once(uTemplate::printEot('header'));
print<<<EOT
-->
<div class="sideAll">
<!--
EOT;
if ($winduid == $space['uid']) {
if (!Char_cv($_COOKIE['modelguidehide'])) {
	Cookie('modelguidehide','',0,false);
}
if (!$_COOKIE['modelguidehide']) {print <<<EOT
--> 
        <div class="spaceTip mb10 cc" id="modelguide">
					<a href="javascript:;" class="adel" onclick="closeGuide();">關閉</a><a href="javascript:void(0);" class="mr10 fr" onclick="closeGuide(1);">知道了</a><span class="mr10">鼠標移至每個標題欄處，當鼠標出現十字箭頭時即可拖動</span>
       </div>
<script type="text/javascript">
	function closeGuide(ck) {
	if (ck == 1) {
		var date = new Date();
		date.setTime(date.getTime()+86400000000);
		document.cookie = "modelguidehide=1;expires=" + date.toGMTString() + " ;path=/";
	}
	getObj('modelguide').style.display = 'none';
}
	
</script>
<!--
EOT;
}print <<<EOT
-->
		 <div class="spaceTip mb10 cc" style="display:none" id="modelupdate"><span class="fr"><span class="btn2"><span><button onClick="drag.save()">保存布局</button></span></span><span class="bt2"><span><button onClick="drag.reset()">取消</button></span></span></span><span class="mr20">你當前可以移動模塊位置，需要保存才能生效。（隱藏和添加模塊請到<a href="u.php?a=set&tab=model">模塊設置</a>中管理）</span></div>
<!--
EOT;
}print <<<EOT
-->	
<script>
var db_urlcheck = "$db_urlcheck";
var db_bbsurl = '$db_bbsurl';
</script>
<script type="text/javascript" src="js/pw_lwd.js"></script>
		<div class="sideA">
<!--
EOT;
require_once(uTemplate::printEot('space_model'));
if ($data[0]) {
	foreach ($data[0] as $key => $value) {
		$spacetemplate->$key($value);
	}
}print <<<EOT
-->
		</div>
		<div class="sideB side_750">
<!--
EOT;
if (!$indexRight) {print <<<EOT
-->
			<div class="boxA">
				<table width="100%">
					<tr><td height="400">
<!--
EOT;
	if ($indexValue =='1') {print <<<EOT
-->
						<div class="space_msg"><img src="u/images/space/report.png" align="absmiddle" />由于對方的隱私設置，容許好友可見！立即 <a href="$db_bbsurl/pw_ajax.php?action=addfriend&touid={$space['uid']}" onclick="return ajaxurl(this);">加為好友</a></div>
<!--
EOT;
	} else {print <<<EOT
-->
						<div class="space_msg"><img src="u/images/space/report.png" align="absmiddle" />對方設置了隱私，您沒有權限查看</div>
<!--
EOT;
	}
print <<<EOT
-->
					</td></tr>
				</table>
			</div>
<!--
EOT;
} else {
	if ($data[1]) {
		foreach ($data[1] as $key => $value) {
			$spacetemplate->$key($value);
		}
	}
}print <<<EOT
-->
		</div>
<!--
EOT;
if ($winduid == $space['uid']) {print<<<EOT
-->
<script type="text/javascript" src="js/spacedrag.js"></script>
<script type="text/javascript">
window.onload = function() {
	drag.init('boxA',['sideA','sideB'],'h2');
}
</script>
<!--
EOT;
}print <<<EOT
-->	
</div>
<!--
EOT;
require_once(uTemplate::printEot('footer'));
?>-->