<?php
/* Smarty version 3.1.33, created on 2023-02-04 22:25:18
  from '/home/massessays/dashboard.massessays.com/content/themes/dashboard/orders/_filters.orders.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_63dedb4eadf309_15890015',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '6a4fa7e91c1b52390e42306551d067a8acac000e' => 
    array (
      0 => '/home/massessays/dashboard.massessays.com/content/themes/dashboard/orders/_filters.orders.tpl',
      1 => 1656689818,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_63dedb4eadf309_15890015 (Smarty_Internal_Template $_smarty_tpl) {
?><div class="mb20">
    <form method="GET" id="filter_form" autocomplete="off">
        <div class="row mb10">
            <div class="col-md-4">
                <label for="corslevel">Academic Level:</label>
                <select class="form-control input-sm" name="corslevel">
                    <option value="-1" selected="selected">All available</option>
                    <option value="1" <?php if ($_smarty_tpl->tpl_vars['corslevel']->value == "1") {?>selected=""<?php }?>>High school</option>
                    <option value="2" <?php if ($_smarty_tpl->tpl_vars['corslevel']->value == "2") {?>selected=""<?php }?>>Undergraduate (yrs. 1-2) </option>
                    <option value="3" <?php if ($_smarty_tpl->tpl_vars['corslevel']->value == "3") {?>selected=""<?php }?>>Undergraduate (yrs. 3-4)</option>
                    <option value="4" <?php if ($_smarty_tpl->tpl_vars['corslevel']->value == "4") {?>selected=""<?php }?>>Graduate</option>
                    <option value="5" <?php if ($_smarty_tpl->tpl_vars['corslevel']->value == "5") {?>selected=""<?php }?>>Ph.D.</option>
                </select>
            </div>

            <div class="col-md-5">
                <label for="discipline">Discipline:</label>
                <select class="form-control input-sm select_search" name="discipline[]" multiple>
                    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['disciplineGroups']->value, 'topicCat');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['topicCat']->value) {
?>
                        <optgroup label="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['topicCat']->value['title'], ENT_QUOTES, 'UTF-8');?>
">
                            <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['topicCat']->value['disciplines'], 'discipline');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['discipline']->value) {
?>
                                <option value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['discipline']->value['discipline_id'], ENT_QUOTES, 'UTF-8');?>
" <?php if ($_smarty_tpl->tpl_vars['discipline']->value['selected']) {?>selected=""<?php }?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['discipline']->value['title'], ENT_QUOTES, 'UTF-8');?>
</option>
                            <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                        </optgroup>
                    <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                </select>
            </div>
            <div class="col-md-3">
                <label for="deadline">Deadline:</label>
                <select class="form-control input-sm" name="deadline">
                    <option value="-1" selected="selected">All available</option>
                    <option value="1" <?php if ($_smarty_tpl->tpl_vars['deadline']->value == "1") {?>selected=""<?php }?>>Urgent</option>
                    <option value="2" <?php if ($_smarty_tpl->tpl_vars['deadline']->value == "2") {?>selected=""<?php }?>>1-3 days</option>
                    <option value="3" <?php if ($_smarty_tpl->tpl_vars['deadline']->value == "3") {?>selected=""<?php }?>>4-7 days</option>
                    <option value="4" <?php if ($_smarty_tpl->tpl_vars['deadline']->value == "4") {?>selected=""<?php }?>>Long-term</option>
                </select>
            </div>
        </div>

        <div class="row mb10">
            <div class="col-md-2">
                <label>Pages:</label>
                <select class="form-control input-sm" name="pages">
                    <option value="-1" selected="selected">All available</option>
                    <option value="1" <?php if ($_smarty_tpl->tpl_vars['pages']->value == "1") {?>selected=""<?php }?>>< 5</option>
                    <option value="2" <?php if ($_smarty_tpl->tpl_vars['pages']->value == "2") {?>selected=""<?php }?>>5 - 10</option>
                    <option value="3" <?php if ($_smarty_tpl->tpl_vars['pages']->value == "3") {?>selected=""<?php }?>>10 - 20</option>
                    <option value="4" <?php if ($_smarty_tpl->tpl_vars['pages']->value == "4") {?>selected=""<?php }?>>20 - 30</option>
                    <option value="5" <?php if ($_smarty_tpl->tpl_vars['pages']->value == "5") {?>selected=""<?php }?>>> 30</option>
                </select>
            </div>
            <div class="col-md-2">
                <label>Cost:</label>
                <select class="form-control input-sm" name="cost">
                    <option value="-1" selected="selected">All available</option>
                    <option value="1" <?php if ($_smarty_tpl->tpl_vars['cost']->value == "1") {?>selected=""<?php }?>>< $10</option>
                    <option value="2" <?php if ($_smarty_tpl->tpl_vars['cost']->value == "2") {?>selected=""<?php }?>>$10 - $30</option>
                    <option value="3" <?php if ($_smarty_tpl->tpl_vars['cost']->value == "3") {?>selected=""<?php }?>>$30 - $100</option>
                    <option value="4" <?php if ($_smarty_tpl->tpl_vars['cost']->value == "4") {?>selected=""<?php }?>>$100 - $500</option>
                    <option value="5" <?php if ($_smarty_tpl->tpl_vars['cost']->value == "5") {?>selected=""<?php }?>>> $500</option>
                </select>
            </div>
            <div class="col-md-4">
                <label for="toptitle">Topic Title:</label>
                <input class="form-control input-sm" type="text" name="toptitle" placeholder="Topic Title" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['toptitle']->value, ENT_QUOTES, 'UTF-8');?>
" />
            </div>
            <div class="col-md-2">
                <label for="order_id">Order ID:</label>
                <input class="form-control input-sm force-integer" type="text" name="order_id" placeholder="Order Id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['order_id']->value, ENT_QUOTES, 'UTF-8');?>
" />
            </div>
            <div class="col-md-2">
                <button name="search" class="btn btn-info mt20">Search</button>
            </div>
        </div>
    </form>
</div><?php }
}
