• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP icms_getModuleHandler函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中icms_getModuleHandler函数的典型用法代码示例。如果您正苦于以下问题:PHP icms_getModuleHandler函数的具体用法?PHP icms_getModuleHandler怎么用?PHP icms_getModuleHandler使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: content_content_display_edit

function content_content_display_edit($options)
{
    include_once ICMS_ROOT_PATH . '/modules/' . basename(dirname(dirname(__FILE__))) . '/include/common.php';
    $content_content_handler = icms_getModuleHandler('content', basename(dirname(dirname(__FILE__))), 'content');
    $selpages = new icms_form_elements_Select('', 'options[0]', $options[0]);
    $selpages->addOptionArray($content_content_handler->getContentList());
    $showsubs = new icms_form_elements_Radioyn('', 'options[1]', $options[1]);
    $showbreadc = new icms_form_elements_Radioyn('', 'options[2]', $options[2]);
    $showinfo = new icms_form_elements_Radioyn('', 'options[3]', $options[3]);
    $form = '<table width="100%">';
    $form .= '<tr>';
    $form .= '<td width="30%">' . _MB_CONTENT_CONTENT_SELPAGE . '</td>';
    $form .= '<td>' . $selpages->render() . '</td>';
    $form .= '</tr>';
    $form .= '<tr>';
    $form .= '<td>' . _MB_CONTENT_CONTENT_SHOWSUBS . '</td>';
    $form .= '<td>' . $showsubs->render() . '</td>';
    $form .= '</tr>';
    $form .= '<tr>';
    $form .= '<td>' . _MB_CONTENT_CONTENT_SHOWBREADCRUMB . '</td>';
    $form .= '<td>' . $showbreadc->render() . '</td>';
    $form .= '</tr>';
    $form .= '<tr>';
    $form .= '<td>' . _MB_CONTENT_CONTENT_SHOWINFO . '</td>';
    $form .= '<td>' . $showinfo->render() . '</td>';
    $form .= '</tr>';
    $form .= '</table>';
    return $form;
}
开发者ID:LeeGlendenning,项目名称:formulize,代码行数:29,代码来源:content_display.php


示例2: eventAfterSaveSystemAdminPreferencesItems

	/**
	 * Do this event when saving item
	 *
	 * @param array config array
	 */
	function eventAfterSaveSystemAdminPreferencesItems($array) {
		if (!isset($array[ICMS_CONF_AUTOTASKS])) return;
		$handler = icms_getModuleHandler('autotasks', 'system');
		$handler->virtual_config = array();
		$array = &$array[ICMS_CONF_AUTOTASKS];
		$vconfig1 = array();
		$vconfig2 = array();
		foreach ($array as $key => $values) {
			$vconfig1[$key] = $values[0];
			$vconfig2[$key] = $values[1];
		}
		$handler->enableVirtualConfig($vconfig1);
		$system = $handler->getCurrentSystemHandler(true);
		if ($system->isEnabled()) {
			$system->stop();
		}
		$handler->enableVirtualConfig($vconfig2);
		$system = $handler->getCurrentSystemHandler(true);
		if ($rez = $system->canRun()) {
			$time = (int) ($handler->getRealTasksRunningTime());
			$rez = $system->start($time);
		} else {
			icms_loadLanguageFile('system', 'autotasks', true);
			icms_core_Message::error(_CO_ICMS_AUTOTASKS_INIT_ERROR);
			return false;
		}
		$handler->disableVirtualConfig();
	}
开发者ID:nao-pon,项目名称:impresscms,代码行数:33,代码来源:autotasks.php


示例3: b_profile_friends_show

