当前位置: 首页>>代码示例>>PHP>>正文


PHP e107::getForm方法代码示例

本文整理汇总了PHP中e107::getForm方法的典型用法代码示例。如果您正苦于以下问题:PHP e107::getForm方法的具体用法?PHP e107::getForm怎么用?PHP e107::getForm使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在e107的用法示例。


在下文中一共展示了e107::getForm方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: sc_fpw_submit

 function sc_fpw_submit($parm = '')
 {
     // return '<button type="submit" name="pwsubmit" class="button btn btn-primary btn-block reset">'.$label.'</button>';
     // return "<input class='button btn btn-primary btn-block' type='submit' name='pwsubmit' value='".$label."' />";
     $label = deftrue('LAN_FPW_102', LAN_156);
     return e107::getForm()->button('pwsubmit', $label);
 }
开发者ID:gitye,项目名称:e107,代码行数:7,代码来源:fpw.php

示例2: iconpicker_shortcode

function iconpicker_shortcode($parm)
{
    $parms = array();
    parse_str($parm, $parms);
    $name = varset($parms['id']);
    $sql = e107::getDb();
    $frm = e107::getForm();
    $tp = e107::getParser();
    // $sc_parameters is currently being used to select the media-category.
    $qry = "SELECT * FROM `#core_media` WHERE media_userclass IN (" . USERCLASS_LIST . ") ";
    $qry .= vartrue($sc_parameters) ? " AND media_category = '" . $sc_parameters . "' " : " AND `media_category` REGEXP '_icon_16|_icon_32|_icon_48|_icon_64' ";
    $qry .= "ORDER BY media_category,media_name";
    $str = "";
    $size_section = array();
    $lastsize = "16";
    if ($sql->db_Select_gen($qry)) {
        while ($row = $sql->db_Fetch()) {
            list($tmp, $tmp2, $size) = explode("_", $row['media_category']);
            if ($str != '' && $size != $lastsize) {
                $size_section[] = $str;
                $str = "";
            }
            $str .= "<a href='#" . $row['media_url'] . "' title='{$filepath}' onclick=\"e107Helper.insertText('{$row['media_url']}','{$name}','{$name}-iconpicker'); return false; \"><img class='icon picker list%%size%%' src='" . $tp->replaceConstants($row['media_url'], 'abs') . "' alt='{$row['media_name']}' /></a>";
            $lastsize = $size;
        }
        return '<div id="' . $name . '-iconpicker-ajax"><div class="field-spacer iconpicker">' . str_replace('%%size%%', '', implode('</div><div class="field-spacer iconpicker">', $size_section)) . '</div></div>';
    }
}
开发者ID:armpit,项目名称:e107,代码行数:28,代码来源:iconpicker.php

示例3: showForm

 public function showForm($mes)
 {
     $ns = e107::getRender();
     $frm = new form();
     $text = $frm->form_open('post', e_SELF);
     $text .= "<table class='table adminform'>";
     $text .= "<tr><td>" . LAN_RADIUS_01 . "</td><td>";
     $text .= $frm->form_text('radius_server', 35, vartrue($this->radius['radius_server']), 120);
     $text .= "</td></tr>\n";
     $text .= "<tr><td>" . LAN_RADIUS_02 . "</td><td>";
     $text .= $frm->form_text('radius_secret', 35, vartrue($this->radius['radius_secret']), 200);
     $text .= "</td></tr>\n";
     $tmp = $this->alt_auth_get_field_list('radius', $frm, $this->radius, FALSE);
     if ($tmp) {
         $text .= "<tr><td class='forumheader2' colspan='2'>" . LAN_ALT_27 . "</td></tr>\n" . $tmp;
         unset($tmp);
     }
     $text .= "<tr><td class='forumheader' colspan='2' style='text-align:center;'>";
     // $text .= $frm -> form_button("submit", "update", LAN_ALT_2);
     $text .= e107::getForm()->admin_button('update', LAN_UPDATE, 'update');
     $text .= "</td></tr>\n";
     $text .= "</table>\n";
     $text .= $frm->form_close();
     $ns->tablerender(LAN_RADIUS_06, $mes->render() . $text);
     $ns->tablerender(LAN_ALT_40 . LAN_ALT_41, $this->alt_auth_test_form('radius', $frm));
 }
开发者ID:armpit,项目名称:e107,代码行数:26,代码来源:radius_conf.php

