1
einherjer
Replacment for myxoopstree (and general xoopsformloader questions)?
  • 2005/1/27 22:18

  • einherjer

  • Just popping in

  • Posts: 30

  • Since: 2002/11/8


Hi,

i am playing around with the xoopsformloader and need help with drop down menue and delete Buttons.

e.g. in the core module MyDownloads, Function modCat there is a drop down menu with the structure of main and sub categorys and a delete (and cancel) button:

function modCat()

{

    global 
$xoopsDB$HTTP_POST_VARS$myts$eh$mytree;

    
$cid $HTTP_POST_VARS["cid"];

    
xoops_cp_header();

    echo 
"

"._MD_DLCONF."

"
;

        echo
""

           
."odd">";

    echo 
"

"._MD_MODCAT."

"
;

    
$result=$xoopsDB->query("SELECT pid, title, imgurl FROM ".$xoopsDB->prefix("mydownloads_cat")." WHERE cid=$cid");

    list(
$pid,$title,$imgurl) = $xoopsDB->fetchRow($result);

    
$title $myts->makeTboxData4Edit($title);

    
$imgurl $myts->makeTboxData4Edit($imgurl);

    echo 
""._MD_TITLEC."$title" size=51 maxlength=50>"._MD_IMGURLMAIN."$imgurl" size=100 maxlength=150>

    "
._MD_PARENT." ";

    
$mytree->makeMySelBox("title""title"$pid1"pid");

    echo 
"$cid'>

    

    

    ._MD_DELETE." onClick="location='index.php?pid=$pid&cid=$cid&op=delCat'">";

    echo 
._MD_CANCEL." onclick="javascript:history.go(-1)" />";

    echo 
"";

    echo
"";

    
xoops_cp_footer();

}


What would be the correct usage of xoopsformselect and xoopsformbutton to have the same functionality?

Maybe someone could "translate" the above function so that a php/xoops newb like me could see the difference?

Thanks

Login

Who's Online

544 user(s) are online (61 user(s) are browsing Support Forums)


Members: 0


Guests: 544


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Sep 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits