本文整理汇总了PHP中XoopsFormRadio::render方法的典型用法代码示例。如果您正苦于以下问题:PHP XoopsFormRadio::render方法的具体用法?PHP XoopsFormRadio::render怎么用?PHP XoopsFormRadio::render使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XoopsFormRadio
的用法示例。
在下文中一共展示了XoopsFormRadio::render方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
//TODO Fix harcoded string
if (!preg_match("/^" . _RE . "/i", $subject)) {
$subject = _RE . ' ' . $subject;
}
echo "<td class='even'><input type='text' name='subject' value='" . $subject . "' size='30' maxlength='100' /></td>";
} else {
echo "<td class='even'><input type='text' name='subject' size='30' maxlength='100' /></td>";
}
echo "</tr>";
//----------------------------- mamba
echo "<tr>";
echo "<td class='head txtright' style='width:25%;'>" . _MESSAGEICON . "</td>";
foreach ($subject_icons as $iconfile) {
$icons_radio->addOption($iconfile, '<img src="' . XOOPS_URL . '/images/subject/' . $iconfile . '" alt="" />');
}
echo "<td class='even'>" . $icons_radio->render();
echo "</td>";
echo "</tr>";
//------------------------------- mamba
echo "<tr style='vertical-align:top;'><td style='width:25%;' class='head txtright'>" . _PM_MESSAGEC . "</td>";
echo "<td class='even'>";
xoopsCodeTarea("message", 37, 8);
xoopsSmilies("message");
echo "</td>";
echo "</tr>";
echo "<tr><td class='head'> </td><td class='even'>\n <input type='hidden' name='op' value='submit' />" . $GLOBALS['xoopsSecurity']->getTokenHTML() . "\n <input type='submit' class='formButton' name='submit' value='" . _PM_SUBMIT . "' /> \n <input type='reset' class='formButton' value='" . _PM_CLEAR . "' />\n <input type='button' class='formButton' name='cancel' value='" . _PM_CANCELSEND . "' onclick='javascript:window.close();' />\n </td></tr></table>\n";
echo "</form>\n";
}
}
} else {
echo _PM_SORRY . "<br /><br /><a href='" . XOOPS_URL . "/register.php' title=''>" . _PM_REGISTERNOW . "</a>.";
示例2: render
/**
* prepare HTML for output
*
* @return string
*/
function render()
{
$ret = "";
$formObject = new XoopsFormRadio('', 'rrule_freq', $this->_rrule_freq);
$formObject->addOption('none', _MD_EXTCAL_NO_RECCUR_EVENT);
$ret .= $formObject->render();
$ret .= "<br /><br /><fieldset><legend>" . _MD_EXTCAL_RECCUR_POLICY . "</legend><fieldset><legend>";
$formObject = new XoopsFormRadio('', 'rrule_freq', $this->_rrule_freq);
$formObject->addOption('daily', _MD_EXTCAL_DAILY);
$ret .= $formObject->render();
$ret .= "</legend>" . _MD_EXTCAL_DURING . " ";
$formObject = new XoopsFormText('', 'rrule_daily_interval', 3, 2, $this->_rrule_daily_interval);
$ret .= $formObject->render();
$ret .= " " . _MD_EXTCAL_DAYS . "</fieldset><br /><fieldset><legend>";
$formObject = new XoopsFormRadio('', 'rrule_freq', $this->_rrule_freq);
$formObject->addOption('weekly', _MD_EXTCAL_WEEKLY);
$ret .= $formObject->render();
$ret .= "</legend>" . _MD_EXTCAL_DURING . " ";
$formObject = new XoopsFormText('', 'rrule_weekly_interval', 3, 2, $this->_rrule_weekly_interval);
$ret .= $formObject->render();
$ret .= " " . _MD_EXTCAL_WEEKS . "<br />";
$formObject = new XoopsFormCheckBox('', 'rrule_weekly_bydays');
$formObject->addOption('MO', 'Mo ');
$formObject->addOption('TU', 'Tu ');
$formObject->addOption('WE', 'We ');
$formObject->addOption('TH', 'Th ');
$formObject->addOption('FR', 'Fr ');
$formObject->addOption('SA', 'Sa ');
$formObject->addOption('SU', 'Su ');
$ret .= $formObject->render();
$ret .= "</fieldset><br /><fieldset><legend>";
$formObject = new XoopsFormRadio('', 'rrule_freq', $this->_rrule_freq);
$formObject->addOption('monthly', _MD_EXTCAL_MONTHLY);
$ret .= $formObject->render();
$ret .= "</legend>" . _MD_EXTCAL_DURING . " ";
$formObject = new XoopsFormText('', 'rrule_monthly_interval', 3, 2, $this->_rrule_monthly_interval);
$ret .= $formObject->render();
$ret .= " " . _MD_EXTCAL_MONTH . ", " . _MD_EXTCAL_ON . " ";
$formObject = new XoopsFormSelect('', 'rrule_monthly_byday', $this->_rrule_weekly_bydays);
$formObject->addOption('', ' ');
$formObject->addOption('1MO', _MD_EXTCAL_1_MO);
$formObject->addOption('1TU', _MD_EXTCAL_1_TU);
$formObject->addOption('1WE', _MD_EXTCAL_1_WE);
$formObject->addOption('1TH', _MD_EXTCAL_1_TH);
$formObject->addOption('1FR', _MD_EXTCAL_1_FR);
$formObject->addOption('1SA', _MD_EXTCAL_1_SA);
$formObject->addOption('1SU', _MD_EXTCAL_1_SU);
$formObject->addOption('2MO', _MD_EXTCAL_2_MO);
$formObject->addOption('2TU', _MD_EXTCAL_2_TU);
$formObject->addOption('2WE', _MD_EXTCAL_2_WE);
$formObject->addOption('2TH', _MD_EXTCAL_2_TH);
$formObject->addOption('2FR', _MD_EXTCAL_2_FR);
$formObject->addOption('2SA', _MD_EXTCAL_2_SA);
$formObject->addOption('2SU', _MD_EXTCAL_2_SU);
$formObject->addOption('3MO', _MD_EXTCAL_3_MO);
$formObject->addOption('3TU', _MD_EXTCAL_3_TU);
$formObject->addOption('3WE', _MD_EXTCAL_3_WE);
$formObject->addOption('3TH', _MD_EXTCAL_3_TH);
$formObject->addOption('3FR', _MD_EXTCAL_3_FR);
$formObject->addOption('3SA', _MD_EXTCAL_3_SA);
$formObject->addOption('3SU', _MD_EXTCAL_3_SU);
$formObject->addOption('4MO', _MD_EXTCAL_4_MO);
$formObject->addOption('4TU', _MD_EXTCAL_4_TU);
$formObject->addOption('4WE', _MD_EXTCAL_4_WE);
$formObject->addOption('4TH', _MD_EXTCAL_4_TH);
$formObject->addOption('4FR', _MD_EXTCAL_4_FR);
$formObject->addOption('4SA', _MD_EXTCAL_4_SA);
$formObject->addOption('4SU', _MD_EXTCAL_4_SU);
$formObject->addOption('-1MO', _MD_EXTCAL_LAST_MO);
$formObject->addOption('-1TU', _MD_EXTCAL_LAST_TU);
$formObject->addOption('-1WE', _MD_EXTCAL_LAST_WE);
$formObject->addOption('-1TH', _MD_EXTCAL_LAST_TH);
$formObject->addOption('-1FR', _MD_EXTCAL_LAST_FR);
$formObject->addOption('-1SA', _MD_EXTCAL_LAST_SA);
$formObject->addOption('-1SU', _MD_EXTCAL_LAST_SU);
$ret .= $formObject->render();
$ret .= " " . _MD_EXTCAL_OR_THE . " ";
$formObject = new XoopsFormText('', 'rrule_bymonthday', 3, 2, $this->_rrule_bymonthday);
$ret .= $formObject->render();
$ret .= " " . _MD_EXTCAL_DAY_NUM_MONTH . "</fieldset><br /><fieldset><legend>";
$formObject = new XoopsFormRadio('', 'rrule_freq', $this->_rrule_freq);
$formObject->addOption('yearly', 'Yearly');
$ret .= $formObject->render();
$ret .= "</legend>" . _MD_EXTCAL_DURING . " ";
$formObject = new XoopsFormText('', 'rrule_yearly_interval', 3, 2, $this->_rrule_yearly_interval);
$ret .= $formObject->render();
$ret .= ' ' . _MD_EXTCAL_YEARS . '<br />';
$formObject = new ExtcalFormRRuleCheckBox('', 'rrule_yearly_bymonths', $this->_rrule_yearly_bymonths);
$formObject->addOption('1', 'Jan');
$formObject->addOption('2', 'Fev');
$formObject->addOption('3', 'Mar');
$formObject->addOption('4', 'Apr');
$formObject->addOption('5', 'Mai');
$formObject->addOption('6', 'Jun');
$formObject->addOption('7', 'Jul');
//.........这里部分代码省略.........