- Code: Select all
<?php
class tables_master {
function remote__renderCell( &$record ){
if (substr($record->strval('remote'),0,3) == "sc0") {
return $record->strval('remote');
} else {
return '<a href=http://'.$record->strval('remote').'>'.$record->strval('remote').'</a>';
}
}
function remote__htmlValue( &$record ){
if (substr($record->strval('remote'),0,3) == "sc0") {
return $record->strval('remote');
} else {
return '<a href=http://'.$record->strval('remote').'>'.$record->strval('remote').'</a>';
}
}
}
?>
In both functions, I test for strings beginning with "sc0" and if found, then just return the string with no link. I need to modify that so it check for 2 strings, "sc0" and "fj" I cant seem to get the php syntax correct. Does php support something like:
if (condition1 or condition2) then
do nifty stuff here...
endif
So if you guys can help me with the syntax changes, it would be really appreciated!!!!
thanks!