Source

myswap / 1 / code / App / Tpl / default / Public / swap.html

<html>
<head>
<include file="Public:css" />
  <title>myswap</title>

</head>
<body>
<include file="Public:header" />


<div class="container">
<div class="container box">
	<input type="text" style="width: 100%;line-height: 25px;font-weight: bold;"value="http://myswap.sinaapp.com/{$settings.username}" onmouseover="this.focus()" onfocus="this.select()" autocomplete="off" readonly="" />
</div>
<if condition="$friends[0] ">
<h2>Friends</h2>
<hr />
<div class="container box">

<foreach name="friends" item="friend" >
	<div class="span-3"><a class="button" href="/{$friend}">{$friend}</a></div> 
</foreach>
</div>
</if>
<if condition="$friends[0] ">
<h2>Aliases</h2>
<hr />
<div class="container box">
<foreach name="aliases" item="alias" >
	<div class="span-3"><a class="button" href="/{$settings.username}/{$alias}">{$alias}</a></div> 
</foreach>
</div>
</if>

<div class="span-24">
<form action="/{$settings.username}/addSwap" class="new_note" method="post">
<fieldset>
<legend class="alt">myswap</legend> 
    <textarea class=" span-24" onmouseover="this.focus()"   cols="50" rows="20"  id="note_body" name="content" >{$SWAPS[0].content|htmlspecialchars=###}</textarea>
    <div class="span-8 colborder "><span >password</span></div>
    <div class="span-8 colborder "><span >alias</span></div>
    <div class="span-8 colborder"><input  type="password"   name="password"   /></div>
    <div class="span-8 colborder"><input  type="text"   name="alias"   /></div>

    <div class="span-8 colborder">
      <button type="submit" class="btn primary">add</button>
    </div>


</fieldset>
</form>

<foreach name="SWAPS" item="SWAP " >
	<fieldset>
		<legend>
			<h2>
			<if condition="$SWAP.alias neq '' ">
				<a class=" " href="/{$settings.username}/{$SWAP.alias}">
					{$SWAP.alias}
				</a>
			<else/>
				<a class=" " href="/{$settings.username}/{$SWAP.swap_id}">
					{$SWAP.swap_id}
				</a>
			</if>
			</h2>
		</legend>
	<pre class="">{$SWAP.content|htmlspecialchars=###}</pre>
	</fieldset>
</foreach>
</div>


</div>
<include file="Public:footer" />

</body>
</html>