示例#1
0
 public function preprocess()
 {
     // maintain user logins longer
     refreshSession();
     if (validateUserQuiet('batches')) {
         $this->audited = 0;
     }
     // autoclear old data from clipboard table on intial page load
     $clipboard = $this->connection->tableDefinition('batchCutPaste');
     if (isset($clipboard['tdate'])) {
         $this->connection->query('DELETE FROM batchCutPaste WHERE tdate < ' . $this->connection->curdate());
     }
     $this->addRoute('get<id><paste>', 'post<id><addUPC>', 'post<id><addLC>', 'post<id><upc><price>', 'post<id><autotag>', 'post<id><force>', 'post<id><unsale>', 'post<id><limit>', 'post<id><upc><uid><cut>', 'post<id><upc><price><qty>', 'delete<id><upc>', 'post<id><upc><swap>', 'post<id><qualifiers><discount>', 'post<id><trim>', 'post<id><storeID>');
     return parent::preprocess();
 }
示例#2
0
 function preprocess()
 {
     global $FANNIE_OP_DB;
     // maintain user logins longer
     refreshSession();
     if (validateUserQuiet('batches')) {
         $this->audited = 0;
     }
     $this->con = FannieDB::get($FANNIE_OP_DB);
     // autoclear old data from clipboard table on intial page load
     $clipboard = $this->con->tableDefinition('batchCutPaste');
     if (isset($clipboard['tdate'])) {
         $this->con->query('DELETE FROM batchCutPaste WHERE tdate < ' . $this->con->curdate());
     }
     $this->__routes[] = 'post<newType><newName><newStart><newEnd><newOwner>';
     $this->__routes[] = 'post<id><batchName><batchType><startDate><endDate><owner>';
     $this->__routes[] = 'get<mode><filter><max>';
     $this->__routes[] = 'post<delete><id>';
     return parent::preprocess();
 }
示例#3
0
<?php

include '../../config.php';
include 'prodFunction.php';
include $FANNIE_ROOT . 'auth/login.php';
refreshSession();
?>
<html>
<head>

<link href="../styles.css" rel="stylesheet" type="text/css">
<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- John Munn  (jrmunn@home.com) -->

<!-- Begin
 function putFocus(formInst, elementInst) {
  if (document.forms.length > 0) {
   document.forms[formInst].elements[elementInst].focus();
   document.forms[formInst].elements[elementInst].select();
  }
 }
// The second number in the "onLoad" command in the body
// tag determines the form's focus. Counting starts with '0'
//  End -->
</script>
<script type="text/javascript"
    src="/git/fannie/src/javascript/jquery.js">
</script>