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

/source/plugin/renren/template/rr_login.htm

https://bitbucket.org/renren_platform/renren-api-discuz-sdk/
HTML | 157 lines | 136 code | 3 blank | 18 comment | 0 complexity | aaec145b469ab03363f2013d7bcedda6 MD5 | raw file
  1<!--{template common/header}-->
  2<script language="javascript" type="text/javascript">
  3	if(document.URL=="{$_G['siteurl']}plugin.php?id=renren:connect") {
  4		window.location.href='index.php';
  5	}
  6</script>
  7<!--{if !$divuser && (($isbind['bing']==1 && $isbind['tag']!=2) || !$_G['renren'])}-->
  8	<script language="javascript" type="text/javascript">
  9		window.location.href=document.URL;
 10	</script>
 11<!--{else}-->
 12	<!--{if $divuser}-->
 13	<script type="text/javascript">
 14		function rr_chglogin(){
 15			hideWindow('login');
 16			hideWindow('register');
 17			XN.Connect.requireSession(function(){
 18			setTimeout("showWindow('renren','plugin.php?id=renren:connect&chglogin=1')",500);
 19			});
 20		}
 21		function rr_chglogout(){
 22			hideWindow('renren', 0, 1);
 23			XN.Connect.logout(function(){rr_login();});
 24		}
 25	</script>
 26	<div class="blr">
 27		<h3 class="flb" style="background:no-repeat #055bae;">
 28			<em id="returnmessage_LR573"></em>
 29			<span><a title="{lang renren:close}" onclick="hideWindow('renren', 0, 1);" class="flbc" href="javascript:;">{lang renren:close}</a></span>
 30		</h3>
 31		<div style="margin: 10px 128px;">
 32			<form method="post" action="plugin.php?id=renren:connect" >
 33				<input type="hidden" name="formhash" value="{FORMHASH}" />
 34				<p>{lang renren:log_tip3}</p>
 35				<div style="margin-top:10px;margin-bottom:10px;border-bottom:#999 1px dashed;">
 36				<p>{lang renren:log_nowrrname}:<strong>$user_info->rrname</strong></p>
 37				<!--{if $isbind['bing']}-->
 38				<p>{lang renren:log_nowusername}:<strong>$isbind['username']</strong></p>
 39				<!--{else}-->
 40				[{lang renren:log_unbind}]
 41				<!--{/if}-->
 42				</div>
 43				<div style="text-align:center;margin-bottom:10px;">
 44				<p>{lang renren:log_tip4}</p>
 45				<p>{lang renren:log_tip5}</p>
 46				</div>
 47				<div style="text-align:center;margin-bottom:10px;">
 48					<button class="pn pnc" type="button" name="rrchange" value="true" onclick="rr_chglogin();"><span>{lang renren:rr_change}</span></button>&nbsp;&nbsp;
 49					<button class="pn pnc" type="button" name="rrchglogout" value="true" onclick="rr_chglogout();"><span>{lang renren:rr_chglogout}</span></button>
 50				</div>
 51			</form>
 52		</div>
 53	</div>
 54	<!--{else}-->
 55	<script type="text/javascript">
 56		function setTab(m,n,obj){
 57		    obj.checked='checked';
 58			var menu=document.getElementById("tab"+m).getElementsByTagName("input");
 59			var div=document.getElementById("tablist"+m).getElementsByTagName("div");
 60			var showdiv=[];
 61			for (i=0; j=div[i]; i++) {
 62				if ((" "+div[i].className+" ").indexOf(" tablist ")!=-1) {
 63					showdiv.push(div[i]);
 64				}
 65			}
 66			for(i=0;i<menu.length;i++) {
 67				showdiv[i].style.display=i==n?"block":"none";
 68			}
 69		}
 70	</script>
 71	<div class="blr">
 72		<h3 class="flb" style="background: no-repeat #055bae;">
 73
 74			<em id="returnmessage_LR573"></em>
 75			<span><a title="{lang renren:close}" onclick="hideWindow('renren', 0, 1);" class="flbc" href="javascript:;">{lang renren:close}</a></span>
 76			<p style="color:#fff;width:200px;">{lang renren:rr_dz_user}</p>
 77		</h3>
 78		<div style="margin: 10px 128px;">
 79			<p>{lang renren:log_tip1}</p>
 80			<p>{lang renren:log_tip2}</p>
 81			<div style="margin-top:10px;margin-bottom:10px;border-bottom:#999 1px dashed;height:100px;width:100%;">
 82				<img style="border: 1px solid #055bae; margin-left: 2px; float: left;" src="source/plugin/renren/template/image/renren.png"/>
 83				<img style="float: left;" src="source/plugin/renren/template/image/connect.png"/>
 84				<img style="border:#055bae 1px solid; float:left; margin-right: 2px;" src="source/plugin/renren/template/image/$rr_pic"/>
 85			</div>
 86		<!--{if $isbind[tag]!=2}-->
 87			<div id="tab1">
 88			<table style="width:100%;">
 89			<tr>
 90					<td style="border:0px"><input type="radio" name="identity" onclick="setTab(1,0,this)"  checked="checked" > {lang renren:log_noid}</input></td>
 91					<td style="border:0px"><input type="radio" name="identity" onclick="setTab(1,1,this)" /> {lang renren:log_beid}</input></td>
 92			</tr>
 93			</table>
 94			
 95
 96			</div>
 97			<div id="tablist1">
 98				<div class="tablist block" style="float:left; text-align:center; width:330px; line-height:25px; display:block">
 99					<form method="post" action="plugin.php?id=renren:connect" >
