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


PHP XoopsFormElementTray::setDescription方法代码示例

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


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

示例1: getForm

 /**
  * @return XoopsThemeForm
  */
 function getForm()
 {
     if ($this->isNew()) {
         $blank_img = 'blank.gif';
     } else {
         $blank_img = str_replace('avatars/', '', $this->getVar('avatar_file', 'e'));
     }
     // Get User Config
     $config_handler =& xoops_gethandler('config');
     $xoopsConfigUser = $config_handler->getConfigsByCat(XOOPS_CONF_USER);
     // New and edit form
     $form = new XoopsThemeForm(_AM_SYSTEM_AVATAR_ADD, 'avatar_form', 'admin.php', "post", true);
     $form->setExtra('enctype="multipart/form-data"');
     // Name
     $form->addElement(new XoopsFormText(_IMAGENAME, 'avatar_name', 50, 255, $this->getVar('avatar_name', 'e')), true);
     // Name description
     $maxpixel = '<div>' . _US_MAXPIXEL . '&nbsp;:&nbsp;' . $xoopsConfigUser['avatar_width'] . ' x ' . $xoopsConfigUser['avatar_height'] . '</div>';
     $maxsize = '<div>' . _US_MAXIMGSZ . '&nbsp;:&nbsp;' . $xoopsConfigUser['avatar_maxsize'] . '</div>';
     // Upload part
     $imgtray_img = new XoopsFormElementTray(_IMAGEFILE, '<br />');
     $imgtray_img->setDescription($maxpixel . $maxsize);
     $imageselect_img = new XoopsFormSelect(sprintf(_AM_SYSTEM_AVATAR_USE_FILE, XOOPS_UPLOAD_PATH . '/avatars/'), 'avatar_file', $blank_img);
     $image_array_img = XoopsLists::getImgListAsArray(XOOPS_UPLOAD_PATH . '/avatars');
     $imageselect_img->addOption("{$blank_img}", $blank_img);
     foreach ($image_array_img as $image_img) {
         $imageselect_img->addOption("{$image_img}", $image_img);
     }
     $imageselect_img->setExtra("onchange='showImgSelected(\"xo-avatar-img\", \"avatar_file\", \"avatars\", \"\", \"" . XOOPS_UPLOAD_URL . "\")'");
     $imgtray_img->addElement($imageselect_img, false);
     $imgtray_img->addElement(new XoopsFormLabel('', "<br /><img src='" . XOOPS_UPLOAD_URL . "/avatars/" . $blank_img . "' name='image_img' id='xo-avatar-img' alt='' />"));
     $fileseltray_img = new XoopsFormElementTray('<br />', '<br /><br />');
     $fileseltray_img->addElement(new XoopsFormFile(_AM_SYSTEM_AVATAR_UPLOAD, 'avatar_file', 500000), false);
     $imgtray_img->addElement($fileseltray_img);
     $form->addElement($imgtray_img);
     // Weight
     $form->addElement(new XoopsFormText(_IMGWEIGHT, 'avatar_weight', 3, 4, $this->getVar('avatar_weight', 'e')));
     // Display
     $form->addElement(new XoopsFormRadioYN(_IMGDISPLAY, 'avatar_display', $this->getVar('avatar_display', 'e'), _YES, _NO));
     // Hidden
     if ($this->isNew()) {
         $form->addElement(new XoopsFormHidden('avatar_type', 's'));
     }
     $form->addElement(new XoopsFormHidden('op', 'save'));
     $form->addElement(new XoopsFormHidden('fct', 'avatars'));
     $form->addElement(new XoopsFormHidden('avatar_id', $this->getVar('avatar_id', 'e')));
     // Button
     $form->addElement(new XoopsFormButton('', 'avt_button', _SUBMIT, 'submit'));
     return $form;
 }
开发者ID:RanLee,项目名称:Xoops_demo,代码行数:52,代码来源:avatar.php

示例2: getForm

 function getForm($action = false)
 {
     if ($this->isNew()) {
         $blank_img = 'blank.gif';
     } else {
         $blank_img = str_replace('ranks/', '', $this->getVar('rank_image', 'e'));
     }
     if ($action === false) {
         $action = $_SERVER['REQUEST_URI'];
     }
     $title = $this->isNew() ? sprintf(_AM_SYSTEM_USERRANK_ADD) : sprintf(_AM_SYSTEM_USERRANK_EDIT);
     $form = new XoopsThemeForm($title, 'form', $action, 'post', true);
     $form->setExtra('enctype="multipart/form-data"');
     $form->addElement(new XoopsFormText(_AM_SYSTEM_USERRANK_TITLE, 'rank_title', 50, 50, $this->getVar('rank_title'), true));
     $form->addElement(new XoopsFormText(_AM_SYSTEM_USERRANK_MINPOST, 'rank_min', 10, 10, $this->getVar('rank_min')));
     $form->addElement(new XoopsFormText(_AM_SYSTEM_USERRANK_MAXPOST, 'rank_max', 10, 10, $this->getVar('rank_max')));
     $imgtray_img = new XoopsFormElementTray(_AM_SYSTEM_USERRANK_IMAGE, '<br />');
     $imgpath_img = sprintf(_AM_SYSTEM_USERRANK_IMAGE_PATH, XOOPS_UPLOAD_PATH . '/ranks/');
     $imageselect_img = new XoopsFormSelect($imgpath_img, 'rank_image', $blank_img);
     $image_array_img = XoopsLists::getImgListAsArray(XOOPS_UPLOAD_PATH . '/ranks');
     $imageselect_img->addOption("{$blank_img}", $blank_img);
     foreach ($image_array_img as $image_img) {
         $imageselect_img->addOption("{$image_img}", $image_img);
     }
     $imageselect_img->setExtra("onchange='showImgSelected(\"xo-ranks-img\", \"rank_image\", \"ranks\", \"\", \"" . XOOPS_UPLOAD_URL . "\")'");
     $imgtray_img->addElement($imageselect_img, false);
     $imgtray_img->addElement(new XoopsFormLabel('', "<br /><img src='" . XOOPS_UPLOAD_URL . "/ranks/" . $blank_img . "' name='image_img' id='xo-ranks-img' alt='' />"));
     $fileseltray_img = new XoopsFormElementTray('<br />', '<br /><br />');
     $fileseltray_img->addElement(new XoopsFormFile(_AM_SYSTEM_USERRANK_UPLOAD, 'rank_image', 500000), false);
     $fileseltray_img->addElement(new XoopsFormLabel(''), false);
     $imgtray_img->addElement($fileseltray_img);
     $form->addElement($imgtray_img);
     if (!$this->isNew()) {
         $rank_special = $this->getVar('rank_special');
     } else {
         $rank_special = 0;
     }
     $special_tray = new XoopsFormElementTray(_AM_SYSTEM_USERRANK_SPECIAL, '<br />');
     $special_tray->setDescription(_AM_SYSTEM_USERRANK_SPECIAL_CAN);
     $special_tray->addElement(new XoopsFormRadioYN('', 'rank_special', $rank_special));
     $form->addElement($special_tray);
     if (!$this->isNew()) {
         $form->addElement(new XoopsFormHidden('rank_id', $this->getVar('rank_id')));
     }
     $form->addElement(new XoopsFormHidden('op', 'userrank_save'));
     $form->addElement(new XoopsFormButton('', 'submit', _SUBMIT, 'submit'));
     return $form;
 }