function b_profile_friends_show($options)
{
    global $xoTheme;
    if (!empty(icms::$user)) {
        $profile_friendship_handler = icms_getModuleHandler('friendship', basename(dirname(dirname(__FILE__))), 'profile');
        $friends = $profile_friendship_handler->getFriendships(0, 0, icms::$user->getVar('uid'), 0, PROFILE_FRIENDSHIP_STATUS_ACCEPTED);
        if (count($friends) == 0) {
            return;
        }
        $block = array();
        $i = 0;
        foreach ($friends as $friend) {
            $friend_uid = icms::$user->getVar('uid') == $friend['friend1_uid'] ? $friend['friend2_uid'] : $friend['friend1_uid'];
            $block['friends'][$i]['uname'] = icms_member_user_Handler::getUserLink($friend_uid);
            $block['friends'][$i]['friend_uid'] = $friend_uid;
            $block['friends'][$i]['sort'] = icms_member_user_Object::getUnameFromId($friend_uid);
            $i++;
        }
        if (isset($block['friends']) && count($block['friends']) > 0) {
            usort($block['friends'], 'sortFriendsArray');
        }
        // adding PM javascript, $xoTheme cannot be used in this place because jQuery is not yet loaded
        if (count($block['friends']) > 0) {
            $block['jQuery'] = 'jQuery(document).ready(function(){jQuery("a.block-profile-pm").colorbox({width:600, height:395, iframe:true});});';
        }
    }
    return $block;
}
开发者ID:LeeGlendenning,项目名称:formulize,代码行数:28,代码来源:blocks.php


示例4: delete

 /**
  * Delete an object from the database
  * @see icms_ipf_Handler::delete()
  *
  * @param mod_profile_Regstep $obj
  * @param bool $force
  * @return bool
  */
 public function delete(&$obj, $force = false)
 {
     if (parent::delete($obj, $force)) {
         $field_handler = icms_getModuleHandler('field', basename(dirname(dirname(__FILE__))), 'profile');
         return $field_handler->updateAll('step_id', 0, new icms_db_criteria_Item('step_id', $obj->getVar('step_id')));
     }
     return false;
 }
开发者ID:LeeGlendenning,项目名称:formulize,代码行数:16,代码来源:RegstepHandler.php


示例5: icms_getModuleHandler

 function &getFields()
 {
     static $fields_array;
     if (!isset($fields_array)) {
         $profile_handler = icms_getModuleHandler('profile', basename(dirname(dirname(__FILE__))), 'profile');
         $fields_array = $profile_handler->loadFields();
     }
     return $fields_array;
 }
开发者ID:LeeGlendenning,项目名称:formulize,代码行数:9,代码来源:Smartuser.php


示例6: beforeDelete

 protected function beforeDelete(&$obj)
 {
     $profile_fields_handler = icms_getModuleHandler('field', basename(dirname(dirname(__FILE__))), 'profile');
     $fields_count = $profile_fields_handler->getCount(icms_buildCriteria(array('catid' => $obj->getVar('catid'))));
     if ($fields_count == 0) {
         return true;
     }
     $obj->setErrors(sprintf(_AM_PROFILE_CATEGORY_NOTDELETED_FIELDS, $fields_count));
     return false;
 }
开发者ID:LeeGlendenning,项目名称:formulize,代码行数:10,代码来源:CategoryHandler.php


示例7: getCommandLine

 function getCommandLine()
 {
     $atasks_handler =& icms_getModuleHandler('autotasks', 'system');
     $config_atasks =& $atasks_handler->getConfig();
     if (($config_atasks['autotasks_helper_path'] = trim($config_atasks['autotasks_helper_path'])) != '') {
         if (substr($config_atasks['autotasks_helper_path'], -1) != '\\') {
             $config_atasks['autotasks_helper_path'] .= '\\';
         }
     }
     return (isset($_SERVER['COMSPEC']) ? $_SERVER['COMSPEC'] : $_SERVER['ComSpec']) . ' /C ' . str_replace(array('\\/', '/\\', '/'), array('/', '\\', '\\'), '"' . $config_atasks['autotasks_helper_path'] . str_replace(array('%path%', '%url%'), array(str_replace('/', '\\', ICMS_ROOT_PATH . '/include/autotasks.php'), ICMS_URL . '/include/autotasks.php'), $config_atasks['autotasks_helper']) . ' > NUL"');
 }
开发者ID:LeeGlendenning,项目名称:formulize,代码行数:11,代码来源:at.php


示例8: eventStartOutputInit

	/**
	 * Function to be triggered at the end of the output init process
	 *
	 * @return	void
	 */
	public function eventStartOutputInit() {
		global $icmsTpl;
		$icms_adsense_handler = icms_getModuleHandler("adsense", "system");
		$icms_adsensesObj = $icms_adsense_handler->getAdsensesByTag();
		$adsenses_array = array();
		if (is_object($icmsTpl)) {
			foreach ($icms_adsensesObj as $k => $v) {
				$adsenses_array[$k] = $v->render();
			}
			$icmsTpl->assign('icmsAdsenses', $adsenses_array);
		}
	}
