<?php
/* Copyright (C) 2009-2012 Regis Houssin <regis.houssin@capnetworks.com>
 * Copyright (C) 2011-2013 Philippe Grand <philippe.grand@atoo-net.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 *
 */
?>
 
<!-- BEGIN PHP TEMPLATE -->
<?php require_once DOL_DOCUMENT_ROOT . '/core/class/html.form.class.php'; ?>
<?php $form = new Form($db); ?>

<form name="form_index" action="<?php echo $_SERVER["PHP_SELF"]; ?>" method="POST">
<input type="hidden" name="token" value="<?php echo $_SESSION['newtoken']; ?>" />
<input type="hidden" name="action" value="" />
<input type="hidden" name="id" value="<?php echo GETPOST('id'); ?>" />

<?php $var=true; ?>

<table class="noborder">
<tr class="liste_titre">
	<td width="35%"><?php echo $langs->trans("DesignInfo"); ?></td>
	<td><?php echo $langs->trans("Value"); ?></td>
</tr>

<?php $var=!$var; ?>
<tr <?php echo $bc[$var]; ?>>
	<td><span class="fieldrequired"><?php echo $langs->trans("Label"); ?></span></td>
	<td><input name="label" size="30" value="<?php echo $this->tpl['label']; ?>" /></td>
</tr>

<?php $var=!$var; ?>
<tr <?php echo $bc[$var]; ?>>
	<td><?php echo $langs->trans("BackgroundColorByDefault"); ?></td>
	<td><?php echo $this->tpl['select_bgcolor']; ?></td>
</tr>

<?php $var=!$var; ?>
<tr <?php echo $bc[$var]; ?>>
	<td><?php echo $langs->trans("BorderColorByDefault"); ?></td>
	<td><?php echo $this->tpl['select_bordercolor']; ?></td>
</tr>

<?php $var=!$var; ?>
<tr <?php echo $bc[$var]; ?>>
	<td><?php echo $langs->trans("TextcolorByDefault"); ?></td>
	<td><?php echo $this->tpl['select_textcolor']; ?></td>
</tr>

<?php $var=!$var; ?>
<tr <?php echo $bc[$var]; ?>>
	<td><?php echo $langs->trans("QRcodeColorByDefault"); ?></td>
	<td><?php echo $this->tpl['select_qrcodecolor']; ?></td>
</tr>

<?php $var=!$var; ?>
<tr <?php echo $bc[$var]; ?>>
	<td><?php echo $langs->trans("SetBorderToDashDotted"); ?></td>
	<td><?php echo $this->tpl['select_dashdotted']; ?></td>
</tr>

<?php $var=!$var; ?>
<tr <?php echo $bc[$var]; ?>>
	<td><?php echo $form->textwithpicto($langs->trans("SelectWithRef"), $langs->trans("SelectWithRefDescription")); ?></td>
	<td><?php echo $this->tpl['select_withref']; ?></td>
</tr>

<?php $var=!$var; ?>
<tr <?php echo $bc[$var]; ?>>
	<td><?php echo $form->textwithpicto($langs->trans("HideByDefaultProductTvaInsideUltimatepdf"), $langs->trans("SelectWithoutVatDescription")); ?></td>
	<td><?php echo $this->tpl['select_withoutvat']; ?></td>
</tr>

<?php $var=!$var; ?>
<tr <?php echo $bc[$var]; ?>>
	<td valign="top"><?php echo $langs->trans("Description"); ?></td>
	<td><textarea class="flat" name="description" cols="80" rows="<?php echo ROWS_3; ?>"><?php echo $this->tpl['description']; ?></textarea></td>
</tr>

<?php $var=!$var; ?>
<tr <?php echo $bc[$var]; ?>>
	<td><?php echo $form->textwithpicto($langs->trans("SelectAnOtherlogo"), $langs->trans("OtherlogoDescription")); ?></td>
	<td><input name="otherlogo" size="80" value="<?php echo $this->tpl['select_otherlogo']; ?>" /></td>
</tr>

<?php $var=!$var; ?>
<tr <?php echo $bc[$var]; ?>>
	<td><?php echo $form->textwithpicto($langs->trans("SetFontToWhatYouWant"), $langs->trans("SetFontToWhatYouWantDescription")); ?></td>
	<td><?php echo $this->tpl['select_otherfont']; ?></td>
</tr>

<?php $var=!$var; ?>
<tr <?php echo $bc[$var]; ?>>
	<td><?php echo $form->textwithpicto($langs->trans("SetHeightForFreeText"), $langs->trans("SetHeightForFreeTextDescription")); ?></td>
	<td><input name="heightforfreetext" size="30" value="<?php echo $this->tpl['select_heightforfreetext']; ?>" /></td>
</tr>

<?php $var=!$var; ?>
<tr <?php echo $bc[$var]; ?>>
	<td><?php echo $langs->trans("SetFontSizeForFreeText"); ?></td>
	<td><input name="freetextfontsize" size="30" value="<?php echo $this->tpl['select_freetextfontsize']; ?>" /></td>
</tr>

<?php $var=!$var; ?>
<tr <?php echo $bc[$var]; ?>>
	<td><?php echo $form->textwithpicto($langs->trans("UseBackGround"), $langs->trans("UseBackGroundDescription")); ?></td>
	<td><input name="usebackground" size="80" value="<?php echo $this->tpl['usebackground']; ?>" /></td>
</tr>

<?php $var=!$var; ?>
<tr <?php echo $bc[$var]; ?>>
	<td><?php echo $form->textwithpicto($langs->trans("SetImageWidth"), $langs->trans("SetImageWidthDescription")); ?></td>
	<td><input name="imglinesize" size="30" value="<?php echo $this->tpl['imglinesize']; ?>" /></td>
</tr>

<?php $var=!$var; ?>
<tr <?php echo $bc[$var]; ?>>
	<td><?php echo $form->textwithpicto($langs->trans("SetLogoHeigth"), $langs->trans("SetLogoHeigthDescription")); ?></td>
	<td><input name="logoheight" size="30" value="<?php echo $this->tpl['logoheight']; ?>" /></td>
</tr>

</table>
</div>

<div class="tabsAction">
<input type="submit" class="butAction linkobject" name="update" value="<?php echo $langs->trans('Update'); ?>" />
<input type="submit" class="butAction linkobject" name="cancel" value="<?php echo $langs->trans("Cancel"); ?>" />
</div>

</form>

<!-- END PHP TEMPLATE -->