PageRenderTime 31ms CodeModel.GetById 21ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/template/default/home/spacecp_invite.htm

https://github.com/sichen/hrmmdiscuz
HTML | 255 lines | 197 code | 10 blank | 48 comment | 0 complexity | 266722f397bb5962d778d6fdb3dc4aa0 MD5 | raw file
  1<!--{template common/header}-->
  2<!--{if $_GET['op'] == 'resend'}-->
  3
  4<h3 class="flb">
  5	<em id="return_$_G[gp_handlekey]">{lang send_mail_again}</em>
  6	<!--{if $_G[inajax]}--><span><a href="javascript:;" onclick="hideWindow('$_G[gp_handlekey]');" class="flbc" title="{lang close}">{lang close}</a></span><!--{/if}-->
  7</h3>
  8<form id="resendform_{$id}" name="resendform_{$id}" method="post" autocomplete="off" action="home.php?mod=spacecp&ac=invite&op=resend&id=$id" {if $_G[inajax]}onsubmit="ajaxpost(this.id, 'return_$_G[gp_handlekey]');"{/if}>
  9	<input type="hidden" name="referer" value="{echo dreferer()}" />
 10	<input type="hidden" name="resendsubmit" value="true" />
 11	<!--{if $_G[inajax]}--><input type="hidden" name="handlekey" value="$_G[gp_handlekey]" /><!--{/if}-->
 12	<input type="hidden" name="formhash" value="{FORMHASH}" />
 13	<div class="c">{lang sure_resend}</div>
 14	<p class="o pns">
 15		<button type="submit" name="btnsubmit" value="true" class="pn pnc"><strong>{lang resend}</strong></button>
 16	</p>
 17</form>
 18<script type="text/javascript">
 19	function succeedhandle_$_G[gp_handlekey](url, msg, values) {
 20		if(typeof resend_mail == 'function' && parseInt(values['id'])) {
 21			resend_mail(values['id']);
 22		}
 23	}
 24</script>
 25<!--{elseif $_GET['op'] == 'delete'}-->
 26<h3 class="flb">
 27	<em id="return_$_G[gp_handlekey]">{lang delete_log}</em>
 28	<!--{if $_G[inajax]}--><span><a href="javascript:;" onclick="hideWindow('$_G[gp_handlekey]');" class="flbc" title="{lang close}">{lang close}</a></span><!--{/if}-->
 29</h3>
 30<form id="deleteform_{$id}" name="deleteform_{$id}" method="post" autocomplete="off" action="home.php?mod=spacecp&ac=invite&op=delete&id=$id" {if $_G[inajax]}onsubmit="ajaxpost(this.id, 'return_$_G[gp_handlekey]');"{/if}>
 31	<input type="hidden" name="referer" value="{echo dreferer()}" />
 32	<input type="hidden" name="deletesubmit" value="true" />
 33	<!--{if $_G[inajax]}--><input type="hidden" name="handlekey" value="$_G[gp_handlekey]" /><!--{/if}-->
 34	<input type="hidden" name="formhash" value="{FORMHASH}" />
 35	<div class="c">{lang delete_log_message}</div>
 36	<p class="o pns">
 37		<button type="submit" name="btnsubmit" value="true" class="pn pnc"><strong>{lang delete}</strong></button>
 38	</p>
 39</form>
 40<script type="text/javascript">
 41	function succeedhandle_$_G[gp_handlekey](url, msg, values) {
 42		if(typeof resend_mail == 'function' && parseInt(values['id'])) {
 43			resend_mail(values['id']);
 44		}
 45	}
 46</script>
 47<!--{elseif $_GET['op'] == 'showinvite'}-->
 48	<!--{loop $list $key $url}-->
 49	<tr>
 50		<td class="bbda"><a href="$url" onclick="setCopy('$url', '{lang copy_invite_link}');return false;">$url</a> &nbsp;<a href="$url" onclick="setCopy('$url', '{lang copy_invite_link}');return false;" class="xi2">[{lang copy}]</a></td>
 51		<td class="bbda"><a href="javascript:;" onclick="setCopy('$key', '{lang copy_invite_code}');return false;">$key</a> &nbsp;<a href="javascript:;" onclick="setCopy('$key', '{lang copy_invite_code}');return false;" class="xi2">[{lang copy}]</a></td>
 52	</tr>
 53	<!--{/loop}-->
 54<!--{else}-->
 55
 56
 57<div id="pt" class="bm cl">
 58	<!--{subtemplate common/simplesearchform}-->
 59	<div class="z">
 60		<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em>
 61		<a href="home.php?mod=space&do=friend">{lang friends}</a> <em>&rsaquo;</em>
 62		{lang invite_friend}
 63	</div>
 64</div>
 65
 66<div id="ct" class="ct2_a wp cl">
 67	<div class="mn">
 68		<div class="bm bw0">
 69			<h1 class="mt"><img alt="friend" src="{STATICURL}image/feed/friend.gif" class="vm" /> {lang invite_friend}</h1>
 70
 71			<!--{if $allowinvite}-->
 72			<form method="post" id="newinvite" autocomplete="off" action="home.php?mod=spacecp&ac=invite&appid=$appid&ref" onsubmit="ajaxpost(this.id, 'return_newinvite');doane(event);">
 73				<!--{if $config[inviteaddcredit] || $config[invitedaddcredit]}-->
 74				<p class="tbmu">
 75					{lang friend_invite_success}
 76					<!--{if $config[invitedaddcredit]}-->{lang you_get} <strong class="xi1">$config[invitedaddcredit]</strong> {lang unit}{$credittitle},<!--{/if}-->
 77					<!--{if $config[inviteaddcredit]}-->{lang friend_get} <strong class="xi1">$config[inviteaddcredit]</strong> {lang unit}{$credittitle},<!--{/if}-->
 78					{lang go_nuts}
 79				</p>
 80				<!--{/if}-->
 81				<!--{if $flist}-->
 82					<div class="tbmu">
 83					<h2 class="mbm">{lang invited_friend}</h2>
 84					<!--{if $invitedcount < 24}-->
 85					<ul class="ml mls cl">
 86						<!--{loop $flist $key $value}-->
 87						<li>
 88							<div class="avt"><a href="home.php?mod=space&uid=$value[fuid]" c="1"><!--{avatar($value[fuid],small)}--></a></div>
 89							<p><a href="home.php?mod=space&uid=$value[fuid]" title="$value[fusername]">$value[fusername]</a></p>
 90						</li>
 91						<!--{/loop}-->
 92					</ul>
 93					<!--{else}-->
 94					<p>
 95					<!--{eval $mod='';}-->
 96					<!--{loop $flist $key $value}-->
 97					$mod<a href="home.php?mod=space&uid=$value[fuid]" title="$value[fusername]">$value[fusername]</a>
 98					<!--{eval $mod=', ';}-->
 99					<!--{/loop}-->
