Beispiel #1
0
 public function form_content()
 {
     ob_start();
     ?>
     <form method=get class="form-horizontal">
     <div class="row">
         <div class="col-sm-6">
             <p>
                 <label>Start Date</label>
                 <input class="form-control date-field" required type=text id=date1 name=date1 />
             </p>
             <p>
                 <label>End Date</label>
                 <input class="form-control date-field" required type=text id=date2 name=date2 />
             </p>
         </div>
         <div class="col-sm-6">
             <p>
             <?php 
     echo FormLib::date_range_picker();
     ?>
             </p>
         </div>
     </div>
     <p>
         <button type=submit name=submit value="Submit" class="btn btn-default">Submit</button>
         <label><input type=checkbox name=excel /> Excel</label>
     </p>
     </form>
     <?php 
     return ob_get_clean();
 }
Beispiel #2
0
    public function form_content()
    {
        ob_start();
        ?>
<form method ="get" action="CashierRecordsReport.php">
<div class="col-sm-4">
    <div class="form-group">
    <label>Date Start</label>
    <input type=text id=date1 name=date1 class="form-control date-field" />
    </div>
    <div class="form-group">
    <label>Date End</label>
    <input type=text id=date2 name=date2 class="form-control date-field" />
    </div>
    <p>
    <button type=submit name=submit class="btn btn-default btn-core">Submit</button>
    <button type=reset name=reset class="btn btn-default btn-reset">Start Over</button>
    </p>
</div>
<div class="col-sm-4">
    <?php 
        echo FormLib::date_range_picker();
        ?>
</div>
</form>
<?php 
        return ob_get_clean();
    }
Beispiel #3
0
    public function form_content()
    {
        $lastMonday = "";
        $lastSunday = "";
        $ts = mktime(0, 0, 0, date("n"), date("j") - 1, date("Y"));
        while ($lastMonday == "" || $lastSunday == "") {
            if (date("w", $ts) == 1 && $lastSunday != "") {
                $lastMonday = date("Y-m-d", $ts);
            } elseif (date("w", $ts) == 0) {
                $lastSunday = date("Y-m-d", $ts);
            }
            $ts = mktime(0, 0, 0, date("n", $ts), date("j", $ts) - 1, date("Y", $ts));
        }
        ob_start();
        ?>
<form action=DiscountsReport.php method=get>
<div class="col-sm-4">
    <div class="form-group">
    <label>Date Start</label>
    <input type=text id=date1 name=date1 class="form-control date-field" />
    </div>
    <div class="form-group">
    <label>Date End</label>
    <input type=text id=date2 name=date2 class="form-control date-field" />
    </div>
    <p>
    <label>Excel <input type=checkbox name=excel value="xls" /></label>
    </p>
    <p>
    <button type=submit name=submit class="btn btn-default btn-core">Submit</button>
    <button type=reset name=reset class="btn btn-default btn-reset">Start Over</button>
    </p>
</div>
<div class="col-sm-4">
    <?php 
        echo FormLib::date_range_picker();
        ?>
</div>
</form>
        <?php 
        return ob_get_clean();
    }
Beispiel #4
0
    public function form_content()
    {
        ob_start();
        ?>
<form method="get" action="BasketLimitedReport.php" class="form-horizontal">
<div class="col-sm-5">
    <div class="form-group">
        <label class="control-label col-sm-4">Size Limit (Qty)</label>
        <div class="col-sm-8">
            <input type=text name=qty id=qty value="1" 
                class="form-control" required />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-sm-4">Start Date</label>
        <div class="col-sm-8">
            <input type=text id=date1 name=date1 
                class="form-control date-field" required />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-sm-4">End Date</label>
        <div class="col-sm-8">
            <input type=text id=date2 name=date2 
                class="form-control date-field" required />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-8">
            <input type="checkbox" name="excel" value="xls" />
            Excel
        </label>
    </div>
    <p>
        <button class="btn btn-default btn-core" type="submit">Submit</button>
        <button class="btn btn-default btn-reset" type="reset">Start Over</button>
    </p>
</div>
<div class="col-sm-5">
    <div class="form-group">
        <?php 
        echo FormLib::date_range_picker();
        ?>
    </div>
</div>
</form>
<?php 
        return ob_get_clean();
    }
