Skip to main content

Bilatu sintaxi egitura betetzen ez duten erreferentzia kartografikoak

<?php
$output = '<p>Ezarritako patroia (regexp) hau da:<br /><span style="display:block; margin: 10px; text-align:center; border: 1px solid silver; padding:2px; word-spacing: nowrap">^([+/;]?[0-9]{2}-[0-9]{2}-(A|B|D|E),[0-9]{3}\\\\*?)*$</span></p>';

$result = mysql_query($gld = "SELECT n.title, t.ref_karto, t.nid FROM toponimo t LEFT JOIN node n ON t.nid = n.nid WHERE ref_karto NOT REGEXP '^([+/;]?[0-9]{2}-[0-9]{2}-(A|B|D|E),[0-9]{3}\\\\*?)*$'");

if($result){

$headers = array('ID', 'Toponimo', 'Erref.Kart.');

while($row = db_fetch_array($result)){
$row['nid'] = l(t('edit'), "node/{$row['nid']}/edit", array('target' => '_blank'));
$rows[] = $row;
}
} else {
$output .= '<p>Ez dago baldintza horiek betetzen dituen sarrerarik.</p>';
}

return $output . theme('table', $headers, $rows);
?>