Quote:
Would even be nice if it was built into Xcgal module (big suggestive hint)
I can't remember if Xcgal have this feature but you may check the "xoopsgallery" module athttp://www.xoopsgallery.org .
It already get this feature.
Cheers!
Cody
Would even be nice if it was built into Xcgal module (big suggestive hint)
if ($data['ID'] [color=0000FF]==[/color] $defaultid ) {
$select->setValue($data['ID']);
}
<?php
$form = new XoopsThemeForm($formTitle, "categoryform", $formAction, "POST");
$form->addElement(new XoopsFormText(_MD_XINVENTORY_CATEGORY_NAME, "catname", 30, 60,$catNameValue),true );
[color=0000FF]return $categoryForm->render();[/color]
?>
<?php
//codes ......
$xoopsOption['template_main'] = xinventory_category.html";
include "../../header.php";
//----------------
$form = include "include/form.inc.php";
$xoopsTpl->assign('form',$form);
//---------------
?>
<{$form}>
$form = new XoopsThemeForm($formTitle, "categoryform", $formAction, "POST");
$form->addElement(new XoopsFormText(_MD_XINVENTORY_CATEGORY_NAME, "catname", 30, 60,$catNameValue),true);
$form->assign(&$xoopsTpl);
$form->assign(&$xoopsTpl)
$form->display()
case "delete":
$obj =& $handler->getUser($_REQUEST['id']);
/*modified for better protect of webmaster group*/
$group_ids = $member_handler->getGroupsByUser($obj->getVar('uid')) ;
// true if current user is in group ID #1, that is webmaster group
if ($in_group = in_array(1, $group_ids)){
redirect_header('user.php', 3, _PROFILE_AM__CANNOTDELETEADMIN);
exit();
}
/*modified for better protect of webmaster group*/