leostotch - that was great! well done. This or something similar definitley needs to be in the XOOPS core
* @copyright copyright (c) 2000-2004 XOOPS.org
* @package Kernel
*/
class XoopsPersistableObjectHandler extends XoopsObjectHandler {
/**#@+
* Information about the class, the handler is managing
* @copyright copyright (c) 2000-2004 XOOPS.org
* @package Kernel
*/
if(!class_exists('XoopsPersistableObjectHandler'))
{
class XoopsPersistableObjectHandler extends XoopsObjectHandler {
/**#@+
* Information about the class, the handler is managing
return $rows > 0 ? $rows : true;
}
return false;
}
}
?>
return $rows > 0 ? $rows : true;
}
return false;
}
}
}
?>
$org_search_list_form = new XoopsSimpleForm(_MD_NIGIDB_ORG_SEARCH_CRIT, 'org_search_list_form', 'org_search_list.php', 'GET');
$org_search_list_form->addElement(new XoopsFormTextDateSelect('caption', 'datetime', 15, 0));
$org_search_list_form->assign($xoopsTpl);
<table class="outer">
<form name="<{$org_search_list_form.name}>" method="<{$org_search_list_form.method}>" action="<{$org_search_list_form.action}>">
<{foreach item=element from=$org_search_list_form.elements}>
<{if $element.hidden != true}>
<tr><td class="head"><{$element.caption}></td><td class="<{cycle values="even,odd"}>"><{$element.body}></td></tr>
<{else}> <{$element.body}>
<{/if}>
<{/foreach}>
</form>
</table>