Location: PHPKode > projects > PBBoard > PBBoard_v2.1.4/Upload/look/styles/admin/main/templates/sections_main.tpl
<script src="includes/js/jquery.js">
-->
</script>

<script language="javascript">
function AjaxTitle()
{
	var data = {};

	data['title']	=	$("#title_id").val();
	data['id']		=	$("#m_section_id").val();
	data['ajax']	=	true;

	$.post("admin.php?page=ajax&sections=1&rename=1",data,Success);
}

function Success(xml)
{
	$("#title-" + $("#m_section_id").val()).html(xml);
}

function AjaxEdit()
{
	$(this).html('<input type="text" name="title" id="title_id" value="' + $(this).text() + '" /><input type="hidden" name="m_section" id="m_section_id" value="' + $(".section_id").val() + '" /><input type="button" name="button" class="input_button" value="{$lang['acceptable']}" />');

	$(".input_button").click(AjaxTitle);
}

function Ready()
{
	$("td[id]").dblclick(AjaxEdit);
}

$(document).ready(Ready);
-->
</script>

<br />

<div class="address_bar">{$lang['Control_Panel']} &raquo;
<a href="admin.php?page=sections&amp;control=1&amp;main=1">{$lang['Sections_Mains']}</a></div>

<br />

<div id="status" align="center"></div>

<br />

<form action="admin.php?page=sections&amp;change_sort=1&amp;start=1"  name="myform" method="post">
<table cellpadding="3" cellspacing="1" width="90%" class="t_style_b" border="0" cellspacing="1" align="center">
<tr valign="top" align="center">
	<td class="main1">{$lang['Section_title']}</td>
	<td class="main1">{$lang['Powers']}</td>
	<td class="main1">{$lang['edit']}</td>
	<td class="main1">{$lang['Delet']}</td>
	<td class="main1">{$lang['Section_ordr']}</td>
</tr>
{Des::while}{SecList}
<tr valign="top" align="center">
	<td class="row1" id="title-{#SecList['id']#}"><input type="hidden" name="section" class="section_id" value="{$SecList['id']}" />{$SecList['title']}</td>
	<td class="row1"><a href="./admin.php?page=sections&amp;groups=1&amp;control_group=1&amp;index=1&amp;id={$SecList['id']}">{$lang['Powers']}</a></td>
	<td class="row1"><a href="./admin.php?page=sections&amp;edit=1&amp;main=1&amp;id={$SecList['id']}">{$lang['edit']}</a></td>
	<td class="row1"><a href="./admin.php?page=sections&amp;del=1&amp;main=1&amp;id={$SecList['id']}">{$lang['Delet']}</a></td>
	<td class="row1"><input type="text" name="order-{$SecList['id']}" id="input_order-{$SecList['id']}" value="{$SecList['sort']}" size="5" /></td>
</tr>
{/Des::while}
</table>

<br />
<div align="center">
<input class="submit" type="submit" value="{$lang['acceptable']}" name="submit" accesskey="s" />
</div>
</form>
Return current item: PBBoard