100					</p>
101					<!--{/if}-->
102					</div>
103				<!--{/if}-->
104
105				<!--{if $maillist}-->
106					<div class="tbmu">
107						<h2 class="mbm">{lang no_invite_friend_email}</h2>
108						<ul class="xl xl1">
109							<!--{loop $maillist $key $value}-->
110							<li id="sendmail_$value[id]_li">
111								<em>
112									<a href="home.php?mod=spacecp&ac=invite&op=resend&id=$value[id]&handlekey=resendinvitehk_{$value[id]}" id="mail_invite_$value[id]" onclick="showWindow(this.id, this.href, 'get', 0);" title="{lang resend}">{lang resend}</a>
113									<a href="javascript:;" title="{lang link}" onclick="setCopy('$value[url]', '{lang copy_invite_link}');return false;">{lang link}</a>
114									<a href="home.php?mod=spacecp&ac=invite&op=delete&id=$value[id]&handlekey=deleteinvitehk_{$value[id]}" id="del_invite_$value[id]" onclick="showWindow(this.id, this.href, 'get', 0);" title="{lang delete}">{lang delete}</a>
115								</em>
116								$value[email]
117							</li>
118							<!--{/loop}-->
119						</ul>
120					</div>
121				<!--{/if}-->
122				<table cellspacing="0" cellpadding="0" width="100%" class="tfm mbm">
123					<caption class="cl">
124					<!--{if $appid}-->
125						<div class="avt z" style="margin-right: 5px;"><img src="http://appicon.manyou.com/logos/{$appid}" alt="{$appinfo[appname]}" /></div>
126						<h2 class="wx">{lang friend_invite_play}$appinfo[appname]</h2>
127					<!--{else}-->
128						<h2 class="wx">{lang friend_invite_link}</h2>
129					<!--{/if}-->
130						<p class="mtn mbn">{lang friend_invite_message}</p>
131						<!--{if $creditnum && $list}--><p>{lang click_link_copy}</p><!--{/if}-->
132					</caption>
133							<tr>
134								<td class="bbda"><strong>{lang invite_link}</strong></td>
135								<td class="bbda"><strong>{lang invite_code}</strong></td>
136							</tr>
137							<tbody id="invitelist">
138								<!--{if $list}-->
139									<!--{loop $list $key $url}-->
140									<tr>
141										<td class="bbda"><a href="$url" onclick="setCopy('$url', '{lang copy_invite_link}');return false;">$url</a> &nbsp;<a href="$url" onclick="setCopy('$url', '{lang copy_invite_link}');return false;" class="xi2">[{lang copy}]</a></td>
142										<td class="bbda"><a href="javascript:;" onclick="setCopy('$key', '{lang copy_invite_code}');return false;">$key</a> &nbsp;<a href="javascript:;" onclick="setCopy('$key', '{lang copy_invite_code}');return false;" class="xi2">[{lang copy}]</a></td>
143									</tr>
144									<!--{/loop}-->
145								<!--{else}-->
146									<tr>
147										<td colspan="2" class="emp">{lang no_invitation_code}</td>
148									</tr>
149								<!--{/if}-->
150							</tbody>
151					
152						<tr>
153							<td colspan="2">
154								<p class="mtm">{lang invitation_code_spend}{$extcredits[title]} <strong class="xi1">$creditnum</strong> $extcredits[unit] ( {lang you_have}$extcredits[title] <strong id="haveallcredit">{$space[$creditkey]}</strong> $extcredits[unit] )<!--{if $space[$creditkey] < $creditnum}--><span><a href="home.php?mod=spacecp&ac=credit" target="_blank" class="xi2">{lang credit_recharge}</a></span><!--{/if}--></p>
155								<!--{if $_G['group']['maxinviteday']}-->
156								<p class="d">{lang max_invite_day_message}</p>
157								<!--{/if}-->
158								<input type="text" name="invitenum" value="1" size="10" class="px vm" style="width: auto;" />
159								<button type="submit" name="invitesubmit_btn" value="true" class="pn vm"><em>{lang get_invitation_code}</em></button>
160								<span id="return_newinvite" style="display:none;"></span>
161								<script type="text/javascript">
162									function succeedhandle_newinvite(url, message, values) {
163										if(values['deduction']) {
164											var allCreditObj = $('haveallcredit');
165											allCreditObj.innerHTML = parseInt(allCreditObj.innerHTML) - parseInt(values['deduction']);
166											var x = new Ajax();
167											x.get('home.php?mod=spacecp&ac=invite&op=showinvite&inajax=1', function(s){
168												ajaxinnerhtml($('invitelist'), s);
169					   						});
170											showCreditPrompt();
171										}
172									}
173								</script>
174							</td>
175						</tr>
176					<!--{if !$creditnum}-->
177						<tr>
178							<td>
179								{lang copy_invite_manage}: <a onclick="setCopy('$inviteurl', '{lang copy_invite_link}');return false;" href="$inviteurl" class="xw1">$inviteurl</a> &nbsp;<a onclick="setCopy('$inviteurl', '{lang copy_invite_link}');return false;" href="$inviteurl" class="xw1 xi2">[{lang copy}]</a>
180							</td>
181						</tr>
182					<!--{/if}-->
183				</table>
184				<input type="hidden" name="handlekey" value="newinvite" />
185				<input type="hidden" name="invitesubmit" value="true" />
186				<input type="hidden" name="formhash" value="{FORMHASH}" />
187			</form>
188			<!--{if $_G['group']['allowmailinvite']}-->
189			<form method="post" autocomplete="off" action="home.php?mod=spacecp&ac=invite&type=mail&appid=$appid&ref">
190				<input type="hidden" name="formhash" value="{FORMHASH}" />
191				<h2 class="xs2">{lang send_invitation_email}<!--{if $appid}-->{lang friend_play_together}$appinfo[appname]<!--{/if}--></h2>
192				<div class="mtn bm bmn">
193					<script type="text/javascript" src="http://widgets.manyou.com/misc/scripts/ab.js" charset="utf-8"></script>
194					<table cellspacing="0" cellpadding="0" class="tfm mbm">
195						<caption>
196							<p>{lang send_invitation_email_message}</p>
197						</caption>
198						<tr>
199							<td>
200								<p class="d">
201									<a class="mbn y" href="#" onclick="MYABC.showChooser('email', '{$uri}api/manyou/getmaillist.htm', null, false, false, null); return false"><img src="http://widgets.manyou.com/misc/images/ab/ab_button.gif" alt="{lang add_from_address_book}" /></a>
202									{lang friend_email_address}
203								</p>
204								<textarea name="email" id="email" rows="3" class="pt" style="width:99%;"></textarea>
205							</td>
206						</tr>
207						<tr>
208							<td>
209								<p class="d">{lang friend_to_say}</p>
210								<input type="text" name="saymsg" id="saymsg" onkeyup="showPreview(this.value, 'sayPreview')" class="px" style="width:99%;">
211							</td>
212						</tr>
213						<tr>
214							<td><button type="submit" name="emailinvite" value="true" class="pn pnc"><strong>{lang invite}</strong></button></td>
215						</tr>
216					</table>
217				</div>
218				<h2 class="mtw xs2">{lang preview_invitation}</h2>
219				<div class="mtn bm bmn">
220					<table cellspacing="0" cellpadding="0" width="100%" class="tfm" style="table-layout: fixed;">
221						<tr>
222							<td valign="top" width="140"><div class="avt avtm">{$mailvar[avatar]}</div></td>
223							<td valign="top">
224							<!--{if $appid}-->
225								<h4>{lang i_play_invite_you}</h4>
226							<!--{else}-->
227								<h4>{lang hi_iam_invite_you}</h4>
228								<p class="mtm">{lang become_friend_message}<p>
229							<!--{/if}-->
230								<p class="mtm">{lang invite_add_note}:</p>
231								<p id="sayPreview" class="exfm" style="width: 420px;"></p>
232								<h4 class="mtm">{lang click_link_become_friend}<!--{if $appid}-->{lang play_together}$appinfo[appname]<!--{/if}-->:</h4>
233								<p>{$inviteurl}</p>
234								<h4 class="mtm">{lang have_account_view_homepage}</h4>
235								<p>{$mailvar[siteurl]}home.php?mod=space&uid=$mailvar[uid]</p>
236							</td>
237						</tr>
238					</table>
239				</div>
240			</form>
241			<!--{/if}-->
242
243<!--{else}-->
244			<div class="emp">{lang no_right_invite_friend}</div>
245<!--{/if}-->
246		</div>
247	</div>
248
249	<div class="appl">
250		<!--{subtemplate home/space_friend_nav}-->
251	</div>
252</div>
253
254<!--{/if}-->
255<!--{template common/footer}-->