<div class="inbox">

    <div class="row">

        <div class="col-md-12">

            <div class="portlet light bordered">

                <div class="portlet-title">

                    <div class="caption">

                        <span class="caption-subject bold uppercase">O que você deseja comprar ?</span>

                    </div>

                    <div class="actions">

                        <!--                        <a class="btn btn-circle btn-icon-only btn-default" href="javascript:cadPagina();" title="Salvar">

                                                    <i class="fa fa-file-o"></i>

                                                </a>

                                                <a class="btn btn-circle btn-icon-only btn-default" href="pagina.php" title="Cancelar">

                                                    <i class="icon-trash"></i>

                                                </a>-->

                    </div>

                </div>

                <div class="portlet-body">

                    <div class="tab-content">

                        <div class="tab-pane fade active in" id="tab_1_1">

                            <form method="post" action="" class="horizontal-form formulario j_buscar">

                                <div class="form-body">

                                    <div class="row">

                                        <div class="col-md-6">

                                            <div class="form-group">

                                                <label class="control-label" for="form_control_1">Categoria</label>

                                                <select class="form-control j_loadcat" name="categoria_id">

                                                    <option selected="selected" value="">Selecione uma categoria...</option>

                                                    <?php

                                                    $ReadCat = new Read;

                                                    $ReadCat->ExeRead("app_categorias", "ORDER BY categoria_nome ASC");



                                                    if ($ReadCat->getResult()):

                                                        foreach ($ReadCat->getResult() as $uf):

                                                            extract($uf);

                                                            ?>

                                                            <option value="<?= $categoria_id ?>"><?= $categoria_nome ?></option>

                                                            <?php

                                                        endforeach;

                                                    endif;

                                                    ?>

                                                </select>

                                                <div class="form-control-focus"> </div>

                                            </div>

                                            <div class="form-group">

                                                <label class="control-label" for="form_control_1">Subcategorias</label>

                                                <select class="form-control j_loadsubcat" name="subcategoria_id">

                                                    <option selected="selected" value="">Selecione uma subcategoria...</option>

                                                </select>

                                                <div class="form-control-focus"> </div>

                                            </div>

                                            <div class="form-group">

                                                <label class="control-label" for="form_control_1">Estado</label>

                                                <select class="form-control j_loadstate" name="estado_id">

                                                    <option selected="selected">Todos</option>

                                                    <?php

                                                    $ReadUF = new Read;

                                                    $ReadUF->ExeRead("tp_estados", "ORDER BY estado_uf ASC");



                                                    if ($ReadUF->getResult()):

                                                        foreach ($ReadUF->getResult() as $uf):

                                                            extract($uf);

                                                            ?>

                                                            <option value="<?= $estado_id ?>"><?= $estado_nome ?></option>

                                                            <?php

                                                        endforeach;

                                                    endif;

                                                    ?>

                                                </select>

                                                <div class="form-control-focus"> </div>

                                            </div>

                                            <div class="form-group">

                                                <label class="control-label" for="form_control_1">Cidade</label>

                                                <select class="form-control j_loadcity" name="cidade_id">

                                                    <option selected="selected">Todas</option>

                                                </select>

                                                <div class="form-control-focus"> </div>

                                            </div>

                                        </div>

                                        <!--/span-->

                                        <div class="col-md-6">

                                            <div class="form-group">

                                                <label class="control-label" for="form_control_1">Produto / Serviço <span class="required">*</span></label>

                                                <input type="text" class="form-control" placeholder="Produto" name="orcamento_titulo" id="produto" style="margin-bottom: 15px">

                                                <label class="control-label" for="form_control_1" >Mensagem <span class="required">*</span></label>

                                                <textarea class="form-control" rows="3" style="margin-bottom: 15px" name="orcamento_descricao"></textarea>

                                                <label class="control-label" for="form_control_1">Anexo </label>

                                                <div>

                                                    <div class="fileinput fileinput-new" data-provides="fileinput">

                                                        <div class="input-group input-large">

                                                            <div class="form-control uneditable-input input-fixed input-medium" data-trigger="fileinput">

                                                                <i class="fa fa-file fileinput-exists"></i>&nbsp;

                                                                <span class="fileinput-filename"> </span>

                                                            </div>

                                                            <span class="input-group-addon btn default btn-file">

                                                                <span class="fileinput-new"> Selecionar arquivo </span>

                                                                <span class="fileinput-exists"> Alterar </span>

                                                                <input type="file" name="orcamento_anexo_1"> </span>

                                                            <a href="javascript:;" class="input-group-addon btn red fileinput-exists" data-dismiss="fileinput"> Remover </a>

                                                        </div>

                                                    </div>

                                                </div>



                                                <!--                                                <div class="form-group">

                                                                                                    <div class="fileinput fileinput-new" data-provides="fileinput">

                                                                                                        <div class="fileinput-new thumbnail" style="width: 200px; height: 150px;">

                                                                                                            <img src="http://www.placehold.it/200x150/EFEFEF/AAAAAA&amp;text=no+image" alt=""> </div>

                                                                                                        <div class="fileinput-preview fileinput-exists thumbnail" style="max-width: 200px; max-height: 150px; line-height: 10px;"></div>

                                                                                                        <div>

                                                                                                            <span class="btn default btn-file">

                                                                                                                <span class="fileinput-new"> Selecionar Arquivo </span>

                                                                                                                <span class="fileinput-exists"> Alterar </span>

                                                                                                                <input type="hidden" value="" name="..."><input type="file" name=""> </span>

                                                                                                            <a href="javascript:;" class="btn default fileinput-exists" data-dismiss="fileinput"> Remover </a>

                                                                                                        </div>

                                                                                                    </div>

                                                                                                </div>-->

                                                <button type="submit" class="btn blue">Buscar</button>

                                                <div class="form-control-focus"> </div>

                                            </div>

                                        </div>

                                    </div>

                                </div>

                            </form>

                        </div>



                    </div>

                </div>

            </div>

        </div>

    </div>

</div>