示例4: config

 function config()
 {
     $frm = e107::getForm();
     $var[0]['caption'] = "Path to phpBB3 Attachments folder (optional)";
     $var[0]['html'] = $frm->text('forum_attachment_path', null, 40, 'size=xxlarge');
     $var[0]['help'] = "Relative to the root folder of your e107 installation";
     return $var;
 }
开发者ID:armpit,项目名称:e107,代码行数:8,代码来源:phpbb3_import_class.php

示例5: sc_faq_submit_question

 function sc_faq_submit_question()
 {
     $faqpref = e107::getPlugConfig('faqs')->getPref();
     $frm = e107::getForm();
     if (check_class($faqpref['add_faq'])) {
         $text = "<div class='faq-submit-question-container'><a class='e-expandit faq-submit-question' href='faqs.php'>Submit a Question</a>\n\t\t\t<div class='e-hideme faq-submit-question-form'>\n\t\t\t<form method=\"post\" action=\"" . e_SELF . "?cat.{$id}.{$idx}\" id=\"dataform\">\n\t\t\t<div>" . $frm->textarea('ask_a_question', '') . '<br />' . $frm->submit('submit_a_question', 'Go') . "</div>\n\t\t\t</form>\n\t\t\t</div>\n\t\t\t</div>\t\t\t\n\t\t\t";
         return $text;
     }
 }
开发者ID:notzen,项目名称:e107,代码行数:9,代码来源:faqs_shortcodes.php

示例6: config

 function config()
 {
     $frm = e107::getForm();
     $var[0]['caption'] = "Feed URL";
     $var[0]['html'] = "<input class='tbox span7' type='text' name='rss_feed' size='180' value='{$_POST['rss_feed']}' maxlength='250' />";
     $var[1]['caption'] = "Save Images Locally";
     $var[1]['html'] = $frm->checkbox('rss_saveimages', 1);
     return $var;
 }
开发者ID:armpit,项目名称:e107,代码行数:9,代码来源:rss_import_class.php

示例7: sc_gallery_breadcrumb

 function sc_gallery_breadcrumb($parm = '')
 {
     $breadcrumb = array();
     $breadcrumb[] = array('text' => LAN_PLUGIN_GALLERY_TITLE, 'url' => e107::getUrl()->create('gallery', $this->var));
     if (vartrue($this->curCat)) {
         $breadcrumb[] = array('text' => $this->sc_gallery_cat_title('title'), 'url' => e107::getUrl()->create('gallery/index/list', $this->var));
     }
     return e107::getForm()->breadcrumb($breadcrumb);
 }
开发者ID:armpit,项目名称:e107,代码行数:9,代码来源:e_shortcode.php

示例8: config

 function config()
 {
     $frm = e107::getForm();
     $var[0]['caption'] = "Sample configuration field";
     $var[0]['html'] = $frm->text('_blank_example', e107::pref('theme', 'example', 'default'));
     $var[0]['help'] = "Example help text for this input field";
     $var[1]['caption'] = "Sample configuration field 2";
     $var[1]['html'] = $frm->text('_blank_example2', e107::pref('theme', 'example2', 'default'));
     return $var;
 }
开发者ID:armpit,项目名称:e107,代码行数:10,代码来源:theme_config.php

示例9: config

 function config()
 {
     $var[0]['caption'] = "Blogger URL";
     $var[0]['html'] = e107::getForm()->text('bloggerUrl', $_POST['bloggerUrl'], 255, 'size=xxlarge');
     //  "<input class='tbox' type='text' name='bloggerUrl' size='120' value='{$_POST['bloggerUrl']}' maxlength='250' />";
     $var[0]['help'] = "eg. http://blogname.blogspot.com";
     $var[1]['caption'] = "Cleanup HTML in content";
     $var[1]['html'] = e107::getForm()->checkbox('bloggerCleanup', 1, $_POST['bloggerCleanup']);
     // "<input class='tbox' type='checkbox' name='bloggerCleanup' value='1' />";
     $var[1]['help'] = "Tick to enable";
     return $var;
 }
开发者ID:armpit,项目名称:e107,代码行数:12,代码来源:blogger_import_class.php