开发者ID:BackupTheBerlios,项目名称:haxoo-svn,代码行数:48,代码来源:userrank.php

示例3: adminUI

 function adminUI($form, $value, $ele_id)
 {
     $myts =& MyTextSanitizer::getInstance();
     $options = array();
     $opt_count = 0;
     $addopt = $_POST['addopt'];
     if (!empty($ele_id)) {
         $keys = array_keys($value);
         for ($i = 0; $i < count($keys); $i++) {
             $r = $value[$keys[$i]] ? $opt_count : null;
             $v = $myts->makeTboxData4PreviewInForm($keys[$i]);
             $options[] = new xoopsFormText('', 'ele_value[' . $opt_count . ']', 40, 255, $v);
             // function in the admin/elements.php file
             $opt_count++;
         }
     }
     // added check below to add in blank rows that are unaccounted for above.
     // above code adds in all the options the user has typed in.  If there are blank rows on the form, this code will add in the appropriate amount, based on the 'rowcount' hidden element.
     // This code added by jwe 01/05/05
     if ($opt_count < $_POST['rowcount']) {
         for ($i = $opt_count; $i < $_POST['rowcount']; $i++) {
             $options[] = new xoopsFormText('', 'ele_value[' . $i . ']', 40, 255, '');
         }
         $opt_count = $_POST['rowcount'];
         // make the opt_count equal to the number of rows, since we've now brought the number back up to where it should be.
     }
     if (empty($addopt) and empty($ele_id)) {
         $addopt = 2;
     }
     for ($i = 0; $i < $addopt; $i++) {
         $options[] = new xoopsFormText('', 'ele_value[' . $opt_count . ']', 40, 255, '');
         $opt_count++;
     }
     // these two lines part of the jwe added code
     $rowcount = new XoopsFormHidden("rowcount", $opt_count);
     $form->addElement($rowcount);
     $opt_tray = new XoopsFormElementTray(_AM_ELE_OPT, '<br />');
     $opt_tray->setDescription(_AM_ELE_OPT_DESC_RANKORDERLISTS . '<br /><br />' . _AM_ELE_OPT_UITEXT);
     for ($i = 0; $i < count($options); $i++) {
         $opt_tray->addElement($options[$i]);
     }
     $opt_tray->addElement(addOptionsTray());
     $form->addElement($opt_tray);
     return $form;
 }
开发者ID:LeeGlendenning,项目名称:formulize,代码行数:45,代码来源:rankOrderList.php

