Location: PHPKode > projects > Uchome and Discuz > admin/tpl/app.htm
<!--{template admin/tpl/header}-->

<div class="mainarea">
<div class="maininner">
	<form method="post" action="admincp.php?ac=app">
	<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
	<div class="bdrcontent">
	<p>Listed below are already installed UCenter all product applications.</p>
	<p>When you install a new application based on UCenter, the need to modify the configuration page and submit update, befor to view in UCH</p>
	<p>If you find apps information is incorrect,go to setting wizard of UCenter modify parameters for the application.</p>
	</div>
	<br>
	
	<!--{loop $applist $data}-->
	<!--{eval $template = stripslashes(htmlspecialchars($relatedtag['data'][$data[appid]]['template'] != '' ? $relatedtag['data'][$data[appid]]['template'] : $data['tagtemplates']['template']));}-->
	<!--{eval $name = stripslashes(htmlspecialchars($relatedtag['data'][$data[appid]]['name'] != '' ? $relatedtag['data'][$data[appid]]['name'] : $data['name']));}-->
	<!--{eval $openarr = !isset($relatedtag['data'][$data[appid]][open]) || intval($relatedtag['data'][$data[appid]][open]) > 0 ? array('', 'checked') : array('checked', '');}-->
	<div class="bdrcontent">
	<div class="title">
		<h3>$data[name]</h3>
	</div>
	<table cellspacing="0" cellpadding="0" class="formtable">
	<tr>
		<th style="width: 200px;">Name: </th>
		<td><input type="text" name="relatedtag[data][{$data[appid]}][name]" value="$name"></td>
	</tr>
	<tr>
		<th>·ÃÎʵØÖ·:</th>
		<td>
		<a href="$data[url]" target="_blank">$data[url]</a>
		<input type="hidden" name="relatedtag[data][{$data[appid]}][url]" value="$data[url]" size="50"></td>
	</tr>
	<tr>
		<th>Navigtion Display</th>
		<td>
		<!--{if $data['appid'] == UC_APPID}-->
		<input type="hidden" name="relatedtag[data][{$data[appid]}][open]" value="0">No need to select this
		<!--{else}-->
		<input type="radio" name="relatedtag[data][{$data[appid]}][open]" value="1" $openarr[1]>Yes
		<input type="radio" name="relatedtag[data][{$data[appid]}][open]" value="0" $openarr[0]>No
		<!--{/if}-->
		</td>
	</tr>
	<tr>
		<th>Display Tag Related Articale:</th>
		<td><input type="text" size="4" name="relatedtag[limit][{$data[appid]}]" value="<!--{eval echo intval($relatedtag['limit'][$data[appid]]);}-->" />
			Set the value 0 if dont want to show info</td>
	</tr>
	<tr>
		<th>Tag Related a sample Template:<br>
		<!--{if is_array($data[tagtemplates][fields])}-->
		<!--{loop $data[tagtemplates][fields] $field $memo}-->
			<a onclick="insertunit('{{$field}}', 'jstemplate_$data[appid]')" href="javascript:;">{{$field}}</a> on behalf of $memo<br />
		<!--{/loop}-->
		<!--{/if}-->
		</th>
		<td><img src="image/zoomin.gif" onmouseover="this.style.cursor='pointer'" onclick="zoomTextarea('jstemplate_$data[appid]', 1)">
			<img src="image/zoomout.gif" onmouseover="this.style.cursor='pointer'" onclick="zoomTextarea('jstemplate_$data[appid]', 0)"><br />
			<textarea cols="100" rows="5" id="jstemplate_$data[appid]" name="relatedtag[data][{$data[appid]}][template]" style="width: 95%;">$template</textarea>
			<input type="hidden" name="relatedtag[data][{$data[appid]}][type]" value="$data[type]">
		</td>
	</tr>
	</table>
	</div>
	<div class="footactions">
	<input type="submit" name="appsubmit" value="Save Update" class="submit">
	</div>

	<br>
	<!--{/loop}-->

	</form>
</div>
</div>

<div class="side">
	<!--{template admin/tpl/side}-->
</div>

<script type="text/javascript">
function insertunit(text, obj) {
	if(!obj) {
		obj = 'jstemplate';
	}
	$(obj).focus();
	if(!isUndefined($(obj).selectionStart)) {
		var opn = $(obj).selectionStart + 0;
		$(obj).value = $(obj).value.substr(0, $(obj).selectionStart) + text + $(obj).value.substr($(obj).selectionEnd);
	} else if(document.selection && document.selection.createRange) {
		var sel = document.selection.createRange();
		sel.text = text.replace(/\r?\n/g, '\r\n');
		sel.moveStart('character', -strlen(text));
	} else {
		$(obj).value += text;
	}
}
</script>
<!--{template admin/tpl/footer}-->
Return current item: Uchome and Discuz