本文整理汇总了PHP中XoopsFormCheckBox::render方法的典型用法代码示例。如果您正苦于以下问题:PHP XoopsFormCheckBox::render方法的具体用法?PHP XoopsFormCheckBox::render怎么用?PHP XoopsFormCheckBox::render使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XoopsFormCheckBox
的用法示例。
在下文中一共展示了XoopsFormCheckBox::render方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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');
//.........这里部分代码省略.........
示例2: addslashes
if (is_array($ele_value)) {
$ele_value[0] = addslashes($ele_value[0]);
}
echo '<tr>';
echo '<td class="even">' . $i->getVar('ele_caption') . "</td>\n";
echo '<td class="even">' . $ele_value->render() . "</td>\n";
echo '<td class="even" align="center">' . $check_req->render() . "</td>\n";
if ($order != 0) {
echo "<td class='even' align='center' title='" . $order . "'><a href=updown.php?id=" . $id . "&ide=" . $ide . "&pos=" . $order . "&op=ele_up><img src=" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/images/up.gif /></a> ";
} else {
echo "<td class='even' align='center' title='" . $order . "'>";
}
echo "<a href=updown.php?id=" . $id . "&ide=" . $ide . "&pos=" . $order . "&op=ele_down><img src=" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/images/down.gif /></a></td><td class='even' align='center'>" . $text_order->render() . "</td>";
// $order = $i->getVar('ele_order');
echo "</td>";
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&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&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&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');
示例3: usercsv_form
function usercsv_form()
{
$form = new XoopsThemeForm(_AM_UCSV_EXPORT, 'index_form', basename(__FILE__), 'post', true);
$element = new XoopsFormCheckBox('', 'fields', null, ' ');
$element->addOptionArray(usercsv_getFormFields());
$ele_options = $element->getOptions();
$i = 0;
$option_ids = array();
foreach ($ele_options as $value => $name) {
$i++;
$option_ids[] = 'fields' . $i;
}
$option_ids_str = implode("', '", $option_ids);
$element2 = new XoopsFormLabel(_AM_UCSV_FIELDS, '
<div id="checkfields">' . $element->render() . '
<input name="usercsv_checkall" id="usercsv_checkall" value="" type="checkbox" onclick="var optionids = new Array(\'' . $option_ids_str . '\'); xoopsCheckAllElements(optionids, \'usercsv_checkall\');")>
' . _ALL . ' </div>');
$form->addElement($element2);
unset($element, $element2);
$tray = new XoopsFormElementTray('', '');
$tray->addElement(new XoopsFormButton('', 'usercsv_button', _SUBMIT, 'submit'));
$form->addElement($tray);
$form->addElement(new XoopsFormHidden('op', 'export'));
return $form->render();
}
示例4: isset
$user_mailok = isset($_POST['user_mailok']) && intval($_POST['user_mailok']) ? 1 : 0;
$agree_disc = isset($_POST['agree_disc']) && intval($_POST['agree_disc']) ? 1 : 0;
$xoopsTpl->assign("noxoopsuser", 1);
$xoopsTpl->assign("email_address", tep_draw_input_field('email_address'));
$uname = new XoopsFormText(_PROFILE_MA_NICKNAME, "uname", 25, 75, $myts->htmlSpecialChars($uname));
$xoopsTpl->assign("xoops_nick", $uname->render());
$url = new XoopsFormText(_PROFILE_MI_URL_TITLE, "url", 25, 255, $myts->htmlSpecialChars($url));
$xoopsTpl->assign("xoops_homepage", $url->render());
$tzselected = $timezone_offset != "" ? $timezone_offset : $xoopsConfig['default_TZ'];
$timezone = new XoopsFormSelectTimezone(_PROFILE_MA_TIMEZONE, "timezone_offset", $tzselected);
$xoopsTpl->assign("xoops_timezone", $timezone->render());
$mail = new XoopsFormRadioYN(_PROFILE_MA_MAILOK, 'user_mailok', $user_mailok);
$xoopsTpl->assign("xoops_mailok", $mail->render());
$email_option = new XoopsFormCheckBox("", "user_viewemail", $user_viewemail);
$email_option->addOption(1, _PROFILE_MA_ALLOWVIEWEMAIL);
$xoopsTpl->assign("xoops_viewemail", $email_option->render());
if ($xoopsConfigUser['reg_dispdsclmr'] != 0 && $xoopsConfigUser['reg_disclaimer'] != '') {
$xoopsTpl->assign("show_disc", 1);
$disc_tray = new XoopsFormElementTray(_PROFILE_MA_DISCLAIMER, '<br />');
$disc_text = new XoopsFormTextarea('', 'disclaimer', $xoopsConfigUser['reg_disclaimer'], 8);
$disc_text->setExtra('readonly="readonly"');
$disc_tray->addElement($disc_text);
$agree_chk = new XoopsFormCheckBox('', 'agree_disc', $agree_disc);
$agree_chk->addOption(1, _PROFILE_MA_IAGREE);
$disc_tray->addElement($agree_chk);
$xoopsTpl->assign("xoops_agree", $disc_tray->render());
}
}
if ($process == true) {
if ($entry_state_has_zones == true) {
$zones_array = array();