Beispiel #5
0
    public function form_content()
    {
        ob_start();
        ?>
<form method="get" class="form-horizontal">
<div class="row">
    <div class="col-sm-6">
        <?php 
        echo FormLib::standardDepartmentFields('buyer');
        ?>
        <div class="form-group">
            <label class="col-sm-4 control-label">
                Group by weekday?
                <input type=checkbox name=weekday value=1>
            </label>
        </div>
        <div class="form-group">
            <label class="control-label col-sm-4">Save to Excel
                <input type=checkbox name=excel id=excel value=1>
            </label>
            <label class="col-sm-4 control-label">Store</label>
            <div class="col-sm-4">
                <?php 
        $ret = FormLib::storePicker();
        echo $ret['html'];
        ?>
            </div>
        </div>
    </div>
    <div class="col-sm-5">
        <div class="form-group">
            <label class="col-sm-4 control-label">Start Date</label>
            <div class="col-sm-8">
                <input type=text id=date1 name=date1 class="form-control date-field" required />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-4 control-label">End Date</label>
            <div class="col-sm-8">
                <input type=text id=date2 name=date2 class="form-control date-field" required />
            </div>
        </div>
        <div class="form-group">
            <?php 
        echo FormLib::date_range_picker();
        ?>
                            
        </div>
    </div>
</div>
    <p>
        <button type=submit name=submit value="Submit" class="btn btn-default btn-core">Submit</button>
        <button type=reset name=reset class="btn btn-default btn-reset"
            onclick="$('#super-id').val('').trigger('change');">Start Over</button>
    </p>
</form>
        <?php 
        $this->addOnloadCommand("\$('#subdepts').closest('.form-group').hide();");
        return ob_get_clean();
    }
Beispiel #6
0
    public function form_content()
    {
        $dbc = $this->connection;
        $dbc->selectDB($this->config->get('OP_DB'));
        $tenders = array();
        $p = $dbc->prepare_statement("SELECT TenderCode,TenderName FROM tenders ORDER BY TenderName");
        $r = $dbc->exec_statement($p);
        while ($w = $dbc->fetch_row($r)) {
            $tenders[$w['TenderCode']] = $w['TenderName'];
        }
        ob_start();
        ?>
<form method = "get" action="TenderInOutReport.php">
<div class="col-sm-4">
    <div class="form-group"> 
        <label>Reason</label>
        <select name="tendercode" class="form-control">
            <?php 
        foreach ($tenders as $code => $name) {
            printf('<option value="%s">%s</option>', $code, $name);
        }
        ?>
        </select>
    </div>
    <div class="form-group"> 
        <label>Date Start</label>
        <input type=text id=date1 name=date1 required
            class="form-control date-field" />
    </div>
    <div class="form-group"> 
        <label>Date End</label>
        <input type=text id=date2 name=date2 required
            class="form-control date-field" />
    </div>
    <div class="form-group"> 
        <input type="checkbox" name="excel" id="excel" value="xls" />
        <label for="excel">Excel</label>
    </div>
    <div class="form-group"> 
        <button type=submit name=submit value="Submit"
            class="btn btn-default btn-core">Submit</button>
        <button type=reset name=reset value="Start Over"
            class="btn btn-default btn-reset">Start Over</button>
    </div>
</div>
<div class="col-sm-4">
    <?php 
        echo FormLib::date_range_picker();
        ?>
</div>
</form>
        <?php 
        return ob_get_clean();
    }
