[code:1:bdad7f1d93]
package netkiller.table;
import java.sql.*;
import java.util.*;
import javax.servlet.jsp.*;
import javax.servlet.ServletRequest;
import javax.servlet.http.HttpServletRequest;
import netkiller.util.*;
import netkiller.database.*;
public class BaseTable { //extends AnySQL
//AnySQL oTable = new AnySQL();
private static String oDatabase = null;
private static final String Auth = "cleartext"; //crypt
private DBConnect dbc = null;
private ResultSet rs = null;
private PageContext pageContext = null;
private Vector vError = new Vector();
private static boolean debug = false;
public static final String DESC = "DESC";
public static final String ASC = "ASC";
private int nTableColumn = 0;
private int nTableRow = 0;
private int nColumnCount = 0;
private int nRowCount = 0;
private boolean isChoose = false;
private String strChooseStyle = "";
private static final String RADIO = "radio";
private static final String CHECKBOX = "checkbox";
private boolean isDelete = false;
private String strDeleteLink = null;
private boolean isEdit = false;
private String strEditLink = null;
private boolean isFilter = false;
private String[][] aTableData = null;
private String[] strTableHeader = null;
private String[] strTableField = null;
private int nSqlLimit = 1;
private int nSqlOffset = 0;
private static String strSQL = null;
private String strWhere = null;
private int nPage = 0;
private String sqlWhere = null;
private String sqlOrder = "";
private String sqlLimit = "";
private String sqlOffset= "";
private Vector v = new Vector();
private Vector cursor = new Vector();
private Vector filter = new Vector();
// HTML
// private String strTableName = null;
// private String strCssClass = null;
// private int nHeight = 0;
// private int nWidth = 0;
private String htmlTableCaption = null;
private String htmlTable = "";
private String htmlTableBorder = "";
private String htmlTableHeight = "";
private String htmlTableWidth = "";
private String htmlTr = "";
private String htmlTd = "";
private String htmlRow = null;
上一页 下一页