示例4: SystemMaintenance

 // Define Breadcrumb and tips
 $xoBreadCrumb->addLink(_AM_SYSTEM_MAINTENANCE_NAV_MANAGER, system_adminVersion('maintenance', 'adminpath'));
 $xoBreadCrumb->addHelp(system_adminVersion('maintenance', 'help'));
 $xoBreadCrumb->addTips(_AM_SYSTEM_MAINTENANCE_TIPS);
 $xoBreadCrumb->render();
 $maintenance = new SystemMaintenance();
 //Form Maintenance
 $form_maintenance = new XoopsThemeForm(_AM_SYSTEM_MAINTENANCE, 'maintenance_save', 'admin.php?fct=maintenance', 'post', true);
 $cache = new XoopsFormSelect(_AM_SYSTEM_MAINTENANCE_CACHE, 'cache', '', 3, true);
 $cache->setDescription(XOOPS_VAR_PATH . '/cache/smarty_cache/<br>' . XOOPS_VAR_PATH . '/cache/smarty_compile/<br>' . XOOPS_VAR_PATH . '/cache/xoops_cache/');
 $cache_arr = array(1 => 'smarty_cache', 2 => 'smarty_compile', 3 => 'xoops_cache');
 $cache->addOptionArray($cache_arr);
 $form_maintenance->addElement($cache);
 $form_maintenance->addElement(new XoopsFormRadioYN(_AM_SYSTEM_MAINTENANCE_SESSION, 'session', '', _YES, _NO));
 $tables_tray = new XoopsFormElementTray(_AM_SYSTEM_MAINTENANCE_TABLES, '');
 $tables_tray->setDescription(_AM_SYSTEM_MAINTENANCE_TABLES_DESC);
 $select_tables = new XoopsFormSelect('', 'tables', '', 7, true);
 $select_tables->addOptionArray($maintenance->displayTables(true));
 $tables_tray->addElement($select_tables, false);
 $tables_tray->addElement(new xoopsFormLabel('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . _AM_SYSTEM_MAINTENANCE_DUMP_AND . '&nbsp;'));
 $choice = new XoopsFormSelect('&nbsp;&nbsp;', 'maintenance', '', 4, true);
 $options = array('1' => _AM_SYSTEM_MAINTENANCE_CHOICE1, '2' => _AM_SYSTEM_MAINTENANCE_CHOICE2, '3' => _AM_SYSTEM_MAINTENANCE_CHOICE3, '4' => _AM_SYSTEM_MAINTENANCE_CHOICE4);
 $choice->addOptionArray($options);
 $tables_tray->addElement($choice, false);
 $form_maintenance->addElement($tables_tray);
 $form_maintenance->addElement(new XoopsFormRadioYN(_AM_SYSTEM_MAINTENANCE_AVATAR, 'avatar', '', _YES, _NO));
 $form_maintenance->addElement(new XoopsFormHidden('op', 'maintenance_save'));
 $form_maintenance->addElement(new XoopsFormButton('', 'maintenance_save', _SEND, 'submit'));
 //Form Dump
 $form_dump = new XoopsThemeForm(_AM_SYSTEM_MAINTENANCE_DUMP, 'dump_save', 'admin.php?fct=maintenance', 'post', true);
 $dump_tray = new XoopsFormElementTray(_AM_SYSTEM_MAINTENANCE_DUMP_TABLES_OR_MODULES, '');
开发者ID:geekwright,项目名称:XoopsCore25,代码行数:31,代码来源:main.php

示例5: XoopsThemeForm

 echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-size: small; display: block; \">" . _AM_SPARTNER_IMPORT_INFO . "</span>";
 global $xoopsUser, $xoopsUser, $xoopsConfig, $xoopsDB, $modify, $xoopsModuleConfig, $xoopsModule, $XOOPS_URL, $myts;
 include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
 $module_handler =& xoops_gethandler('module');
 if ($module_handler->getByDirname('xoopspartners')) {
     $importfile_select_array["xoopspartners"] = _AM_SPARTNER_IMPORT_XOOPSPARTNERS_110;
 }
 if (isset($importfile_select_array) && count($importfile_select_array) > 0) {
     $sform = new XoopsThemeForm(_AM_SPARTNER_IMPORT_SELECTION, "op", xoops_getenv('PHP_SELF'));
     $sform->setExtra('enctype="multipart/form-data"');
     // Partners to import
     $importfile_select = new XoopsFormSelect('', 'importfile', $importfile);
     $importfile_select->addOptionArray($importfile_select_array);
     $importfile_tray = new XoopsFormElementTray(_AM_SPARTNER_IMPORT_SELECT_FILE, '&nbsp;');
     $importfile_tray->addElement($importfile_select);
     $importfile_tray->setDescription(_AM_SPARTNER_IMPORT_SELECT_FILE_DSC);
     $sform->addElement($importfile_tray);
     // Buttons
     $button_tray = new XoopsFormElementTray('', '');
     $hidden = new XoopsFormHidden('op', 'importExecute');
     $button_tray->addElement($hidden);
     $butt_import = new XoopsFormButton('', '', _AM_SPARTNER_IMPORT, 'submit');
     $butt_import->setExtra('onclick="this.form.elements.op.value=\'importExecute\'"');
     $button_tray->addElement($butt_import);
     $butt_cancel = new XoopsFormButton('', '', _AM_SPARTNER_CANCEL, 'button');
     $butt_cancel->setExtra('onclick="history.go(-1)"');
     $button_tray->addElement($butt_cancel);
     $sform->addElement($button_tray);
     $sform->display();
     unset($hidden);
 } else {
开发者ID:BackupTheBerlios,项目名称:haxoo-svn,代码行数:31,代码来源:import.php

示例6: XoopsFormText

     $email_text = new XoopsFormText('', 'email', 30, 60, $xoopsUser->getVar('email'));
 } else {
     $email_text = new XoopsFormLabel('', $xoopsUser->getVar('email'));
 }
 $email_tray->addElement($email_text);
 $email_cbox_value = $xoopsUser->user_viewemail() ? 1 : 0;
 $email_cbox = new XoopsFormCheckBox('', 'user_viewemail', $email_cbox_value);
 $email_cbox->addOption(1, _US_ALLOWVIEWEMAIL);
 $email_tray->addElement($email_cbox);
 if (defined('ICMS_VERSION_NAME')) {
     $config_handler =& xoops_gethandler('config');
     $icmsauthConfig =& $config_handler->getConfigsByCat(XOOPS_CONF_AUTH);
     if ($icmsauthConfig['auth_openid'] == 1) {
         $openid_tray = new XoopsFormElementTray(_US_OPENID_FORM_CAPTION, '<br />');
         $openid_text = new XoopsFormText('', 'openid', 30, 255, $xoopsUser->getVar('openid'));
         $openid_tray->setDescription(_US_OPENID_FORM_DSC);
         $openid_tray->addElement($openid_text);
         $openid_cbox_value = $xoopsUser->user_viewoid() ? 1 : 0;
         $openid_cbox = new XoopsFormCheckBox('', 'user_viewoid', $openid_cbox_value);
         $openid_cbox->addOption(1, _US_ALLOWVIEWEMAILOPENID);
         $openid_tray->addElement($openid_cbox);
         $form->addElement($openid_tray);
     }
 }
 $form->addElement($email_tray);
 $url_text = new XoopsFormText(_US_WEBSITE, 'url', 30, 100, $xoopsUser->getVar('url', 'E'));
 $form->addElement($url_text);
 $timezone_select = new XoopsFormSelectTimezone(_US_TIMEZONE, 'timezone_offset', $xoopsUser->getVar('timezone_offset'));
 $icq_text = new XoopsFormText(_US_ICQ, 'user_icq', 15, 15, $xoopsUser->getVar('user_icq', 'E'));
 $aim_text = new XoopsFormText(_US_AIM, 'user_aim', 18, 18, $xoopsUser->getVar('user_aim', 'E'));
 $yim_text = new XoopsFormText(_US_YIM, 'user_yim', 25, 25, $xoopsUser->getVar('user_yim', 'E'));
开发者ID:trabisdementia,项目名称:xuups,代码行数:31,代码来源:edituser.php

示例7: createDataTypeUI

function createDataTypeUI($ele_type, $element, $id_form, $ele_encrypt)
{
    // data type controls ... added May 31 2009, jwe
    // only do it for existing elements where the datatype choice is relevant
    // do not do it for encrypted elements
    $renderedUI = "";
    // check if there's a special class file for this element type, and if so, instantiate an element object of that kind, so we can check if it needs a datatype UI or not
    $customTypeNeedsUI = false;
    if (file_exists(XOOPS_ROOT_PATH . "/modules/formulize/class/" . $ele_type . "Element.php")) {
        $customTypeHandler = xoops_getmodulehandler($ele_type . "Element", 'formulize');
        $customTypeObject = $customTypeHandler->create();
        $customTypeNeedsUI = $customTypeObject->needsDataType;
    }
    if (($ele_type == "text" or $ele_type == "textarea" or $ele_type == "select" or $ele_type == "radio" or $ele_type == "checkbox" or $ele_type == "derived" or $customTypeNeedsUI) and !$ele_encrypt) {
        if ($element) {
            $defaultTypeInformation = $element->getDataTypeInformation();
            $defaultType = $defaultTypeInformation['dataType'];
            $defaultTypeSize = $defaultTypeInformation['dataTypeSize'];
            //print "defaultType: $defaultType<br>";
            //print "defaultTypeSize: $defaultTypeSize<br>";
            $renderedUI .= "<input type='hidden' name='element_default_datatype' value='{$defaultType}'>\n";
            $renderedUI .= "<input type='hidden' name='element_default_datatypesize' value='{$defaultTypeSize}'>\n";
        } else {
            $defaultType = 'text';
            $defaultTypeSize = '';
        }
        // setup the UI for the options...
        $dataTypeTray = new XoopsFormElementTray(_AM_FORM_DATATYPE_CONTROLS, '<br>');
        $dataTypeTray->setDescription(_AM_FORM_DATATYPE_CONTROLS_DESC);
        $textType = new XoopsFormRadio('', 'element_datatype', $defaultType);
        $textDataTypeLabel = (!$element and $ele_type == 'text') ? _AM_FORM_DATATYPE_TEXT_NEWTEXT : _AM_FORM_DATATYPE_TEXT;
        $textType->addOption('text', $textDataTypeLabel);
        $intType = new XoopsFormRadio('', 'element_datatype', $defaultType);
        $intType->addOption('int', _AM_FORM_DATATYPE_INT);
        $decimalType = new XoopsFormRadio('', 'element_datatype', $defaultType);
        $decimalTypeSizeDefault = ($defaultTypeSize and $defaultType == "decimal") ? $defaultTypeSize : 2;
        $decimalTypeSize = new XoopsFormText('', 'element_datatype_decimalsize', 2, 2, $decimalTypeSizeDefault);
        $decimalTypeSize->setExtra(" style=\"width: 2em;\" ");
        // style to force width necessary to compensate for silly forced 60% textbox widths in ICMS admin side
        $decimalType->addOption('decimal', _AM_FORM_DATATYPE_DECIMAL1 . $decimalTypeSize->render() . _AM_FORM_DATATYPE_DECIMAL2);
        $varcharType = new XoopsFormRadio('', 'element_datatype', $defaultType);
        $varcharTypeSizeDefault = ($defaultTypeSize and $defaultType == 'varchar') ? $defaultTypeSize : 255;
        $varcharTypeSize = new XoopsFormText('', 'element_datatype_varcharsize', 3, 3, $varcharTypeSizeDefault);
        $varcharTypeSize->setExtra(" style=\"width: 3em;\" ");
        $varcharType->addOption('varchar', _AM_FORM_DATATYPE_VARCHAR1 . $varcharTypeSize->render() . _AM_FORM_DATATYPE_VARCHAR2);
        $charType = new XoopsFormRadio('', 'element_datatype', $defaultType);
        $charTypeSizeDefault = ($defaultTypeSize and $defaultType == 'char') ? $defaultTypeSize : 255;
        $charTypeSize = new XoopsFormText('', 'element_datatype_charsize', 3, 3, $charTypeSizeDefault);
        $charTypeSize->setExtra(" style=\"width: 3em;\" ");
        $charType->addOption('char', _AM_FORM_DATATYPE_CHAR1 . $charTypeSize->render() . _AM_FORM_DATATYPE_CHAR2);
        if ($defaultType != "text" and $defaultType != "int" and $defaultType != "decimal" and $defaultType != "varchar" and $defaultType != "char") {
            $otherType = new XoopsFormRadio('', 'element_datatype', $defaultType);
            $otherType->addOption($defaultType, _AM_FORM_DATATYPE_OTHER . $defaultType);
            $dataTypeTray->addElement($otherType);
        }
        $dataTypeTray->addElement($textType);
        $dataTypeTray->addElement($intType);
        $dataTypeTray->addElement($decimalType);
        $dataTypeTray->addElement($varcharType);
        $dataTypeTray->addElement($charType);
        $renderedUI .= $dataTypeTray->render();
    }
    return $renderedUI;
}
开发者ID:LeeGlendenning,项目名称:formulize,代码行数:64,代码来源:element.php

示例8: edititem


//.........这里部分代码省略.........
        }
        echo "<br />\n";
        smartsection_collapsableBar('edititemtable', 'edititemicon', $page_title, $page_info);
        if (!$clone) {
            echo "<form><div style=\"margin-bottom: 10px;\">";
            echo "<input type='button' name='button' onclick=\"location='item.php?op=clone&itemid=" . $itemObj->itemid() . "'\" value='" . _AM_SSECTION_CLONE_ITEM . "'>&nbsp;&nbsp;";
            echo "</div></form>";
        }
    } else {
        // there's no parameter, so we're adding an item
        $itemObj =& $smartsection_item_handler->create();
        $itemObj->setVar('uid', $xoopsUser->uid());
        $categoryObj =& $smartsection_category_handler->create();
        $breadcrumb_action1 = _AM_SSECTION_ITEMS;
        $breadcrumb_action2 = _AM_SSECTION_CREATINGNEW;
        $button_caption = _AM_SSECTION_CREATE;
        $new_status = _SSECTION_STATUS_PUBLISHED;
        if ($showmenu) {
            smartsection_adminMenu(2, $breadcrumb_action1 . " > " . $breadcrumb_action2);
        }
        $sel_categoryid = isset($_GET['categoryid']) ? $_GET['categoryid'] : 0;
        $categoryObj->setVar('categoryid', $sel_categoryid);
        smartsection_collapsableBar('createitemtable', 'createitemicon', _AM_SSECTION_ITEM_CREATING, _AM_SSECTION_ITEM_CREATING_DSC);
    }
    // ITEM FORM
    $sform = new XoopsThemeForm(_AM_SSECTION_ITEMS, "op", xoops_getenv('PHP_SELF'));
    $sform->setExtra('enctype="multipart/form-data"');
    // CATEGORY
    $mytree = new XoopsTree($xoopsDB->prefix("smartsection_categories"), "categoryid", "parentid");
    ob_start();
    //$sform->addElement(new XoopsFormHidden('categoryid', $categoryObj->categoryid()));
    $mytree->makeMySelBox("name", "weight", $categoryObj->categoryid());
    $category_label = new XoopsFormLabel(_AM_SSECTION_CATEGORY, ob_get_contents());
    $category_label->setDescription(_AM_SSECTION_CATEGORY_DSC);
    $sform->addElement($category_label);
    ob_end_clean();
    // TITLE
    $title_text = new XoopsFormText(_AM_SSECTION_TITLE, 'title', 50, 255, $itemObj->title(0, 'e'));
    $sform->addElement($title_text, true);
    if (SMARTSECTION_LEVEL >= 5) {
        // SUMMARY
        $summary_text = smartsection_getEditor(_AM_SSECTION_SUMMARY, 'summary', $itemObj->getVar('summary', 'e'));
        $summary_text->setDescription(_AM_SSECTION_SUMMARY_DSC);
        $sform->addElement($summary_text, false);
        // DISPLAY_SUMMARY
        $display_summary_radio = new XoopsFormRadioYN(_AM_SSECTION_DISPLAY_SUMMARY, 'display_summary', $itemObj->display_summary(), ' ' . _AM_SSECTION_YES . '', ' ' . _AM_SSECTION_NO . '');
        $sform->addElement($display_summary_radio);
    }
    // BODY
    /*if ($itemObj->address()) {
    		// Main body : pagewrap
    		$address_select = new XoopsFormSelect(_AM_SSECTION_BODY_SELECTFILE, "address", $itemObj->address());
    		$address_select->setDescription(_AM_SSECTION_BODY_SELECTFILE_DSC);
    	    $dir = smartsection_getUploadDir(true, 'content');
    		$folder = dir($dir);
    		while($file = $folder->read()) {
    	      if ($file != "." && $file != "..") {
    		     $address_select->addOption($file, "".$file."");
    		  }
    		}
    	    $folder->close();
    		$sform->addElement($address_select);
    
    		$sform->addElement(new XoopsFormHidden('body', ''));
    	} else {*/
    $body_text = smartsection_getEditor(_AM_SSECTION_BODY, 'body', $itemObj->getVar('body', 'e'));
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:67,代码来源:item.php