Beispiel #7
0
    function form_content()
    {
        $dbc = FannieDB::get($this->config->get('OP_DB'));
        ob_start();
        ?>
<form method = "get" action="<?php 
        echo $_SERVER['PHP_SELF'];
        ?>
">
<div class="col-sm-5">
    <div class="form-group">
        <label>Date Start</label>
            <input type=text id=date1 name=date1 
                class="form-control date-field" required />
    </div>
    <div class="form-group">
        <label>Date End</label>
            <input type=text id=date2 name=date2 
                class="form-control date-field" required />
    </div>
    <div class="form-group">
        <label>Vendor</label>
        <select name="vendorID" class="form-control">
        <option value="">All</option>
        <?php 
        $vendors = new VendorsModel($dbc);
        foreach ($vendors->find('vendorName') as $obj) {
            printf('<option value="%d">%s</option>', $obj->vendorID(), $obj->vendorName());
        }
        ?>
        </select>
    </div>
    <p>
        <button type="submit" class="btn btn-default btn-core">Submit</button>
        <button type="reset" class="btn btn-default btn-reset">Start Over</button>
    </p>
</div>
<div class="col-sm-5">
    <?php 
        echo FormLib::date_range_picker();
        ?>
                         
</div>
</form>
<?php 
        return ob_get_clean();
    }
Beispiel #8
0
    public function form_content()
    {
        $this->addScript('../../item/autocomplete.js');
        ob_start();
        ?>
<form method = "get" action="<?php 
        echo $_SERVER['PHP_SELF'];
        ?>
">
<div class="col-sm-5">
    <div class="form-group">
        <label>Vendor</label>
        <input type=text name=vendor id=vendor 
            class="form-control" required />
    </div>
    <div class="form-group">
        <label>Start Date</label>
        <input type=text name=date1 id=date1 
            class="form-control date-field" required />
    </div>
    <div class="form-group">
        <label>End Date</label>
        <input type=text name=date2 id=date2 
            class="form-control date-field" required />
    </div>
    <div class="form-group">
        <label>Sum report by</label>
        <select name=groupby class="form-control">
            <option value="upc">UPC</option>
            <option value="date">Date</option>
            <option value="dept">Department</option>
        </select>
    </div>
    <div class="form-group">
        <label>Excel
            <input type="checkbox" name="excel" value="xls" />
        </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 
        $auto_url = $this->config->URL . 'ws/';
        $this->add_onload_command("bindAutoComplete('#vendor', '{$auto_url}', 'vendor');\n");
        $this->add_onload_command('$(\'#vendor\').focus();');
        return ob_get_clean();
    }
Beispiel #9
0
 public function form_content()
 {
     $this->add_onload_command('$(\'#upc\').focus();');
     return '
         <form action=RecallReport.php method=get>
         <div class="col-sm-4">
         <div class="form-group">
             <label>UPC</label>
             <input type=text name=upc class="form-control" 
                 id="upc" required />
         </div>
         <div class="form-group">
             <label>Start date</label>
             <input type=text name=date1 id="date1" required
                 class="form-control date-field" />
         </div>
         <div class="form-group">
             <label>End date</label>
             <input type=text name=date2 id="date2" required
                 class="form-control date-field" />
         </div>
         <div class="form-group">
             <button type=submit name=submit value="Get Report" 
                 class="btn btn-default">Get Report</button>
             <input type=checkbox name=excel id=excel value=xls /> <label for=excel>Excel</label>
         </div>
         </div>
         <div class="col-sm-4">
         ' . FormLib::date_range_picker() . '
         </div>
         </form>';
 }
Beispiel #10
0
    function form_content()
    {
        $dbc = $this->connection;
        $dbc->selectDB($this->config->get('OP_DB'));
        $codes = new ReasoncodesModel($dbc);
        ob_start();
        ?>
<form method = "get" action="<?php 
        echo $_SERVER['PHP_SELF'];
        ?>
">
<div class="col-sm-4">
    <div class="form-group"> 
        <label>Reason</label>
        <select name="reason" class="form-control">
            <option value="0">Any Reason</option>
            <?php 
        foreach ($codes->find() as $obj) {
            printf('<option value="%d">%s</option>', $obj->mask(), $obj->textStr());
        }
        ?>
        </select>
    </div>
    <div class="form-group"> 
        <label>Date Start</label>
        <input type=text id=date1 name=date1 required
            class="form-control date-field" />
    </div>
    <div class="form-group"> 
        <label>Date End</label>
        <input type=text id=date2 name=date2 required
            class="form-control date-field" />
    </div>
    <div class="form-group"> 
        <input type="checkbox" name="excel" id="excel" value="xls" />
        <label for="excel">Excel</label>
    </div>
    <div class="form-group"> 
        <button type=submit name=submit value="Submit"
            class="btn btn-default">Submit</button>
        <button type=reset name=reset value="Start Over"
            class="btn btn-default">Start Over</button>
    </div>
</div>
<div class="col-sm-4">
    <?php 
        echo FormLib::date_range_picker();
        ?>
</div>
</form>
<?php 
        return ob_get_clean();
    }