示例10: config

 /**
  * Altering import form. We append additional form elements to it.
  *
  * @return array $frmElements
  */
 function config()
 {
     $frm = e107::getForm();
     $frmElements = array();
     $versions = array('6' => 'Drupal 6', '7' => 'Drupal 7', '8' => 'Drupal 8');
     $dscVersion = LAN_CONVERT_51;
     $frmElements[] = array('caption' => LAN_CONVERT_52, 'html' => $frm->select('version', $versions, $this->version, 50, array('required' => 1)) . '<div class="field-help">' . $dscVersion . '</div>');
     $dscBaseUrl = LAN_CONVERT_53;
     $frmElements[] = array('caption' => LAN_CONVERT_54, 'html' => $frm->text('baseUrl', $this->baseUrl, 50, array('required' => 1)) . '<div class="field-help">' . $dscBaseUrl . '</div>');
     $dscBasePath = LAN_CONVERT_55;
     $frmElements[] = array('caption' => LAN_CONVERT_56, 'html' => $frm->text('basePath', $this->basePath, 50, array('required' => 1)) . '<div class="field-help">' . $dscBasePath . '</div>');
     return $frmElements;
 }
开发者ID:armpit,项目名称:e107,代码行数:18,代码来源:drupal_import_class.php

示例11: __construct

 function __construct()
 {
     $mes = e107::getMessage();
     $frm = e107::getForm();
     $tp = e107::getParser();
     //	$this->simulation();
     $mailoutPlugins = e107::getConfig()->get('e_mailout_list');
     if (empty($_GET['id'])) {
         return;
     }
     $tmp = base64_decode($_GET['id']);
     parse_str($tmp, $data);
     $data['plugin'] = $tp->filter($data['plugin'], 'str');
     $data['email'] = $tp->filter($data['email'], 'email');
     e107::getMessage()->addDebug(print_a($data, true));
     $plugin = vartrue($data['plugin'], false);
     if (empty($data) || !e107::isInstalled($plugin) || !in_array($plugin, $mailoutPlugins)) {
         $this->invalidURL();
         return;
     }
     $ml = e107::getAddon($plugin, 'e_mailout');
     if (!empty($data['userclass'])) {
         $data['userclass'] = intval($data['userclass']);
         $listName = e107::getUserClass()->getName($data['userclass']);
     } else {
         $listName = $ml->mailerName;
     }
     if (vartrue($_POST['remove']) && !empty($data)) {
         if ($ml->unsubscribe('process', $data) != false) {
             $text = "<p><b>" . $data['email'] . "</b> has been removed from " . $listName . ".</p>";
             $mes->addSuccess($text);
         } else {
             $text = "<p>There was a problem when attempting to remove <b>" . $data['email'] . "</b> from " . $listName . ".</p>";
             $mes->addError($text);
         }
         echo "<div class='container'>" . $mes->render() . "</div>";
         return;
     }
     if ($ml->unsubscribe('check', $data) != false) {
         $text = "<p>We are very sorry for the inconvenience. <br />Please click the button below to remove <b>" . $data['email'] . "</b> from <i>" . $listName . "</i>.</p>";
         $text .= $frm->open('unsub', 'post', e_REQUEST_URI);
         $text .= $frm->button('remove', 'Remove ', 'submit');
         $text .= $frm->close();
         $mes->setTitle('Unsubscribe', E_MESSAGE_INFO)->addInfo($text);
         echo "<div class='container'>" . $mes->render() . "</div>";
         return;
     } else {
         $this->invalidURL();
         return;
     }
 }
开发者ID:armpit,项目名称:e107,代码行数:51,代码来源:unsubscribe.php

示例12: show_importdb_form

function show_importdb_form()
{
    $ns = e107::getRender();
    $parm = altAuthGetParams('importdb');
    $frm = new form();
    $text = $frm->form_open('post', e_SELF);
    $text .= "<table class='table adminform'>\r\n\t<colgroup span='2'>\r\n\t\t<col class='col-label' />\r\n\t\t<col class='col-control' />\r\n\t</colgroup>";
    $text .= "<tr><td colspan='2'>" . IMPORTDB_LAN_11 . "</td></tr>";
    $text .= "<tr><td>" . IMPORTDB_LAN_9 . "</td><td>";
    $text .= altAuthGetPasswordSelector('importdb_password_method', $frm, $parm['importdb_password_method'], TRUE);
    $text .= "</td></tr>";
    $text .= "</table><div class='buttons-bar center'>";
    $text .= e107::getForm()->admin_button("update", LAN_UPDATE, 'update');
    $text .= "</div>";
    $text .= $frm->form_close();
    $ns->tablerender(IMPORTDB_LAN_10, $text);
    $ns->tablerender(LAN_ALT_40 . LAN_ALT_41, alt_auth_test_form('importdb', $frm));
}
开发者ID:notzen,项目名称:e107,代码行数:18,代码来源:importdb_conf.php

