<td>
<div id="block-block-18" class="clear-block block block-block get-pdf-reports">
	<div class="block_content_wrap">
			<h2>Get Reports - YTD</h2>
			<div class="content">

                      <form action="get_report.php" method="get" target="_blank">
                                <h3>All County Reports</h3>
                                <label class="det-label">Detailed: </label>
                                <input name="action" type="hidden" value="pdf" />
                                <input name="agg_type" type="hidden" value="YTD">
                                <input name="loc_type" type="hidden" value="1">
                                <select name="loc_id" class="det-select">
                                  {foreach from=$allArray item=loc}
                                  <option value="{$loc.l_id}">{$loc.l_desc}</option>
                                  {/foreach}
                               </select>

                                <select name="time_period" class="det-date">
                                  {foreach from=$monthArray item=tp}
                                        <option class="month_option" value="{$tp.time_period}">{$tp.timestamp|date_format:"%B %Y"}</option>
                                  {/foreach}
                                </select>
                                <input name="submitBtn" type="image" src="/sites/all/themes/rbi_advanced/images/go_btn.png" value="Generate+Report" />
                        </form>


				<hr/>

                        <form action="get_report.php" method="get" target="_blank">
                                <h3>Regional Reports</h3>
                                <label class="det-label">Detailed: </label>
                                <input name="action" type="hidden" value="pdf" />
                                <input name="agg_type" type="hidden" value="YTD">
                                <input name="loc_type" type="hidden" value="2">
                                <select name="loc_id" class="det-select">
                                  {foreach from=$regionArray item=loc}
                                  <option value="{$loc.l_id}">{$loc.l_desc}</option>
                                  {/foreach}
                               </select>

                                <select name="time_period" class="det-date">
                                  {foreach from=$monthArray item=tp}
                                        <option class="month_option" value="{$tp.time_period}">{$tp.timestamp|date_format:"%B %Y"}</option>
                                  {/foreach}
                                </select>
                                <input name="submitBtn" type="image" src="/sites/all/themes/rbi_advanced/images/go_btn.png" value="Generate+Report" />
                        </form>

				<hr/>

                        <form action="get_report.php" method="get" target="_blank">
                                <h3>Association Reports</h3>
                                <label class="det-label">Detailed: </label>
                                <input name="action" type="hidden" value="pdf" />
                                <input name="agg_type" type="hidden" value="YTD">
                                <input name="loc_type" type="hidden" value="3">
                                <select name="loc_id" class="det-select">
                                  {foreach from=$assocArray item=loc}
                                  <option value="{$loc.l_id}">{$loc.l_desc}</option>
                                  {/foreach}
                               </select>

                                <select name="time_period" class="det-date">
                                  {foreach from=$monthArray item=tp}
                                        <option class="month_option" value="{$tp.time_period}">{$tp.timestamp|date_format:"%B %Y"}</option>
                                  {/foreach}
                                </select>
                                <input name="submitBtn" type="image" src="/sites/all/themes/rbi_advanced/images/go_btn.png" value="Generate+Report" />
                        </form>

				<hr/>

			<form action="get_report.php" method="get" target="_blank">
				<h3>County Reports</h3>
				<label class="det-label">Detailed: </label>
				<input name="action" type="hidden" value="pdf" />
                                <input name="agg_type" type="hidden" value="YTD">
				<input name="loc_type" type="hidden" value="4">
				<select name="loc_id" class="det-select">
                                  {foreach from=$countyArray item=loc}
				  <option value="{$loc.l_id}">{$loc.l_desc}</option>
                                  {/foreach}
                               </select>
				
				<select name="time_period" class="det-date">
                                  {foreach from=$monthArray item=tp}
					<option class="month_option" value="{$tp.time_period}">{$tp.timestamp|date_format:"%B %Y"}</option>
                                  {/foreach}
				</select>
				<input name="submitBtn" type="image" src="/sites/all/themes/rbi_advanced/images/go_btn.png" value="Generate+Report" />
			</form>

				<hr/>

			<form action="get_report.php" method="get" target="_blank">
				<h3>Zip Code Reports</h3>
				<label class="det-label">Detailed: </label>
				<input name="action" type="hidden" value="pdf" />
                                <input name="agg_type" type="hidden" value="YTD">
				<input name="loc_type" type="hidden" value="5">
				<input type="text" class="det-input" name="loc_id" value="Enter Zip" onfocus="if (this.value == 'Enter Zip') this.value = '';" onblur="if (this.value == '') this.value = 'Enter Zip';" />
				<select name="time_period" class="det-date">
                                  {foreach from=$monthArray item=tp}
					<option class="month_option" value="{$tp.time_period}">{$tp.timestamp|date_format:"%B %Y"}</option>
                                  {/foreach}
				</select>
				<input name="submitBtn" type="image" src="/sites/all/themes/rbi_advanced/images/go_btn.png" value="Generate+Report" />
			</form>

				<hr/>
                        <form action="get_report.php" method="get" target="_blank">
                                <h3>Other Region Reports</h3>
                                <label class="det-label">Detailed: </label>
                                <input name="action" type="hidden" value="pdf" />
                                <input name="agg_type" type="hidden" value="YTD">
                                <input name="loc_type" type="hidden" value="6">
                                <select name="loc_id" class="det-select">
                                  {foreach from=$altRegionArray item=loc}
                                  <option value="{$loc.l_id}">{$loc.l_desc}</option>
                                  {/foreach}
                               </select>

                                <select name="time_period" class="det-date">
                                  {foreach from=$monthArray item=tp}
                                        <option class="month_option" value="{$tp.time_period}">{$tp.timestamp|date_format:"%B %Y"}</option>
                                  {/foreach}
                                </select>
                                <input name="submitBtn" type="image" src="/sites/all/themes/rbi_advanced/images/go_btn.png" value="Generate+Report" />
                        </form>

		</div>
		
	</div>
	<div class="block_btm"></div>
</div>

</td>