开发者ID:nao-pon,项目名称:impresscms,代码行数:17,代码来源:adsense.php


示例9: eventStartOutputInit

	/**
	 * Function to be triggered at the end of the output init process
	 *
	 * @return	void
	 */
	function eventStartOutputInit() {
		global $icmsTpl;
		$icms_customtag_handler = icms_getModuleHandler("customtag", "system");
		$icms_customTagsObj = $icms_customtag_handler->getCustomtagsByName();
		$customtags_array = array();
		if (is_object($icmsTpl)) {
			foreach ($icms_customTagsObj as $k => $v) {
				$customtags_array[$k] = $v->render();
			}
			$icmsTpl->assign("icmsCustomtags", $customtags_array);
		}
	}
开发者ID:nao-pon,项目名称:impresscms,代码行数:17,代码来源:customtag.php


示例10: b_waiting_catads

function b_waiting_catads()
{
    $block = array();
    $ads_hnd =& icms_getModuleHandler('ads', 'catads');
    $criteria = new icms_db_criteria_Item('waiting', '1', '=');
    $nbads = $ads_hnd->getCount($criteria);
    if ($nbads > 0) {
        $block['adminlink'] = ICMS_URL . "/modules/catads/admin/index.php?action=waiting";
        $block['pendingnum'] = $nbads;
        $block['lang_linkname'] = _PI_WAITING_WAITINGS;
    }
    return $block;
}
开发者ID:LeeGlendenning,项目名称:formulize,代码行数:13,代码来源:catads.php


示例11: billboard_slides_show

function billboard_slides_show()
{
    include_once ICMS_ROOT_PATH . '/modules/billboard/include/common.php';
    $billboard_slide_handler = icms_getModuleHandler('slide', 'billboard');
    $billboard_config = icms_getModuleConfig('billboard');
    $criteria = new CriteriaCompo();
    $criteria->setStart(0);
    $criteria->setLimit(10);
    $criteria->setSort('slide_order');
    $criteria->setOrder('ASC');
    $block = array();
    $block['slides'] = $billboard_slide_handler->getObjects($criteria, true, false);
    $block['config'] = $billboard_config;
    return $block;
}
开发者ID:impresscms,项目名称:impresscms-module-billboard,代码行数:15,代码来源:billboard_slides_show.php


示例12: content_search

function content_search($queryarray, $andor, $limit, $offset, $userid)
{
    $imcontent_content_handler = icms_getModuleHandler('content', basename(dirname(dirname(__FILE__))), 'content');
    $contentsArray = $imcontent_content_handler->getContentsForSearch($queryarray, $andor, $limit, $offset, $userid);
    $ret = array();
    foreach ($contentsArray as $contentArray) {
        $item['image'] = "images/content.png";
        $item['link'] = $contentArray['itemUrl'];
        $item['title'] = $contentArray['content_title'];
        $item['time'] = strtotime($contentArray['content_published_date']);
        $item['uid'] = $contentArray['content_posterid'];
        $ret[] = $item;
        unset($item);
    }
    return $ret;
}
开发者ID:LeeGlendenning,项目名称:formulize,代码行数:16,代码来源:search.inc.php


示例13: __construct

 /**
  * Constructor
  * @param	object    $object   reference to targetobject (@link icms_ipf_Object)
  * @param	string    $key      the form name
  */
 public function __construct($object, $key)
 {
     $var = $object->vars[$key];
     $control = $object->getControl($key);
     if (isset($control['delimeter'])) {
         $this->_delimeter = $control['delimeter'];
     }
     parent::__construct($var['form_caption'], $key, $object->getVar($key, 'e'), $this->_delimeter);
     // Adding the options inside this Radio element
     // If the custom method is not from a module, than it's from the core
     if (isset($control['options'])) {
         $this->addOptionArray($control['options']);
     } else {
         // let's find out if the method we need to call comes from an already defined object
         if (isset($control['object'])) {
             if (method_exists($control['object'], $control['method'])) {
                 if ($option_array = $control['object']->{$control}['method']()) {
                     // Adding the options array to the Radio element
                     $this->addOptionArray($option_array);
                 }
             }
         } else {
             // finding the itemHandler; if none, let's take the itemHandler of the $object
             if (isset($control['itemHandler'])) {
                 if (!$control['module']) {
                     // Creating the specified core object handler
                     $control_handler = icms::handler($control['itemHandler']);
                 } else {
                     $control_handler =& icms_getModuleHandler($control['itemHandler'], $control['module']);
                 }
             } else {
                 $control_handler =& $object->handler;
             }
             // Checking if the specified method exists
             if (method_exists($control_handler, $control['method'])) {
                 // TODO : How could I pass the parameters in the following call ...
                 if ($option_array = $control_handler->{$control}['method']()) {
                     // Adding the options array to the Radio element
                     $this->addOptionArray($option_array);
                 }
             }
         }
     }
 }
