<h1><?php $this->_echo($d['.'][0]['L_THEMES_TITLE']); ?></h1>

<p><?php $this->_echo($d['.'][0]['L_THEMES_EXPLAIN']); ?></p>

<form action="<?php $this->_echo($d['.'][0]['S_THEME_ACTION']); ?>" method="POST"><table width="99%" cellpadding="4" cellspacing="1" border="0" align="center" class="forumline">
<tr>
<th class="thHead" colspan="3"><?php $this->_echo($d['.'][0]['L_THEME_SETTINGS']); ?></th>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_THEME_NAME']); ?>:</td>
<td class="row2" colspan="2"><input class="post" type="text" size="25" maxlength="100" name="style_name" value="<?php $this->_echo($d['.'][0]['THEME_NAME']); ?>"></td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_TEMPLATE']); ?>:</td>
<td class="row2" colspan="2"><?php $this->_echo($d['.'][0]['S_TEMPLATE_SELECT']); ?></td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_STYLE_PRIVATE']); ?>:<span class="gensmall"><br /><?php $this->_echo($d['.'][0]['L_STYLE_PRIVATE_EXPLAIN']); ?></span></td>
<td class="row2" colspan="2"><input type="checkbox" name="style_private" value="1"<?php if($_style_private_count = count($d['style_private'])) {for ($_style_private_i = 0; $_style_private_i < $_style_private_count; $_style_private_i++){ ?> checked="checked"<?php }} ?> /></td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_IMAGES_PACK']); ?>:<span class="gensmall"><br /><?php $this->_echo($d['.'][0]['L_IMAGES_PACK_EXPLAIN']); ?></span></td>
<td class="row2" colspan="2"><input class="post" type="text" size="50" maxlength="100" name="images_pack" value="<?php $this->_echo($d['.'][0]['IMAGES_PACK']); ?>" /></td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_CUSTOM_TPLS']); ?>:<span class="gensmall"><br /><?php $this->_echo($d['.'][0]['L_CUSTOM_TPLS_EXPLAIN']); ?></span></td>
<td class="row2" colspan="2"><input class="post" type="text" size="50" maxlength="100" name="custom_tpls" value="<?php $this->_echo($d['.'][0]['CUSTOM_TPLS']); ?>" /></td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_STYLESHEET']); ?>:<span class="gensmall"><br /><?php $this->_echo($d['.'][0]['L_STYLESHEET_EXPLAIN']); ?></span></td>
<td class="row2" colspan="2"><input class="post" type="text" size="50" maxlength="100" name="head_stylesheet" value="<?php $this->_echo($d['.'][0]['HEAD_STYLESHEET']); ?>"></td>
</tr>
<tr>
<th><?php $this->_echo($d['.'][0]['L_THEME_ELEMENT']); ?></th>
<th><?php $this->_echo($d['.'][0]['L_VALUE']); ?></th>
<th><?php $this->_echo($d['.'][0]['L_SIMPLE_NAME']); ?></th>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_BACKGROUND_IMAGE']); ?>:</td>
<td class="row2" ><input class="post" type="text" size="25" maxlength="100" name="body_background" value="<?php $this->_echo($d['.'][0]['BODY_BACKGROUND']); ?>"></td>
<td class="row2">&nbsp;</td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_BACKGROUND_COLOR']); ?>:</td>
<td class="row2" ><input class="post" type="text" size="6" maxlength="6" name="body_bgcolor" value="<?php $this->_echo($d['.'][0]['BODY_BGCOLOR']); ?>"></td>
<td class="row2">&nbsp;</td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_BODY_TEXT_COLOR']); ?>:</td>
<td class="row2" ><input class="post" type="text" size="6" maxlength="6" name="body_text" value="<?php $this->_echo($d['.'][0]['BODY_TEXT_COLOR']); ?>"></td>
<td class="row2">&nbsp;</td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_BODY_LINK_COLOR']); ?>:</td>
<td class="row2" ><input class="post" type="text" size="6" maxlength="6" name="body_link" value="<?php $this->_echo($d['.'][0]['BODY_LINK_COLOR']); ?>"></td>
<td class="row2">&nbsp;</td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_BODY_VLINK_COLOR']); ?>:</td>
<td class="row2" ><input class="post" type="text" size="6" maxlength="6" name="body_vlink" value="<?php $this->_echo($d['.'][0]['BODY_VLINK_COLOR']); ?>"></td>
<td class="row2">&nbsp;</td>		
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_BODY_ALINK_COLOR']); ?>:</td>
<td class="row2" ><input class="post" type="text" size="6" maxlength="6" name="body_alink" value="<?php $this->_echo($d['.'][0]['BODY_ALINK_COLOR']); ?>"></td>
<td class="row2">&nbsp;</td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_BODY_HLINK_COLOR']); ?>:</td>
<td class="row2" ><input class="post" type="text" size="6" maxlength="6" name="body_hlink" value="<?php $this->_echo($d['.'][0]['BODY_HLINK_COLOR']); ?>"></td>
<td class="row2">&nbsp;</td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_TR_COLOR1']); ?>:</td>
<td class="row2"><input class="post" type="text" size="6" maxlength="6" name="tr_color1" value="<?php $this->_echo($d['.'][0]['TR_COLOR1']); ?>"></td>
<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="tr_color1_name" value="<?php $this->_echo($d['.'][0]['TR_COLOR1_NAME']); ?>"></td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_TR_COLOR2']); ?>:</td>
<td class="row2"><input class="post" type="text" size="6" maxlength="6" name="tr_color2" value="<?php $this->_echo($d['.'][0]['TR_COLOR2']); ?>"></td>
<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="tr_color2_name" value="<?php $this->_echo($d['.'][0]['TR_COLOR2_NAME']); ?>"></td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_TR_COLOR3']); ?>:</td>
<td class="row2"><input class="post" type="text" size="6" maxlength="6" name="tr_color3" value="<?php $this->_echo($d['.'][0]['TR_COLOR3']); ?>"></td>
<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="tr_color3_name" value="<?php $this->_echo($d['.'][0]['TR_COLOR3_NAME']); ?>"></td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_TR_CLASS1']); ?>:</td>
<td class="row2"><input class="post" type="text" size="25" maxlength="25" name="tr_class1" value="<?php $this->_echo($d['.'][0]['TR_CLASS1']); ?>"></td>
<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="tr_class1_name" value="<?php $this->_echo($d['.'][0]['TR_CLASS1_NAME']); ?>"></td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_TR_CLASS2']); ?>:</td>
<td class="row2"><input class="post" type="text" size="25" maxlength="25" name="tr_class2" value="<?php $this->_echo($d['.'][0]['TR_CLASS2']); ?>"></td>
<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="tr_class2_name" value="<?php $this->_echo($d['.'][0]['TR_CLASS2_NAME']); ?>"></td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_TR_CLASS3']); ?>:</td>
<td class="row2"><input class="post" type="text" size="25" maxlength="25" name="tr_class3" value="<?php $this->_echo($d['.'][0]['TR_CLASS3']); ?>"></td>
<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="tr_class3_name" value="<?php $this->_echo($d['.'][0]['TR_CLASS3_NAME']); ?>"></td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_TH_COLOR1']); ?>:</td>
<td class="row2"><input class="post" type="text" size="6" maxlength="6" name="th_color1" value="<?php $this->_echo($d['.'][0]['TH_COLOR1']); ?>"></td>
<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="th_color1_name" value="<?php $this->_echo($d['.'][0]['TH_COLOR1_NAME']); ?>"></td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_TH_COLOR2']); ?>:</td>
<td class="row2"><input class="post" type="text" size="6" maxlength="6" name="th_color2" value="<?php $this->_echo($d['.'][0]['TH_COLOR2']); ?>"></td>
<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="th_color2_name" value="<?php $this->_echo($d['.'][0]['TH_COLOR2_NAME']); ?>"></td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_TH_COLOR3']); ?>:</td>
<td class="row2"><input class="post" type="text" size="6" maxlength="6" name="th_color3" value="<?php $this->_echo($d['.'][0]['TH_COLOR3']); ?>"></td>
<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="th_color3_name" value="<?php $this->_echo($d['.'][0]['TH_COLOR3_NAME']); ?>"></td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_TH_CLASS1']); ?>:</td>
<td class="row2"><input class="post" type="text" size="25" maxlength="25" name="th_class1" value="<?php $this->_echo($d['.'][0]['TH_CLASS1']); ?>"></td>
<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="th_class1_name" value="<?php $this->_echo($d['.'][0]['TH_CLASS1_NAME']); ?>"></td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_TH_CLASS2']); ?>:</td>
<td class="row2"><input class="post" type="text" size="25" maxlength="25" name="th_class2" value="<?php $this->_echo($d['.'][0]['TH_CLASS2']); ?>"></td>
<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="th_class2_name" value="<?php $this->_echo($d['.'][0]['TH_CLASS2_NAME']); ?>"></td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_TH_CLASS3']); ?>:</td>
<td class="row2"><input class="post" type="text" size="25" maxlength="25" name="th_class3" value="<?php $this->_echo($d['.'][0]['TH_CLASS3']); ?>"></td>
<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="th_class3_name" value="<?php $this->_echo($d['.'][0]['TH_CLASS3_NAME']); ?>"></td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_TD_COLOR1']); ?>:</td>
<td class="row2"><input class="post" type="text" size="6" maxlength="6" name="td_color1" value="<?php $this->_echo($d['.'][0]['TD_COLOR1']); ?>"></td>
<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="td_color1_name" value="<?php $this->_echo($d['.'][0]['TD_COLOR1_NAME']); ?>"></td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_TD_COLOR2']); ?>:</td>
<td class="row2"><input class="post" type="text" size="6" maxlength="6" name="td_color2" value="<?php $this->_echo($d['.'][0]['TD_COLOR2']); ?>"></td>
<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="td_color2_name" value="<?php $this->_echo($d['.'][0]['TD_COLOR2_NAME']); ?>"></td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_TD_COLOR3']); ?>:</td>
<td class="row2"><input class="post" type="text" size="6" maxlength="6" name="td_color3" value="<?php $this->_echo($d['.'][0]['TD_COLOR3']); ?>"></td>
<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="td_color3_name" value="<?php $this->_echo($d['.'][0]['TD_COLOR3_NAME']); ?>"></td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_TD_CLASS1']); ?>:</td>
<td class="row2"><input class="post" type="text" size="25" maxlength="25" name="td_class1" value="<?php $this->_echo($d['.'][0]['TD_CLASS1']); ?>"></td>
<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="td_class1_name" value="<?php $this->_echo($d['.'][0]['TD_CLASS1_NAME']); ?>"></td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_TD_CLASS2']); ?>:</td>
<td class="row2"><input class="post" type="text" size="25" maxlength="25" name="td_class2" value="<?php $this->_echo($d['.'][0]['TD_CLASS2']); ?>"></td>
<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="td_class2_name" value="<?php $this->_echo($d['.'][0]['TD_CLASS2_NAME']); ?>"></td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_TD_CLASS3']); ?>:</td>
<td class="row2"><input class="post" type="text" size="25" maxlength="25" name="td_class3" value="<?php $this->_echo($d['.'][0]['TD_CLASS3']); ?>"></td>
<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="td_class3_name" value="<?php $this->_echo($d['.'][0]['TD_CLASS3_NAME']); ?>"></td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_FONTFACE_1']); ?>:</td>
<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="fontface1" value="<?php $this->_echo($d['.'][0]['FONTFACE1']); ?>"></td>
<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="fontface1_name" value="<?php $this->_echo($d['.'][0]['FONTFACE1_NAME']); ?>"></td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_FONTFACE_2']); ?>:</td>
<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="fontface2" value="<?php $this->_echo($d['.'][0]['FONTFACE2']); ?>"></td>
<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="fontface2_name" value="<?php $this->_echo($d['.'][0]['FONTFACE2_NAME']); ?>"></td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_FONTFACE_3']); ?>:</td>
<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="fontface3" value="<?php $this->_echo($d['.'][0]['FONTFACE3']); ?>"></td>
<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="fontface3_name" value="<?php $this->_echo($d['.'][0]['FONTFACE3_NAME']); ?>"></td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_FONTSIZE_1']); ?>:</td>
<td class="row2"><input class="post" type="text" size="4" maxlength="4" name="fontsize1" value="<?php $this->_echo($d['.'][0]['FONTSIZE1']); ?>"></td>
<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="fontsize1_name" value="<?php $this->_echo($d['.'][0]['FONTSIZE1_NAME']); ?>"></td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_FONTSIZE_2']); ?>:</td>
<td class="row2"><input class="post" type="text" size="4" maxlength="4" name="fontsize2" value="<?php $this->_echo($d['.'][0]['FONTSIZE2']); ?>"></td>
<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="fontsize2_name" value="<?php $this->_echo($d['.'][0]['FONTSIZE2_NAME']); ?>"></td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_FONTSIZE_3']); ?>:</td>
<td class="row2"><input class="post" type="text" size="4" maxlength="4" name="fontsize3" value="<?php $this->_echo($d['.'][0]['FONTSIZE3']); ?>"></td>
<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="fontsize3_name" value="<?php $this->_echo($d['.'][0]['FONTSIZE3_NAME']); ?>"></td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_FONTCOLOR_1']); ?>:</td>
<td class="row2"><input class="post" type="text" size="6" maxlength="6" name="fontcolor1" value="<?php $this->_echo($d['.'][0]['FONTCOLOR1']); ?>"></td>
<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="fontcolor1_name" value="<?php $this->_echo($d['.'][0]['FONTCOLOR1_NAME']); ?>"></td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_FONTCOLOR_2']); ?>:</td>
<td class="row2"><input class="post" type="text" size="6" maxlength="6" name="fontcolor2" value="<?php $this->_echo($d['.'][0]['FONTCOLOR2']); ?>"></td>
<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="fontcolor2_name" value="<?php $this->_echo($d['.'][0]['FONTCOLOR2_NAME']); ?>"></td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_FONTCOLOR_3']); ?>:</td>
<td class="row2"><input class="post" type="text" size="6" maxlength="6" name="fontcolor3" value="<?php $this->_echo($d['.'][0]['FONTCOLOR3']); ?>"></td>
<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="fontcolor3_name" value="<?php $this->_echo($d['.'][0]['FONTCOLOR3_NAME']); ?>"></td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_SPAN_CLASS_1']); ?>:</td>
<td class="row2"><input class="post" type="text" size="25" maxlength="25" name="span_class1" value="<?php $this->_echo($d['.'][0]['SPAN_CLASS1']); ?>"></td>
<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="span_class1_name" value="<?php $this->_echo($d['.'][0]['SPAN_CLASS1_NAME']); ?>"></td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_SPAN_CLASS_2']); ?>:</td>
<td class="row2"><input class="post" type="text" size="25" maxlength="25" name="span_class2" value="<?php $this->_echo($d['.'][0]['SPAN_CLASS2']); ?>"></td>
<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="span_class2_name" value="<?php $this->_echo($d['.'][0]['SPAN_CLASS2_NAME']); ?>"></td>
</tr>
<tr>
<td class="row1"><?php $this->_echo($d['.'][0]['L_SPAN_CLASS_3']); ?>:</td>
<td class="row2"><input class="post" type="text" size="25" maxlength="25" name="span_class3" value="<?php $this->_echo($d['.'][0]['SPAN_CLASS3']); ?>"></td>
<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="span_class3_name" value="<?php $this->_echo($d['.'][0]['SPAN_CLASS3_NAME']); ?>"></td>
</tr>
<tr>
<td class="catBottom" colspan="3" align="center"><?php $this->_echo($d['.'][0]['S_HIDDEN_FIELDS']); ?><input type="submit" name="submit" value="<?php $this->_echo($d['.'][0]['L_SAVE_SETTINGS']); ?>" class="mainoption" />
</td>
</tr>
</table></form>

<br clear="all">