-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathplugin_oauth2_admin_app_ls.htm
67 lines (59 loc) · 2.62 KB
/
plugin_oauth2_admin_app_ls.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{template header}
<script src="js/common.js" type="text/javascript"></script>
<script type="text/javascript">
var apps = new Array();
var run = 0;
function testlink() {
if (apps[run]) {
$('status_' + apps[run]).innerHTML = '{lang app_link}';
$('link_' + apps[run]).src = $('link_' + apps[run]).getAttribute('testlink') + '&sid=$sid';
}
run++;
}
window.onload = testlink;
</script>
<div class="container">
<h3 class="marginbot">{lang app_list}<a href="admin.php?m=app&a=add" class="sgbtn">{lang app_add}</a></h3>
<!--{if !$status}-->
<div class="note fixwidthdec">
<p class="i">{lang oauth2_app_list_tips}</p>
</div>
<!--{elseif $status == '2'}-->
<div class="correctmsg"><p>{lang app_list_updated}</p></div>
<!--{/if}-->
<div class="mainbox">
<!--{if $applist}-->
<table class="datalist fixwidth" onmouseover="addMouseEvent(this);">
<tr>
<th nowrap="nowrap"><input type="checkbox" name="chkall" id="chkall" onclick="checkall('delete[]')" class="checkbox" /></th>
<th nowrap="nowrap">{lang app_id}</th>
<th nowrap="nowrap">{lang app_name}</th>
<th nowrap="nowrap">{lang oauth2_app_is_mobile}</th>
<th nowrap="nowrap">{lang oauth2_app_redirect_uri}</th>
<th nowrap="nowrap">{lang app_detail}</th>
</tr>
<!--{eval $i = 0;}-->
<!--{loop $applist $app}-->
<tr>
<td width="50"><input type="checkbox" name="delete[]" value="$app[appid]" class="checkbox" /></td>
<td width="35">$app['appid']</td>
<td width="200"><a href="admin.php?m=app&a=detail&appid=$app[appid]"><strong>$app[name]</strong></a></td>
<td width="90"><!--{if $app['is_mobile']}-->{lang yes}<!--{else}-->{lang no}<!--{/if}--></td>
<td><!--{if $app['is_mobile']}-->-<!--{else}--><a href="$app['redirect_uri']" target="_blank">$app['redirect_uri']</a><!--{/if}--></td>
<td width="120"><a href="admin.php?m=plugin&a=oauth2&do=edit&appid=$app['appid']">{lang oauth2_app_edit_oauth}</a></td>
</tr>
<!--{eval $i++}-->
<!--{/loop}-->
<tr class="nobg">
<td colspan="9"><input type="submit" value="{lang submit}" class="btn" /></td>
</tr>
</table>
<div class="margintop"></div>
<!--{else}-->
<div class="note">
<p class="i">{lang list_empty}</p>
</div>
<!--{/if}-->
</div>
</div>
{template footer}