示例9: addOption

    $keys = array_keys($value);
    for ($i = 0; $i < count($keys); $i++) {
        $v = $myts->makeTboxData4PreviewInForm($keys[$i]);
        $options[] = addOption('ele_value[' . $opt_count . ']', 'checked[' . $opt_count . ']', $v, 'check', $value[$keys[$i]]);
        $opt_count++;
    }
} else {
    while ($v = each($ele_value)) {
        $v['value'] = $myts->makeTboxData4PreviewInForm($v['value']);
        if (!empty($v['value'])) {
            if (!isset($checked[$opt_count])) {
                $checked[$opt_count] = "";
            }
            $options[] = addOption('ele_value[' . $opt_count . ']', 'checked[' . $opt_count . ']', $v['value'], 'check', $checked[$v['key']]);
            $opt_count++;
        }
    }
    $addopt = empty($addopt) ? 2 : $addopt;
    for ($i = 0; $i < $addopt; $i++) {
        $options[] = addOption('ele_value[' . $opt_count . ']', 'checked[' . $opt_count . ']', '', 'check', '');
        $opt_count++;
    }
}
$add_opt = addOptionsTray();
$options[] = $add_opt;
$opt_tray = new XoopsFormElementTray(_AM_ELE_OPT, '<br />');
$opt_tray->setDescription(_AM_ELE_OPT_DESC);
for ($i = 0; $i < count($options); $i++) {
    $opt_tray->addElement($options[$i]);
}
$form->addElement($opt_tray);
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:31,代码来源:ele_check.php

