function PageUpdate($pagename, $pagetext, $pagename_par = null, $seq = null) { $table_pg = DD_TableRef('docpages'); $table_hi = DD_TableRef('dochiers'); $row = array('pagename' => $pagename, 'pagename_par' => $pagename_par, 'pagetext' => $pagetext, 'flag_auto' => 'Y'); SQLX_UpdateOrInsert($table_pg, $row); /* if (!is_null($pagename_par)) { // Get sequence if necessary. if(is_null($seq)) { if(!isset($this->parseqs[$pagename_par])) { $this->parseqs[$pagename_par]=0; } $this->parseqs[$pagename_par]+=10; $seq=$this->parseqs[$pagename_par]; } // Store the hierachy link for saving later $this->parents[$pagename]=array($pagename_par,$seq); } */ }
function xAjaxColSave() { echo "xajaxm|"; $row = array('table_id' => gp('gp_table_id'), 'importmap' => gp('gp_map'), 'column_id' => gp('gp_xajax'), 'column_id_src' => gp('gp_xval')); $dd = dd_tableref('importmapcolumns'); SQLX_UpdateOrInsert($dd, $row); }