Beispiel #11
0
    public function form_content()
    {
        return '
        <form action="' . $_SERVER['PHP_SELF'] . '" method="get">
<div class="well">Dates are optional; omit for last quarter</div>
<div class="col-sm-4">
    <div class="form-group">
    <label>Date Start</label>
    <input type=text id=date1 name=date1 class="form-control date-field" />
    </div>
    <div class="form-group">
    <label>Date End</label>
    <input type=text id=date2 name=date2 class="form-control date-field" />
    </div>
    <p>
    <button type=submit name=submitted value=1 class="btn btn-default btn-core">Submit</button>
    <button type=reset name=reset class="btn btn-default btn-reset">Start Over</button>
    </p>
</div>
<div class="col-sm-4">' . FormLib::date_range_picker() . '
</div>
</form>
        ';
    }
    function form_content()
    {
        ob_start();
        ?>
<form method = "get"> 
<div class="col-sm-4">
    <div class="form-group">
        <label><?php 
        echo _('Owner #');
        ?>
</label>
        <input type=text name=card_no id=card_no  class="form-control" />
    </div>
    <div class="form-group">
        <label>Date Start</label>
        <input type=text id=date1 name=date1 class="form-control date-field" required />
    </div>
    <div class="form-group">
        <label>End Start</label>
        <input type=text id=date2 name=date2 class="form-control date-field" required />
    </div>
    <div class="form-group">
        <input type="checkbox" name="excel" id="excel" value="xls" />
        <label for="excel">Excel</label>
    </div>
    <p>
        <button type=submit class="btn btn-default btn-core">Submit</button>
        <button type=reset class="btn btn-default btn-reset">Start Over</button>
    </p>
</div>
<div class="col-sm-4">
    <?php 
        echo FormLib::date_range_picker();
        ?>
</div>
</form>
<?php 
        return ob_get_clean();
    }
    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()
    }
Beispiel #14
0
    public function form_content()
    {
        $lastMonday = "";
        $lastSunday = "";
        $ts = mktime(0, 0, 0, date("n"), date("j") - 1, date("Y"));
        while ($lastMonday == "" || $lastSunday == "") {
            if (date("w", $ts) == 1 && $lastSunday != "") {
                $lastMonday = date("Y-m-d", $ts);
            } elseif (date("w", $ts) == 0) {
                $lastSunday = date("Y-m-d", $ts);
            }
            $ts = mktime(0, 0, 0, date("n", $ts), date("j", $ts) - 1, date("Y", $ts));
        }
        ob_start();
        ?>
        <form action=GeneralSalesReport.php method=get class="form-horizontal">
        <div class="row">
            <div class="col-sm-6">
                <p>
                    <label>Start Date</label>
                    <input class="form-control date-field" type=text id=date1 name=date1 value="<?php 
        echo $lastMonday;
        ?>
" />
                </p>
                <p>
                    <label>End Date</label>
                    <input class="form-control date-field" type=text id=date2 name=date2 value="<?php 
        echo $lastSunday;
        ?>
" />
                </p>
            </div>
            <div class="col-sm-6">
                <p>
                <?php 
        echo FormLib::date_range_picker();
        ?>
                </p>
            </div>
        </div>
        <p>
            <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>
        </p>
        <p>
            <button type=submit name=submit value="Submit" class="btn btn-default">Submit</button>
            <label><input type=checkbox name=excel /> Excel</label>
        </p>
        </form>
        <?php 
        return ob_get_clean();
    }
