Mapa-eremuak
Lotutako hitzak berbaren dagokion sarreran erantsita azalduko dira.
w&y=$m->n&type=$m->type&width=3200&height=2400&scale=$m->scale");
}
global $opts;
$opts['tb'] = 'topo_map';
// Name of field which is the unique key
$opts['key'] = 'mid';
// Type of key field (int/real/string/date etc.)
$opts['key_type'] = 'int';
// Options you wish to give the users
// A - add, C - change, P - copy, V - view, D - delete,
// F - filter, I - initial sort suppressed
if(user_access('administer nodes')){
$opts['options'] = 'ACVDF';
} else {
$opts['options'] = 'VF';
}
// Sorting field(s)
$opts['sort_field'] = array('mid');
$opts['fdd']['mid'] = array(
'name' => ' ',
'select' => 'T',
'options' => 'AVCPDLR', // auto increment
'maxlen' => 11,
'default' => '0',
'sort' => true,
'URLdisp' => 'Mapa sortu',
'URL' => url($_GET['q']). '?getMap=$value'
);
$opts['fdd']['name'] = array(
'name' => 'Izena',
'select' => 'T',
'maxlen' => 255,
'textarea' => array(
'rows' => 5,
'cols' => 50),
'sort' => true
);
$opts['fdd']['description'] = array(
'name' => 'Azalpena',
'select' => 'T',
'maxlen' => 65535,
'textarea' => array(
'rows' => 5,
'cols' => 50),
'options' => 'AVCPD', // auto increment
'sort' => true
);
$opts['fdd']['n'] = array(
'name' => 'UTMY',
'select' => 'T',
'maxlen' => 11,
'default' => '0',
'sort' => true
);
$opts['fdd']['w'] = array(
'name' => 'UTMX',
'select' => 'T',
'maxlen' => 11,
'default' => '0',
'sort' => true
);
$opts['fdd']['type'] = array(
'name' => 'Mota',
'select' => 'T',
'maxlen' => 6,
'values' => array(
"raster",
"orto"),
'default' => 'raster',
'sort' => true
);
$opts['fdd']['scale'] = array(
'name' => 'Eskala',
'select' => 'T',
'maxlen' => 12,
'default' => '0',
'sort' => true,
'values' => array(16, 8, 4, 2, 1, 0.5)
);
phpmyedit_exec($opts);
?>
Batere ez.