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

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

	<!--{if !$frombuy}-->
	<h1>Use 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>Select Style</h4>
					<ul>
						<li style="float:left; width:60px; text-align:center; margin:4px; cursor:pointer;" onclick="$('blog_article').className = 'article magicpaper1';$('paper1').click();">
							<div for="paper1"><img src="image/magic/paper/1.preview.gif" alt="" /></div>
							
							<input id="paper1" type="radio" name="paper" value="1" checked />
							Select
						</li>
						<li style="float:left; width:60px; text-align:center; margin:4px; cursor:pointer;" onclick="$('blog_article').className = 'article magicpaper2';$('paper2').click();">
							<div for="paper2"><img src="image/magic/paper/2.preview.gif" alt="" /></div>
							
							<input id="paper2" type="radio" name="paper" value="2" />
							Select
						</li>
						<li style="float:left; width:60px; text-align:center; margin:4px; cursor:pointer;" onclick="$('blog_article').className = 'article magicpaper3';$('paper3').click();">
							<div for="paper3"><img src="image/magic/paper/3.preview.gif" alt="" /></div>
							
							<input id="paper3" type="radio" name="paper" value="3" />
							Select
						</li>
						<li style="float:left; width:60px; text-align:center; margin:4px; cursor:pointer;" onclick="$('blog_article').className = 'article magicpaper4';$('paper4').click();">
							<div for="paper4"><img src="image/magic/paper/4.preview.gif" alt="" /></div>
							
							<input id="paper4" type="radio" name="paper" value="4" />
							Select
						</li>
						<li style="float:left; width:60px; text-align:center; margin:4px; cursor:pointer;" onclick="$('blog_article').className = 'article magicpaper5';$('paper5').click();">
							<div for="paper5"><img src="image/magic/paper/5.preview.gif" alt="" /></div>
							
							<input id="paper5" type="radio" name="paper" value="5" />
							Select
						</li>
						<li style="float:left; width:60px; text-align:center; margin:4px; cursor:pointer;" onclick="$('blog_article').className = 'article magicpaper6';$('paper6').click();">
							<div for="paper6"><img src="image/magic/paper/6.preview.gif" alt="" /></div>
							
							<input id="paper6" type="radio" name="paper" value="6" />
							Select
						</li>
						<li style="float:left; width:60px; text-align:center; margin:4px; cursor:pointer;" onclick="$('blog_article').className = 'article magicpaper7';$('paper7').click();">
							<div for="paper7"><img src="image/magic/paper/7.preview.gif" alt="" /></div>
							
							<input id="paper7" type="radio" name="paper" value="7" />
							Select
						</li>
						<li style="float:left; width:60px; text-align:center; margin:4px; cursor:pointer;" onclick="$('blog_article').className = 'article magicpaper8';$('paper8').click();" >
							<div for="paper8"><img src="image/magic/paper/8.preview.gif" alt=""/></div>
							<input id="paper8" type="radio" name="paper" value="8" />
							Select
						</li>
					</ul>
					<br style="clear:both;" />
				</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="submit" name="usesubmit_btn" value="Use" class="submit" />
				</p>
			</div>
		</form>
	</div>

<!--{/if}-->

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