Beispiel #15
0
    function form_content()
    {
        ob_start();
        ?>
<form method="get" action="<?php 
        echo $_SERVER['PHP_SELF'];
        ?>
">
<div class="col-sm-5">
    <div class="form-group">
        <label>UPC</label>
        <input type="text" name="upc" id="upc-field" 
            required class="form-control" />
    </div>
    <div class="form-group">
        <label>Start Date</label>
        <input type=text id=date1 name=date1 
            class="form-control date-field" required />
    </div>
    <div class="form-group">
        <label>End Date</label>
        <input type=text id=date2 name=date2 
            class="form-control date-field" required />
    </div>
    <p>
        <button type=submit class="btn btn-default btn-core">Submit</button>
        <button type=reset class="btn btn-default btn-reset">Start Over</button>
    </p>
</div>
<div class="col-sm-5">
    <?php 
        echo FormLib::date_range_picker();
        ?>
</div>
</form>
<?php 
        $this->add_onload_command('$(\'#upc-field\').focus();');
        return ob_get_clean();
    }
    function form_content()
    {
        global $FANNIE_URL;
        ob_start();
        ?>
<form method = "get" action="ProductMovementModular.php" class="form-horizontal">
    <div class="col-sm-5">
        <div class="form-group"> 
            <label class="control-label col-sm-4">UPC</label>
            <div class="col-sm-8">
                <input type=text name=upc id=upc class="form-control" required />
            </div>
        </div>
        <div class="form-group"> 
            <label class="control-label col-sm-4">
                <input type="checkbox" name="excel" id="excel" value="xls" /> Excel
            </label>
        </div>
        <div class="form-group"> 
            <button type=submit name=submit value="Submit" class="btn btn-default btn-core">Submit</button>
            <button type=reset name=reset class="btn btn-default btn-reset">Start Over</button>
        </div>
    </div>
    <div class="col-sm-5">
        <div class="form-group">
            <label class="col-sm-4 control-label">Start Date</label>
            <div class="col-sm-8">
                <input type=text id=date1 name=date1 class="form-control date-field" required />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-4 control-label">End Date</label>
            <div class="col-sm-8">
                <input type=text id=date2 name=date2 class="form-control date-field" required />
            </div>
        </div>
        <div class="form-group">
            <?php 
        echo FormLib::date_range_picker();
        ?>
        </div>
    </div>
</form>
<?php 
        $this->add_script($FANNIE_URL . 'item/autocomplete.js');
        $ws = $FANNIE_URL . 'ws/';
        $this->add_onload_command("bindAutoComplete('#upc', '{$ws}', 'item');\n");
        $this->add_onload_command('$(\'#upc\').focus();');
        return ob_get_clean();
    }
Beispiel #17
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();
    }
    public function form_content()
    {
        $dbc = $this->connection;
        $dbc->selectDB($this->config->get('OP_DB'));
        $deptQ = $dbc->prepare_statement("select dept_no,dept_name from departments order by dept_no");
        $deptR = $dbc->exec_statement($deptQ);
        $depts = array();
        while ($deptW = $dbc->fetch_array($deptR)) {
            $depts[$deptW[0]] = $deptW[1];
        }
        ob_start();
        ?>
<form action="CorrelatedMovementReport.php" method=post>
<div class="row">
    <div class="col-sm-6">
        <ul class="nav nav-tabs" role="tablist">
            <li class="active"><a href="#department-tab" role="tab"
                onclick="$(this).tab('show'); $('.tab-pane :input').prop('disabled', true); 
                $('.tab-pane.active :input').prop('disabled', false); return false;">Department</a></li>
            <li><a href="#upc-tab" role="tab" 
                onclick="$(this).tab('show'); $('.tab-pane :input').prop('disabled', true); 
                $('.tab-pane.active :input').prop('disabled', false); return false;">UPC</a></li>
        </ul>
        <div class="tab-content">
            <div class="tab-pane active" id="department-tab">
                <label class="control-label">Department(s)</label>
                <select size=7 multiple name=depts[] class="form-control">
                <?php 
        foreach ($depts as $no => $name) {
            echo "<option value={$no}>{$no} {$name}</option>";
        }
        ?>
                </select>
            </div>
            <div class="tab-pane" id="upc-tab">
                <label class="control-label">UPC</label>
                <input type=text name=upc class="form-control" disabled />
            </div>
        </div>
    </div>
    <div class="col-sm-6">
        <label class="control-label">Start date</label>
        <input type="text" id="date1" name="date1" class="form-control date-field" />
        <label class="control-label">End date</label>
        <input type="text" id="date2" name="date2" class="form-control date-field" />
    </div>
</div>
<hr />
<div class="row">
    <div class="col-sm-6">
        <label class="control-label">Result Filter (optional)</label>
        <select size=7 multiple name=filters[] class="form-control">
        <?php 
        foreach ($depts as $no => $name) {
            echo "<option value={$no}>{$no} {$name}</option>";
        }
        ?>
        </select>
    </div>
    <div class="col-sm-6">
        <?php 
        echo FormLib::date_range_picker();
        ?>
    </div>
</div>
<hr />
<p>
    <button type=submit name=submit value="Run Report" class="btn btn-default">Run Report</button>
    <label><input type=checkbox name=excel value="xls" /> Excel</label>
</p>
</form>
        <?php 
        return ob_get_clean();
    }