示例10: If

   If ($moduleObj) {
   $from_module_version = round($moduleObj->getVar('version') / 100, 2);
   if ($from_module_version > 1.00) {
   $importfile_select_array["xfsection"] = "XF-Section " . $from_module_version;
   $xfs_version = $from_module_version;
   }
   } */
 if (isset($importfile_select_array) && count($importfile_select_array) > 0) {
     $sform = new XoopsThemeForm(_AM_PUBLISHER_IMPORT_SELECTION, 'op', xoops_getenv('PHP_SELF'));
     $sform->setExtra('enctype="multipart/form-data"');
     // Partners to import
     $importfile_select = new XoopsFormSelect('', 'importfile', $importfile);
     $importfile_select->addOptionArray($importfile_select_array);
     $importfile_tray = new XoopsFormElementTray(_AM_PUBLISHER_IMPORT_SELECT_FILE, '&nbsp;');
     $importfile_tray->addElement($importfile_select);
     $importfile_tray->setDescription(_AM_PUBLISHER_IMPORT_SELECT_FILE_DSC);
     $sform->addElement($importfile_tray);
     // Buttons
     $button_tray = new XoopsFormElementTray('', '');
     $hidden = new XoopsFormHidden('op', 'importExecute');
     $button_tray->addElement($hidden);
     $butt_import = new XoopsFormButton('', '', _AM_PUBLISHER_IMPORT, 'submit');
     $butt_import->setExtra('onclick="this.form.elements.op.value=\'importExecute\'"');
     $button_tray->addElement($butt_import);
     $butt_cancel = new XoopsFormButton('', '', _AM_PUBLISHER_CANCEL, 'button');
     $butt_cancel->setExtra('onclick="history.go(-1)"');
     $button_tray->addElement($butt_cancel);
     $sform->addElement($button_tray);
     /*$sform->addElement(new XoopsFormHidden('xfs_version', $xfs_version));
       $sform->addElement(new XoopsFormHidden('wfs_version', $wfs_version));*/
     $sform->addElement(new XoopsFormHidden('news_version', $news_version));
开发者ID:trabisdementia,项目名称:publisher,代码行数:31,代码来源:import.php

示例11: array

     $words = array();
     $metablack = new mysearch_blacklist();
     $words = $metablack->getAllKeywords();
     if (is_array($words) && count($words) > 0) {
         foreach ($words as $key => $value) {
             $blacklist->addOption($key, $value);
         }
     }
     $blacklist->setDescription(_AM_MYSEARCH_BLACKLIST_DESC);
     $remove_tray->addElement($blacklist, false);
     $remove_btn = new XoopsFormButton('', 'go', _AM_MYSEARCH_DELETE, 'submit');
     $remove_tray->addElement($remove_btn, false);
     $sform->addElement($remove_tray);
     // Add some words
     $add_tray = new XoopsFormElementTray(_AM_MYSEARCH_BLACKLIST_ADD);
     $add_tray->setDescription(_AM_MYSEARCH_BLACKLIST_ADD_DSC);
     $add_field = new XoopsFormTextArea('', 'keywords', '', 5, 70);
     $add_tray->addElement($add_field, false);
     $add_btn = new XoopsFormButton('', 'go', _AM_MYSEARCH_BLACKLIST_ADD, 'submit');
     $add_tray->addElement($add_btn, false);
     $sform->addElement($add_tray);
     $sform->display();
     echo "<br /><div align='center'><a href='http://xoops.instant-zero.com' target='_blank'><img src='../images/instantzero.gif'></a></div>";
     break;
     /**
      * Add a word in the blacklist
      */
 /**
  * Add a word in the blacklist
  */
 case 'addblacklist':
开发者ID:trabisdementia,项目名称:xuups,代码行数:31,代码来源:index.php

示例12: XoopsThemeForm

<?php

$form = new XoopsThemeForm(_AM_SCLONE_CLONE_A_MODULE, "form", xoops_getenv('PHP_SELF'));
$form->setExtra("enctype='multipart/form-data'");
$module_select = new XoopsFormSelect('', 'module', '', 1, false);
$plugins_handler = new SmartclonePlugins();
$module_select->addOptionArray($plugins_handler->getPluginsArray());
$plugins_tray = new XoopsFormElementTray(_AM_SCLONE_MODULE_SELECT, '');
$plugins_tray->setDescription(_AM_SCLONE_MODULE_SELECT_DSC);
$plugins_tray->addElement($module_select, true);
include_once SMARTOBJECT_ROOT_PATH . 'class/smarttip.php';
$oTip = new SmartTip('smartclone_info1', _AM_SCLONE_WHERE_OTHER_MODULE, _AM_SCLONE_WHERE_OTHER_MODULE_EXP);
$module_selec_tip = new XoopsFormLabel('', $oTip->render(false));
$plugins_tray->addElement($module_selec_tip);
$form->addElement($plugins_tray);
$newname_text = new XoopsFormText(_AM_SCLONE_NEWNAME, 'newname', 50, 255, '');
$newname_text->setDescription(_AM_SCLONE_NEWNAME_DSC);
$form->addElement($newname_text, true);
$install_check = new XoopsFormRadioYN(_AM_SCLONE_INSTALL_CHECK, 'install', true);
$form->addElement($install_check);
$form_button_tray = new XoopsFormElementTray('', '');
$form_hidden = new XoopsFormHidden('op', '');
$form_button_tray->addElement($form_hidden);
$form_butt_create = new XoopsFormButton('', '', _GO, 'submit');
$form_butt_create->setExtra('onclick="this.form.elements.op.value=\'doclone\'"');
$form_button_tray->addElement($form_butt_create);
$butt_cancel = new XoopsFormButton('', '', _CANCEL, 'button');
$butt_cancel->setExtra('onclick="history.go(-1)"');
$form_button_tray->addElement($butt_cancel);
$form->addElement($form_button_tray);
$form->display();
开发者ID:trabisdementia,项目名称:xuups,代码行数:31,代码来源:cloneform.inc.php

示例13: editcat

function editcat($showmenu = false, $categoryid = 0, $nb_subcats = 4, $categoryObj = null)
{
    global $xoopsDB, $smartpartner_category_handler, $xoopsUser, $myts, $xoopsConfig, $xoopsModuleConfig, $xoopsModule;
    include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
    // If there is a parameter, and the id exists, retrieve data: we're editing a category
    if ($categoryid != 0) {
        // Creating the category object for the selected category
        //$categoryObj = new SmartpartnerCategory($categoryid);
        $categoryObj = $smartpartner_category_handler->get($categoryid);
        if ($showmenu) {
            smartpartner_adminMenu(1, _AM_SPARTNER_CATEGORIES . " > " . _AM_SPARTNER_EDITING);
        }
        echo "<br />\n";
        if ($categoryObj->notLoaded()) {
            redirect_header("category.php", 1, _AM_SPARTNER_NOCOLTOEDIT);
            exit;
        }
        smartpartner_collapsableBar('edittable', 'edittableicon', _AM_SPARTNER_CATEGORY_EDIT, _AM_SPARTNER_CATEGORY_EDIT_INFO);
    } else {
        if (!$categoryObj) {
            $categoryObj = $smartpartner_category_handler->create();
        }
        if ($showmenu) {
            smartpartner_adminMenu(1, _AM_SPARTNER_CATEGORIES . " > " . _AM_SPARTNER_CATEGORY_CREATING);
        }
        //echo "<br />\n";
        smartpartner_collapsableBar('createtable', 'createtableicon', _AM_SPARTNER_CATEGORY_CREATE, _AM_SPARTNER_CATEGORY_CREATE_INFO);
    }
    // Start category form
    $mytree = new XoopsTree($xoopsDB->prefix("smartpartner_categories"), "categoryid", "parentid");
    $sform = new XoopsThemeForm(_AM_SPARTNER_CATEGORY, "op", xoops_getenv('PHP_SELF'));
    $sform->setExtra('enctype="multipart/form-data"');
    // Name
    $sform->addElement(new XoopsFormText(_AM_SPARTNER_CATEGORY, 'name', 50, 255, $categoryObj->name('e')), true);
    // Description
    $sform->addElement(new XoopsFormTextArea(_AM_SPARTNER_CATEGORY_DSC, 'description', $categoryObj->description('e'), 7, 60));
    // IMAGE
    $image_array =& XoopsLists::getImgListAsArray(smartpartner_getImageDir('category'));
    $image_select = new XoopsFormSelect('', 'image', $categoryObj->image());
    $image_select->addOption('-1', '---------------');
    $image_select->addOptionArray($image_array);
    $image_select->setExtra("onchange='showImgSelected(\"image3\", \"image\", \"" . 'uploads/smartpartner/images/category/' . "\", \"\", \"" . XOOPS_URL . "\")'");
    $image_tray = new XoopsFormElementTray(_AM_SPARTNER_CATEGORY_IMAGE, '&nbsp;');
    $image_tray->addElement($image_select);
    $image_tray->addElement(new XoopsFormLabel('', "<br /><br /><img src='" . smartpartner_getImageDir('category', false) . $categoryObj->image() . "' name='image3' id='image3' alt='' />"));
    $image_tray->setDescription(_AM_SPARTNER_CATEGORY_IMAGE_DSC);
    $sform->addElement($image_tray);
    // IMAGE UPLOAD
    $max_size = 5000000;
    $file_box = new XoopsFormFile(_AM_SPARTNER_CATEGORY_IMAGE_UPLOAD, "image_file", $max_size);
    $file_box->setExtra("size ='45'");
    $file_box->setDescription(_AM_SPARTNER_CATEGORY_IMAGE_UPLOAD_DSC);
    $sform->addElement($file_box);
    // Weight
    $sform->addElement(new XoopsFormText(_AM_SPARTNER_CATEGORY_WEIGHT, 'weight', 4, 4, $categoryObj->weight()));
    $member_handler =& xoops_gethandler('member');
    $group_list =& $member_handler->getGroupList();
    $module_id = $xoopsModule->getVar('mid');
    // Parent Category
    ob_start();
    $mytree->makeMySelBox("name", "weight", $categoryObj->parentid(), 1, 'parentid');
    //makeMySelBox($title,$order="",$preset_id=0, $none=0, $sel_name="", $onchange="")
    $parent_cat_select = new XoopsFormLabel(_AM_SPARTNER_CATEGORY_PARENT, ob_get_contents());
    $parent_cat_select->setDescription(_AM_SPARTNER_CATEGORY_PARENT_DSC);
    $sform->addElement($parent_cat_select);
    ob_end_clean();
    // Added by fx2024
    // sub Categories
    $cat_tray = new XoopsFormElementTray(_AM_SPARTNER_CATEGORY_SUBCATS_CREATE, '<br /><br />');
    $cat_tray->setDescription(_AM_SPARTNER_CATEGORY_SUBCATS_CREATE_DSC);
    for ($i = 0; $i < $nb_subcats; $i++) {
        if ($i < (isset($_POST['scname']) ? sizeof($_POST['scname']) : 0)) {
            $subname = isset($_POST['scname']) ? $_POST['scname'][$i] : '';
        } else {
            $subname = '';
        }
        $cat_tray->addElement(new XoopsFormText('', 'scname[' . $i . ']', 50, 255, $subname), true);
    }
    $t = new XoopsFormText('', 'nb_subcats', 3, 2);
    $l = new XoopsFormLabel('', sprintf(_AM_SPARTNER_ADD_OPT, $t->render()));
    $b = new XoopsFormButton('', 'submit', _AM_SPARTNER_ADD_OPT_SUBMIT, 'submit');
    if ($categoryid == 0) {
        $b->setExtra('onclick="this.form.elements.op.value=\'addsubcats\'"');
    } else {
        $b->setExtra('onclick="this.form.elements.op.value=\'mod\'"');
    }
    $r = new XoopsFormElementTray('');
    $r->addElement($l);
    $r->addElement($b);
    $cat_tray->addElement($r);
    $sform->addElement($cat_tray);
    //End of fx2024 code
    /*$gperm_handler = &xoops_gethandler('groupperm');
         $mod_perms = $gperm_handler->getGroupIds('category_moderation', $categoryid, $module_id);
    
         $moderators_select = new XoopsFormSelect('', 'moderators', $moderators, 5, true);
         $moderators_tray->addElement($moderators_select);
    
         $butt_mngmods = new XoopsFormButton('', '', 'Manage mods', 'button');
         $butt_mngmods->setExtra('onclick="javascript:small_window(\'pop.php\', 370, 350);"');
//.........这里部分代码省略.........
开发者ID:trabisdementia,项目名称:xuups,代码行数:101,代码来源:category.php

示例14: build_form

function build_form($formid = 0)
{
    global $xoopsDB, $xoopsUser, $myts, $fields, $xoopsConfig, $xoopsModuleConfig, $xoopsTpl;
    include_once dirname(dirname(__FILE__)) . "/language/" . $xoopsConfig['language'] . '/main.php';
    if (isset($_POST['formid'])) {
        $data = array();
        $fields[] = 'priuid';
        $fields[] = 'cgroup';
        foreach ($fields as $name) {
            $data[$name] = $myts->stripSlashesGPC($_POST[$name]);
        }
        $data['optvars'] = post_optvars();
        $data['grpperm'] = $_POST['grpperm'];
        $formid = intval($_POST['formid']);
        // form preview
        get_attr_value($data['optvars']);
        // set default values
        $items = get_form_attribute($data['defs']);
        assign_form_widgets($items);
        if ($_POST['preview']) {
            echo "<h2>" . _PREVIEW . " : " . htmlspecialchars($data['title'], ENT_QUOTES) . "</h2>\n";
            echo "<div class='preview'>\n";
            $data['action'] = '';
            $data['check_script'] = "";
            $data['items'] =& $items;
            if (empty($xoopsTpl)) {
                $xoopsTpl = new XoopsTpl();
            }
            $out = $xoopsTpl->fetch('db:' . render_form($data, 'form'));
            echo preg_replace('/type=["\']submit["\']/', 'type="submit" disabled="disabled"', $out);
            echo "</div>\n<hr size='5'/>\n";
        }
    } elseif ($formid) {
        $res = $xoopsDB->query('SELECT * FROM ' . FORMS . " WHERE formid={$formid}");
        $data = $xoopsDB->fetchArray($res);
        $data['grpperm'] = explode('|', trim($data['grpperm'], '|'));
    } else {
        $data = array('title' => '', 'description' => '', 'defs' => '', 'store' => 1, 'custom' => 0, 'weight' => 0, 'active' => 1, 'priuid' => $xoopsUser->getVar('uid'), 'cgroup' => XOOPS_GROUP_ADMIN, 'optvars' => '', 'grpperm' => array(XOOPS_GROUP_USERS));
    }
    $form = new XoopsThemeForm($formid ? _AM_FORM_EDIT : _AM_FORM_NEW, 'myform', 'index.php');
    $form->addElement(new XoopsFormHidden('formid', $formid));
    $form->addElement(new XoopsFormText(_AM_FORM_TITLE, 'title', 35, 80, $data['title']), true);
    if (!empty($data['mtime'])) {
        $form->addElement(new XoopsFormLabel(_AM_FORM_MTIME, formatTimestamp($data['mtime'])));
    }
    $desc = new XoopsFormElementTray(_AM_FORM_DESCRIPTION, "<br/>");
    $description = $data['description'];
    $editor = get_attr_value(null, 'use_fckeditor');
    if ($editor) {
        $desc->addElement(new XoopsFormTextArea('', 'description', $description, 10, 60));
    } else {
        $desc->addElement(new XoopsFormDhtmlTextArea('', 'description', $description, 10, 60));
    }
    if (!$editor) {
        $button = new XoopsFormButton('', 'ins_tpl', _AM_INS_TEMPLATE);
        $button->setExtra("onClick=\"myform.description.value += defsToString();\"");
        $desc->addElement($button);
    }
    $error = check_form_tags($data['custom'], $data['defs'], $description);
    if ($error) {
        $desc->addElement(new XoopsFormLabel('', "<div style='color:red;'>{$error}</div>"));
    }
    $form->addElement($desc);
    $custom = new XoopsFormSelect(_AM_FORM_CUSTOM, 'custom', $data['custom']);
    $custom->setExtra(' onChange="myform.ins_tpl.disabled = (this.value==0||this.value==4);"');
    $custom_type = unserialize_vars(_AM_CUSTOM_DESCRIPTION);
    if ($editor) {
        unset($custom_type[0]);
    }
    $custom->addOptionArray($custom_type);
    $form->addElement($custom);
    $grpperm = new XoopsFormSelectGroup(_AM_FORM_ACCEPT_GROUPS, 'grpperm', true, $data['grpperm'], 4, true);
    $grpperm->setDescription(_AM_FORM_ACCEPT_GROUPS_DESC);
    $form->addElement($grpperm);
    $defs_tray = new XoopsFormElementTray(_AM_FORM_DEFS);
    $defs_tray->addElement(new XoopsFormTextArea('', 'defs', $data['defs'], 10, 60));
    $defs_tray->addElement(new XoopsFormLabel('', '<div id="itemhelper" style="display:none; white-space:nowrap;">
  ' . _AM_FORM_LAB . ' <input name="xelab" size="10">
  <input type="checkbox" name="xereq" title="' . _AM_FORM_REQ . '">
  <select name="xetype">
    <option value="text">text</option>
    <option value="checkbox">checkbox</option>
    <option value="radio">radio</option>
    <option value="textarea">textarea</option>
    <option value="select">select</option>
    <option value="const">const</option>
    <option value="hidden">hidden</option>
    <option value="mail">mail</option>
    <option value="file">file</option>
  </select>
  <input name="xeopt" size="30" />
  <button onClick="return addFieldItem();">' . _AM_FORM_ADD . '</button>
</div>'));
    $defs_tray->setDescription(_AM_FORM_DEFS_DESC);
    $form->addElement($defs_tray);
    $member_handler =& xoops_gethandler('member');
    $groups = $member_handler->getGroupList(new Criteria('groupid', XOOPS_GROUP_ANONYMOUS, '!='));
    $groups = $member_handler->getGroupList(new Criteria('groupid', XOOPS_GROUP_ANONYMOUS, '!='));
    $options = array();
    foreach ($groups as $k => $v) {
//.........这里部分代码省略.........
开发者ID:nbuy,项目名称:xoops-modules-ccenter,代码行数:101,代码来源:index.php

示例15: XoopsThemeForm

 echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-size: small; display: block; \">" . _AM_SCLIENT_IMPORT_INFO . "</span>";
 global $xoopsUser, $xoopsUser, $xoopsConfig, $xoopsDB, $modify, $xoopsModuleConfig, $xoopsModule, $XOOPS_URL, $myts;
 include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
 $module_handler =& xoops_gethandler('module');
 if ($module_handler->getByDirname('xoopsclients')) {
     $importfile_select_array["xoopsclients"] = _AM_SCLIENT_IMPORT_XOOPSCLIENTS_110;
 }
 if (isset($importfile_select_array) && count($importfile_select_array) > 0) {
     $sform = new XoopsThemeForm(_AM_SCLIENT_IMPORT_SELECTION, "op", xoops_getenv('PHP_SELF'));
     $sform->setExtra('enctype="multipart/form-data"');
     // Clients to import
     $importfile_select = new XoopsFormSelect('', 'importfile', $importfile);
     $importfile_select->addOptionArray($importfile_select_array);
     $importfile_tray = new XoopsFormElementTray(_AM_SCLIENT_IMPORT_SELECT_FILE, '&nbsp;');
     $importfile_tray->addElement($importfile_select);
     $importfile_tray->setDescription(_AM_SCLIENT_IMPORT_SELECT_FILE_DSC);
     $sform->addElement($importfile_tray);
     // Buttons
     $button_tray = new XoopsFormElementTray('', '');
     $hidden = new XoopsFormHidden('op', 'importExecute');
     $button_tray->addElement($hidden);
     $butt_import = new XoopsFormButton('', '', _AM_SCLIENT_IMPORT, 'submit');
     $butt_import->setExtra('onclick="this.form.elements.op.value=\'importExecute\'"');
     $button_tray->addElement($butt_import);
     $butt_cancel = new XoopsFormButton('', '', _AM_SCLIENT_CANCEL, 'button');
     $butt_cancel->setExtra('onclick="history.go(-1)"');
     $button_tray->addElement($butt_cancel);
     $sform->addElement($button_tray);
     $sform->display();
     unset($hidden);
 } else {
开发者ID:trabisdementia,项目名称:xuups,代码行数:31,代码来源:import.php


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