{assign var="hideWidgets" value="true"}
{assign var="wideFormat" value="true"}

{php}$GLOBALS['SPADE']['db']->debugModeOn();{/php}

{if $smarty.request.tm_style_table}
	{session_write var="tm_style_table" value=$smarty.request.tm_style_table}
{/if}
{if $smarty.request.tm_template}
	{session_write var="tm_template" value=$smarty.request.tm_template}
{/if}

<div align="right">
<form style="margin:0px;" name="tmstyleform" method="get" action="index.php">
<input type="hidden" name="pg" value="{$page.name}">
Border Styles:
<select name="tm_style_table" onchange="if(this.value != '')this.form.submit();">
	<option value="">-Change-</option>
	<option value="gray">Gray</option>
	<option value="gray_bubble">Gray Bubble</option>
	<option value="blue-white">Blue-White</option>
	<option value="blue-blue">Blue-Blue</option>
	<option value="chrome">Chrome</option>
	<option value="purple-white">Purple-White</option>
	<option value="redlava">redlava</option>
</select>
&nbsp;&nbsp;
Template:
<select name="tm_template" onchange="if(this.value != '')this.form.submit();">
	<option value="">-Change-</option>
	<option value="default">Default</option>
	<option value="slate">Slate</option>
</select>
</form>
</div>

{assign var="template" value=$smarty.session.safe.tm_template|default:"slate"}


{tablemanager
	Assign="tm"
	Group="admin_tools"
	Profile="manage_users"
	DeleteLogFile="tm-delete.log"
	TemplatePath="TM/templates/"
	StyleTablePath="img/st/"
	StyleTable=$smarty.session.safe.tm_style_table|default:"gray"
	AddTemplate=$template|cat:"_edit.tpl"
	MainTemplate=$template|cat:"_main.tpl"
	ListTemplate=$template|cat:"_list.tpl"
	EditTemplate=$template|cat:"_edit.tpl"
	Action="list"
	LoginRequired="false"
	HeadingColor="90A9C4"
	HighlightColor="F6F9B5"
	ResultsPerPage="20"
	Color1="F7F7F7"
	Color2="E7E7E7"
	DataStyle="hideWrap"
	MaxStringLength="50"
	DateFormat="M j, Y h:i a "
	}