Beispiel #19
0
    /** The form for specifying the report
     */
    function form_content()
    {
        global $FANNIE_PLUGIN_SETTINGS;
        $dbc = FannieDB::get($FANNIE_PLUGIN_SETTINGS['CoopCredDatabase']);
        ?>
<div id=main>    
<?php 
        if (isset($this->errors[0])) {
            echo "<p style='font-family:Arial; font-size:1.5em;'>";
            echo "<b>Errors in previous run:</b>";
            $sep = "<br />";
            foreach ($this->errors as $error) {
                echo "{$sep}{$error}";
            }
            echo "</p>";
        }
        ?>
</div><!-- /#main -->

<!-- Bootstrap-coded begins -->
<form method = "get" action="ProgramEventsReport.php" class="form-horizontal">
<div class="row">
    <div class="col-sm-6">
        <div class="form-group">
            <label class="col-sm-4 control-label">Program</label>
            <div class="col-sm-8">
<?php 
        echo "<select id='programID' name='programID' class='form-control'>";
        echo "<option value=''>Choose a Program</option>";
        $ccpModel = new CCredProgramsModel($dbc);
        $today = date('Y-m-d');
        foreach ($ccpModel->find() as $prog) {
            $desc = $prog->programName();
            if ($prog->active() == 0) {
                $desc .= " (inactive)";
            }
            if ($prog->startDate() > $today) {
                $desc .= " (Starts {$prog->startDate()})";
            }
            if ($prog->endDate() != 'NULL' && $prog->endDate() != '0000-00-00' && $prog->endDate() < $today) {
                $desc .= " (Ended {$prog->endDate()})";
            }
            printf("<option value='%d'%s>%s</option>", $prog->programID(), $this->pid == $prog->programID() ? " SELECTED" : "", $desc);
        }
        echo "</select>";
        ?>
            </div><!-- /.col-sm-8 -->
        </div><!-- /.form-group -->
    </div><!-- /.col-sm-6 end of left col -->
</div><!-- /.row -->

<div class="row">
    <div class="col-sm-6"><!-- start left col -->
        <div class="form-group">
            <label class="col-sm-4 control-label"> </label>
            <div class="col-sm-8">
                <p class="explain" style="float:none; margin:0 0 0 0.5em;">
<span style='font-weight:bold;'>Leave dates empty to report on the whole life of the program.</span>
<br/>The final Balance is relative to the Balance at Date Start .</p>
            </div>
        </div><!-- /.form-group -->
    </div><!-- /.col-sm-6 end of left col -->
</div><!-- /.row -->

<div class="row">
    <div class="col-sm-6"><!-- start left col -->
        <div class="form-group">
            <label class="col-sm-4 control-label">Start Date</label>
            <div class="col-sm-8">
                <input type=text id=date1 name=date1 class="form-control date-field" /><!-- required / -->
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-4 control-label">End Date</label>
            <div class="col-sm-8">
                <input type=text id=date2 name=date2 class="form-control date-field" /><!-- required / -->
            </div>
        </div>
        <div class="form-group">
            <label for="sortable" class="col-sm-4 control-label"
title="Tick to display with sorting from column heads; un-tick for a plain formt."
>Sort on Column Heads</label>
            <input type="checkbox" name="sortable" id="sortable" CHECKED />
        </div>
    </div><!-- /.col-sm-6 -->
    <div class="col-sm-5"><!-- start right col -->
        <div class="form-group">
<?php 
        echo FormLib::date_range_picker();
        ?>
                            
        </div>
    </div><!-- /.col-sm-5 -->
</div><!-- /.row -->
<p>
        <button type=submit name=submit value="Create Report" class="btn btn-default">Create Report</button>
        <!-- button type=reset name=reset class="btn btn-default">Start Over</button -->
</p>
            <input type=hidden name=card_no id=card_no value=0  />
</form><!-- /.form-horizontal -->

<!-- Bootstrap-coded ends -->
<?php 
        // /form_content()
    }
    public function form_content()
    {
        global $FANNIE_URL;
        ob_start();
        ?>
<form method="get" action="ManufacturerMovementReport.php" class="form-horizontal">
    <div class="col-sm-5">
        <div class="form-group">
            <label class="col-sm-4 control-label"><?php 
        echo _("Manufacturer");
        ?>
</label>
            <div class="col-sm-8">
                <input type=text name=manu id=manu class="form-control" required />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-4 control-label">Type</label>
            <div class="col-sm-8">
                <label class="control-label">
                    <input type=radio name=type value=name id="rdoName" checked class="radio-inline" /> Name
                </label>
                <label class="control-label">
                    <input type=radio name=type value=prefix id="rdoPre" class="radio-inline" /> Prefix
                </label>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-4 control-label">Sum report by</label>
            <div class="col-sm-8">
                <select name=groupby class="form-control">
                    <option value="upc">UPC</option>
                    <option value="date">Date</option>
                    <option value="dept">Department</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-sm-4">
                <input type=checkbox name=excel value=xls id="excel" /> Excel
            </label>
        </div>
        <div class="form-group">
        <button type=submit name=submit value="Submit" class="btn btn-default btn-core">Submit</button>
        <button type=reset name=reset class="btn btn-default btn-reset">Start Over</button>
        </div>
    </div>
    <div class="col-sm-5">
        <div class="form-group">
            <label class="col-sm-4 control-label">Start Date</label>
            <div class="col-sm-8">
                <input type=text id=date1 name=date1 class="form-control date-field" required />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-4 control-label">End Date</label>
            <div class="col-sm-8">
                <input type=text id=date2 name=date2 class="form-control date-field" required />
            </div>
        </div>
        <div class="form-group">
            <?php 
        echo FormLib::date_range_picker();
        ?>
                            
        </div>
    </div>
</form>
<?php 
        $this->add_script($FANNIE_URL . 'item/autocomplete.js');
        $ws = $FANNIE_URL . 'ws/';
        $this->add_onload_command("bindAutoComplete('#manu', '{$ws}', 'brand');\n");
        $this->add_onload_command('$(\'#manu\').focus();');
        return ob_get_clean();
    }