100						<input type="hidden" name="formhash" value="{FORMHASH}" />
101						<div class="c">
102							<div class="lgfm bm" style="margin-bottom:10px; padding:0px; border:none; float:left; width:100%">
103								<label><em>{lang renren:dz_username}:</em><input type="text" name="username" value="$username" class="txt"/></label>
104								<!--{if $user_info->parden==1}--> <p style="float:left;text-align:left;color:#ff0000; width:280px">{lang renren:rr_parden}</p><!--{/if}-->
105								<!--{if  $_G['cache']['plugin']['renren']['rr_email']}-->
106									<label><em>{lang renren:dz_email}:</em><input type="text" name="email" value="" class="txt" /></label>
107									<p style="float:left">{lang renren:dz_emailtip}</p>
108								<!--{/if}-->
109								<!--{if  $_G['cache']['plugin']['renren']['rr_password']}-->
110									<label><em>{lang renren:dz_password}:</em><input type="text" name="password" value="" class="txt" /></label>
111								<!--{/if}-->
112								<label><input name="rr_ava" type="checkbox" value="1" checked />{lang renren:rr_avsync}</label>
113							</div>
114							<div><button class="pn pnc" type="submit" name="rradmincreatesubmit" id="bgsubmit2" value="true"><span>{lang renren:login}</span></button></div>
115						</div>
116					</form>
117				</div>
118				<div class="tablist block" style="float:left; text-align:center; width:330px; line-height:25px;display:none">
119					<form method="post" autocomplete="off" action="plugin.php?id=renren:connect">
120						<div class="c">
121							<input type="hidden" name="formhash" value="{FORMHASH}" />
122							<input type="hidden" name="handlekey" value="lostpwform" />
123							<div class="lgfm bm" style="margin-bottom:10px; padding:0px; border:none; width:100%; float:left; height:120px;">
124								<label><em>{lang renren:username}</em><input type="text" name="username" size="25" value=""  tabindex="1" class="txt" /></label>
125								<label><em>{lang renren:password}</em><input type="password" name="password" size="25" value=""  tabindex="1" class="txt" /></label>
126								<label><em>{lang renren:security}</em><select onchange="if(this.value &gt; 0) {$('answernew').style.display='';} else {$('answernew').style.display='none';}" tabindex="3" name="questionidnew" style="width:180px">
127									<option value="0">{lang renren:security_question}</option>
128									<option value="1">{lang renren:security_question_1}</option>
129									<option value="2">{lang renren:security_question_2}</option>
130									<option value="3">{lang renren:security_question_3}</option>
131									<option value="4">{lang renren:security_question_4}</option>
132									<option value="5">{lang renren:security_question_5}</option>
133									<option value="6">{lang renren:security_question_6}</option>
134									<option value="7">{lang renren:security_question_7}</option>
135								</select></label>
136								<span style="display: none" id="answernew"><label><em>{lang renren:security_answer} </em><input type="text" tabindex="4" class="px" size="25" name="answernew"></label></span>
137							</div>
138							<div><button class="pn pnc" type="submit" name="discuz_bind" value="true" tabindex="100"><span>{lang renren:rr_bind}</span></button></div>
139						</div>
140					</form>
141				</div>
142			</div>
143		<!--{elseif $isbind[tag]==2}-->
144			<div>
145				<p>{lang renren:log_rbind}</p>
146				<form method="post" action="plugin.php?id=renren:connect">
147					<input type="hidden" name="formhash" value="{FORMHASH}" />
148					<p>{lang renren:log_rbindname}:$username</p>
149					<div style="text-align:center;"><button class="pn pnc" type="submit" name="discuz_rrbind" value="true" tabindex="100"><span>{lang renren:rr_bind}</span></button></div>
150				</form>
151			</div>
152		<!--{/if}-->
153		</div>
154	</div>
155	<!--{/if}-->
156<!--{/if}-->
157<!--{template common/footer}-->