开发者ID:nao-pon,项目名称:impresscms,代码行数:49,代码来源:Radio.php


示例14: __construct

 /**
  * Constructor
  * @param	object    $object   reference to targetobject (@link icms_ipf_Object)
  * @param	string    $key      the form name
  */
 public function __construct($object, $key)
 {
     $var = $object->vars[$key];
     $size = isset($var['size']) ? $var['size'] : ($this->_multiple ? 5 : 1);
     // Adding the options inside this SelectBox
     // If the custom method is not from a module, than it's from the core
     $control = $object->getControl($key);
     $value = isset($control['value']) ? $control['value'] : $object->getVar($key, 'e');
     parent::__construct($var['form_caption'], $key, $value, $size, $this->_multiple);
     if (isset($control['options'])) {
         $this->addOptionArray($control['options']);
     } else {
         // let's find if the method we need to call comes from an already defined object
         if (isset($control['object'])) {
             if (method_exists($control['object'], $control['method'])) {
                 if ($option_array = $control['object']->{$control}['method']()) {
                     // Adding the options array to the select element
                     $this->addOptionArray($option_array);
                 }
             }
         } else {
             // finding the itemHandler; if none, let's take the itemHandler of the $object
             if (isset($control['itemHandler'])) {
                 if (!isset($control['module'])) {
                     // Creating the specified core object handler
                     $control_handler = icms::handler($control['itemHandler']);
                 } else {
                     $control_handler =& icms_getModuleHandler($control['itemHandler'], $control['module']);
                 }
             } else {
                 $control_handler =& $object->handler;
             }
             // Checking if the specified method exists
             if (method_exists($control_handler, $control['method'])) {
                 $option_array = call_user_func_array(array($control_handler, $control['method']), isset($control['params']) ? $control['params'] : array());
                 if (is_array($option_array) && count($option_array) > 0) {
                     // Adding the options array to the select element
                     $this->addOptionArray($option_array);
                 }
             }
         }
     }
 }
开发者ID:nao-pon,项目名称:impresscms,代码行数:48,代码来源:Select.php


示例15: __construct

 /**
  * Constructor
  * @param	object    $object   reference to targetobject (@link icms_ipf_Object)
  * @param	string    $key      the form name
  */
 public function __construct($object, $key)
 {
     $control = $object->getControl($key);
     if (isset($control['delimeter'])) {
         $this->_delimeter = $control['delimeter'];
     }
     parent::__construct($object->vars[$key]['form_caption'], $key, $object->getVar($key), $this->_delimeter);
     if (isset($control['options'])) {
         $this->addOptionArray($control['options']);
     } else {
         // let's find if the method we need to call comes from an already defined object
         if (isset($control['object'])) {
             if (method_exists($control['object'], $control['method'])) {
                 if ($option_array = $control['object']->{$control}['method']()) {
                     // Adding the options array to the select element
                     $this->addOptionArray($option_array);
                 }
             }
         } else {
             // finding the itemHandler; if none, let's take the itemHandler of the $object
             if (isset($control['itemHandler'])) {
                 if (!isset($control['module'])) {
                     // Creating the specified core object handler
                     $control_handler = icms::handler($control['itemHandler']);
                 } else {
                     $control_handler =& icms_getModuleHandler($control['itemHandler'], $control['module']);
                 }
             } else {
                 $control_handler =& $object->handler;
             }
             // Checking if the specified method exists
             if (method_exists($control_handler, $control['method'])) {
                 $option_array = call_user_func_array(array($control_handler, $control['method']), isset($control['params']) ? $control['params'] : array());
                 if (is_array($option_array) && count($option_array) > 0) {
                     // Adding the options array to the select element
                     $this->addOptionArray($option_array);
                 }
             }
         }
     }
 }