示例13: gen_chardata

 function gen_chardata($curVal, $mode)
 {
     $frm = e107::getForm();
     switch ($mode) {
         case 'read':
             // List Page
             return str_replace(":::", "<br />", $curVal);
             break;
         case 'write':
             // Edit Page
             return $frm->text('gen_chardata', $curVal);
             break;
         case 'filter':
         case 'batch':
             //	return  $array;
             break;
     }
 }
开发者ID:gitter-badger,项目名称:e107,代码行数:18,代码来源:fla.php

示例14: config

 function config()
 {
     $sql = e107::getDb();
     $sql->select('user', 'user_id, user_name', 'user_admin = 1');
     $adminList = array();
     $adminList[0] = "Default";
     while ($row = $sql->fetch()) {
         $id = $row['user_id'];
         $adminList[$id] = $row['user_name'];
     }
     $frm = e107::getForm();
     $var[0]['caption'] = "News Author Override (optional)";
     $var[0]['html'] = $frm->select('news_author', $adminList);
     $var[0]['help'] = "Change the author of the news items";
     //	$var[1]['caption']	= "Include revisions";
     //	$var[1]['html'] 	= $frm->checkbox('news_revisions',1);
     //	$var[1]['help'] 	= "Change the author of the news items";
     return $var;
 }
开发者ID:armpit,项目名称:e107,代码行数:19,代码来源:wordpress_import_class.php

示例15: show_admins

function show_admins()
{
    $sql = e107::getDb();
    $frm = e107::getForm();
    $ns = e107::getRender();
    $mes = e107::getMessage();
    $tp = e107::getParser();
    $prm = e107::getUserPerms();
    $sql->db_Select("user", "*", "user_admin='1'");
    $text = "\n\t<form action='" . e_SELF . "' method='post' id='del_administrator'>\n\t\t<fieldset id='core-administrator-list'>\n\t\t\t<legend class='e-hideme'>" . ADMSLAN_13 . "</legend>\n\t\t\t<table class='table adminlist'>\n\t\t\t\t<colgroup>\n\t\t\t\t\t<col style='width:  5%' />\n\t\t\t\t\t<col style='width: 20%' />\n\t\t\t\t\t<col style='width: 65%' />\n\t\t\t\t\t<col style='width: 10%' />\n\t\t\t\t</colgroup>\n\t\t\t\t<thead>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th>ID</th>\n\t\t\t\t\t\t<th>" . ADMSLAN_56 . "</th>\n\t\t\t\t\t\t<th>" . ADMSLAN_18 . "</th>\n\t\t\t\t\t\t<th class='center last'>" . LAN_OPTIONS . "</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>\n\n\t";
    while ($row = $sql->db_Fetch()) {
        //$permtxt = "";
        $text .= "\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>" . $row['user_id'] . "</td>\n\t\t\t\t\t\t<td><a href='" . e107::getUrl()->create('user/profile/view', array('id' => $row['user_id'], 'name' => $row['user_name'])) . "'>" . $row['user_name'] . "</a></td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t" . $prm->renderperms($row['user_perms'], $row['user_id'], "words") . "\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td class='center'>\n\t\t";
        if ($row['user_id'] != "1") {
            $text .= "\n\t\t\t\t\t\t\t" . $frm->submit_image("edit_admin[{$row['user_id']}]", 'edit', 'edit', LAN_EDIT) . "\n\t\t\t\t\t\t\t" . $frm->submit_image("del_admin[{$row['user_id']}]", 'del', 'delete', $tp->toJS(ADMSLAN_59 . "? [" . $row['user_name'] . "]")) . "\n\n\t\t\t";
        }
        $text .= "\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t";
    }
    $text .= "\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\t\t" . $frm->hidden('del_administrator_confirm', '1') . "\n\t\t</fieldset>\n\t</form>\n\n\t";
    $ns->tablerender(ADMSLAN_13, $mes->render() . $text);
}
开发者ID:notzen,项目名称:e107,代码行数:21,代码来源:administrator.php


注:本文中的e107::getForm方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。