<?php $index = 'x_' . rand(1, 999999); ?>
<tr>
	<td>
		<span class="pj-form-field-custom pj-form-field-custom-after">
			<input type="text" name="date_from[<?php echo $index; ?>]" class="pj-form-field w80 datepick pointer" readonly="readonly" rel="<?php echo $week_start; ?>" rev="<?php echo $jqDateFormat; ?>" />
			<span class="pj-form-field-after"><abbr class="pj-form-field-icon-date"></abbr></span>
		</span>
	</td>
	<td>
		<span class="pj-form-field-custom pj-form-field-custom-after">
			<input type="text" name="date_to[<?php echo $index; ?>]" class="pj-form-field w80 datepick pointer" readonly="readonly" rel="<?php echo $week_start; ?>" rev="<?php echo $jqDateFormat; ?>" />
			<span class="pj-form-field-after"><abbr class="pj-form-field-icon-date"></abbr></span>
		</span>
	</td>
	<td>
		<input type="text" name="length_from[<?php echo $index; ?>]" class="pj-form-field w50 spinner" />
		<input type="text" name="length_to[<?php echo $index; ?>]" class="pj-form-field w50 spinner" />
		<select name="period[<?php echo $index; ?>]" class="pj-form-field pPeriod" style="display: <?php echo $by_both ? NULL : 'none'; ?>">
			<option value="hour"><?php __('items_hour_plural'); ?></option>
			<option value="day"><?php __('items_day_plural'); ?></option>
		</select>
		<span class="pHours" style="display: <?php echo !$by_both && $by_hour ? NULL : 'none'; ?>"><?php __('items_hour_plural'); ?></span>
		<span class="pDays" style="display: <?php echo !$by_both && $by_day ? NULL : 'none'; ?>"><?php __('items_day_plural'); ?></span>
	</td>
	<td>
		<span class="pj-form-field-custom pj-form-field-custom-before float_left r5">
			<span class="pj-form-field-before"><abbr class="pj-form-field-icon-text"><?php echo pjUtil::formatCurrencySign(NULL, $tpl['option_arr']['o_currency'], ""); ?></abbr></span>
			<input type="text" name="price[<?php echo $index; ?>]" class="pj-form-field align_right w60 number" />
		</span>
		<?php
		$items_price_per = __('items_price_per', true);
		?>
		<span class="pHour" style="display: <?php echo (!$by_both && $by_hour) || ($by_both) ? NULL : 'none'; ?>"><?php echo $items_price_per['hour']; ?></span>
		<span class="pDay" style="display: <?php echo !$by_both && $by_day ? NULL : 'none'; ?>"><?php echo $items_price_per['day']; ?></span>
	</td>
	<td><a href="#" class="pj-table-icon-delete btnRemovePrice"></a></td>
</tr>