Beispiel #1
0
 /**
  * Constructor
  *
  * @param object    $token  XoopsToken instance
  */
 function XoopsFormToken($token)
 {
     if (is_object($token)) {
         parent::XoopsFormHidden($token->getTokenName(), $token->getTokenValue());
     } else {
         parent::XoopsFormHidden('', '');
     }
 }
 /**
  * Constructor
  *
  * @param string $name "name" attribute
  * @param int    $timeout
  */
 public function __construct($name = 'XOOPS_TOKEN', $timeout = 0)
 {
     parent::__construct($name . '_REQUEST', $GLOBALS['xoopsSecurity']->createToken($timeout, $name));
 }
            $reporter_name = newbb_getUnameFromId($uid, $xoopsModuleConfig['show_realname']);
            $reporter = !empty($uid) ? "<a href='" . XOOPS_URL . "/userinfo.php?uid=" . $uid . "'>" . $reporter_name . "</a><br />" : "";
            echo "<td align='center'>" . $reporter . long2ip($report['reporter_ip']) . "</td>";
            echo "</tr>";
            echo "<tr class='odd' align='left'>";
            echo "<td>" . _AM_NEWBB_REPORTMEMO . ': ' . $memo . "</td>";
            echo "<td align='center' >" . $checkbox . "</td>";
            echo "</tr>";
            echo "<tr colspan='2'><td height='2'></td></tr>";
        }
        $buttons = "";
        if ($item != 'processed') {
            $submit = new XoopsFormButton('', 'submit', _SUBMIT, 'submit');
            $buttons .= $submit->render() . " ";
        }
        $delete = new XoopsFormButton('', 'delete', _DELETE, 'submit');
        $buttons .= $delete->render() . " ";
        $cancel = new XoopsFormButton('', 'cancel', _CANCEL, 'reset');
        $buttons .= $cancel->render();
        echo "<tr colspan='2'><td align='center'>{$buttons}</td></tr>";
        $hidden = new XoopsFormHidden('start', $start);
        echo $hidden->render();
        $hidden = new XoopsFormHidden('item', $item);
        echo $hidden->render() . "</form>";
        echo "</table>";
        $nav = new XoopsPageNav($report_handler->getCount(new Criteria("report_result", $process_result)), $limit, $start, "start", "item=" . $item);
        echo $nav->renderNav(4);
        echo "</fieldset>";
        break;
}
xoops_cp_footer();
Beispiel #4
0
function b_smartblock_edit($options)
{
    include_once XOOPS_ROOT_PATH . "/class/xoopsformloader.php";
    $placement = new XoopsFormHidden('options[0]', intval($options[0]));
    return $placement->render();
}
Beispiel #5
0
        echo '<td class="even" align="center">' . $check_display->render() . $hidden_id->render() . "</td>\n";
        echo '<td class="even" align="center"><a href="elements.php?id=' . $id . '&op=edit&amp;ele_id=' . $ide . '"><img src=' . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . '/images/edit.gif alt="" onMouseOver="stm(Text[1],Style[1])" onMouseOut="htm()" /></a></td>';
        echo '<td class="even" align="center"><a href="elements.php?id=' . $id . '&op=edit&amp;ele_id=' . $ide . '&clone=1"><img src=' . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . '/images/cloner.gif alt="" onMouseOver="stm(Text[2],Style[1])" onMouseOut="htm()"/></a></td>';
        echo '<td class="even" align="center"><a href="elements.php?id=' . $id . '&op=delete&amp;ele_id=' . $ide . '"><img src=' . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . '/images/delete.gif alt="" onMouseOver="stm(Text[3],Style[1])" onMouseOut="htm()"/></a></td>';
        echo '</tr>';
    }
    $submit = new XoopsFormButton('', 'submit', _AM_REORD, 'submit');
    echo '
		<tr>
			<td class="foot" colspan="3"></td>
			<td class="foot" colspan="2" align="center">' . $submit->render() . '</td>
			<td class="foot" colspan="4"></td>
		</tr>
	</table>
	';
    $hidden_op = new XoopsFormHidden('op', 'save');
    echo $hidden_op->render();
    echo '</form>';
} else {
    xoops_cp_header();
    form_adminMenu(2, _AM_FORMS);
    extract($_POST);
    $error = '';
    foreach ($ele_id as $ide) {
        $element =& $formulaire_mgr->get($ide);
        $req = !empty($ele_req[$ide]) ? 1 : 0;
        $element->setVar('ele_req', $req);
        $order = !empty($ele_order[$ide]) ? intval($ele_order[$ide]) : 0;
        $element->setVar('ele_order', $order);
        $display = !empty($ele_display[$ide]) ? 1 : 0;
        $element->setVar('ele_display', $display);