Beispiel #21
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()
    }
Beispiel #22
0
    public function form_content()
    {
        ob_start();
        ?>
<form method="get" action="WicSalesReport.php" class="form-horizontal">
    <div class="col-sm-5">
        <div class="form-group">
            <label class="col-sm-4 control-label">Sum report by</label>
            <div class="col-sm-8">
                <select name=groupby class="form-control">
                    <option value="upc">UPC</option>
                    <option value="date">Date</option>
                    <option value="dept">Department</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-sm-4">
                <input type=checkbox name=excel value=xls id="excel" /> Excel
            </label>
        </div>
        <div class="form-group">
        <button type=submit name=submit value="Submit" class="btn btn-default btn-core">Submit</button>
        <button type=reset name=reset class="btn btn-default btn-reset">Start Over</button>
        </div>
    </div>
    <div class="col-sm-5">
        <div class="form-group">
            <label class="col-sm-4 control-label">Start Date</label>
            <div class="col-sm-8">
                <input type=text id=date1 name=date1 class="form-control date-field" required />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-4 control-label">End Date</label>
            <div class="col-sm-8">
                <input type=text id=date2 name=date2 class="form-control date-field" required />
            </div>
        </div>
        <div class="form-group">
            <?php 
        echo FormLib::date_range_picker();
        ?>
                            
        </div>
    </div>
</form>
<?php 
        $this->add_script($this->config->get('URL') . 'item/autocomplete.js');
        $ws = $this->config->get('URL') . 'ws/';
        $this->add_onload_command("bindAutoComplete('#manu', '{$ws}', 'brand');\n");
        $this->add_onload_command('$(\'#manu\').focus();');
        return ob_get_clean();
    }
