Location: PHPKode > projects > Uchome and Discuz > template/default/magic_visit.htm
<!--{template header}-->

<!--{if $op == 'use'}-->

	<!--{if !$frombuy}-->
	<h1>The use of props</h1>
	<a class="float_del" title="Close" href="javascript:hideMenu();">Close</a>
	<!--{/if}-->
	<div class="toolly" id="__magicuse_form_$mid">
		<form method="post" id="magicuse_form_$mid" action="magic.php?mid=$mid&idtype=$idtype&id=$id">
			<div class="magic_img">
				<img src="image/magic/{$mid}.gif" alt="$magic[name]" />
			</div>
			<div class="magic_info">
				<h3>$magic[name]</h3>
				<p class="gray">$magic[description]</p>
				<p>Remaining Props: $usermagic[count]</p>
				<div>
					<h4>Visiting Mode</h4>
					<input id="way_visit" type="radio" name="visitway" value="visit" checked onclick="$('visitmsgs').style.display='none';$('visitpokes').style.display='none';" />
					<label for="way_visit">Space Visiting</label>
					<input id="way_poke" type="radio" name="visitway" value="poke" onclick="$('visitmsgs').style.display='none';$('visitpokes').style.display='';" />
					<label for="way_poke">Poke</label>
					<input id="way_comment" type="radio" name="visitway" value="comment" onclick="$('visitmsgs').style.display='';$('visitpokes').style.display='none';" />
					<label for="way_comment">Space Comment</label>
					<ul id="visitmsgs" style="display:none;">
						<li>Please secect one comment type</li>
						<li>
							<input id="visitmsg_1" type="radio" name="visitmsg" value="Poke" checked>
							<label for="visitmsg_1">Poke</label>
						</li>
						<li>
							<input id="visitmsg_2" type="radio" name="visitmsg" value="Miss you">
							<label for="visitmsg_2">Miss you</label>
						</li>
						<li>
							<input id="visitmsg_3" type="radio" name="visitmsg" value="want your attention">
							<label for="visitmsg_3">want your attention</label>
						</li>
						<li>
							<input id="visitmsg_4" type="radio" name="visitmsg" value="I am back">
							<label for="visitmsg_4">I am back</label>
						</li>
						<li>
							<input id="visitmsg_5" type="radio" name="visitmsg" value="Your space rock">
							<label for="visitmsg_5">Your Space rock</label>
						</li>
						<li>
							<input id="visitmsg_6" type="radio" name="visitmsg" value="whasup, how are you!">
							<label for="visitmsg_6">whasup, how are you!</label>
						</li>
					</ul>
					<!--{eval
					$icons = array(
						1 => '<img src="image/poke/cyx.gif" /> Poke',
						2 => '<img src="image/poke/wgs.gif" /> Hand Shake',
						3 => '<img src="image/poke/wx.gif" /> Smile',
						4 => '<img src="image/poke/jy.gif" /> Come on',
						5 => '<img src="image/poke/pmy.gif" /> Flirt',
						6 => '<img src="image/poke/yb.gif" /> Hug',
						7 => '<img src="image/poke/fw.gif" /> Kiss',
						8 => '<img src="image/poke/nyy.gif" /> Tickle',
						9 => '<img src="image/poke/gyq.gif" /> Punch',
						10 => '<img src="image/poke/dyx.gif" /> E-Shock',
						11 => '<img src="image/poke/yw.gif" /> Attach',
						12 => '<img src="image/poke/ppjb.gif" /> Touch',
						13 => '<img src="image/poke/yyk.gif" /> Bite'
					);
					}-->
					<table id="visitpokes" style="width:100%; display:none;">
					<thead>
					<td colspan="2">Select one expression</td>
					</thead>
					<tbody>
					<tr>
					<!--{loop $icons $key $value}-->
					<td>
					<input id="visitpoke_$key" type="radio" name="visitpoke" value="$key"<!--{if $key==1}--> checked<!--{/if}-->>
					<label for="visitpoke_$key">$value</label>
					</td>
					<!--{if $key % 2 == 0}--></tr><tr><!--{/if}-->
					<!--{/loop}-->
					</tr>
					</tbody>
					</table>
				</div>
				<p class="btn_line">
					<input type="hidden" name="formhash" value="<!--{eval echo formhash()}-->" />
					<input type="hidden" name="refer" value="$_SGLOBAL[refer]"/>
					<input type="hidden" name="usesubmit" value="1" />
					<input type="button" value="Submit" class="submit" onclick="ajaxpost('magicuse_form_$mid')" />
				</p>
			</div>
		</form>
	</div>

<!--{elseif $op == 'show'}-->
	<div style="width:400px;">
		<p>
			<!--{if $_POST['visitway'] == "poke"}-->ÒѸøÕâЩºÃÓÑ´òÕкô
			<!--{elseif $_POST['visitway'] == 'comment'}-->ÒÑÔÚÕâЩºÃÓÑ¿Õ¼äÁôÑÔ
			<!--{else}-->ÒÑ·ÃÎÊÕâЩºÃÓÑ¿Õ¼ä<!--{/if}-->
		</p>
		<ul class="avatar_list">
			<!--{loop $users $value}-->
			<li>
				<div class="avatar48"><a href="space.php?uid=$value[uid]"><!--{avatar($value[uid],small)}--></a></div>
				<p><a href="space.php?uid=$value[uid]" title="{$_SN[$value[uid]]}">{$_SN[$value[uid]]}</a></p>
			</li>
			<!--{/loop}-->
		</ul>
	</div>
<!--{/if}-->

<!--{template footer}-->
Return current item: Uchome and Discuz