Пример #1
0
	<td class="form_field_cell">
		<select name="income_account_id">
			<option value="0">Select account...</option>
			<?php 
echo SI_Account::getSelectTags($item_code->income_account_id);
?>
		</select>	
	</td>
</tr>
<tr>
	<td class="form_field_header_cell">Expense Account:</td>
	<td class="form_field_cell">
		<select name="expense_account_id">
			<option value="0">Select account...</option>
			<?php 
echo SI_Account::getSelectTags($item_code->expense_account_id);
?>
		</select>	
	</td>
</tr>
<tr>
	<td class="form_field_header_cell">Cost:</td>
	<td class="form_field_cell"><input name="cost" class="input_text" size="10" type="text" value="<?php 
echo $item_code->cost;
?>
"></td>
</tr>
<tr>
	<td class="form_field_header_cell">Default Price:</td>
	<td class="form_field_cell"><input name="price" class="input_text" size="10" type="text" value="<?php 
echo $item_code->price;
Пример #2
0
>
			<option value="0">Select account...</option>
			<?php 
echo SI_Account::getSelectTags($GLOBALS['CONFIG']['account_payment']);
?>
		</select>	
		</td>
	</tr>
	<tr>
		<td class="dg_data_cell_1">Receivables Account</td>
		<td class="dg_data_cell_1">This account will be used for all receivables in the Quickbooks export</td>
		<td class="dg_data_cell_1">
		<select name="params[account_rec]" <?php 
echo !SI_Config::canEdit('account_rec') ? 'DISABLED' : '';
?>
>
			<option value="0">Select account...</option>
			<?php 
echo SI_Account::getSelectTags($GLOBALS['CONFIG']['account_rec']);
?>
		</select>	
		</td>
	</tr>
	<tr>
		<td colspan="3"><div align="right"><input type="submit" class="button" name="save" value="Save"></div></td>
	</tr>
</table>
	</div>
</div>

<? require('footer.php') ?>
Пример #3
0
	<tbody id="bodyId">
<? for($i = 0; $i < count($config_items); $i++){ ?>
	<tr onmouseover="this.style.backgroundColor ='#CCCCCC'" onmouseout="this.style.backgroundColor ='#FFFFFF'">
		<td class="dg_data_cell_1"><?php 
echo $config_items[$i]->name;
?>
</td>
		<td class="dg_data_cell_1">
<?		if($config_items[$i]->name == 'account_rec' || $config_items[$i]->name == 'account_payment'){ ?>
		<select name="params[<?php 
echo $config_items[$i]->name;
?>
]">
			<option value="0">Select account...</option>
			<?php 
echo SI_Account::getSelectTags($config_items[$i]->value);
?>
		</select>	
<?		}else{ ?>
		<input type="text" class="input_text" size="45" name="params[<?php 
echo $config_items[$i]->name;
?>
]" value="<?php 
echo $config_items[$i]->value;
?>
" />	
<?		} ?>		</td>
		<td class="dg_data_cell_1" align="center">&nbsp;
			<a class="link1" href="app_config.php?mode=delete&amp;name=<?php 
echo $config_items[$i]->name;
?>