Beispiel #23
0
    function form_content()
    {
        $dbc = $this->connection;
        $dbc->selectDB($this->config->get('OP_DB'));
        $deptsQ = $dbc->prepare_statement("select dept_no,dept_name from departments order by dept_no");
        $deptsR = $dbc->exec_statement($deptsQ);
        $deptsList = "";
        while ($deptsW = $dbc->fetch_array($deptsR)) {
            $deptsList .= "<option value={$deptsW['0']}>{$deptsW['0']} {$deptsW['1']}</option>";
        }
        ob_start();
        ?>
<form method="get" action="NonMovementReport.php" class="form-horizontal">
    <div class="col-sm-6">
        <?php 
        echo FormLib::standardDepartmentFields();
        ?>
        <div class="form-group">
            <label class="control-label col-sm-4">
                Excel
                <input type=checkbox name=excel value=xls id="excel" />
            </label>
            <label class="control-label col-sm-4">
                Netted
                <input type=checkbox name=netted id="netted" />
            </label>
        </div>
        <div class="form-group">
            <button type=submit name=submit value="Submit" class="btn btn-default btn-core">Submit</button>
            <button type=reset name=reset class="btn btn-default btn-reset"
                onclick="$('#super-id').val('').trigger('change');">Start Over</button>
        </div>
    </div>
    <div class="col-sm-5">
        <div class="form-group">
            <label class="col-sm-4 control-label">Start Date</label>
            <div class="col-sm-8">
                <input type=text id=date1 name=date1 class="form-control date-field" required />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-4 control-label">End Date</label>
            <div class="col-sm-8">
                <input type=text id=date2 name=date2 class="form-control date-field" required />
            </div>
        </div>
        <div class="form-group">
            <?php 
        echo FormLib::date_range_picker();
        ?>
                            
        </div>
    </div>
</form>
<?php 
        return ob_get_clean();
    }
    function form_content()
    {
        global $FANNIE_URL;
        ob_start();
        ?>
<form method = "get" action="<?php 
        echo $_SERVER['PHP_SELF'];
        ?>
">
<div class="col-sm-4">
    <div class="form-group">
        <label>Cashier#
            <?php 
        echo \COREPOS\Fannie\API\lib\FannieHelp::ToolTip('Leave blank to list all cashiers');
        ?>
</label>
        <input type=text name=emp_no id=emp_no  class="form-control" />
    </div>
    <div class="form-group">
        <label>Date Start</label>
        <input type=text id=date1 name=date1 class="form-control date-field" required />
    </div>
    <div class="form-group">
        <label>End Start</label>
        <input type=text id=date2 name=date2 class="form-control date-field" required />
    </div>
    <div class="form-group">
        <input type="checkbox" name="excel" id="excel" value="xls" />
        <label for="excel">Excel</label>
    </div>
    <p>
        <button type=submit class="btn btn-default btn-submit">Submit</button>
        <button type=reset class="btn btn-default btn-reset">Start Over</button>
    </p>
</div>
<div class="col-sm-4">
    <?php 
        echo FormLib::date_range_picker();
        ?>
</div>
</form>
<?php 
        return ob_get_clean();
    }