开发者ID:nao-pon,项目名称:impresscms,代码行数:46,代码来源:Checkbox.php


示例16: __construct

 /**
  * Constructor
  * @param	object    $object   reference to targetobject (@link icms_ipf_Object)
  * @param	string    $key      the form name
  */
 public function __construct($object, $key)
 {
     $category_title_field = $object->handler->identifierName;
     $addNoParent = isset($object->controls[$key]['addNoParent']) ? $object->controls[$key]['addNoParent'] : true;
     $criteria = new icms_db_criteria_Compo();
     $criteria->setSort("weight, " . $category_title_field);
     $category_handler = icms_getModuleHandler('category', $object->handler->_moduleName);
     $categories = $category_handler->getObjects($criteria);
     $mytree = new icms_ipf_Tree($categories, "category_id", "category_pid");
     parent::__construct($object->vars[$key]['form_caption'], $key, $object->getVar($key, 'e'));
     $ret = array();
     $options = $this->getOptionArray($mytree, $category_title_field, 0, $ret, "");
     if ($addNoParent) {
         $newOptions = array('0' => '----');
         foreach ($options as $k => $v) {
             $newOptions[$k] = $v;
         }
         $options = $newOptions;
     }
     $this->addOptionArray($options);
 }
开发者ID:nao-pon,项目名称:impresscms,代码行数:26,代码来源:Parentcategory.php


示例17: profile_search

/**
 * Return search results and show images on userinfo page
 *
 * @param array $queryarray the terms to look
 * @param text $andor the conector between the terms to be looked
 * @param int $limit The number of maximum results
 * @param int $offset from wich register start
 * @param int $userid from which user to look
 * @return array $ret with all results
 */
function profile_search($queryarray, $andor, $limit, $offset, $userid)
{
    global $icmsConfigUser;
    $ret = array();
    $i = 0;
    $dirname = basename(dirname(dirname(__FILE__)));
    // check if anonymous users can access profiles
    if (!is_object(icms::$user) && !$icmsConfigUser['allow_annon_view_prof']) {
        return $ret;
    }
    // check if tribes are activated in module configuration
    $module = icms::handler('icms_module')->getByDirname($dirname, TRUE);
    if (!$module->config['enable_tribes']) {
        return $ret;
    }
    $profile_tribes_handler = icms_getModuleHandler('tribes', basename(dirname(dirname(__FILE__))), 'profile');
    $criteria = new icms_db_criteria_Compo();
    // if those two lines are uncommented, "all search results" isn't showing in the search results
    //if ($offset) $criteria->setStart($offset);
    //if ($limit) $criteria->setLimit((int)$limit);
    $criteria->setSort('title');
    if ($userid) {
        $criteria->add(new icms_db_criteria_Item('uid_owner', $userid));
    }
    if (is_array($queryarray) && count($queryarray) > 0) {
        foreach ($queryarray as $query) {
            $criteria_query = new icms_db_criteria_Compo();
            $criteria_query->add(new icms_db_criteria_Item('title', '%' . $query . '%', 'LIKE'));
            $criteria_query->add(new icms_db_criteria_Item('tribe_desc', '%' . $query . '%', 'LIKE'), 'OR');
            $criteria->add($criteria_query, $andor);
            unset($criteria_query);
        }
    }
    $tribes = $profile_tribes_handler->getObjects($criteria, false, false);
    foreach ($tribes as $tribe) {
        $ret[$i++] = array("image" => 'images/tribes.gif', "link" => $tribe['itemUrl'], "title" => $tribe['title'], "time" => strtotime($tribe['creation_time']), "uid" => $tribe['uid_owner']);
    }
    return $ret;
}
开发者ID:LeeGlendenning,项目名称:formulize,代码行数:49,代码来源:search.inc.php


示例18: profile_iteminfo

