Beispiel #1
0
 function _MenuItem($content, $dest, $ins = false, $extra = array())
 {
     // The parms are the table plus maybe the insert mode
     $parms = array('gp_page' => $dest);
     $id = 'menu_' . $dest;
     if ($ins) {
         $parms['gp_mode'] = 'ins';
     } else {
         $parms['gp_mode'] = '';
         $parms['gp_skey'] = '';
     }
     $parms = array_merge($parms, $extra);
     // Get the hyperlink with preceeding tick mark
     $class = $this->pmenu['MENU_CLASS_ITEM'];
     $href = $this->pmenu['MENU_TICK'] . hLinkPostFromArray($class, $content, $parms);
     return $this->_MenuX($href, "\n", $this->pmenu['MENU_CLASS_ITEM'], $id);
 }
Beispiel #2
0
 function aLinks_DrillDown($mode)
 {
     if ($mode != 'upd') {
         return array();
     }
     if ($this->table_id_parent != '') {
         return array();
     }
     $retval = array();
     // Get the pks into a string value, do the loop so we can trim
     $lpks = $this->table['pks'];
     $apks = explode(",", $lpks);
     $lpkvals = '';
     foreach ($apks as $colname) {
         $lpkvals .= ListDelim($lpkvals) . trim($this->row[$colname]);
     }
     $dd = array('drilldown', 'mover');
     foreach ($this->children as $table_id => $tabinfo) {
         if (!in_array($tabinfo['display'], $dd)) {
             continue;
         }
         $tabdesc = DD_TableProperty($table_id, 'description');
         $h = hLinkPostFromArray('', $tabdesc, array('gp_dd_page' => $table_id));
         //$js = "drillDown('$table_id','$lpks','$lpkvals')";
         $retval[] = $h;
     }
     return $retval;
 }