Exemplo n.º 1
0
    public function form_content()
    {
        list($lastMonday, $lastSunday) = \COREPOS\Fannie\API\lib\Dates::lastWeek();
        ob_start();
        ?>
<form action=CouponsReport.php method=get>
<div class="col-sm-4">
<div class="form-group">
    <label>Start Date</label>
    <input type=text id="date1" name=date1 
        class="form-control date-field" value="<?php 
        echo $lastMonday;
        ?>
" />
</div>
<div class="form-group">
    <label>End Date</label>
    <input type=text id="date2" name=date2 
        class="form-control date-field" value="<?php 
        echo $lastSunday;
        ?>
" />
</div>
<div class="form-group">
    <label>
        Excel <input type=checkbox name=excel value="xls" />
    </label>
    <button type=submit name=submit value="Submit" 
        class="btn btn-default">Submit</button>
</div>
</div>
<div class="col-sm-4">
<?php 
        echo FormLib::date_range_picker();
        ?>
</div>
</form>
        <?php 
        return ob_get_clean();
    }
Exemplo n.º 2
0
    function form_content()
    {
        list($lastMonday, $lastSunday) = \COREPOS\Fannie\API\lib\Dates::lastWeek();
        ob_start();
        ?>
        <form action=StoreSummaryReportAlt.php method=get>
        <div class="col-sm-5">
            <div class="form-group">
                <label>Start Date</label>
                <input type=text id=date1 name=date1 class="form-control date-field" 
                    value="<?php 
        echo $lastMonday;
        ?>
" />
            </div>
            <div class="form-group">
                <label>End Date</label>
                <input type=text id=date2 name=date2 class="form-control date-field" 
                    value="<?php 
        echo $lastSunday;
        ?>
" />
            </div>
            <div class="form-group">
                <select name=dept class="form-control">
                <option value=0>Use department settings at time of sale</option>
                <option value=1>Use current department settings</option>
                </select>
            </div>
            <div class="form-group">
                <label>Sortable
                    <input type="checkbox" name="sortable" />
                </label>
            </div>
            <p>
                <button type="submit" class="btn btn-default">Submit</button>
            </p>
        </div>
        <div class="col-sm-5">
            <?php 
        echo FormLib::date_range_picker();
        ?>
        </div>
        </form>
        <?php 
        return ob_get_clean();
        // form_content()
    }
Exemplo n.º 3
0
    function form_content()
    {
        ob_start();
        list($lastMonday, $lastSunday) = \COREPOS\Fannie\API\lib\Dates::lastWeek();
        ?>
            <form action="<?php 
        echo $_SERVER['PHP_SELF'];
        ?>
" method="get" id="form1">
        <!-- Left column -->
        <div class="col-sm-5">
            <div class="form-group">
            <label>Top how many <?php 
        echo _("members");
        ?>
?
            <br />(Leave empty for all.)</label>
                <input type="text" name="top_n" value="" class="form-control"
                    id="top_n" />
            </div>
            <div class="form-group">
                <label>Start Date</label>
                <input type=text id=date1 name=date1 class="form-control date-field" 
                    value="<?php 
        echo $lastMonday;
        ?>
" />
            </div>
            <div class="form-group">
                <label>End Date</label>
                <input type=text id=date2 name=date2 class="form-control date-field" 
                    value="<?php 
        echo $lastSunday;
        ?>
" />
            </div>
            <div class="form-group">
                <label>Sortable
                    <input type="checkbox" name="sortable" />
                </label>
            </div>
            <div class="form-group">
                <p>
                    <button type="submit" class="btn btn-default">Prepare Report</button>
                </p>
            </div>
        </div>
        <!-- Right column -->
        <div class="col-sm-5">
<p>
<br/> 
<br/> 
<br/> 
</p>
            <?php 
        echo FormLib::date_range_picker();
        ?>
        </div>
        </form>
        <?php 
        $this->add_onload_command('$(\'#top_n\').focus()');
        return ob_get_clean();
        // form_content()
    }
Exemplo n.º 4
0
    function form_content()
    {
        list($lastMonday, $lastSunday) = \COREPOS\Fannie\API\lib\Dates::lastWeek();
        ob_start();
        ?>
<form action=CustomerCountReport.php method=get>
<div class="col-sm-6">
<p>
    <label>Start Date</label>
    <input type=text id=date1 name=date1 value="<?php 
        echo $lastMonday;
        ?>
"
        class="form-control date-field" required />
</p>
<p>
    <label>End Date</label>
    <input type=text id=date2 name=date2 value="<?php 
        echo $lastSunday;
        ?>
" 
        class="form-control date-field" required />
</p>
<p>
    <button type=submit name=submit value="Submit" class="btn btn-default">Submit</button>
    <label><input type=checkbox name=excel id="excel" value=xls /> Excel</label>
</p>
</div>
<div class="col-sm-6">
    <?php 
        echo FormLib::dateRangePicker();
        ?>
</div>
</form>
<?php 
        return ob_get_clean();
    }