function profile_iteminfo($category, $item_id)
{
    $item = array('name' => '', 'url' => '');
    switch ($category) {
        case 'pictures':
        case 'videos':
        case 'audio':
            $thisUser = icms::handler('icms_member')->getUser($item_id);
            if ($thisUser === false) {
                break;
            }
            $item['name'] = $thisUser->getVar('uname');
            $item['url'] = ICMS_URL . '/modules/' . basename(dirname(dirname(__FILE__))) . '/' . $category . '.php?uid=' . $item_id;
            break;
        case 'tribetopic':
            $profile_tribes_handler = icms_getModuleHandler('tribes', basename(dirname(dirname(__FILE__))), 'profile');
            $tribesObj = $profile_tribes_handler->get($item_id);
            if ($tribesObj->isNew()) {
                break;
            }
            $item['name'] = $tribesObj->getVar('title');
            $item['url'] = $tribesObj->getItemLink(true);
            break;
        case 'tribepost':
            $profile_tribetopic_handler = icms_getModuleHandler('tribetopic', basename(dirname(dirname(__FILE__))), 'profile');
            $tribetopicObj = $profile_tribetopic_handler->get($item_id);
            if ($tribetopicObj->isNew()) {
                break;
            }
            $tribetopic = $tribetopicObj->toArray();
            $item['name'] = $tribetopic['title'];
            $item['url'] = $tribetopic['itemUrl'];
            break;
    }
    return $item;
}
开发者ID:LeeGlendenning,项目名称:formulize,代码行数:36,代码来源:notification.inc.php


示例19: isset

}
$clean_tribeuser_id = isset($_GET['tribeuser_id']) ? (int) $_GET['tribeuser_id'] : 0;
/** Create a whitelist of valid values, be sure to use appropriate types for each value
 * Be sure to include a value for no parameter, if you have a default condition
 */
$valid_op = array('mod', 'addtribeuser', 'del', '');
/**
 * in_array() is a native PHP function that will determine if the value of the
 * first argument is found in the array listed in the second argument. Strings
 * are case sensitive and the 3rd argument determines whether type matching is
 * required
 */
if (in_array($clean_op, $valid_op, true)) {
    switch ($clean_op) {
        case "mod":
            $profile_tribes_handler = icms_getModuleHandler('tribes', basename(dirname(dirname(__FILE__))), 'profile');
            $tribes = $profile_tribes_handler->getAllTribes();
            if (count($tribes) == 0) {
                redirect_header(PROFILE_ADMIN_URL . 'tribeuser.php', 3, _AM_PROFILE_TRIBEUSER_NOTTRIBESYET);
            }
            icms_cp_header();
            edittribeuser($clean_tribeuser_id);
            break;
        case "addtribeuser":
            $controller = new icms_ipf_Controller($profile_tribeuser_handler);
            $controller->storeFromDefaultForm(_AM_PROFILE_TRIBEUSER_CREATED, _AM_PROFILE_TRIBEUSER_MODIFIED);
            break;
        case "del":
            $controller = new icms_ipf_Controller($profile_tribeuser_handler);
            $controller->handleObjectDeletion();
            break;
开发者ID:LeeGlendenning,项目名称:formulize,代码行数:31,代码来源:tribeuser.php


示例20: b_system_topposters_edit

/**
 * Shows the form to edit the top posters
 *
 * @param array $options The block options
 * @return string $form The edit top posters form HTML string
 */
function b_system_topposters_edit($options) {
	$inputtag = "<input type='text' name='options[]' value='". (int) $options[0] . "' />";
	$form = sprintf(_MB_SYSTEM_DISPLAY, $inputtag);
	$form .= "<br />" . _MB_SYSTEM_DISPLAYA . "&nbsp;<input type='radio' id='options[]' name='options[]' value='1'";
	if ($options[1] == 1) {
		$form .= " checked='checked'";
	}
	$form .= " />&nbsp;" . _YES . "<input type='radio' id='options[]' name='options[]' value='0'";
	if ($options[1] == 0) {
		$form .= " checked='checked'";
	}
	$form .= " />&nbsp;" . _NO . "";
	$form .= "<br />" . _MB_SYSTEM_NODISPGR . "<br /><select id='options[]' name='options[]' multiple='multiple'>";
	$ranks = icms_getModuleHandler("userrank", "system")->getList(icms_buildCriteria(array('rank_special' => '1')));
	$size = count($options);
	foreach ($ranks as $k => $v) {
		$sel = "";
		for ($i = 2; $i < $size; $i++) {
			if ($k == $options[$i]) {
				$sel = " selected='selected'";
			}
		}
		$form .= "<option value='$k'$sel>$v</option>";
	}
	$form .= "</select>";
	return $form;
}
开发者ID:nao-pon,项目名称:impresscms,代码行数:33,代码来源:system_blocks.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP icms_loadLanguageFile函数代码示例发布时间:2022-05-15
下一篇:
PHP icms_cp_header函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap