$ajCfgDevice = isset($_POST["id_cfg_device"]) ? "&id_cfg_device=" . $_POST["id_cfg_device"] : ""; $ajCfgDevice .= isset($_POST["id_device"]) ? "&id_device=" . $_POST["id_device"] : ""; $ajCfgDevice .= isset($_POST["id_cfg"]) ? "&id_cfg=" . $_POST["id_cfg"] : ""; if (!isset($_POST["id_device"])) { $_POST["id_device"] = ""; } require_once "_lib/php/auth.php"; $gdbo = new ArcTbl(); $gdbo->dbConStr = $globalDBCON; $gdbo->dbLimit = 25; $gdbo->dbOffset = 0; $gdbo->dbType = $globalDBTP; $gdbo->dbSchema = $globalDB; #$gdbo->recDetail="hex2str(\$record['Notes'])"; $gdbo->recOrder = "asc"; $gdbo->tblKey = "iflabel"; $gdbo->elements = array(array("Label", "device_interfacelabel")); $gdbo->recOrderCol = "id_device_interfacelabel"; $gdbo->recQuery = "\nSELECT \nid_device_interfacelabel,\ndevice_interfacelabel as Label,\nid_device\nFROM _device_interfacelabel WHERE id_device=" . $_POST["id_device"]; $gdbo->dbTable = "_device_interfacelabel"; $gdbo->recIndex = $gdbo->getPrimaryKey(); $gdbo->updateAction = '"updateTable(\'rc".$rowIndex."_".$tblKey."\',\'". $this -> dbTable. "\',\'".$this->primaryKey."\',".$rowIndex.",1,\'' . $path . 'sql.php\',\'fs_labels\',\'&form=frmIFLabel&action=edit' . $ajCfgDevice . '\')"'; $gdbo->deleteAction = '"updateTable(\'rc".$rowIndex."_".$tblKey."\',\'". $this -> dbTable. "\',\'".$this->primaryKey."\',".$rowIndex.",2,\'' . $path . 'sql.php\',\'fs_labels\',\'&form=frmIFLabel&action=delete' . $ajCfgDevice . '\')"'; $gdbo->editable = true; $gdbo->ajDestination = "tbliflabel"; $gdbo->ajPage = "/_mod/smod_18/list_iflabel.php"; $gdbo->ignoreCols = array("id_device", "id_device_interfacelabel"); $gdbo->ignoreFilterCols = array("id_device_interfacelabel", "id_device"); $gdbo->build(); echo hex2str($gdbo->tblNav); echo $gdbo->dataTable;
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ require_once "_lib/php/auth.php"; $arctbl = new ArcTbl(); $arctbl->dbType = $globalDBTP; $arctbl->dbConStr = $globalDBCON; $arctbl->dbSchema = $globalDB; $arctbl->control = '/_mod/smod_12/sqlInsert.php'; $arctbl->editable = true; $arctbl->dbOffset = 0; $arctbl->dbLimit = 23; if (isset($_POST["table"])) { $table = $_POST["table"]; $arctbl->dbTable = $table; $arctbl->recQuery = "SELECT * FROM " . $table; $arctbl->recIndex = $arctbl->getPrimaryKey(); } $arctbl->ajDestination = "list12"; $arctbl->actionDestination = "status"; $arctbl->ajPage = $path . "list.php"; $arctbl->build(); echo $arctbl->dataTable; ?> <script type="text/javascript"> $('#list12Nav').html(hex2a('<?php echo $arctbl->tblNav; ?> ')); </script>