{*

/**
 * SugarCRM is a customer relationship management program developed by
 * SugarCRM, Inc. Copyright (C) 2004 - 2009 SugarCRM Inc.
 * 
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the GNU General Public License version 3 as published by the
 * Free Software Foundation with the addition of the following permission added
 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
 * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
 * 
 * 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, see http://www.gnu.org/licenses or write to the Free
 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301 USA.
 * 
 * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
 * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
 * 
 * The interactive user interfaces in modified source and object code versions
 * of this program must display Appropriate Legal Notices, as required under
 * Section 5 of the GNU General Public License version 3.
 * 
 * In accordance with Section 7(b) of the GNU General Public License version 3,
 * these Appropriate Legal Notices must retain the display of the "Powered by
 * SugarCRM" logo. If the display of the logo is not reasonably feasible for
 * technical reasons, the Appropriate Legal Notices must display the words
 * "Powered by SugarCRM".
 */



*}



<div style='width: 500px'>
<form name="configure_{$id}" action="index.php" method="post" onSubmit='return SUGAR.dashlets.postForm("configure_{$id}", SUGAR.mySugar.uncoverPage);'><br />
<input type='hidden' name='id' value='{$id}'>
<input type='hidden' name='module' value='Home'>
<input type='hidden' name='action' value='ConfigureDashlet'>
<input type='hidden' name='to_pdf' value='true'>
<input type='hidden' name='configure' value='true'>
<table width="400" cellpadding="0" cellspacing="0" border="0" class="tabForm" align="center">
<tr>
<td valign='top' nowrap class='dataLabel'>Rok</td>
<td valign='top' class='dataField'>
			<select name="year" id="year">
			{php}
			$ey=(int)date("Y");
			$sy=2009;
			for($i=$sy;$i<=$ey;$i++){
				echo '<option value="'.$i.'"';
				if($i==$year)echo ' selected';
				echo '>'.$i.'</option>';
			}
			{/php}
		    </select>
</td>
</tr>
<tr>
<td class="dataLabel" width="20%" nowrap="nowrap">Nazwa kontrahenta</td>
		<td class="dataField" width="30%" nowrap="nowrap">
			<input name="account_name" readonly="readonly" tabindex="" id="account_name" size="" value="{$myName}" title="" type="text">
			<input name="account_id" id="account_id" value="" type="hidden">
			<input name="btn_account_name" tabindex="" title="Select [Alt+T]" accesskey="T" class="button" value="Select" {php} echo "onclick='open_popup(\"Accounts\", 600, 400, \"\", true, false, {\"call_back_function\":\"set_return\",\"form_name\":\"configure_";{/php}{$id}{php} echo "\",\"field_to_name_array\":{\"id\":\"account_id\",\"name\":\"account_name\"}}, \"single\", true);'";{/php}type="button">
	  	</td>
</tr>
<tr>
<td valign='top' nowrap class='dataLabel'>Kategorie</td>
<td valign='top' class='dataField'>
<select name="category" id="category">
			<option value="">Wszystkie</option>
</select>
</td>
</tr>
<tr>
	<td class="dataLabel" width="10%" nowrap="nowrap">Pokaż</td>
		<td class="dataField" width="30%" nowrap="nowrap">
			<select name="show[]" multiple size="4">
			<option value="sales"{php} if(in_array("sales",$_REQUEST['show']))echo "selected";{/php}>Sprzedaż</option>
			<option value="quantity"{php} if(in_array("quantity",$_REQUEST['show']))echo "selected";{/php}>Pcs</option>
			<option value="margin"{php} if(in_array("margin",$_REQUEST['show']))echo "selected";{/php}>% Margines </option>
			<option value="pln_margin" {php} if(in_array("pln_margin",$_REQUEST['show']))echo "selected";{/php}>PLN Margines</option>
			</select></td>
</tr>
<tr>
<td align="right" colspan="2">
<input type='submit' class='button' value='Zapisz'>
</td>
</tr>
</table>
</form>
</div>