1
dancinkid6
newbie look for files, HELP!!
  • 2005/2/13 23:23

  • dancinkid6

  • Just popping in

  • Posts: 4

  • Since: 2004/10/11


Hi There,
I am doing a lot of modification for my site, and i saw this function xoops_confirm(), does any one know which file includes this function?? thanks in advance.

Jeff

2
monde
Re: newbie look for files, HELP!!
  • 2005/2/14 2:03

  • monde

  • Friend of XOOPS

  • Posts: 69

  • Since: 2004/11/15


Are you asking which files use this function or are you asking where this function is defined?

xoops_confirm() is defined in \include\functions.php

It's used all over the place in XOOPS where you see SUBMIT and CANCEL buttons.

Quote:

function xoops_confirm($hiddens, $action, $msg, $submit='')
{
$submit = ($submit != '') ? trim($submit) : _SUBMIT;
echo '
<div class="confirmMsg">
<h4>'.$msg.'</h4>
<form method="post" action="'.$action.'">
';
foreach ($hiddens as $name => $value) {
if (is_array($value)) {
foreach ($value as $caption => $newvalue) {
echo '<input type="radio" name="'.$name.'" value="'.htmlspecialchars($newvalue).'" /> '.$caption;
}
echo '<br />';
} else {
echo '<input type="hidden" name="'.$name.'" value="'.htmlspecialchars($value).'" />';
}
}
echo '
<input type="submit" name="confirm_submit" value="'.$submit.'" /> <input type="button" name="confirm_back" value="'._CANCEL.'" onclick="javascript:history.go(-1);" />
</form>
</div>
';
}

3
dancinkid6
Re: newbie look for files, HELP!!
  • 2005/2/14 2:36

  • dancinkid6

  • Just popping in

  • Posts: 4

  • Since: 2004/10/11


oh yea, "defined", thats what i meant, too tired to come up with the right word. THANKS A BUNCH

Login

Who's Online

200 user(s) are online (138 user(s) are browsing Support Forums)


Members: 0


Guests: 200


more...

Donat-O-Meter

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

Latest GitHub Commits